google-api-client 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
  13. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  14. data/generated/google/apis/admin_directory_v1/service.rb +4 -1
  15. data/generated/google/apis/admin_reports_v1.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
  21. data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
  22. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +4 -4
  24. data/generated/google/apis/appengine_v1/classes.rb +747 -747
  25. data/generated/google/apis/appengine_v1/representations.rb +158 -158
  26. data/generated/google/apis/appengine_v1/service.rb +214 -214
  27. data/generated/google/apis/appsactivity_v1.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  31. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/classroom_v1.rb +7 -7
  34. data/generated/google/apis/classroom_v1/classes.rb +517 -515
  35. data/generated/google/apis/classroom_v1/representations.rb +147 -147
  36. data/generated/google/apis/classroom_v1/service.rb +1144 -1143
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
  40. data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
  41. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  42. data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
  43. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  44. data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
  45. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  46. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
  47. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
  48. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
  49. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  50. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  51. data/generated/google/apis/cloudkms_v1.rb +1 -1
  52. data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
  53. data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
  54. data/generated/google/apis/cloudkms_v1/service.rb +276 -276
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
  63. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  66. data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +82 -6
  69. data/generated/google/apis/compute_beta/representations.rb +4 -0
  70. data/generated/google/apis/compute_beta/service.rb +1177 -834
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +371 -1
  73. data/generated/google/apis/compute_v1/representations.rb +139 -0
  74. data/generated/google/apis/compute_v1/service.rb +257 -9
  75. data/generated/google/apis/container_v1.rb +1 -1
  76. data/generated/google/apis/container_v1/classes.rb +1122 -826
  77. data/generated/google/apis/container_v1/representations.rb +279 -135
  78. data/generated/google/apis/container_v1/service.rb +440 -98
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +3 -1
  81. data/generated/google/apis/customsearch_v1.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  83. data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
  84. data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
  85. data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
  86. data/generated/google/apis/dataproc_v1.rb +1 -1
  87. data/generated/google/apis/dataproc_v1/classes.rb +450 -431
  88. data/generated/google/apis/dataproc_v1/representations.rb +92 -92
  89. data/generated/google/apis/dataproc_v1/service.rb +200 -200
  90. data/generated/google/apis/datastore_v1.rb +4 -4
  91. data/generated/google/apis/datastore_v1/classes.rb +397 -397
  92. data/generated/google/apis/datastore_v1/representations.rb +100 -100
  93. data/generated/google/apis/datastore_v1/service.rb +62 -62
  94. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  95. data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
  96. data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
  97. data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v2beta1.rb +1 -1
  100. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  101. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
  102. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  103. data/generated/google/apis/drive_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2/service.rb +1 -1
  105. data/generated/google/apis/drive_v3.rb +1 -1
  106. data/generated/google/apis/drive_v3/service.rb +1 -1
  107. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  108. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
  109. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
  110. data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
  111. data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
  112. data/generated/google/apis/firebaserules_v1/service.rb +151 -151
  113. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  114. data/generated/google/apis/games_management_v1management.rb +1 -1
  115. data/generated/google/apis/games_v1.rb +1 -1
  116. data/generated/google/apis/genomics_v1.rb +9 -9
  117. data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
  118. data/generated/google/apis/genomics_v1/representations.rb +306 -306
  119. data/generated/google/apis/genomics_v1/service.rb +1172 -1172
  120. data/generated/google/apis/gmail_v1.rb +1 -1
  121. data/generated/google/apis/iam_v1.rb +1 -1
  122. data/generated/google/apis/iam_v1/classes.rb +243 -243
  123. data/generated/google/apis/iam_v1/representations.rb +79 -79
  124. data/generated/google/apis/iam_v1/service.rb +137 -137
  125. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  126. data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
  127. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  128. data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
  129. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  130. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  131. data/generated/google/apis/language_v1.rb +1 -1
  132. data/generated/google/apis/language_v1/classes.rb +451 -451
  133. data/generated/google/apis/language_v1/representations.rb +103 -103
  134. data/generated/google/apis/language_v1/service.rb +49 -49
  135. data/generated/google/apis/language_v1beta1.rb +1 -1
  136. data/generated/google/apis/language_v1beta1/classes.rb +459 -459
  137. data/generated/google/apis/language_v1beta1/representations.rb +110 -110
  138. data/generated/google/apis/language_v1beta1/service.rb +43 -43
  139. data/generated/google/apis/logging_v2.rb +8 -8
  140. data/generated/google/apis/logging_v2/classes.rb +915 -915
  141. data/generated/google/apis/logging_v2/representations.rb +142 -142
  142. data/generated/google/apis/logging_v2/service.rb +415 -415
  143. data/generated/google/apis/logging_v2beta1.rb +8 -8
  144. data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
  145. data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
  146. data/generated/google/apis/logging_v2beta1/service.rb +221 -221
  147. data/generated/google/apis/manufacturers_v1.rb +1 -1
  148. data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
  149. data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
  150. data/generated/google/apis/manufacturers_v1/service.rb +101 -4
  151. data/generated/google/apis/ml_v1.rb +1 -1
  152. data/generated/google/apis/ml_v1/classes.rb +709 -673
  153. data/generated/google/apis/ml_v1/representations.rb +154 -151
  154. data/generated/google/apis/ml_v1/service.rb +341 -354
  155. data/generated/google/apis/monitoring_v3.rb +6 -6
  156. data/generated/google/apis/monitoring_v3/classes.rb +869 -869
  157. data/generated/google/apis/monitoring_v3/representations.rb +171 -171
  158. data/generated/google/apis/monitoring_v3/service.rb +340 -340
  159. data/generated/google/apis/partners_v2.rb +1 -1
  160. data/generated/google/apis/partners_v2/classes.rb +1569 -1569
  161. data/generated/google/apis/partners_v2/representations.rb +256 -256
  162. data/generated/google/apis/partners_v2/service.rb +530 -530
  163. data/generated/google/apis/people_v1.rb +7 -7
  164. data/generated/google/apis/people_v1/classes.rb +1287 -946
  165. data/generated/google/apis/people_v1/representations.rb +355 -203
  166. data/generated/google/apis/people_v1/service.rb +409 -32
  167. data/generated/google/apis/plus_domains_v1.rb +1 -1
  168. data/generated/google/apis/plus_v1.rb +1 -1
  169. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  170. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
  171. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
  172. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
  173. data/generated/google/apis/pubsub_v1.rb +4 -4
  174. data/generated/google/apis/pubsub_v1/classes.rb +286 -287
  175. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  176. data/generated/google/apis/pubsub_v1/service.rb +178 -178
  177. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  178. data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
  179. data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
  180. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  181. data/generated/google/apis/script_v1.rb +4 -4
  182. data/generated/google/apis/script_v1/classes.rb +172 -172
  183. data/generated/google/apis/script_v1/representations.rb +41 -41
  184. data/generated/google/apis/script_v1/service.rb +6 -6
  185. data/generated/google/apis/searchconsole_v1.rb +1 -1
  186. data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
  187. data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
  188. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
  191. data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
  192. data/generated/google/apis/servicemanagement_v1.rb +6 -6
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
  194. data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
  195. data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
  196. data/generated/google/apis/serviceuser_v1.rb +1 -1
  197. data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
  198. data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
  199. data/generated/google/apis/serviceuser_v1/service.rb +59 -59
  200. data/generated/google/apis/sheets_v4.rb +5 -5
  201. data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
  202. data/generated/google/apis/sheets_v4/representations.rb +957 -940
  203. data/generated/google/apis/sheets_v4/service.rb +175 -175
  204. data/generated/google/apis/slides_v1.rb +1 -1
  205. data/generated/google/apis/slides_v1/classes.rb +2932 -2905
  206. data/generated/google/apis/slides_v1/representations.rb +709 -694
  207. data/generated/google/apis/slides_v1/service.rb +50 -50
  208. data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
  209. data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
  210. data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
  211. data/generated/google/apis/spanner_v1.rb +7 -1
  212. data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
  213. data/generated/google/apis/spanner_v1/representations.rb +342 -323
  214. data/generated/google/apis/spanner_v1/service.rb +502 -492
  215. data/generated/google/apis/speech_v1beta1.rb +1 -1
  216. data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
  217. data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
  218. data/generated/google/apis/speech_v1beta1/service.rb +91 -91
  219. data/generated/google/apis/storage_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  221. data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
  222. data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
  223. data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
  224. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  225. data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
  226. data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
  227. data/generated/google/apis/translate_v2/classes.rb +107 -107
  228. data/generated/google/apis/translate_v2/representations.rb +49 -49
  229. data/generated/google/apis/translate_v2/service.rb +81 -81
  230. data/generated/google/apis/vision_v1.rb +4 -1
  231. data/generated/google/apis/vision_v1/classes.rb +527 -527
  232. data/generated/google/apis/vision_v1/representations.rb +115 -115
  233. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  234. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  235. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  236. data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
  237. data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
  238. data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
  239. data/lib/google/apis/version.rb +1 -1
  240. data/samples/cli/lib/samples/analytics.rb +2 -2
  241. metadata +2 -2
@@ -48,6 +48,52 @@ module Google
48
48
  @batch_path = 'batch'
49
49
  end
50
50
 
51
+ # Lists report types.
52
+ # @param [Boolean] include_system_managed
53
+ # If set to true, also system-managed report types will be returned;
54
+ # otherwise only the report types that can be used to create new reporting
55
+ # jobs will be returned.
56
+ # @param [String] page_token
57
+ # A token identifying a page of results the server should return. Typically,
58
+ # this is the value of
59
+ # ListReportTypesResponse.next_page_token
60
+ # returned in response to the previous call to the `ListReportTypes` method.
61
+ # @param [Fixnum] page_size
62
+ # Requested page size. Server may return fewer report types than requested.
63
+ # If unspecified, server will pick an appropriate default.
64
+ # @param [String] on_behalf_of_content_owner
65
+ # The content owner's external ID on which behalf the user is acting on. If
66
+ # not set, the user is acting for himself (his own channel).
67
+ # @param [String] quota_user
68
+ # Available to use for quota purposes for server-side applications. Can be any
69
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
70
+ # @param [String] fields
71
+ # Selector specifying which fields to include in a partial response.
72
+ # @param [Google::Apis::RequestOptions] options
73
+ # Request-specific options
74
+ #
75
+ # @yield [result, err] Result & error if block supplied
76
+ # @yieldparam result [Google::Apis::YoutubereportingV1::ListReportTypesResponse] parsed result object
77
+ # @yieldparam err [StandardError] error object if request failed
78
+ #
79
+ # @return [Google::Apis::YoutubereportingV1::ListReportTypesResponse]
80
+ #
81
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
82
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
83
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
84
+ def list_report_types(include_system_managed: nil, page_token: nil, page_size: nil, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
85
+ command = make_simple_command(:get, 'v1/reportTypes', options)
86
+ command.response_representation = Google::Apis::YoutubereportingV1::ListReportTypesResponse::Representation
87
+ command.response_class = Google::Apis::YoutubereportingV1::ListReportTypesResponse
88
+ command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
89
+ command.query['pageToken'] = page_token unless page_token.nil?
90
+ command.query['pageSize'] = page_size unless page_size.nil?
91
+ command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
92
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
93
+ command.query['fields'] = fields unless fields.nil?
94
+ execute_or_queue_command(command, &block)
95
+ end
96
+
51
97
  # Method for media download. Download is supported
52
98
  # on the URI `/v1/media/`+name`?alt=media`.
53
99
  # @param [String] resource_name
@@ -87,22 +133,12 @@ module Google
87
133
  execute_or_queue_command(command, &block)
88
134
  end
89
135
 
90
- # Lists jobs.
136
+ # Deletes a job.
137
+ # @param [String] job_id
138
+ # The ID of the job to delete.
91
139
  # @param [String] on_behalf_of_content_owner
92
140
  # The content owner's external ID on which behalf the user is acting on. If
93
141
  # not set, the user is acting for himself (his own channel).
94
- # @param [String] page_token
95
- # A token identifying a page of results the server should return. Typically,
96
- # this is the value of
97
- # ListReportTypesResponse.next_page_token
98
- # returned in response to the previous call to the `ListJobs` method.
99
- # @param [Boolean] include_system_managed
100
- # If set to true, also system-managed jobs will be returned; otherwise only
101
- # user-created jobs will be returned. System-managed jobs can neither be
102
- # modified nor deleted.
103
- # @param [Fixnum] page_size
104
- # Requested page size. Server may return fewer jobs than requested.
105
- # If unspecified, server will pick an appropriate default.
106
142
  # @param [String] quota_user
107
143
  # Available to use for quota purposes for server-side applications. Can be any
108
144
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -112,22 +148,20 @@ module Google
112
148
  # Request-specific options
113
149
  #
114
150
  # @yield [result, err] Result & error if block supplied
115
- # @yieldparam result [Google::Apis::YoutubereportingV1::ListJobsResponse] parsed result object
151
+ # @yieldparam result [Google::Apis::YoutubereportingV1::Empty] parsed result object
116
152
  # @yieldparam err [StandardError] error object if request failed
117
153
  #
118
- # @return [Google::Apis::YoutubereportingV1::ListJobsResponse]
154
+ # @return [Google::Apis::YoutubereportingV1::Empty]
119
155
  #
120
156
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
121
157
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
122
158
  # @raise [Google::Apis::AuthorizationError] Authorization is required
123
- def list_jobs(on_behalf_of_content_owner: nil, page_token: nil, include_system_managed: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
124
- command = make_simple_command(:get, 'v1/jobs', options)
125
- command.response_representation = Google::Apis::YoutubereportingV1::ListJobsResponse::Representation
126
- command.response_class = Google::Apis::YoutubereportingV1::ListJobsResponse
159
+ def delete_job(job_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
160
+ command = make_simple_command(:delete, 'v1/jobs/{jobId}', options)
161
+ command.response_representation = Google::Apis::YoutubereportingV1::Empty::Representation
162
+ command.response_class = Google::Apis::YoutubereportingV1::Empty
163
+ command.params['jobId'] = job_id unless job_id.nil?
127
164
  command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
128
- command.query['pageToken'] = page_token unless page_token.nil?
129
- command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
130
- command.query['pageSize'] = page_size unless page_size.nil?
131
165
  command.query['quotaUser'] = quota_user unless quota_user.nil?
132
166
  command.query['fields'] = fields unless fields.nil?
133
167
  execute_or_queue_command(command, &block)
@@ -167,6 +201,52 @@ module Google
167
201
  execute_or_queue_command(command, &block)
168
202
  end
169
203
 
204
+ # Lists jobs.
205
+ # @param [Boolean] include_system_managed
206
+ # If set to true, also system-managed jobs will be returned; otherwise only
207
+ # user-created jobs will be returned. System-managed jobs can neither be
208
+ # modified nor deleted.
209
+ # @param [String] page_token
210
+ # A token identifying a page of results the server should return. Typically,
211
+ # this is the value of
212
+ # ListReportTypesResponse.next_page_token
213
+ # returned in response to the previous call to the `ListJobs` method.
214
+ # @param [Fixnum] page_size
215
+ # Requested page size. Server may return fewer jobs than requested.
216
+ # If unspecified, server will pick an appropriate default.
217
+ # @param [String] on_behalf_of_content_owner
218
+ # The content owner's external ID on which behalf the user is acting on. If
219
+ # not set, the user is acting for himself (his own channel).
220
+ # @param [String] quota_user
221
+ # Available to use for quota purposes for server-side applications. Can be any
222
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
223
+ # @param [String] fields
224
+ # Selector specifying which fields to include in a partial response.
225
+ # @param [Google::Apis::RequestOptions] options
226
+ # Request-specific options
227
+ #
228
+ # @yield [result, err] Result & error if block supplied
229
+ # @yieldparam result [Google::Apis::YoutubereportingV1::ListJobsResponse] parsed result object
230
+ # @yieldparam err [StandardError] error object if request failed
231
+ #
232
+ # @return [Google::Apis::YoutubereportingV1::ListJobsResponse]
233
+ #
234
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
235
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
236
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
237
+ def list_jobs(include_system_managed: nil, page_token: nil, page_size: nil, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
238
+ command = make_simple_command(:get, 'v1/jobs', options)
239
+ command.response_representation = Google::Apis::YoutubereportingV1::ListJobsResponse::Representation
240
+ command.response_class = Google::Apis::YoutubereportingV1::ListJobsResponse
241
+ command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
242
+ command.query['pageToken'] = page_token unless page_token.nil?
243
+ command.query['pageSize'] = page_size unless page_size.nil?
244
+ command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
245
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
246
+ command.query['fields'] = fields unless fields.nil?
247
+ execute_or_queue_command(command, &block)
248
+ end
249
+
170
250
  # Creates a job and returns it.
171
251
  # @param [Google::Apis::YoutubereportingV1::Job] job_object
172
252
  # @param [String] on_behalf_of_content_owner
@@ -201,9 +281,11 @@ module Google
201
281
  execute_or_queue_command(command, &block)
202
282
  end
203
283
 
204
- # Deletes a job.
284
+ # Gets the metadata of a specific report.
205
285
  # @param [String] job_id
206
- # The ID of the job to delete.
286
+ # The ID of the job.
287
+ # @param [String] report_id
288
+ # The ID of the report to retrieve.
207
289
  # @param [String] on_behalf_of_content_owner
208
290
  # The content owner's external ID on which behalf the user is acting on. If
209
291
  # not set, the user is acting for himself (his own channel).
@@ -216,19 +298,20 @@ module Google
216
298
  # Request-specific options
217
299
  #
218
300
  # @yield [result, err] Result & error if block supplied
219
- # @yieldparam result [Google::Apis::YoutubereportingV1::Empty] parsed result object
301
+ # @yieldparam result [Google::Apis::YoutubereportingV1::Report] parsed result object
220
302
  # @yieldparam err [StandardError] error object if request failed
221
303
  #
222
- # @return [Google::Apis::YoutubereportingV1::Empty]
304
+ # @return [Google::Apis::YoutubereportingV1::Report]
223
305
  #
224
306
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
225
307
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
226
308
  # @raise [Google::Apis::AuthorizationError] Authorization is required
227
- def delete_job(job_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
228
- command = make_simple_command(:delete, 'v1/jobs/{jobId}', options)
229
- command.response_representation = Google::Apis::YoutubereportingV1::Empty::Representation
230
- command.response_class = Google::Apis::YoutubereportingV1::Empty
309
+ def get_job_report(job_id, report_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
310
+ command = make_simple_command(:get, 'v1/jobs/{jobId}/reports/{reportId}', options)
311
+ command.response_representation = Google::Apis::YoutubereportingV1::Report::Representation
312
+ command.response_class = Google::Apis::YoutubereportingV1::Report
231
313
  command.params['jobId'] = job_id unless job_id.nil?
314
+ command.params['reportId'] = report_id unless report_id.nil?
232
315
  command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
233
316
  command.query['quotaUser'] = quota_user unless quota_user.nil?
234
317
  command.query['fields'] = fields unless fields.nil?
@@ -290,89 +373,6 @@ module Google
290
373
  command.query['fields'] = fields unless fields.nil?
291
374
  execute_or_queue_command(command, &block)
292
375
  end
293
-
294
- # Gets the metadata of a specific report.
295
- # @param [String] job_id
296
- # The ID of the job.
297
- # @param [String] report_id
298
- # The ID of the report to retrieve.
299
- # @param [String] on_behalf_of_content_owner
300
- # The content owner's external ID on which behalf the user is acting on. If
301
- # not set, the user is acting for himself (his own channel).
302
- # @param [String] quota_user
303
- # Available to use for quota purposes for server-side applications. Can be any
304
- # arbitrary string assigned to a user, but should not exceed 40 characters.
305
- # @param [String] fields
306
- # Selector specifying which fields to include in a partial response.
307
- # @param [Google::Apis::RequestOptions] options
308
- # Request-specific options
309
- #
310
- # @yield [result, err] Result & error if block supplied
311
- # @yieldparam result [Google::Apis::YoutubereportingV1::Report] parsed result object
312
- # @yieldparam err [StandardError] error object if request failed
313
- #
314
- # @return [Google::Apis::YoutubereportingV1::Report]
315
- #
316
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
317
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
318
- # @raise [Google::Apis::AuthorizationError] Authorization is required
319
- def get_job_report(job_id, report_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
320
- command = make_simple_command(:get, 'v1/jobs/{jobId}/reports/{reportId}', options)
321
- command.response_representation = Google::Apis::YoutubereportingV1::Report::Representation
322
- command.response_class = Google::Apis::YoutubereportingV1::Report
323
- command.params['jobId'] = job_id unless job_id.nil?
324
- command.params['reportId'] = report_id unless report_id.nil?
325
- command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
326
- command.query['quotaUser'] = quota_user unless quota_user.nil?
327
- command.query['fields'] = fields unless fields.nil?
328
- execute_or_queue_command(command, &block)
329
- end
330
-
331
- # Lists report types.
332
- # @param [String] on_behalf_of_content_owner
333
- # The content owner's external ID on which behalf the user is acting on. If
334
- # not set, the user is acting for himself (his own channel).
335
- # @param [String] page_token
336
- # A token identifying a page of results the server should return. Typically,
337
- # this is the value of
338
- # ListReportTypesResponse.next_page_token
339
- # returned in response to the previous call to the `ListReportTypes` method.
340
- # @param [Boolean] include_system_managed
341
- # If set to true, also system-managed report types will be returned;
342
- # otherwise only the report types that can be used to create new reporting
343
- # jobs will be returned.
344
- # @param [Fixnum] page_size
345
- # Requested page size. Server may return fewer report types than requested.
346
- # If unspecified, server will pick an appropriate default.
347
- # @param [String] quota_user
348
- # Available to use for quota purposes for server-side applications. Can be any
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.
352
- # @param [Google::Apis::RequestOptions] options
353
- # Request-specific options
354
- #
355
- # @yield [result, err] Result & error if block supplied
356
- # @yieldparam result [Google::Apis::YoutubereportingV1::ListReportTypesResponse] parsed result object
357
- # @yieldparam err [StandardError] error object if request failed
358
- #
359
- # @return [Google::Apis::YoutubereportingV1::ListReportTypesResponse]
360
- #
361
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
362
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
363
- # @raise [Google::Apis::AuthorizationError] Authorization is required
364
- def list_report_types(on_behalf_of_content_owner: nil, page_token: nil, include_system_managed: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
365
- command = make_simple_command(:get, 'v1/reportTypes', options)
366
- command.response_representation = Google::Apis::YoutubereportingV1::ListReportTypesResponse::Representation
367
- command.response_class = Google::Apis::YoutubereportingV1::ListReportTypesResponse
368
- command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
369
- command.query['pageToken'] = page_token unless page_token.nil?
370
- command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
371
- command.query['pageSize'] = page_size unless page_size.nil?
372
- command.query['quotaUser'] = quota_user unless quota_user.nil?
373
- command.query['fields'] = fields unless fields.nil?
374
- execute_or_queue_command(command, &block)
375
- end
376
376
 
377
377
  protected
378
378
 
@@ -15,7 +15,7 @@
15
15
  module Google
16
16
  module Apis
17
17
  # Client library version
18
- VERSION = '0.13.0'
18
+ VERSION = '0.13.1'
19
19
 
20
20
  # Current operating system
21
21
  # @private
@@ -34,7 +34,7 @@ module Samples
34
34
  class Analytics < BaseCli
35
35
  Analytics = Google::Apis::AnalyticsV3
36
36
 
37
- desc 'show_visits PROFILE_ID', 'Show visists for the given analytics profile ID'
37
+ desc 'show_visits PROFILE_ID', 'Show visits for the given analytics profile ID'
38
38
  method_option :start, type: :string, required: true
39
39
  method_option :end, type: :string, required: true
40
40
  def show_visits(profile_id)
@@ -58,7 +58,7 @@ module Samples
58
58
  print_table(data)
59
59
  end
60
60
 
61
- desc 'show_realtime_visits PROFILE_ID', 'Show realtime visists for the given analytics profile ID'
61
+ desc 'show_realtime_visits PROFILE_ID', 'Show realtime visits for the given analytics profile ID'
62
62
  def show_realtime_visits(profile_id)
63
63
  analytics = Analytics::AnalyticsService.new
64
64
  analytics.authorization = user_credentials_for(Analytics::AUTH_ANALYTICS)
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.13.0
4
+ version: 0.13.1
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-06-14 00:00:00.000000000 Z
14
+ date: 2017-07-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: representable