google-api-client 0.29.2 → 0.30.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/generated/google/apis/admin_reports_v1.rb +1 -1
  4. data/generated/google/apis/admin_reports_v1/classes.rb +106 -0
  5. data/generated/google/apis/admin_reports_v1/representations.rb +51 -0
  6. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  7. data/generated/google/apis/alertcenter_v1beta1/classes.rb +6 -0
  8. data/generated/google/apis/alertcenter_v1beta1/representations.rb +1 -0
  9. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  10. data/generated/google/apis/androidmanagement_v1/classes.rb +2 -3
  11. data/generated/google/apis/composer_v1.rb +1 -1
  12. data/generated/google/apis/composer_v1/classes.rb +24 -21
  13. data/generated/google/apis/composer_v1/service.rb +4 -2
  14. data/generated/google/apis/composer_v1beta1.rb +1 -1
  15. data/generated/google/apis/composer_v1beta1/classes.rb +24 -21
  16. data/generated/google/apis/composer_v1beta1/service.rb +4 -2
  17. data/generated/google/apis/container_v1.rb +1 -1
  18. data/generated/google/apis/container_v1/classes.rb +1 -1
  19. data/generated/google/apis/container_v1beta1.rb +1 -1
  20. data/generated/google/apis/container_v1beta1/classes.rb +36 -1
  21. data/generated/google/apis/container_v1beta1/representations.rb +17 -0
  22. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  23. data/generated/google/apis/dataflow_v1b3/service.rb +44 -2
  24. data/generated/google/apis/dialogflow_v2.rb +1 -1
  25. data/generated/google/apis/dialogflow_v2/classes.rb +4 -2
  26. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  27. data/generated/google/apis/dialogflow_v2beta1/classes.rb +4 -2
  28. data/generated/google/apis/fcm_v1.rb +1 -1
  29. data/generated/google/apis/fcm_v1/classes.rb +19 -0
  30. data/generated/google/apis/fcm_v1/representations.rb +14 -0
  31. data/generated/google/apis/games_v1.rb +1 -4
  32. data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
  33. data/generated/google/apis/healthcare_v1alpha2/classes.rb +2 -2
  34. data/generated/google/apis/healthcare_v1alpha2/service.rb +21 -21
  35. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  36. data/generated/google/apis/healthcare_v1beta1/service.rb +21 -21
  37. data/generated/google/apis/logging_v2.rb +1 -1
  38. data/generated/google/apis/logging_v2/classes.rb +8 -1
  39. data/generated/google/apis/logging_v2/representations.rb +1 -0
  40. data/generated/google/apis/redis_v1.rb +1 -1
  41. data/generated/google/apis/redis_v1/classes.rb +1 -1
  42. data/generated/google/apis/redis_v1beta1.rb +1 -1
  43. data/generated/google/apis/redis_v1beta1/classes.rb +1 -1
  44. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  45. data/generated/google/apis/remotebuildexecution_v1/classes.rb +25 -0
  46. data/generated/google/apis/remotebuildexecution_v1/representations.rb +14 -0
  47. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  48. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +25 -0
  49. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +14 -0
  50. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  51. data/generated/google/apis/remotebuildexecution_v2/classes.rb +25 -0
  52. data/generated/google/apis/remotebuildexecution_v2/representations.rb +14 -0
  53. data/generated/google/apis/run_v1alpha1.rb +1 -1
  54. data/generated/google/apis/run_v1alpha1/classes.rb +354 -0
  55. data/generated/google/apis/run_v1alpha1/representations.rb +129 -0
  56. data/generated/google/apis/run_v1alpha1/service.rb +176 -0
  57. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  58. data/generated/google/apis/securitycenter_v1.rb +1 -1
  59. data/generated/google/apis/securitycenter_v1/classes.rb +2 -4
  60. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  61. data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -4
  62. data/generated/google/apis/tagmanager_v1.rb +1 -1
  63. data/generated/google/apis/tagmanager_v1/classes.rb +2 -0
  64. data/generated/google/apis/tagmanager_v2.rb +1 -1
  65. data/generated/google/apis/tagmanager_v2/classes.rb +46 -0
  66. data/generated/google/apis/tagmanager_v2/representations.rb +29 -0
  67. data/generated/google/apis/tagmanager_v2/service.rb +219 -0
  68. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  69. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +6 -1
  70. data/generated/google/apis/websecurityscanner_v1beta/representations.rb +1 -0
  71. data/generated/google/apis/youtube_analytics_v1.rb +2 -17
  72. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -311
  73. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -148
  74. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -419
  75. data/lib/google/apis/version.rb +1 -1
  76. metadata +2 -6
  77. data/generated/google/apis/youtube_analytics_v1beta1.rb +0 -46
  78. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +0 -337
  79. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +0 -174
  80. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +0 -473
@@ -30,7 +30,7 @@ module Google
30
30
  # YoutubeAnalytics = Google::Apis::YoutubeAnalyticsV1 # Alias the module
31
31
  # service = YoutubeAnalytics::YouTubeAnalyticsService.new
32
32
  #
33
- # @see http://developers.google.com/youtube/analytics/
33
+ # @see https://developers.google.com/youtube/analytics
34
34
  class YouTubeAnalyticsService < Google::Apis::Core::BaseService
35
35
  # @return [String]
36
36
  # API key. Your API key identifies your project and provides you with API access,
@@ -38,426 +38,13 @@ module Google
38
38
  attr_accessor :key
39
39
 
40
40
  # @return [String]
41
- # An opaque string that represents a user for quota purposes. Must not exceed 40
42
- # characters.
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
43
  attr_accessor :quota_user
44
44
 
45
- # @return [String]
46
- # Deprecated. Please use quotaUser instead.
47
- attr_accessor :user_ip
48
-
49
45
  def initialize
50
- super('https://www.googleapis.com/', 'youtube/analytics/v1/')
51
- @batch_path = 'batch/youtubeAnalytics/v1'
52
- end
53
-
54
- # Removes an item from a group.
55
- # @param [String] id
56
- # The id parameter specifies the YouTube group item ID for the group that is
57
- # being deleted.
58
- # @param [String] on_behalf_of_content_owner
59
- # Note: This parameter is intended exclusively for YouTube content partners.
60
- # The onBehalfOfContentOwner parameter indicates that the request's
61
- # authorization credentials identify a YouTube CMS user who is acting on behalf
62
- # of the content owner specified in the parameter value. This parameter is
63
- # intended for YouTube content partners that own and manage many different
64
- # YouTube channels. It allows content owners to authenticate once and get access
65
- # to all their video and channel data, without having to provide authentication
66
- # credentials for each individual channel. The CMS account that the user
67
- # authenticates with must be linked to the specified YouTube content owner.
68
- # @param [String] fields
69
- # Selector specifying which fields to include in a partial response.
70
- # @param [String] quota_user
71
- # An opaque string that represents a user for quota purposes. Must not exceed 40
72
- # characters.
73
- # @param [String] user_ip
74
- # Deprecated. Please use quotaUser instead.
75
- # @param [Google::Apis::RequestOptions] options
76
- # Request-specific options
77
- #
78
- # @yield [result, err] Result & error if block supplied
79
- # @yieldparam result [NilClass] No result returned for this method
80
- # @yieldparam err [StandardError] error object if request failed
81
- #
82
- # @return [void]
83
- #
84
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
85
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
86
- # @raise [Google::Apis::AuthorizationError] Authorization is required
87
- def delete_group_item(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
88
- command = make_simple_command(:delete, 'groupItems', options)
89
- command.query['id'] = id unless id.nil?
90
- command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
91
- command.query['fields'] = fields unless fields.nil?
92
- command.query['quotaUser'] = quota_user unless quota_user.nil?
93
- command.query['userIp'] = user_ip unless user_ip.nil?
94
- execute_or_queue_command(command, &block)
95
- end
96
-
97
- # Creates a group item.
98
- # @param [Google::Apis::YoutubeAnalyticsV1::GroupItem] group_item_object
99
- # @param [String] on_behalf_of_content_owner
100
- # Note: This parameter is intended exclusively for YouTube content partners.
101
- # The onBehalfOfContentOwner parameter indicates that the request's
102
- # authorization credentials identify a YouTube CMS user who is acting on behalf
103
- # of the content owner specified in the parameter value. This parameter is
104
- # intended for YouTube content partners that own and manage many different
105
- # YouTube channels. It allows content owners to authenticate once and get access
106
- # to all their video and channel data, without having to provide authentication
107
- # credentials for each individual channel. The CMS account that the user
108
- # authenticates with must be linked to the specified YouTube content owner.
109
- # @param [String] fields
110
- # Selector specifying which fields to include in a partial response.
111
- # @param [String] quota_user
112
- # An opaque string that represents a user for quota purposes. Must not exceed 40
113
- # characters.
114
- # @param [String] user_ip
115
- # Deprecated. Please use quotaUser instead.
116
- # @param [Google::Apis::RequestOptions] options
117
- # Request-specific options
118
- #
119
- # @yield [result, err] Result & error if block supplied
120
- # @yieldparam result [Google::Apis::YoutubeAnalyticsV1::GroupItem] parsed result object
121
- # @yieldparam err [StandardError] error object if request failed
122
- #
123
- # @return [Google::Apis::YoutubeAnalyticsV1::GroupItem]
124
- #
125
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
126
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
127
- # @raise [Google::Apis::AuthorizationError] Authorization is required
128
- def insert_group_item(group_item_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
129
- command = make_simple_command(:post, 'groupItems', options)
130
- command.request_representation = Google::Apis::YoutubeAnalyticsV1::GroupItem::Representation
131
- command.request_object = group_item_object
132
- command.response_representation = Google::Apis::YoutubeAnalyticsV1::GroupItem::Representation
133
- command.response_class = Google::Apis::YoutubeAnalyticsV1::GroupItem
134
- command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
135
- command.query['fields'] = fields unless fields.nil?
136
- command.query['quotaUser'] = quota_user unless quota_user.nil?
137
- command.query['userIp'] = user_ip unless user_ip.nil?
138
- execute_or_queue_command(command, &block)
139
- end
140
-
141
- # Returns a collection of group items that match the API request parameters.
142
- # @param [String] group_id
143
- # The id parameter specifies the unique ID of the group for which you want to
144
- # retrieve group items.
145
- # @param [String] on_behalf_of_content_owner
146
- # Note: This parameter is intended exclusively for YouTube content partners.
147
- # The onBehalfOfContentOwner parameter indicates that the request's
148
- # authorization credentials identify a YouTube CMS user who is acting on behalf
149
- # of the content owner specified in the parameter value. This parameter is
150
- # intended for YouTube content partners that own and manage many different
151
- # YouTube channels. It allows content owners to authenticate once and get access
152
- # to all their video and channel data, without having to provide authentication
153
- # credentials for each individual channel. The CMS account that the user
154
- # authenticates with must be linked to the specified YouTube content owner.
155
- # @param [String] fields
156
- # Selector specifying which fields to include in a partial response.
157
- # @param [String] quota_user
158
- # An opaque string that represents a user for quota purposes. Must not exceed 40
159
- # characters.
160
- # @param [String] user_ip
161
- # Deprecated. Please use quotaUser instead.
162
- # @param [Google::Apis::RequestOptions] options
163
- # Request-specific options
164
- #
165
- # @yield [result, err] Result & error if block supplied
166
- # @yieldparam result [Google::Apis::YoutubeAnalyticsV1::ListGroupItemResponse] parsed result object
167
- # @yieldparam err [StandardError] error object if request failed
168
- #
169
- # @return [Google::Apis::YoutubeAnalyticsV1::ListGroupItemResponse]
170
- #
171
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
172
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
173
- # @raise [Google::Apis::AuthorizationError] Authorization is required
174
- def list_group_items(group_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
175
- command = make_simple_command(:get, 'groupItems', options)
176
- command.response_representation = Google::Apis::YoutubeAnalyticsV1::ListGroupItemResponse::Representation
177
- command.response_class = Google::Apis::YoutubeAnalyticsV1::ListGroupItemResponse
178
- command.query['groupId'] = group_id unless group_id.nil?
179
- command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
180
- command.query['fields'] = fields unless fields.nil?
181
- command.query['quotaUser'] = quota_user unless quota_user.nil?
182
- command.query['userIp'] = user_ip unless user_ip.nil?
183
- execute_or_queue_command(command, &block)
184
- end
185
-
186
- # Deletes a group.
187
- # @param [String] id
188
- # The id parameter specifies the YouTube group ID for the group that is being
189
- # deleted.
190
- # @param [String] on_behalf_of_content_owner
191
- # Note: This parameter is intended exclusively for YouTube content partners.
192
- # The onBehalfOfContentOwner parameter indicates that the request's
193
- # authorization credentials identify a YouTube CMS user who is acting on behalf
194
- # of the content owner specified in the parameter value. This parameter is
195
- # intended for YouTube content partners that own and manage many different
196
- # YouTube channels. It allows content owners to authenticate once and get access
197
- # to all their video and channel data, without having to provide authentication
198
- # credentials for each individual channel. The CMS account that the user
199
- # authenticates with must be linked to the specified YouTube content owner.
200
- # @param [String] fields
201
- # Selector specifying which fields to include in a partial response.
202
- # @param [String] quota_user
203
- # An opaque string that represents a user for quota purposes. Must not exceed 40
204
- # characters.
205
- # @param [String] user_ip
206
- # Deprecated. Please use quotaUser instead.
207
- # @param [Google::Apis::RequestOptions] options
208
- # Request-specific options
209
- #
210
- # @yield [result, err] Result & error if block supplied
211
- # @yieldparam result [NilClass] No result returned for this method
212
- # @yieldparam err [StandardError] error object if request failed
213
- #
214
- # @return [void]
215
- #
216
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
217
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
218
- # @raise [Google::Apis::AuthorizationError] Authorization is required
219
- def delete_group(id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
220
- command = make_simple_command(:delete, 'groups', options)
221
- command.query['id'] = id unless id.nil?
222
- command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
223
- command.query['fields'] = fields unless fields.nil?
224
- command.query['quotaUser'] = quota_user unless quota_user.nil?
225
- command.query['userIp'] = user_ip unless user_ip.nil?
226
- execute_or_queue_command(command, &block)
227
- end
228
-
229
- # Creates a group.
230
- # @param [Google::Apis::YoutubeAnalyticsV1::Group] group_object
231
- # @param [String] on_behalf_of_content_owner
232
- # Note: This parameter is intended exclusively for YouTube content partners.
233
- # The onBehalfOfContentOwner parameter indicates that the request's
234
- # authorization credentials identify a YouTube CMS user who is acting on behalf
235
- # of the content owner specified in the parameter value. This parameter is
236
- # intended for YouTube content partners that own and manage many different
237
- # YouTube channels. It allows content owners to authenticate once and get access
238
- # to all their video and channel data, without having to provide authentication
239
- # credentials for each individual channel. The CMS account that the user
240
- # authenticates with must be linked to the specified YouTube content owner.
241
- # @param [String] fields
242
- # Selector specifying which fields to include in a partial response.
243
- # @param [String] quota_user
244
- # An opaque string that represents a user for quota purposes. Must not exceed 40
245
- # characters.
246
- # @param [String] user_ip
247
- # Deprecated. Please use quotaUser instead.
248
- # @param [Google::Apis::RequestOptions] options
249
- # Request-specific options
250
- #
251
- # @yield [result, err] Result & error if block supplied
252
- # @yieldparam result [Google::Apis::YoutubeAnalyticsV1::Group] parsed result object
253
- # @yieldparam err [StandardError] error object if request failed
254
- #
255
- # @return [Google::Apis::YoutubeAnalyticsV1::Group]
256
- #
257
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
258
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
259
- # @raise [Google::Apis::AuthorizationError] Authorization is required
260
- def insert_group(group_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
261
- command = make_simple_command(:post, 'groups', options)
262
- command.request_representation = Google::Apis::YoutubeAnalyticsV1::Group::Representation
263
- command.request_object = group_object
264
- command.response_representation = Google::Apis::YoutubeAnalyticsV1::Group::Representation
265
- command.response_class = Google::Apis::YoutubeAnalyticsV1::Group
266
- command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
267
- command.query['fields'] = fields unless fields.nil?
268
- command.query['quotaUser'] = quota_user unless quota_user.nil?
269
- command.query['userIp'] = user_ip unless user_ip.nil?
270
- execute_or_queue_command(command, &block)
271
- end
272
-
273
- # Returns a collection of groups that match the API request parameters. For
274
- # example, you can retrieve all groups that the authenticated user owns, or you
275
- # can retrieve one or more groups by their unique IDs.
276
- # @param [String] id
277
- # The id parameter specifies a comma-separated list of the YouTube group ID(s)
278
- # for the resource(s) that are being retrieved. In a group resource, the id
279
- # property specifies the group's YouTube group ID.
280
- # @param [Boolean] mine
281
- # Set this parameter's value to true to instruct the API to only return groups
282
- # owned by the authenticated user.
283
- # @param [String] on_behalf_of_content_owner
284
- # Note: This parameter is intended exclusively for YouTube content partners.
285
- # The onBehalfOfContentOwner parameter indicates that the request's
286
- # authorization credentials identify a YouTube CMS user who is acting on behalf
287
- # of the content owner specified in the parameter value. This parameter is
288
- # intended for YouTube content partners that own and manage many different
289
- # YouTube channels. It allows content owners to authenticate once and get access
290
- # to all their video and channel data, without having to provide authentication
291
- # credentials for each individual channel. The CMS account that the user
292
- # authenticates with must be linked to the specified YouTube content owner.
293
- # @param [String] page_token
294
- # The pageToken parameter identifies a specific page in the result set that
295
- # should be returned. In an API response, the nextPageToken property identifies
296
- # the next page that can be retrieved.
297
- # @param [String] fields
298
- # Selector specifying which fields to include in a partial response.
299
- # @param [String] quota_user
300
- # An opaque string that represents a user for quota purposes. Must not exceed 40
301
- # characters.
302
- # @param [String] user_ip
303
- # Deprecated. Please use quotaUser instead.
304
- # @param [Google::Apis::RequestOptions] options
305
- # Request-specific options
306
- #
307
- # @yield [result, err] Result & error if block supplied
308
- # @yieldparam result [Google::Apis::YoutubeAnalyticsV1::ListGroupsResponse] parsed result object
309
- # @yieldparam err [StandardError] error object if request failed
310
- #
311
- # @return [Google::Apis::YoutubeAnalyticsV1::ListGroupsResponse]
312
- #
313
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
314
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
315
- # @raise [Google::Apis::AuthorizationError] Authorization is required
316
- def list_groups(id: nil, mine: nil, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
317
- command = make_simple_command(:get, 'groups', options)
318
- command.response_representation = Google::Apis::YoutubeAnalyticsV1::ListGroupsResponse::Representation
319
- command.response_class = Google::Apis::YoutubeAnalyticsV1::ListGroupsResponse
320
- command.query['id'] = id unless id.nil?
321
- command.query['mine'] = mine unless mine.nil?
322
- command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
323
- command.query['pageToken'] = page_token unless page_token.nil?
324
- command.query['fields'] = fields unless fields.nil?
325
- command.query['quotaUser'] = quota_user unless quota_user.nil?
326
- command.query['userIp'] = user_ip unless user_ip.nil?
327
- execute_or_queue_command(command, &block)
328
- end
329
-
330
- # Modifies a group. For example, you could change a group's title.
331
- # @param [Google::Apis::YoutubeAnalyticsV1::Group] group_object
332
- # @param [String] on_behalf_of_content_owner
333
- # Note: This parameter is intended exclusively for YouTube content partners.
334
- # The onBehalfOfContentOwner parameter indicates that the request's
335
- # authorization credentials identify a YouTube CMS user who is acting on behalf
336
- # of the content owner specified in the parameter value. This parameter is
337
- # intended for YouTube content partners that own and manage many different
338
- # YouTube channels. It allows content owners to authenticate once and get access
339
- # to all their video and channel data, without having to provide authentication
340
- # credentials for each individual channel. The CMS account that the user
341
- # authenticates with must be linked to the specified YouTube content owner.
342
- # @param [String] fields
343
- # Selector specifying which fields to include in a partial response.
344
- # @param [String] quota_user
345
- # An opaque string that represents a user for quota purposes. Must not exceed 40
346
- # characters.
347
- # @param [String] user_ip
348
- # Deprecated. Please use quotaUser instead.
349
- # @param [Google::Apis::RequestOptions] options
350
- # Request-specific options
351
- #
352
- # @yield [result, err] Result & error if block supplied
353
- # @yieldparam result [Google::Apis::YoutubeAnalyticsV1::Group] parsed result object
354
- # @yieldparam err [StandardError] error object if request failed
355
- #
356
- # @return [Google::Apis::YoutubeAnalyticsV1::Group]
357
- #
358
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
359
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
360
- # @raise [Google::Apis::AuthorizationError] Authorization is required
361
- def update_group(group_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
362
- command = make_simple_command(:put, 'groups', options)
363
- command.request_representation = Google::Apis::YoutubeAnalyticsV1::Group::Representation
364
- command.request_object = group_object
365
- command.response_representation = Google::Apis::YoutubeAnalyticsV1::Group::Representation
366
- command.response_class = Google::Apis::YoutubeAnalyticsV1::Group
367
- command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
368
- command.query['fields'] = fields unless fields.nil?
369
- command.query['quotaUser'] = quota_user unless quota_user.nil?
370
- command.query['userIp'] = user_ip unless user_ip.nil?
371
- execute_or_queue_command(command, &block)
372
- end
373
-
374
- # Retrieve your YouTube Analytics reports.
375
- # @param [String] ids
376
- # Identifies the YouTube channel or content owner for which you are retrieving
377
- # YouTube Analytics data.
378
- # - To request data for a YouTube user, set the ids parameter value to channel==
379
- # CHANNEL_ID, where CHANNEL_ID specifies the unique YouTube channel ID.
380
- # - To request data for a YouTube CMS content owner, set the ids parameter value
381
- # to contentOwner==OWNER_NAME, where OWNER_NAME is the CMS name of the content
382
- # owner.
383
- # @param [String] start_date
384
- # The start date for fetching YouTube Analytics data. The value should be in
385
- # YYYY-MM-DD format.
386
- # @param [String] end_date
387
- # The end date for fetching YouTube Analytics data. The value should be in YYYY-
388
- # MM-DD format.
389
- # @param [String] metrics
390
- # A comma-separated list of YouTube Analytics metrics, such as views or likes,
391
- # dislikes. See the Available Reports document for a list of the reports that
392
- # you can retrieve and the metrics available in each report, and see the Metrics
393
- # document for definitions of those metrics.
394
- # @param [String] currency
395
- # The currency to which financial metrics should be converted. The default is US
396
- # Dollar (USD). If the result contains no financial metrics, this flag will be
397
- # ignored. Responds with an error if the specified currency is not recognized.
398
- # @param [String] dimensions
399
- # A comma-separated list of YouTube Analytics dimensions, such as views or
400
- # ageGroup,gender. See the Available Reports document for a list of the reports
401
- # that you can retrieve and the dimensions used for those reports. Also see the
402
- # Dimensions document for definitions of those dimensions.
403
- # @param [String] filters
404
- # A list of filters that should be applied when retrieving YouTube Analytics
405
- # data. The Available Reports document identifies the dimensions that can be
406
- # used to filter each report, and the Dimensions document defines those
407
- # dimensions. If a request uses multiple filters, join them together with a
408
- # semicolon (;), and the returned result table will satisfy both filters. For
409
- # example, a filters parameter value of video==dMH0bHeiRNg;country==IT restricts
410
- # the result set to include data for the given video in Italy.
411
- # @param [Boolean] include_historical_channel_data
412
- # If set to true historical data (i.e. channel data from before the linking of
413
- # the channel to the content owner) will be retrieved.
414
- # @param [Fixnum] max_results
415
- # The maximum number of rows to include in the response.
416
- # @param [String] sort
417
- # A comma-separated list of dimensions or metrics that determine the sort order
418
- # for YouTube Analytics data. By default the sort order is ascending. The '-'
419
- # prefix causes descending sort order.
420
- # @param [Fixnum] start_index
421
- # An index of the first entity to retrieve. Use this parameter as a pagination
422
- # mechanism along with the max-results parameter (one-based, inclusive).
423
- # @param [String] fields
424
- # Selector specifying which fields to include in a partial response.
425
- # @param [String] quota_user
426
- # An opaque string that represents a user for quota purposes. Must not exceed 40
427
- # characters.
428
- # @param [String] user_ip
429
- # Deprecated. Please use quotaUser instead.
430
- # @param [Google::Apis::RequestOptions] options
431
- # Request-specific options
432
- #
433
- # @yield [result, err] Result & error if block supplied
434
- # @yieldparam result [Google::Apis::YoutubeAnalyticsV1::ResultTable] parsed result object
435
- # @yieldparam err [StandardError] error object if request failed
436
- #
437
- # @return [Google::Apis::YoutubeAnalyticsV1::ResultTable]
438
- #
439
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
440
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
441
- # @raise [Google::Apis::AuthorizationError] Authorization is required
442
- 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)
443
- command = make_simple_command(:get, 'reports', options)
444
- command.response_representation = Google::Apis::YoutubeAnalyticsV1::ResultTable::Representation
445
- command.response_class = Google::Apis::YoutubeAnalyticsV1::ResultTable
446
- command.query['currency'] = currency unless currency.nil?
447
- command.query['dimensions'] = dimensions unless dimensions.nil?
448
- command.query['end-date'] = end_date unless end_date.nil?
449
- command.query['filters'] = filters unless filters.nil?
450
- command.query['ids'] = ids unless ids.nil?
451
- command.query['include-historical-channel-data'] = include_historical_channel_data unless include_historical_channel_data.nil?
452
- command.query['max-results'] = max_results unless max_results.nil?
453
- command.query['metrics'] = metrics unless metrics.nil?
454
- command.query['sort'] = sort unless sort.nil?
455
- command.query['start-date'] = start_date unless start_date.nil?
456
- command.query['start-index'] = start_index unless start_index.nil?
457
- command.query['fields'] = fields unless fields.nil?
458
- command.query['quotaUser'] = quota_user unless quota_user.nil?
459
- command.query['userIp'] = user_ip unless user_ip.nil?
460
- execute_or_queue_command(command, &block)
46
+ super('https://youtubeanalytics.googleapis.com/', '')
47
+ @batch_path = 'batch'
461
48
  end
462
49
 
463
50
  protected
@@ -465,7 +52,6 @@ module Google
465
52
  def apply_command_defaults(command)
466
53
  command.query['key'] = key unless key.nil?
467
54
  command.query['quotaUser'] = quota_user unless quota_user.nil?
468
- command.query['userIp'] = user_ip unless user_ip.nil?
469
55
  end
470
56
  end
471
57
  end
@@ -15,7 +15,7 @@
15
15
  module Google
16
16
  module Apis
17
17
  # Client library version
18
- VERSION = '0.29.2'.freeze
18
+ VERSION = '0.30.0'.freeze
19
19
 
20
20
  # Current operating system
21
21
  # @private