google-api-client 0.10.1 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +395 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
  11. data/generated/google/apis/admin_reports_v1.rb +3 -3
  12. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analytics_v3/service.rb +39 -0
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  19. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  20. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
  22. data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
  23. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  24. data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
  25. data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
  26. data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +32 -37
  30. data/generated/google/apis/bigquery_v2/service.rb +10 -2
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/calendar_v3/classes.rb +205 -0
  33. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  34. data/generated/google/apis/classroom_v1.rb +22 -25
  35. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  38. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
  40. data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
  41. data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
  42. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  43. data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
  44. data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
  45. data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
  46. data/generated/google/apis/cloudkms_v1.rb +1 -1
  47. data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
  48. data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
  49. data/generated/google/apis/cloudkms_v1/service.rb +228 -228
  50. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
  59. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  60. data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
  61. data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
  62. data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
  63. data/generated/google/apis/compute_beta.rb +1 -1
  64. data/generated/google/apis/compute_beta/classes.rb +116 -0
  65. data/generated/google/apis/compute_beta/representations.rb +48 -0
  66. data/generated/google/apis/compute_beta/service.rb +46 -1
  67. data/generated/google/apis/compute_v1.rb +1 -1
  68. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
  71. data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
  74. data/generated/google/apis/dataproc_v1/representations.rb +255 -253
  75. data/generated/google/apis/dataproc_v1/service.rb +100 -100
  76. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  77. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/dns_v2beta1.rb +1 -1
  80. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2/classes.rb +3 -1
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +3 -1
  85. data/generated/google/apis/fusiontables_v2.rb +1 -1
  86. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  87. data/generated/google/apis/games_management_v1management.rb +1 -1
  88. data/generated/google/apis/games_v1.rb +1 -1
  89. data/generated/google/apis/genomics_v1.rb +7 -7
  90. data/generated/google/apis/genomics_v1/classes.rb +959 -959
  91. data/generated/google/apis/genomics_v1/representations.rb +238 -238
  92. data/generated/google/apis/genomics_v1/service.rb +996 -996
  93. data/generated/google/apis/iam_v1.rb +1 -1
  94. data/generated/google/apis/iam_v1/classes.rb +440 -440
  95. data/generated/google/apis/iam_v1/representations.rb +94 -94
  96. data/generated/google/apis/iam_v1/service.rb +170 -173
  97. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  98. data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
  99. data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
  100. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  101. data/generated/google/apis/language_v1beta1.rb +1 -1
  102. data/generated/google/apis/language_v1beta1/classes.rb +427 -427
  103. data/generated/google/apis/language_v1beta1/representations.rb +113 -113
  104. data/generated/google/apis/language_v1beta1/service.rb +25 -24
  105. data/generated/google/apis/licensing_v1.rb +2 -2
  106. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  107. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  108. data/generated/google/apis/licensing_v1/service.rb +1 -1
  109. data/generated/google/apis/logging_v2beta1.rb +1 -1
  110. data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
  111. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  112. data/generated/google/apis/logging_v2beta1/service.rb +261 -261
  113. data/generated/google/apis/manufacturers_v1.rb +1 -1
  114. data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
  115. data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
  116. data/generated/google/apis/manufacturers_v1/service.rb +11 -11
  117. data/generated/google/apis/mirror_v1.rb +1 -1
  118. data/generated/google/apis/monitoring_v3.rb +7 -7
  119. data/generated/google/apis/monitoring_v3/classes.rb +668 -670
  120. data/generated/google/apis/monitoring_v3/representations.rb +140 -140
  121. data/generated/google/apis/monitoring_v3/service.rb +208 -208
  122. data/generated/google/apis/partners_v2.rb +1 -1
  123. data/generated/google/apis/partners_v2/classes.rb +505 -505
  124. data/generated/google/apis/partners_v2/representations.rb +118 -118
  125. data/generated/google/apis/partners_v2/service.rb +275 -275
  126. data/generated/google/apis/people_v1.rb +1 -1
  127. data/generated/google/apis/people_v1/classes.rb +1037 -1031
  128. data/generated/google/apis/people_v1/representations.rb +247 -246
  129. data/generated/google/apis/people_v1/service.rb +20 -20
  130. data/generated/google/apis/plus_domains_v1.rb +1 -1
  131. data/generated/google/apis/plus_v1.rb +1 -1
  132. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  133. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
  134. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
  135. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
  136. data/generated/google/apis/pubsub_v1.rb +4 -4
  137. data/generated/google/apis/pubsub_v1/classes.rb +131 -132
  138. data/generated/google/apis/pubsub_v1/representations.rb +35 -35
  139. data/generated/google/apis/pubsub_v1/service.rb +399 -408
  140. data/generated/google/apis/reseller_v1.rb +1 -1
  141. data/generated/google/apis/reseller_v1/classes.rb +9 -0
  142. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  143. data/generated/google/apis/script_v1.rb +9 -9
  144. data/generated/google/apis/script_v1/classes.rb +110 -110
  145. data/generated/google/apis/script_v1/representations.rb +26 -26
  146. data/generated/google/apis/sheets_v4.rb +4 -4
  147. data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
  148. data/generated/google/apis/sheets_v4/representations.rb +856 -856
  149. data/generated/google/apis/sheets_v4/service.rb +106 -106
  150. data/generated/google/apis/slides_v1.rb +4 -4
  151. data/generated/google/apis/slides_v1/classes.rb +2923 -2841
  152. data/generated/google/apis/slides_v1/representations.rb +722 -691
  153. data/generated/google/apis/slides_v1/service.rb +58 -15
  154. data/generated/google/apis/speech_v1beta1.rb +1 -1
  155. data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
  156. data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
  157. data/generated/google/apis/speech_v1beta1/service.rb +70 -70
  158. data/generated/google/apis/storage_v1.rb +1 -1
  159. data/generated/google/apis/storage_v1/classes.rb +151 -0
  160. data/generated/google/apis/storage_v1/representations.rb +45 -0
  161. data/generated/google/apis/storage_v1/service.rb +248 -0
  162. data/generated/google/apis/vision_v1.rb +1 -1
  163. data/generated/google/apis/vision_v1/classes.rb +1227 -1221
  164. data/generated/google/apis/vision_v1/representations.rb +217 -215
  165. data/generated/google/apis/webmasters_v3.rb +1 -1
  166. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  167. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  168. data/generated/google/apis/youtube_partner_v1/classes.rb +78 -0
  169. data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
  170. data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
  171. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  172. data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
  173. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  174. data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
  175. data/lib/google/apis/version.rb +1 -1
  176. 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, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block)
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(on_behalf_of_content_owner: nil, page_token: nil, include_system_managed: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
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, fields: nil, quota_user: nil, options: nil, &block)
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, fields: nil, quota_user: nil, options: nil, &block)
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, fields: nil, quota_user: nil, options: nil, &block)
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, fields: nil, quota_user: nil, options: nil, &block)
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
@@ -15,7 +15,7 @@
15
15
  module Google
16
16
  module Apis
17
17
  # Client library version
18
- VERSION = '0.10.1'
18
+ VERSION = '0.10.2'
19
19
 
20
20
  # Current operating system
21
21
  # @private
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.1
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-10 00:00:00.000000000 Z
14
+ date: 2017-03-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: representable