google-api-client 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/MIGRATING.md +22 -7
  4. data/README.md +4 -8
  5. data/api_names.yaml +1210 -37815
  6. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
  14. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
  21. data/generated/google/apis/appengine_v1.rb +40 -0
  22. data/generated/google/apis/appengine_v1/classes.rb +2251 -0
  23. data/generated/google/apis/appengine_v1/representations.rb +858 -0
  24. data/generated/google/apis/appengine_v1/service.rb +894 -0
  25. data/generated/google/apis/bigquery_v2.rb +1 -1
  26. data/generated/google/apis/bigquery_v2/classes.rb +11 -6
  27. data/generated/google/apis/books_v1.rb +1 -1
  28. data/generated/google/apis/books_v1/classes.rb +26 -0
  29. data/generated/google/apis/books_v1/representations.rb +15 -0
  30. data/generated/google/apis/books_v1/service.rb +4 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
  35. data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
  36. data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
  37. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  38. data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
  39. data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
  40. data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
  41. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
  42. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
  43. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
  44. data/generated/google/apis/cloudfunctions_v1.rb +35 -0
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
  47. data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
  48. data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
  49. data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
  50. data/generated/google/apis/cloudkms_v1/service.rb +194 -194
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  60. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  61. data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
  62. data/generated/google/apis/compute_beta.rb +1 -1
  63. data/generated/google/apis/compute_beta/classes.rb +32 -7
  64. data/generated/google/apis/compute_beta/representations.rb +2 -0
  65. data/generated/google/apis/compute_beta/service.rb +11 -11
  66. data/generated/google/apis/compute_v1.rb +1 -1
  67. data/generated/google/apis/compute_v1/classes.rb +95 -2
  68. data/generated/google/apis/compute_v1/representations.rb +33 -0
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
  71. data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
  74. data/generated/google/apis/dataproc_v1/representations.rb +200 -200
  75. data/generated/google/apis/dataproc_v1/service.rb +356 -356
  76. data/generated/google/apis/datastore_v1.rb +4 -4
  77. data/generated/google/apis/datastore_v1/classes.rb +701 -690
  78. data/generated/google/apis/datastore_v1/representations.rb +160 -160
  79. data/generated/google/apis/datastore_v1/service.rb +52 -52
  80. data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
  81. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2.rb +1 -1
  83. data/generated/google/apis/drive_v2/classes.rb +158 -35
  84. data/generated/google/apis/drive_v2/representations.rb +39 -0
  85. data/generated/google/apis/drive_v2/service.rb +4 -4
  86. data/generated/google/apis/drive_v3.rb +1 -1
  87. data/generated/google/apis/drive_v3/classes.rb +162 -33
  88. data/generated/google/apis/drive_v3/representations.rb +39 -0
  89. data/generated/google/apis/drive_v3/service.rb +4 -4
  90. data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
  91. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
  92. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
  93. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
  94. data/generated/google/apis/firebaserules_v1.rb +41 -0
  95. data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
  96. data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
  97. data/generated/google/apis/firebaserules_v1/service.rb +495 -0
  98. data/generated/google/apis/games_v1/classes.rb +4 -0
  99. data/generated/google/apis/genomics_v1.rb +7 -7
  100. data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
  101. data/generated/google/apis/genomics_v1/representations.rb +387 -387
  102. data/generated/google/apis/genomics_v1/service.rb +1187 -1187
  103. data/generated/google/apis/gmail_v1/classes.rb +3 -0
  104. data/generated/google/apis/iam_v1.rb +1 -1
  105. data/generated/google/apis/iam_v1/classes.rb +123 -117
  106. data/generated/google/apis/iam_v1/representations.rb +33 -33
  107. data/generated/google/apis/iam_v1/service.rb +109 -109
  108. data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
  109. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  110. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  111. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  112. data/generated/google/apis/language_v1.rb +36 -0
  113. data/generated/google/apis/language_v1/classes.rb +757 -0
  114. data/generated/google/apis/language_v1/representations.rb +338 -0
  115. data/generated/google/apis/language_v1/service.rb +185 -0
  116. data/generated/google/apis/language_v1beta1/classes.rb +407 -407
  117. data/generated/google/apis/language_v1beta1/representations.rb +103 -103
  118. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  119. data/generated/google/apis/logging_v2.rb +46 -0
  120. data/generated/google/apis/logging_v2/classes.rb +1271 -0
  121. data/generated/google/apis/logging_v2/representations.rb +421 -0
  122. data/generated/google/apis/logging_v2/service.rb +1569 -0
  123. data/generated/google/apis/logging_v2beta1.rb +1 -1
  124. data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
  125. data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
  126. data/generated/google/apis/logging_v2beta1/service.rb +235 -235
  127. data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
  128. data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
  129. data/generated/google/apis/ml_v1.rb +34 -0
  130. data/generated/google/apis/ml_v1/classes.rb +1617 -0
  131. data/generated/google/apis/ml_v1/representations.rb +498 -0
  132. data/generated/google/apis/ml_v1/service.rb +769 -0
  133. data/generated/google/apis/monitoring_v3.rb +4 -4
  134. data/generated/google/apis/monitoring_v3/classes.rb +630 -630
  135. data/generated/google/apis/monitoring_v3/representations.rb +134 -134
  136. data/generated/google/apis/monitoring_v3/service.rb +240 -240
  137. data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
  138. data/generated/google/apis/partners_v2.rb +1 -1
  139. data/generated/google/apis/partners_v2/classes.rb +639 -639
  140. data/generated/google/apis/partners_v2/representations.rb +168 -168
  141. data/generated/google/apis/partners_v2/service.rb +381 -381
  142. data/generated/google/apis/people_v1.rb +10 -10
  143. data/generated/google/apis/people_v1/classes.rb +524 -524
  144. data/generated/google/apis/people_v1/representations.rb +143 -143
  145. data/generated/google/apis/people_v1/service.rb +30 -30
  146. data/generated/google/apis/plus_domains_v1.rb +1 -1
  147. data/generated/google/apis/plus_v1.rb +1 -1
  148. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
  149. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
  150. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
  151. data/generated/google/apis/pubsub_v1/classes.rb +175 -173
  152. data/generated/google/apis/pubsub_v1/representations.rb +53 -53
  153. data/generated/google/apis/pubsub_v1/service.rb +210 -210
  154. data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
  155. data/generated/google/apis/runtimeconfig_v1.rb +38 -0
  156. data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
  157. data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
  158. data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
  159. data/generated/google/apis/script_v1.rb +1 -1
  160. data/generated/google/apis/script_v1/classes.rb +6 -6
  161. data/generated/google/apis/script_v1/representations.rb +1 -1
  162. data/generated/google/apis/searchconsole_v1.rb +31 -0
  163. data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
  164. data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
  165. data/generated/google/apis/searchconsole_v1/service.rb +88 -0
  166. data/generated/google/apis/servicecontrol_v1.rb +38 -0
  167. data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
  168. data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
  169. data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
  170. data/generated/google/apis/servicemanagement_v1.rb +45 -0
  171. data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
  172. data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
  173. data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
  174. data/generated/google/apis/serviceuser_v1.rb +42 -0
  175. data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
  176. data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
  177. data/generated/google/apis/serviceuser_v1/service.rb +214 -0
  178. data/generated/google/apis/sheets_v4.rb +3 -3
  179. data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
  180. data/generated/google/apis/sheets_v4/representations.rb +381 -381
  181. data/generated/google/apis/sheets_v4/service.rb +48 -48
  182. data/generated/google/apis/slides_v1.rb +3 -3
  183. data/generated/google/apis/slides_v1/classes.rb +2860 -2860
  184. data/generated/google/apis/slides_v1/representations.rb +693 -693
  185. data/generated/google/apis/slides_v1/service.rb +30 -30
  186. data/generated/google/apis/sourcerepo_v1.rb +34 -0
  187. data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
  188. data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
  189. data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
  190. data/generated/google/apis/spanner_v1.rb +35 -0
  191. data/generated/google/apis/spanner_v1/classes.rb +3294 -0
  192. data/generated/google/apis/spanner_v1/representations.rb +984 -0
  193. data/generated/google/apis/spanner_v1/service.rb +1504 -0
  194. data/generated/google/apis/speech_v1beta1.rb +1 -1
  195. data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
  196. data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
  197. data/generated/google/apis/speech_v1beta1/service.rb +27 -27
  198. data/generated/google/apis/storage_v1.rb +1 -1
  199. data/generated/google/apis/storage_v1/classes.rb +131 -0
  200. data/generated/google/apis/storage_v1/representations.rb +51 -0
  201. data/generated/google/apis/storage_v1/service.rb +182 -0
  202. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  203. data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
  204. data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
  205. data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
  206. data/generated/google/apis/surveys_v2.rb +40 -0
  207. data/generated/google/apis/surveys_v2/classes.rb +806 -0
  208. data/generated/google/apis/surveys_v2/representations.rb +347 -0
  209. data/generated/google/apis/surveys_v2/service.rb +477 -0
  210. data/generated/google/apis/tagmanager_v2.rb +52 -0
  211. data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
  212. data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
  213. data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
  214. data/generated/google/apis/toolresults_v1beta3.rb +34 -0
  215. data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
  216. data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
  217. data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
  218. data/generated/google/apis/tracing_v1.rb +40 -0
  219. data/generated/google/apis/tracing_v1/classes.rb +664 -0
  220. data/generated/google/apis/tracing_v1/representations.rb +279 -0
  221. data/generated/google/apis/tracing_v1/service.rb +225 -0
  222. data/generated/google/apis/vision_v1.rb +1 -1
  223. data/generated/google/apis/vision_v1/classes.rb +1223 -1222
  224. data/generated/google/apis/vision_v1/representations.rb +234 -234
  225. data/generated/google/apis/vision_v1/service.rb +10 -10
  226. data/generated/google/apis/webfonts_v1.rb +33 -0
  227. data/generated/google/apis/webfonts_v1/classes.rb +113 -0
  228. data/generated/google/apis/webfonts_v1/representations.rb +62 -0
  229. data/generated/google/apis/webfonts_v1/service.rb +102 -0
  230. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  231. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  232. data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
  233. data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
  234. data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
  235. data/generated/google/apis/youtube_v3/classes.rb +1 -0
  236. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  237. data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
  238. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  239. data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
  240. data/lib/google/apis/generator/annotator.rb +5 -4
  241. data/lib/google/apis/generator/templates/_class.tmpl +3 -0
  242. data/lib/google/apis/version.rb +1 -1
  243. data/samples/cli/lib/samples/adsense.rb +99 -0
  244. data/samples/cli/lib/samples/analytics.rb +18 -0
  245. data/samples/cli/lib/samples/gmail.rb +33 -0
  246. data/samples/cli/lib/samples/vision.rb +69 -0
  247. metadata +89 -4
  248. data/sync.rb +0 -71
@@ -79,6 +79,46 @@ module Google
79
79
  execute_or_queue_command(command, &block)
80
80
  end
81
81
 
82
+ # Request the job status.
83
+ # @param [String] project_id
84
+ # A project id.
85
+ # @param [String] location
86
+ # The location which contains the job specified by job_id.
87
+ # @param [String] job_id
88
+ # The job to get messages for.
89
+ # @param [String] start_time
90
+ # Return only metric data that has changed since this time.
91
+ # Default is to return all information about all metrics for the job.
92
+ # @param [String] fields
93
+ # Selector specifying which fields to include in a partial response.
94
+ # @param [String] quota_user
95
+ # Available to use for quota purposes for server-side applications. Can be any
96
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
97
+ # @param [Google::Apis::RequestOptions] options
98
+ # Request-specific options
99
+ #
100
+ # @yield [result, err] Result & error if block supplied
101
+ # @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
102
+ # @yieldparam err [StandardError] error object if request failed
103
+ #
104
+ # @return [Google::Apis::DataflowV1b3::JobMetrics]
105
+ #
106
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
107
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
108
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
109
+ def get_project_location_job_metrics(project_id, location, job_id, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
110
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics', options)
111
+ command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
112
+ command.response_class = Google::Apis::DataflowV1b3::JobMetrics
113
+ command.params['projectId'] = project_id unless project_id.nil?
114
+ command.params['location'] = location unless location.nil?
115
+ command.params['jobId'] = job_id unless job_id.nil?
116
+ command.query['startTime'] = start_time unless start_time.nil?
117
+ command.query['fields'] = fields unless fields.nil?
118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
119
+ execute_or_queue_command(command, &block)
120
+ end
121
+
82
122
  # Gets the state of the specified Cloud Dataflow job.
83
123
  # @param [String] project_id
84
124
  # The ID of the Cloud Platform project that the job belongs to.
@@ -123,6 +163,8 @@ module Google
123
163
  # The project which owns the jobs.
124
164
  # @param [String] location
125
165
  # The location that contains this job.
166
+ # @param [String] filter
167
+ # The kind of filter to use.
126
168
  # @param [String] page_token
127
169
  # Set this to the 'next_page_token' field of a previous response
128
170
  # to request additional results in a long list.
@@ -132,8 +174,6 @@ module Google
132
174
  # and an unspecified server-defined limit.
133
175
  # @param [String] view
134
176
  # Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
135
- # @param [String] filter
136
- # The kind of filter to use.
137
177
  # @param [String] fields
138
178
  # Selector specifying which fields to include in a partial response.
139
179
  # @param [String] quota_user
@@ -151,16 +191,16 @@ module Google
151
191
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
152
192
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
153
193
  # @raise [Google::Apis::AuthorizationError] Authorization is required
154
- def list_project_location_jobs(project_id, location, page_token: nil, page_size: nil, view: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
194
+ def list_project_location_jobs(project_id, location, filter: nil, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
155
195
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
156
196
  command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
157
197
  command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
158
198
  command.params['projectId'] = project_id unless project_id.nil?
159
199
  command.params['location'] = location unless location.nil?
200
+ command.query['filter'] = filter unless filter.nil?
160
201
  command.query['pageToken'] = page_token unless page_token.nil?
161
202
  command.query['pageSize'] = page_size unless page_size.nil?
162
203
  command.query['view'] = view unless view.nil?
163
- command.query['filter'] = filter unless filter.nil?
164
204
  command.query['fields'] = fields unless fields.nil?
165
205
  command.query['quotaUser'] = quota_user unless quota_user.nil?
166
206
  execute_or_queue_command(command, &block)
@@ -247,16 +287,14 @@ module Google
247
287
  execute_or_queue_command(command, &block)
248
288
  end
249
289
 
250
- # Request the job status.
290
+ # Reports the status of dataflow WorkItems leased by a worker.
251
291
  # @param [String] project_id
252
- # A project id.
292
+ # The project which owns the WorkItem's job.
253
293
  # @param [String] location
254
- # The location which contains the job specified by job_id.
294
+ # The location which contains the WorkItem's job.
255
295
  # @param [String] job_id
256
- # The job to get messages for.
257
- # @param [String] start_time
258
- # Return only metric data that has changed since this time.
259
- # Default is to return all information about all metrics for the job.
296
+ # The job which the WorkItem is part of.
297
+ # @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
260
298
  # @param [String] fields
261
299
  # Selector specifying which fields to include in a partial response.
262
300
  # @param [String] quota_user
@@ -266,22 +304,23 @@ module Google
266
304
  # Request-specific options
267
305
  #
268
306
  # @yield [result, err] Result & error if block supplied
269
- # @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
307
+ # @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
270
308
  # @yieldparam err [StandardError] error object if request failed
271
309
  #
272
- # @return [Google::Apis::DataflowV1b3::JobMetrics]
310
+ # @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
273
311
  #
274
312
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
275
313
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
276
314
  # @raise [Google::Apis::AuthorizationError] Authorization is required
277
- def get_project_location_job_metrics(project_id, location, job_id, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
278
- command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics', options)
279
- command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
280
- command.response_class = Google::Apis::DataflowV1b3::JobMetrics
315
+ def report_project_location_job_work_item_status(project_id, location, job_id, report_work_item_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
316
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus', options)
317
+ command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
318
+ command.request_object = report_work_item_status_request_object
319
+ command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
320
+ command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
281
321
  command.params['projectId'] = project_id unless project_id.nil?
282
322
  command.params['location'] = location unless location.nil?
283
323
  command.params['jobId'] = job_id unless job_id.nil?
284
- command.query['startTime'] = start_time unless start_time.nil?
285
324
  command.query['fields'] = fields unless fields.nil?
286
325
  command.query['quotaUser'] = quota_user unless quota_user.nil?
287
326
  execute_or_queue_command(command, &block)
@@ -326,45 +365,6 @@ module Google
326
365
  execute_or_queue_command(command, &block)
327
366
  end
328
367
 
329
- # Reports the status of dataflow WorkItems leased by a worker.
330
- # @param [String] project_id
331
- # The project which owns the WorkItem's job.
332
- # @param [String] location
333
- # The location which contains the WorkItem's job.
334
- # @param [String] job_id
335
- # The job which the WorkItem is part of.
336
- # @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
337
- # @param [String] fields
338
- # Selector specifying which fields to include in a partial response.
339
- # @param [String] quota_user
340
- # Available to use for quota purposes for server-side applications. Can be any
341
- # arbitrary string assigned to a user, but should not exceed 40 characters.
342
- # @param [Google::Apis::RequestOptions] options
343
- # Request-specific options
344
- #
345
- # @yield [result, err] Result & error if block supplied
346
- # @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
347
- # @yieldparam err [StandardError] error object if request failed
348
- #
349
- # @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
350
- #
351
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
352
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
353
- # @raise [Google::Apis::AuthorizationError] Authorization is required
354
- def report_project_location_job_work_item_status(project_id, location, job_id, report_work_item_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
355
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus', options)
356
- command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
357
- command.request_object = report_work_item_status_request_object
358
- command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
359
- command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
360
- command.params['projectId'] = project_id unless project_id.nil?
361
- command.params['location'] = location unless location.nil?
362
- command.params['jobId'] = job_id unless job_id.nil?
363
- command.query['fields'] = fields unless fields.nil?
364
- command.query['quotaUser'] = quota_user unless quota_user.nil?
365
- execute_or_queue_command(command, &block)
366
- end
367
-
368
368
  # Request the job status.
369
369
  # @param [String] project_id
370
370
  # A project id.
@@ -536,16 +536,14 @@ module Google
536
536
  execute_or_queue_command(command, &block)
537
537
  end
538
538
 
539
- # Request the job status.
539
+ # Updates the state of an existing Cloud Dataflow job.
540
540
  # @param [String] project_id
541
- # A project id.
541
+ # The ID of the Cloud Platform project that the job belongs to.
542
542
  # @param [String] job_id
543
- # The job to get messages for.
543
+ # The job ID.
544
+ # @param [Google::Apis::DataflowV1b3::Job] job_object
544
545
  # @param [String] location
545
- # The location which contains the job specified by job_id.
546
- # @param [String] start_time
547
- # Return only metric data that has changed since this time.
548
- # Default is to return all information about all metrics for the job.
546
+ # The location that contains this job.
549
547
  # @param [String] fields
550
548
  # Selector specifying which fields to include in a partial response.
551
549
  # @param [String] quota_user
@@ -555,32 +553,34 @@ module Google
555
553
  # Request-specific options
556
554
  #
557
555
  # @yield [result, err] Result & error if block supplied
558
- # @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
556
+ # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
559
557
  # @yieldparam err [StandardError] error object if request failed
560
558
  #
561
- # @return [Google::Apis::DataflowV1b3::JobMetrics]
559
+ # @return [Google::Apis::DataflowV1b3::Job]
562
560
  #
563
561
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
564
562
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
565
563
  # @raise [Google::Apis::AuthorizationError] Authorization is required
566
- def get_project_job_metrics(project_id, job_id, location: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
567
- command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options)
568
- command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
569
- command.response_class = Google::Apis::DataflowV1b3::JobMetrics
564
+ def update_project_job(project_id, job_id, job_object = nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
565
+ command = make_simple_command(:put, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
566
+ command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
567
+ command.request_object = job_object
568
+ command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
569
+ command.response_class = Google::Apis::DataflowV1b3::Job
570
570
  command.params['projectId'] = project_id unless project_id.nil?
571
571
  command.params['jobId'] = job_id unless job_id.nil?
572
572
  command.query['location'] = location unless location.nil?
573
- command.query['startTime'] = start_time unless start_time.nil?
574
573
  command.query['fields'] = fields unless fields.nil?
575
574
  command.query['quotaUser'] = quota_user unless quota_user.nil?
576
575
  execute_or_queue_command(command, &block)
577
576
  end
578
577
 
579
- # Gets the state of the specified Cloud Dataflow job.
578
+ # Creates a Cloud Dataflow job.
580
579
  # @param [String] project_id
581
580
  # The ID of the Cloud Platform project that the job belongs to.
582
- # @param [String] job_id
583
- # The job ID.
581
+ # @param [Google::Apis::DataflowV1b3::Job] job_object
582
+ # @param [String] replace_job_id
583
+ # Deprecated. This field is now in the Job message.
584
584
  # @param [String] view
585
585
  # The level of information requested in response.
586
586
  # @param [String] location
@@ -602,12 +602,14 @@ module Google
602
602
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
603
603
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
604
604
  # @raise [Google::Apis::AuthorizationError] Authorization is required
605
- def get_project_job(project_id, job_id, view: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
606
- command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
605
+ def create_project_job(project_id, job_object = nil, replace_job_id: nil, view: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
606
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs', options)
607
+ command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
608
+ command.request_object = job_object
607
609
  command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
608
610
  command.response_class = Google::Apis::DataflowV1b3::Job
609
611
  command.params['projectId'] = project_id unless project_id.nil?
610
- command.params['jobId'] = job_id unless job_id.nil?
612
+ command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
611
613
  command.query['view'] = view unless view.nil?
612
614
  command.query['location'] = location unless location.nil?
613
615
  command.query['fields'] = fields unless fields.nil?
@@ -615,22 +617,16 @@ module Google
615
617
  execute_or_queue_command(command, &block)
616
618
  end
617
619
 
618
- # List the jobs of a project.
620
+ # Request the job status.
619
621
  # @param [String] project_id
620
- # The project which owns the jobs.
621
- # @param [String] filter
622
- # The kind of filter to use.
622
+ # A project id.
623
+ # @param [String] job_id
624
+ # The job to get messages for.
623
625
  # @param [String] location
624
- # The location that contains this job.
625
- # @param [String] page_token
626
- # Set this to the 'next_page_token' field of a previous response
627
- # to request additional results in a long list.
628
- # @param [Fixnum] page_size
629
- # If there are many jobs, limit response to at most this many.
630
- # The actual number of jobs returned will be the lesser of max_responses
631
- # and an unspecified server-defined limit.
632
- # @param [String] view
633
- # Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
626
+ # The location which contains the job specified by job_id.
627
+ # @param [String] start_time
628
+ # Return only metric data that has changed since this time.
629
+ # Default is to return all information about all metrics for the job.
634
630
  # @param [String] fields
635
631
  # Selector specifying which fields to include in a partial response.
636
632
  # @param [String] quota_user
@@ -640,37 +636,36 @@ module Google
640
636
  # Request-specific options
641
637
  #
642
638
  # @yield [result, err] Result & error if block supplied
643
- # @yieldparam result [Google::Apis::DataflowV1b3::ListJobsResponse] parsed result object
639
+ # @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
644
640
  # @yieldparam err [StandardError] error object if request failed
645
641
  #
646
- # @return [Google::Apis::DataflowV1b3::ListJobsResponse]
642
+ # @return [Google::Apis::DataflowV1b3::JobMetrics]
647
643
  #
648
644
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
649
645
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
650
646
  # @raise [Google::Apis::AuthorizationError] Authorization is required
651
- def list_project_jobs(project_id, filter: nil, location: nil, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
652
- command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs', options)
653
- command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
654
- command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
647
+ def get_project_job_metrics(project_id, job_id, location: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
648
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options)
649
+ command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
650
+ command.response_class = Google::Apis::DataflowV1b3::JobMetrics
655
651
  command.params['projectId'] = project_id unless project_id.nil?
656
- command.query['filter'] = filter unless filter.nil?
652
+ command.params['jobId'] = job_id unless job_id.nil?
657
653
  command.query['location'] = location unless location.nil?
658
- command.query['pageToken'] = page_token unless page_token.nil?
659
- command.query['pageSize'] = page_size unless page_size.nil?
660
- command.query['view'] = view unless view.nil?
654
+ command.query['startTime'] = start_time unless start_time.nil?
661
655
  command.query['fields'] = fields unless fields.nil?
662
656
  command.query['quotaUser'] = quota_user unless quota_user.nil?
663
657
  execute_or_queue_command(command, &block)
664
658
  end
665
659
 
666
- # Updates the state of an existing Cloud Dataflow job.
660
+ # Gets the state of the specified Cloud Dataflow job.
667
661
  # @param [String] project_id
668
662
  # The ID of the Cloud Platform project that the job belongs to.
669
663
  # @param [String] job_id
670
664
  # The job ID.
671
- # @param [Google::Apis::DataflowV1b3::Job] job_object
672
665
  # @param [String] location
673
666
  # The location that contains this job.
667
+ # @param [String] view
668
+ # The level of information requested in response.
674
669
  # @param [String] fields
675
670
  # Selector specifying which fields to include in a partial response.
676
671
  # @param [String] quota_user
@@ -688,30 +683,35 @@ module Google
688
683
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
689
684
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
690
685
  # @raise [Google::Apis::AuthorizationError] Authorization is required
691
- def update_project_job(project_id, job_id, job_object = nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
692
- command = make_simple_command(:put, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
693
- command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
694
- command.request_object = job_object
686
+ def get_project_job(project_id, job_id, location: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
687
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
695
688
  command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
696
689
  command.response_class = Google::Apis::DataflowV1b3::Job
697
690
  command.params['projectId'] = project_id unless project_id.nil?
698
691
  command.params['jobId'] = job_id unless job_id.nil?
699
692
  command.query['location'] = location unless location.nil?
693
+ command.query['view'] = view unless view.nil?
700
694
  command.query['fields'] = fields unless fields.nil?
701
695
  command.query['quotaUser'] = quota_user unless quota_user.nil?
702
696
  execute_or_queue_command(command, &block)
703
697
  end
704
698
 
705
- # Creates a Cloud Dataflow job.
699
+ # List the jobs of a project.
706
700
  # @param [String] project_id
707
- # The ID of the Cloud Platform project that the job belongs to.
708
- # @param [Google::Apis::DataflowV1b3::Job] job_object
701
+ # The project which owns the jobs.
702
+ # @param [String] filter
703
+ # The kind of filter to use.
709
704
  # @param [String] location
710
705
  # The location that contains this job.
711
- # @param [String] replace_job_id
712
- # Deprecated. This field is now in the Job message.
706
+ # @param [String] page_token
707
+ # Set this to the 'next_page_token' field of a previous response
708
+ # to request additional results in a long list.
709
+ # @param [Fixnum] page_size
710
+ # If there are many jobs, limit response to at most this many.
711
+ # The actual number of jobs returned will be the lesser of max_responses
712
+ # and an unspecified server-defined limit.
713
713
  # @param [String] view
714
- # The level of information requested in response.
714
+ # Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
715
715
  # @param [String] fields
716
716
  # Selector specifying which fields to include in a partial response.
717
717
  # @param [String] quota_user
@@ -721,23 +721,23 @@ module Google
721
721
  # Request-specific options
722
722
  #
723
723
  # @yield [result, err] Result & error if block supplied
724
- # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
724
+ # @yieldparam result [Google::Apis::DataflowV1b3::ListJobsResponse] parsed result object
725
725
  # @yieldparam err [StandardError] error object if request failed
726
726
  #
727
- # @return [Google::Apis::DataflowV1b3::Job]
727
+ # @return [Google::Apis::DataflowV1b3::ListJobsResponse]
728
728
  #
729
729
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
730
730
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
731
731
  # @raise [Google::Apis::AuthorizationError] Authorization is required
732
- def create_project_job(project_id, job_object = nil, location: nil, replace_job_id: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
733
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs', options)
734
- command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
735
- command.request_object = job_object
736
- command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
737
- command.response_class = Google::Apis::DataflowV1b3::Job
732
+ def list_project_jobs(project_id, filter: nil, location: nil, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
733
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs', options)
734
+ command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
735
+ command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
738
736
  command.params['projectId'] = project_id unless project_id.nil?
737
+ command.query['filter'] = filter unless filter.nil?
739
738
  command.query['location'] = location unless location.nil?
740
- command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
739
+ command.query['pageToken'] = page_token unless page_token.nil?
740
+ command.query['pageSize'] = page_size unless page_size.nil?
741
741
  command.query['view'] = view unless view.nil?
742
742
  command.query['fields'] = fields unless fields.nil?
743
743
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -816,12 +816,12 @@ module Google
816
816
  execute_or_queue_command(command, &block)
817
817
  end
818
818
 
819
- # Leases a dataflow WorkItem to run.
819
+ # Reports the status of dataflow WorkItems leased by a worker.
820
820
  # @param [String] project_id
821
- # Identifies the project this worker belongs to.
821
+ # The project which owns the WorkItem's job.
822
822
  # @param [String] job_id
823
- # Identifies the workflow job this worker belongs to.
824
- # @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
823
+ # The job which the WorkItem is part of.
824
+ # @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
825
825
  # @param [String] fields
826
826
  # Selector specifying which fields to include in a partial response.
827
827
  # @param [String] quota_user
@@ -831,20 +831,20 @@ module Google
831
831
  # Request-specific options
832
832
  #
833
833
  # @yield [result, err] Result & error if block supplied
834
- # @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
834
+ # @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
835
835
  # @yieldparam err [StandardError] error object if request failed
836
836
  #
837
- # @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
837
+ # @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
838
838
  #
839
839
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
840
840
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
841
841
  # @raise [Google::Apis::AuthorizationError] Authorization is required
842
- def lease_project_work_item(project_id, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
843
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', options)
844
- command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
845
- command.request_object = lease_work_item_request_object
846
- command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
847
- command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
842
+ def report_project_job_work_item_status(project_id, job_id, report_work_item_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
843
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus', options)
844
+ command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
845
+ command.request_object = report_work_item_status_request_object
846
+ command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
847
+ command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
848
848
  command.params['projectId'] = project_id unless project_id.nil?
849
849
  command.params['jobId'] = job_id unless job_id.nil?
850
850
  command.query['fields'] = fields unless fields.nil?
@@ -852,12 +852,12 @@ module Google
852
852
  execute_or_queue_command(command, &block)
853
853
  end
854
854
 
855
- # Reports the status of dataflow WorkItems leased by a worker.
855
+ # Leases a dataflow WorkItem to run.
856
856
  # @param [String] project_id
857
- # The project which owns the WorkItem's job.
857
+ # Identifies the project this worker belongs to.
858
858
  # @param [String] job_id
859
- # The job which the WorkItem is part of.
860
- # @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
859
+ # Identifies the workflow job this worker belongs to.
860
+ # @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
861
861
  # @param [String] fields
862
862
  # Selector specifying which fields to include in a partial response.
863
863
  # @param [String] quota_user
@@ -867,20 +867,20 @@ module Google
867
867
  # Request-specific options
868
868
  #
869
869
  # @yield [result, err] Result & error if block supplied
870
- # @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
870
+ # @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
871
871
  # @yieldparam err [StandardError] error object if request failed
872
872
  #
873
- # @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
873
+ # @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
874
874
  #
875
875
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
876
876
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
877
877
  # @raise [Google::Apis::AuthorizationError] Authorization is required
878
- def report_project_job_work_item_status(project_id, job_id, report_work_item_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
879
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus', options)
880
- command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
881
- command.request_object = report_work_item_status_request_object
882
- command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
883
- command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
878
+ def lease_project_work_item(project_id, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
879
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', options)
880
+ command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
881
+ command.request_object = lease_work_item_request_object
882
+ command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
883
+ command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
884
884
  command.params['projectId'] = project_id unless project_id.nil?
885
885
  command.params['jobId'] = job_id unless job_id.nil?
886
886
  command.query['fields'] = fields unless fields.nil?
@@ -893,18 +893,18 @@ module Google
893
893
  # A project id.
894
894
  # @param [String] job_id
895
895
  # The job to get messages about.
896
- # @param [String] location
897
- # The location which contains the job specified by job_id.
898
896
  # @param [String] end_time
899
897
  # Return only messages with timestamps < end_time. The default is now
900
898
  # (i.e. return up to the latest messages available).
899
+ # @param [String] location
900
+ # The location which contains the job specified by job_id.
901
+ # @param [String] start_time
902
+ # If specified, return only messages with timestamps >= start_time.
903
+ # The default is the job creation time (i.e. beginning of messages).
901
904
  # @param [String] page_token
902
905
  # If supplied, this should be the value of next_page_token returned
903
906
  # by an earlier call. This will cause the next page of results to
904
907
  # be returned.
905
- # @param [String] start_time
906
- # If specified, return only messages with timestamps >= start_time.
907
- # The default is the job creation time (i.e. beginning of messages).
908
908
  # @param [Fixnum] page_size
909
909
  # If specified, determines the maximum number of messages to
910
910
  # return. If unspecified, the service may choose an appropriate
@@ -928,16 +928,16 @@ module Google
928
928
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
929
929
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
930
930
  # @raise [Google::Apis::AuthorizationError] Authorization is required
931
- def list_project_job_messages(project_id, job_id, location: nil, end_time: nil, page_token: nil, start_time: nil, page_size: nil, minimum_importance: nil, fields: nil, quota_user: nil, options: nil, &block)
931
+ def list_project_job_messages(project_id, job_id, end_time: nil, location: nil, start_time: nil, page_token: nil, page_size: nil, minimum_importance: nil, fields: nil, quota_user: nil, options: nil, &block)
932
932
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/messages', options)
933
933
  command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
934
934
  command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
935
935
  command.params['projectId'] = project_id unless project_id.nil?
936
936
  command.params['jobId'] = job_id unless job_id.nil?
937
- command.query['location'] = location unless location.nil?
938
937
  command.query['endTime'] = end_time unless end_time.nil?
939
- command.query['pageToken'] = page_token unless page_token.nil?
938
+ command.query['location'] = location unless location.nil?
940
939
  command.query['startTime'] = start_time unless start_time.nil?
940
+ command.query['pageToken'] = page_token unless page_token.nil?
941
941
  command.query['pageSize'] = page_size unless page_size.nil?
942
942
  command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
943
943
  command.query['fields'] = fields unless fields.nil?