google-api-client 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/api_names.yaml +395 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/service.rb +39 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
- data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
- data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
- data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
- 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 +32 -37
- data/generated/google/apis/bigquery_v2/service.rb +10 -2
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +205 -0
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- 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 +164 -163
- data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
- data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
- data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
- data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
- data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
- data/generated/google/apis/cloudkms_v1/service.rb +228 -228
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
- data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
- data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +116 -0
- data/generated/google/apis/compute_beta/representations.rb +48 -0
- data/generated/google/apis/compute_beta/service.rb +46 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
- data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
- data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
- data/generated/google/apis/dataproc_v1/representations.rb +255 -253
- data/generated/google/apis/dataproc_v1/service.rb +100 -100
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- 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 +3 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +3 -1
- data/generated/google/apis/fusiontables_v2.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 +959 -959
- data/generated/google/apis/genomics_v1/representations.rb +238 -238
- data/generated/google/apis/genomics_v1/service.rb +996 -996
- data/generated/google/apis/iam_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 +170 -173
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +427 -427
- data/generated/google/apis/language_v1beta1/representations.rb +113 -113
- data/generated/google/apis/language_v1beta1/service.rb +25 -24
- data/generated/google/apis/licensing_v1.rb +2 -2
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
- data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
- data/generated/google/apis/logging_v2beta1/service.rb +261 -261
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
- data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
- data/generated/google/apis/manufacturers_v1/service.rb +11 -11
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +7 -7
- data/generated/google/apis/monitoring_v3/classes.rb +668 -670
- data/generated/google/apis/monitoring_v3/representations.rb +140 -140
- data/generated/google/apis/monitoring_v3/service.rb +208 -208
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +505 -505
- data/generated/google/apis/partners_v2/representations.rb +118 -118
- data/generated/google/apis/partners_v2/service.rb +275 -275
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +1037 -1031
- data/generated/google/apis/people_v1/representations.rb +247 -246
- data/generated/google/apis/people_v1/service.rb +20 -20
- 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.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +131 -132
- data/generated/google/apis/pubsub_v1/representations.rb +35 -35
- data/generated/google/apis/pubsub_v1/service.rb +399 -408
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +9 -0
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/script_v1.rb +9 -9
- data/generated/google/apis/script_v1/classes.rb +110 -110
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/sheets_v4.rb +4 -4
- data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
- data/generated/google/apis/sheets_v4/representations.rb +856 -856
- data/generated/google/apis/sheets_v4/service.rb +106 -106
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2923 -2841
- data/generated/google/apis/slides_v1/representations.rb +722 -691
- data/generated/google/apis/slides_v1/service.rb +58 -15
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
- data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
- data/generated/google/apis/speech_v1beta1/service.rb +70 -70
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +151 -0
- data/generated/google/apis/storage_v1/representations.rb +45 -0
- data/generated/google/apis/storage_v1/service.rb +248 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1227 -1221
- data/generated/google/apis/vision_v1/representations.rb +217 -215
- data/generated/google/apis/webmasters_v3.rb +1 -1
- 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 +78 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
- data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
- data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -33,30 +33,76 @@ 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
|
-
# API key. Your API key identifies your project and provides you with API access,
|
38
|
-
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
-
attr_accessor :key
|
40
|
-
|
41
36
|
# @return [String]
|
42
37
|
# Available to use for quota purposes for server-side applications. Can be any
|
43
38
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
39
|
attr_accessor :quota_user
|
45
40
|
|
41
|
+
# @return [String]
|
42
|
+
# API key. Your API key identifies your project and provides you with API access,
|
43
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
44
|
+
attr_accessor :key
|
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
|
+
|
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
|
53
99
|
# Name of the media that is being downloaded. See
|
54
100
|
# ReadRequest.resource_name.
|
55
|
-
# @param [String] fields
|
56
|
-
# Selector specifying which fields to include in a partial response.
|
57
101
|
# @param [String] quota_user
|
58
102
|
# Available to use for quota purposes for server-side applications. Can be any
|
59
103
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
104
|
+
# @param [String] fields
|
105
|
+
# Selector specifying which fields to include in a partial response.
|
60
106
|
# @param [IO, String] download_dest
|
61
107
|
# IO stream or filename to receive content download
|
62
108
|
# @param [Google::Apis::RequestOptions] options
|
@@ -71,7 +117,7 @@ module Google
|
|
71
117
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
72
118
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
73
119
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
74
|
-
def download_medium(resource_name,
|
120
|
+
def download_medium(resource_name, quota_user: nil, fields: nil, download_dest: nil, options: nil, &block)
|
75
121
|
if download_dest.nil?
|
76
122
|
command = make_simple_command(:get, 'v1/media/{+resourceName}', options)
|
77
123
|
else
|
@@ -81,12 +127,49 @@ module Google
|
|
81
127
|
command.response_representation = Google::Apis::YoutubereportingV1::Media::Representation
|
82
128
|
command.response_class = Google::Apis::YoutubereportingV1::Media
|
83
129
|
command.params['resourceName'] = resource_name unless resource_name.nil?
|
130
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
84
131
|
command.query['fields'] = fields unless fields.nil?
|
132
|
+
execute_or_queue_command(command, &block)
|
133
|
+
end
|
134
|
+
|
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?
|
85
164
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
165
|
+
command.query['fields'] = fields unless fields.nil?
|
86
166
|
execute_or_queue_command(command, &block)
|
87
167
|
end
|
88
168
|
|
89
169
|
# 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.
|
90
173
|
# @param [String] on_behalf_of_content_owner
|
91
174
|
# The content owner's external ID on which behalf the user is acting on. If
|
92
175
|
# not set, the user is acting for himself (his own channel).
|
@@ -99,14 +182,11 @@ module Google
|
|
99
182
|
# If set to true, also system-managed jobs will be returned; otherwise only
|
100
183
|
# user-created jobs will be returned. System-managed jobs can neither be
|
101
184
|
# modified nor deleted.
|
102
|
-
# @param [Fixnum] page_size
|
103
|
-
# Requested page size. Server may return fewer jobs than requested.
|
104
|
-
# If unspecified, server will pick an appropriate default.
|
105
|
-
# @param [String] fields
|
106
|
-
# Selector specifying which fields to include in a partial response.
|
107
185
|
# @param [String] quota_user
|
108
186
|
# Available to use for quota purposes for server-side applications. Can be any
|
109
187
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
188
|
+
# @param [String] fields
|
189
|
+
# Selector specifying which fields to include in a partial response.
|
110
190
|
# @param [Google::Apis::RequestOptions] options
|
111
191
|
# Request-specific options
|
112
192
|
#
|
@@ -119,16 +199,16 @@ module Google
|
|
119
199
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
120
200
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
121
201
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
122
|
-
def list_jobs(
|
202
|
+
def list_jobs(page_size: nil, on_behalf_of_content_owner: nil, page_token: nil, include_system_managed: nil, quota_user: nil, fields: nil, options: nil, &block)
|
123
203
|
command = make_simple_command(:get, 'v1/jobs', options)
|
124
204
|
command.response_representation = Google::Apis::YoutubereportingV1::ListJobsResponse::Representation
|
125
205
|
command.response_class = Google::Apis::YoutubereportingV1::ListJobsResponse
|
206
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
126
207
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
127
208
|
command.query['pageToken'] = page_token unless page_token.nil?
|
128
209
|
command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
|
129
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
130
|
-
command.query['fields'] = fields unless fields.nil?
|
131
210
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
211
|
+
command.query['fields'] = fields unless fields.nil?
|
132
212
|
execute_or_queue_command(command, &block)
|
133
213
|
end
|
134
214
|
|
@@ -138,11 +218,11 @@ module Google
|
|
138
218
|
# @param [String] on_behalf_of_content_owner
|
139
219
|
# The content owner's external ID on which behalf the user is acting on. If
|
140
220
|
# not set, the user is acting for himself (his own channel).
|
141
|
-
# @param [String] fields
|
142
|
-
# Selector specifying which fields to include in a partial response.
|
143
221
|
# @param [String] quota_user
|
144
222
|
# Available to use for quota purposes for server-side applications. Can be any
|
145
223
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
224
|
+
# @param [String] fields
|
225
|
+
# Selector specifying which fields to include in a partial response.
|
146
226
|
# @param [Google::Apis::RequestOptions] options
|
147
227
|
# Request-specific options
|
148
228
|
#
|
@@ -155,14 +235,14 @@ module Google
|
|
155
235
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
156
236
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
157
237
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
158
|
-
def get_job(job_id, on_behalf_of_content_owner: nil,
|
238
|
+
def get_job(job_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
|
159
239
|
command = make_simple_command(:get, 'v1/jobs/{jobId}', options)
|
160
240
|
command.response_representation = Google::Apis::YoutubereportingV1::Job::Representation
|
161
241
|
command.response_class = Google::Apis::YoutubereportingV1::Job
|
162
242
|
command.params['jobId'] = job_id unless job_id.nil?
|
163
243
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
164
|
-
command.query['fields'] = fields unless fields.nil?
|
165
244
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
245
|
+
command.query['fields'] = fields unless fields.nil?
|
166
246
|
execute_or_queue_command(command, &block)
|
167
247
|
end
|
168
248
|
|
@@ -171,11 +251,11 @@ module Google
|
|
171
251
|
# @param [String] on_behalf_of_content_owner
|
172
252
|
# The content owner's external ID on which behalf the user is acting on. If
|
173
253
|
# not set, the user is acting for himself (his own channel).
|
174
|
-
# @param [String] fields
|
175
|
-
# Selector specifying which fields to include in a partial response.
|
176
254
|
# @param [String] quota_user
|
177
255
|
# Available to use for quota purposes for server-side applications. Can be any
|
178
256
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
257
|
+
# @param [String] fields
|
258
|
+
# Selector specifying which fields to include in a partial response.
|
179
259
|
# @param [Google::Apis::RequestOptions] options
|
180
260
|
# Request-specific options
|
181
261
|
#
|
@@ -188,49 +268,15 @@ module Google
|
|
188
268
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
189
269
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
190
270
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
191
|
-
def create_job(job_object = nil, on_behalf_of_content_owner: nil,
|
271
|
+
def create_job(job_object = nil, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
|
192
272
|
command = make_simple_command(:post, 'v1/jobs', options)
|
193
273
|
command.request_representation = Google::Apis::YoutubereportingV1::Job::Representation
|
194
274
|
command.request_object = job_object
|
195
275
|
command.response_representation = Google::Apis::YoutubereportingV1::Job::Representation
|
196
276
|
command.response_class = Google::Apis::YoutubereportingV1::Job
|
197
277
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
198
|
-
command.query['fields'] = fields unless fields.nil?
|
199
278
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
200
|
-
execute_or_queue_command(command, &block)
|
201
|
-
end
|
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] fields
|
210
|
-
# Selector specifying which fields to include in a partial response.
|
211
|
-
# @param [String] quota_user
|
212
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
213
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
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, fields: nil, quota_user: 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
279
|
command.query['fields'] = fields unless fields.nil?
|
233
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
234
280
|
execute_or_queue_command(command, &block)
|
235
281
|
end
|
236
282
|
|
@@ -257,11 +303,11 @@ module Google
|
|
257
303
|
# @param [String] start_time_before
|
258
304
|
# If set, only reports whose start time is smaller than the specified
|
259
305
|
# date/time are returned.
|
260
|
-
# @param [String] fields
|
261
|
-
# Selector specifying which fields to include in a partial response.
|
262
306
|
# @param [String] quota_user
|
263
307
|
# Available to use for quota purposes for server-side applications. Can be any
|
264
308
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
309
|
+
# @param [String] fields
|
310
|
+
# Selector specifying which fields to include in a partial response.
|
265
311
|
# @param [Google::Apis::RequestOptions] options
|
266
312
|
# Request-specific options
|
267
313
|
#
|
@@ -274,7 +320,7 @@ 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, start_time_at_or_after: nil, page_token: nil, page_size: nil, on_behalf_of_content_owner: nil, start_time_before: nil,
|
323
|
+
def list_job_reports(job_id, created_after: nil, start_time_at_or_after: nil, page_token: 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
|
@@ -285,8 +331,8 @@ module Google
|
|
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?
|
288
|
-
command.query['fields'] = fields unless fields.nil?
|
289
334
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
335
|
+
command.query['fields'] = fields unless fields.nil?
|
290
336
|
execute_or_queue_command(command, &block)
|
291
337
|
end
|
292
338
|
|
@@ -298,11 +344,11 @@ module Google
|
|
298
344
|
# @param [String] on_behalf_of_content_owner
|
299
345
|
# The content owner's external ID on which behalf the user is acting on. If
|
300
346
|
# not set, the user is acting for himself (his own channel).
|
301
|
-
# @param [String] fields
|
302
|
-
# Selector specifying which fields to include in a partial response.
|
303
347
|
# @param [String] quota_user
|
304
348
|
# Available to use for quota purposes for server-side applications. Can be any
|
305
349
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
350
|
+
# @param [String] fields
|
351
|
+
# Selector specifying which fields to include in a partial response.
|
306
352
|
# @param [Google::Apis::RequestOptions] options
|
307
353
|
# Request-specific options
|
308
354
|
#
|
@@ -315,69 +361,23 @@ module Google
|
|
315
361
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
316
362
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
317
363
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
318
|
-
def get_job_report(job_id, report_id, on_behalf_of_content_owner: nil,
|
364
|
+
def get_job_report(job_id, report_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
|
319
365
|
command = make_simple_command(:get, 'v1/jobs/{jobId}/reports/{reportId}', options)
|
320
366
|
command.response_representation = Google::Apis::YoutubereportingV1::Report::Representation
|
321
367
|
command.response_class = Google::Apis::YoutubereportingV1::Report
|
322
368
|
command.params['jobId'] = job_id unless job_id.nil?
|
323
369
|
command.params['reportId'] = report_id unless report_id.nil?
|
324
370
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
325
|
-
command.query['fields'] = fields unless fields.nil?
|
326
371
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
327
|
-
execute_or_queue_command(command, &block)
|
328
|
-
end
|
329
|
-
|
330
|
-
# Lists report types.
|
331
|
-
# @param [String] page_token
|
332
|
-
# A token identifying a page of results the server should return. Typically,
|
333
|
-
# this is the value of
|
334
|
-
# ListReportTypesResponse.next_page_token
|
335
|
-
# returned in response to the previous call to the `ListReportTypes` method.
|
336
|
-
# @param [Boolean] include_system_managed
|
337
|
-
# If set to true, also system-managed report types will be returned;
|
338
|
-
# otherwise only the report types that can be used to create new reporting
|
339
|
-
# jobs will be returned.
|
340
|
-
# @param [Fixnum] page_size
|
341
|
-
# Requested page size. Server may return fewer report types than requested.
|
342
|
-
# If unspecified, server will pick an appropriate default.
|
343
|
-
# @param [String] on_behalf_of_content_owner
|
344
|
-
# The content owner's external ID on which behalf the user is acting on. If
|
345
|
-
# not set, the user is acting for himself (his own channel).
|
346
|
-
# @param [String] fields
|
347
|
-
# Selector specifying which fields to include in a partial response.
|
348
|
-
# @param [String] quota_user
|
349
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
350
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
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(page_token: nil, include_system_managed: nil, page_size: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: 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['pageToken'] = page_token unless page_token.nil?
|
368
|
-
command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
|
369
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
370
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
371
372
|
command.query['fields'] = fields unless fields.nil?
|
372
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
373
373
|
execute_or_queue_command(command, &block)
|
374
374
|
end
|
375
375
|
|
376
376
|
protected
|
377
377
|
|
378
378
|
def apply_command_defaults(command)
|
379
|
-
command.query['key'] = key unless key.nil?
|
380
379
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
380
|
+
command.query['key'] = key unless key.nil?
|
381
381
|
end
|
382
382
|
end
|
383
383
|
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.10.
|
4
|
+
version: 0.10.2
|
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-03-
|
14
|
+
date: 2017-03-27 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: representable
|