google-api-client 0.9.19 → 0.9.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -1
  3. data/api_names.yaml +2 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +20 -3
  7. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +2 -0
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/adsense_v1_4.rb +1 -1
  10. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  11. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  12. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  13. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  14. data/generated/google/apis/androidenterprise_v1/classes.rb +9 -7
  15. data/generated/google/apis/androidenterprise_v1/service.rb +7 -1
  16. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  17. data/generated/google/apis/appengine_v1beta5/classes.rb +86 -25
  18. data/generated/google/apis/appengine_v1beta5/representations.rb +31 -12
  19. data/generated/google/apis/appengine_v1beta5/service.rb +33 -33
  20. data/generated/google/apis/appsactivity_v1.rb +1 -1
  21. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  22. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  23. data/generated/google/apis/appstate_v1.rb +1 -1
  24. data/generated/google/apis/bigquery_v2.rb +1 -1
  25. data/generated/google/apis/bigquery_v2/classes.rb +27 -18
  26. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  27. data/generated/google/apis/calendar_v3.rb +1 -1
  28. data/generated/google/apis/civicinfo_v2.rb +1 -1
  29. data/generated/google/apis/civicinfo_v2/classes.rb +243 -0
  30. data/generated/google/apis/civicinfo_v2/representations.rb +64 -0
  31. data/generated/google/apis/classroom_v1/service.rb +1 -1
  32. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1/classes.rb +8 -0
  34. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  35. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  36. data/generated/google/apis/compute_beta.rb +1 -1
  37. data/generated/google/apis/compute_beta/classes.rb +443 -13
  38. data/generated/google/apis/compute_beta/representations.rb +155 -0
  39. data/generated/google/apis/compute_beta/service.rb +383 -2
  40. data/generated/google/apis/compute_v1.rb +1 -1
  41. data/generated/google/apis/compute_v1/classes.rb +43 -13
  42. data/generated/google/apis/compute_v1/representations.rb +13 -0
  43. data/generated/google/apis/compute_v1/service.rb +89 -1
  44. data/generated/google/apis/content_v2.rb +1 -1
  45. data/generated/google/apis/content_v2/classes.rb +48 -0
  46. data/generated/google/apis/content_v2/representations.rb +18 -0
  47. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  48. data/generated/google/apis/dataflow_v1b3/classes.rb +44 -0
  49. data/generated/google/apis/dataflow_v1b3/representations.rb +18 -0
  50. data/generated/google/apis/dataflow_v1b3/service.rb +367 -7
  51. data/generated/google/apis/dataproc_v1.rb +2 -2
  52. data/generated/google/apis/dataproc_v1/classes.rb +213 -68
  53. data/generated/google/apis/dataproc_v1/representations.rb +38 -0
  54. data/generated/google/apis/dataproc_v1/service.rb +78 -48
  55. data/generated/google/apis/datastore_v1.rb +1 -1
  56. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  57. data/generated/google/apis/deploymentmanager_v2/classes.rb +3 -3
  58. data/generated/google/apis/deploymentmanager_v2/service.rb +55 -5
  59. data/generated/google/apis/dfareporting_v2_6.rb +1 -1
  60. data/generated/google/apis/dfareporting_v2_6/classes.rb +4 -3
  61. data/generated/google/apis/dfareporting_v2_6/service.rb +48 -29
  62. data/generated/google/apis/dns_v1.rb +1 -1
  63. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  64. data/generated/google/apis/drive_v2.rb +1 -1
  65. data/generated/google/apis/drive_v2/classes.rb +7 -0
  66. data/generated/google/apis/drive_v2/representations.rb +1 -0
  67. data/generated/google/apis/drive_v3.rb +1 -1
  68. data/generated/google/apis/drive_v3/classes.rb +7 -0
  69. data/generated/google/apis/drive_v3/representations.rb +1 -0
  70. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  71. data/generated/google/apis/games_management_v1management.rb +1 -1
  72. data/generated/google/apis/games_v1.rb +1 -1
  73. data/generated/google/apis/genomics_v1.rb +1 -1
  74. data/generated/google/apis/genomics_v1/classes.rb +9 -2
  75. data/generated/google/apis/genomics_v1/representations.rb +1 -0
  76. data/generated/google/apis/genomics_v1/service.rb +2 -1
  77. data/generated/google/apis/gmail_v1.rb +4 -1
  78. data/generated/google/apis/gmail_v1/classes.rb +8 -10
  79. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  80. data/generated/google/apis/identitytoolkit_v3/classes.rb +39 -6
  81. data/generated/google/apis/identitytoolkit_v3/representations.rb +6 -1
  82. data/generated/google/apis/language_v1beta1.rb +1 -1
  83. data/generated/google/apis/language_v1beta1/classes.rb +3 -2
  84. data/generated/google/apis/language_v1beta1/service.rb +2 -2
  85. data/generated/google/apis/logging_v2beta1.rb +1 -1
  86. data/generated/google/apis/logging_v2beta1/classes.rb +22 -18
  87. data/generated/google/apis/logging_v2beta1/service.rb +17 -3
  88. data/generated/google/apis/monitoring_v3.rb +1 -1
  89. data/generated/google/apis/monitoring_v3/classes.rb +26 -24
  90. data/generated/google/apis/oauth2_v2.rb +1 -1
  91. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  92. data/generated/google/apis/plus_domains_v1.rb +1 -1
  93. data/generated/google/apis/plus_v1.rb +1 -1
  94. data/generated/google/apis/sheets_v4.rb +1 -1
  95. data/generated/google/apis/sheets_v4/classes.rb +771 -75
  96. data/generated/google/apis/sheets_v4/representations.rb +125 -10
  97. data/generated/google/apis/sheets_v4/service.rb +39 -2
  98. data/generated/google/apis/slides_v1.rb +49 -0
  99. data/generated/google/apis/slides_v1/classes.rb +3926 -0
  100. data/generated/google/apis/slides_v1/representations.rb +1722 -0
  101. data/generated/google/apis/slides_v1/service.rb +202 -0
  102. data/generated/google/apis/speech_v1beta1.rb +1 -1
  103. data/generated/google/apis/speech_v1beta1/service.rb +25 -25
  104. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  105. data/generated/google/apis/storage_v1.rb +1 -1
  106. data/generated/google/apis/vision_v1.rb +1 -1
  107. data/generated/google/apis/vision_v1/classes.rb +2 -2
  108. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  109. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  110. data/generated/google/apis/youtube_v3.rb +1 -1
  111. data/generated/google/apis/youtube_v3/classes.rb +20 -19
  112. data/generated/google/apis/youtube_v3/representations.rb +3 -4
  113. data/generated/google/apis/youtube_v3/service.rb +35 -3
  114. data/lib/google/apis/version.rb +1 -1
  115. metadata +6 -2
@@ -118,6 +118,12 @@ module Google
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
+ class FailedLocation
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
121
127
  class ListJobMessagesResponse
122
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
129
 
@@ -675,6 +681,7 @@ module Google
675
681
  property :replaced_by_job_id, as: 'replacedByJobId'
676
682
  collection :temp_files, as: 'tempFiles'
677
683
  hash :labels, as: 'labels'
684
+ property :location, as: 'location'
678
685
  end
679
686
  end
680
687
 
@@ -819,6 +826,15 @@ module Google
819
826
  collection :jobs, as: 'jobs', class: Google::Apis::DataflowV1b3::Job, decorator: Google::Apis::DataflowV1b3::Job::Representation
820
827
 
821
828
  property :next_page_token, as: 'nextPageToken'
829
+ collection :failed_location, as: 'failedLocation', class: Google::Apis::DataflowV1b3::FailedLocation, decorator: Google::Apis::DataflowV1b3::FailedLocation::Representation
830
+
831
+ end
832
+ end
833
+
834
+ class FailedLocation
835
+ # @private
836
+ class Representation < Google::Apis::Core::JsonRepresentation
837
+ property :name, as: 'name'
822
838
  end
823
839
  end
824
840
 
@@ -890,6 +906,7 @@ module Google
890
906
  collection :work_item_statuses, as: 'workItemStatuses', class: Google::Apis::DataflowV1b3::WorkItemStatus, decorator: Google::Apis::DataflowV1b3::WorkItemStatus::Representation
891
907
 
892
908
  property :current_worker_time, as: 'currentWorkerTime'
909
+ property :location, as: 'location'
893
910
  end
894
911
  end
895
912
 
@@ -1244,6 +1261,7 @@ module Google
1244
1261
  property :requested_lease_duration, as: 'requestedLeaseDuration'
1245
1262
  property :current_worker_time, as: 'currentWorkerTime'
1246
1263
  property :worker_id, as: 'workerId'
1264
+ property :location, as: 'location'
1247
1265
  end
1248
1266
  end
1249
1267
 
@@ -88,6 +88,8 @@ module Google
88
88
  # Level of information requested in response.
89
89
  # @param [String] replace_job_id
90
90
  # DEPRECATED. This field is now on the Job message.
91
+ # @param [String] location
92
+ # The location which contains this job.
91
93
  # @param [String] fields
92
94
  # Selector specifying which fields to include in a partial response.
93
95
  # @param [String] quota_user
@@ -105,7 +107,7 @@ module Google
105
107
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
106
108
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
107
109
  # @raise [Google::Apis::AuthorizationError] Authorization is required
108
- def create_project_job(project_id, job_object = nil, view: nil, replace_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
110
+ def create_project_job(project_id, job_object = nil, view: nil, replace_job_id: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
109
111
  command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs', options)
110
112
  command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
111
113
  command.request_object = job_object
@@ -114,6 +116,7 @@ module Google
114
116
  command.params['projectId'] = project_id unless project_id.nil?
115
117
  command.query['view'] = view unless view.nil?
116
118
  command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
119
+ command.query['location'] = location unless location.nil?
117
120
  command.query['fields'] = fields unless fields.nil?
118
121
  command.query['quotaUser'] = quota_user unless quota_user.nil?
119
122
  execute_or_queue_command(command, &block)
@@ -126,6 +129,8 @@ module Google
126
129
  # Identifies a single job.
127
130
  # @param [String] view
128
131
  # Level of information requested in response.
132
+ # @param [String] location
133
+ # The location which contains this job.
129
134
  # @param [String] fields
130
135
  # Selector specifying which fields to include in a partial response.
131
136
  # @param [String] quota_user
@@ -143,13 +148,14 @@ module Google
143
148
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
144
149
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
145
150
  # @raise [Google::Apis::AuthorizationError] Authorization is required
146
- def get_project_job(project_id, job_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
151
+ def get_project_job(project_id, job_id, view: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
147
152
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
148
153
  command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
149
154
  command.response_class = Google::Apis::DataflowV1b3::Job
150
155
  command.params['projectId'] = project_id unless project_id.nil?
151
156
  command.params['jobId'] = job_id unless job_id.nil?
152
157
  command.query['view'] = view unless view.nil?
158
+ command.query['location'] = location unless location.nil?
153
159
  command.query['fields'] = fields unless fields.nil?
154
160
  command.query['quotaUser'] = quota_user unless quota_user.nil?
155
161
  execute_or_queue_command(command, &block)
@@ -161,6 +167,8 @@ module Google
161
167
  # @param [String] job_id
162
168
  # Identifies a single job.
163
169
  # @param [Google::Apis::DataflowV1b3::Job] job_object
170
+ # @param [String] location
171
+ # The location which contains this job.
164
172
  # @param [String] fields
165
173
  # Selector specifying which fields to include in a partial response.
166
174
  # @param [String] quota_user
@@ -178,7 +186,7 @@ module Google
178
186
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
179
187
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
180
188
  # @raise [Google::Apis::AuthorizationError] Authorization is required
181
- def update_project_job(project_id, job_id, job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
189
+ def update_project_job(project_id, job_id, job_object = nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
182
190
  command = make_simple_command(:put, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
183
191
  command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
184
192
  command.request_object = job_object
@@ -186,6 +194,7 @@ module Google
186
194
  command.response_class = Google::Apis::DataflowV1b3::Job
187
195
  command.params['projectId'] = project_id unless project_id.nil?
188
196
  command.params['jobId'] = job_id unless job_id.nil?
197
+ command.query['location'] = location unless location.nil?
189
198
  command.query['fields'] = fields unless fields.nil?
190
199
  command.query['quotaUser'] = quota_user unless quota_user.nil?
191
200
  execute_or_queue_command(command, &block)
@@ -205,6 +214,8 @@ module Google
205
214
  # @param [String] page_token
206
215
  # Set this to the 'next_page_token' field of a previous response to request
207
216
  # additional results in a long list.
217
+ # @param [String] location
218
+ # The location which contains this job.
208
219
  # @param [String] fields
209
220
  # Selector specifying which fields to include in a partial response.
210
221
  # @param [String] quota_user
@@ -222,7 +233,7 @@ module Google
222
233
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
223
234
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
224
235
  # @raise [Google::Apis::AuthorizationError] Authorization is required
225
- def list_project_jobs(project_id, filter: nil, view: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
236
+ def list_project_jobs(project_id, filter: nil, view: nil, page_size: nil, page_token: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
226
237
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs', options)
227
238
  command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
228
239
  command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
@@ -231,6 +242,7 @@ module Google
231
242
  command.query['view'] = view unless view.nil?
232
243
  command.query['pageSize'] = page_size unless page_size.nil?
233
244
  command.query['pageToken'] = page_token unless page_token.nil?
245
+ command.query['location'] = location unless location.nil?
234
246
  command.query['fields'] = fields unless fields.nil?
235
247
  command.query['quotaUser'] = quota_user unless quota_user.nil?
236
248
  execute_or_queue_command(command, &block)
@@ -244,6 +256,8 @@ module Google
244
256
  # @param [String] start_time
245
257
  # Return only metric data that has changed since this time. Default is to return
246
258
  # all information about all metrics for the job.
259
+ # @param [String] location
260
+ # The location which contains the job specified by job_id.
247
261
  # @param [String] fields
248
262
  # Selector specifying which fields to include in a partial response.
249
263
  # @param [String] quota_user
@@ -261,13 +275,14 @@ module Google
261
275
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
262
276
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
263
277
  # @raise [Google::Apis::AuthorizationError] Authorization is required
264
- def get_project_job_metrics(project_id, job_id, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
278
+ def get_project_job_metrics(project_id, job_id, start_time: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
265
279
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options)
266
280
  command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
267
281
  command.response_class = Google::Apis::DataflowV1b3::JobMetrics
268
282
  command.params['projectId'] = project_id unless project_id.nil?
269
283
  command.params['jobId'] = job_id unless job_id.nil?
270
284
  command.query['startTime'] = start_time unless start_time.nil?
285
+ command.query['location'] = location unless location.nil?
271
286
  command.query['fields'] = fields unless fields.nil?
272
287
  command.query['quotaUser'] = quota_user unless quota_user.nil?
273
288
  execute_or_queue_command(command, &block)
@@ -365,6 +380,8 @@ module Google
365
380
  # @param [String] end_time
366
381
  # Return only messages with timestamps < end_time. The default is now (i.e.
367
382
  # return up to the latest messages available).
383
+ # @param [String] location
384
+ # The location which contains the job specified by job_id.
368
385
  # @param [String] fields
369
386
  # Selector specifying which fields to include in a partial response.
370
387
  # @param [String] quota_user
@@ -382,7 +399,7 @@ module Google
382
399
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
383
400
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
384
401
  # @raise [Google::Apis::AuthorizationError] Authorization is required
385
- def list_project_job_messages(project_id, job_id, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, fields: nil, quota_user: nil, options: nil, &block)
402
+ def list_project_job_messages(project_id, job_id, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
386
403
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/messages', options)
387
404
  command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
388
405
  command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
@@ -393,6 +410,7 @@ module Google
393
410
  command.query['pageToken'] = page_token unless page_token.nil?
394
411
  command.query['startTime'] = start_time unless start_time.nil?
395
412
  command.query['endTime'] = end_time unless end_time.nil?
413
+ command.query['location'] = location unless location.nil?
396
414
  command.query['fields'] = fields unless fields.nil?
397
415
  command.query['quotaUser'] = quota_user unless quota_user.nil?
398
416
  execute_or_queue_command(command, &block)
@@ -457,7 +475,7 @@ module Google
457
475
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
458
476
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
459
477
  # @raise [Google::Apis::AuthorizationError] Authorization is required
460
- def lease_work_item(project_id, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
478
+ def lease_project_work_item(project_id, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
461
479
  command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', options)
462
480
  command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
463
481
  command.request_object = lease_work_item_request_object
@@ -470,6 +488,348 @@ module Google
470
488
  execute_or_queue_command(command, &block)
471
489
  end
472
490
 
491
+ # Creates a dataflow job.
492
+ # @param [String] project_id
493
+ # The project which owns the job.
494
+ # @param [String] location
495
+ # The location which contains this job.
496
+ # @param [Google::Apis::DataflowV1b3::Job] job_object
497
+ # @param [String] view
498
+ # Level of information requested in response.
499
+ # @param [String] replace_job_id
500
+ # DEPRECATED. This field is now on the Job message.
501
+ # @param [String] fields
502
+ # Selector specifying which fields to include in a partial response.
503
+ # @param [String] quota_user
504
+ # Available to use for quota purposes for server-side applications. Can be any
505
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
506
+ # @param [Google::Apis::RequestOptions] options
507
+ # Request-specific options
508
+ #
509
+ # @yield [result, err] Result & error if block supplied
510
+ # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
511
+ # @yieldparam err [StandardError] error object if request failed
512
+ #
513
+ # @return [Google::Apis::DataflowV1b3::Job]
514
+ #
515
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
516
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
517
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
518
+ def create_project_location_job(project_id, location, job_object = nil, view: nil, replace_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
519
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
520
+ command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
521
+ command.request_object = job_object
522
+ command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
523
+ command.response_class = Google::Apis::DataflowV1b3::Job
524
+ command.params['projectId'] = project_id unless project_id.nil?
525
+ command.params['location'] = location unless location.nil?
526
+ command.query['view'] = view unless view.nil?
527
+ command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
528
+ command.query['fields'] = fields unless fields.nil?
529
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
530
+ execute_or_queue_command(command, &block)
531
+ end
532
+
533
+ # Gets the state of the specified dataflow job.
534
+ # @param [String] project_id
535
+ # The project which owns the job.
536
+ # @param [String] location
537
+ # The location which contains this job.
538
+ # @param [String] job_id
539
+ # Identifies a single job.
540
+ # @param [String] view
541
+ # Level of information requested in response.
542
+ # @param [String] fields
543
+ # Selector specifying which fields to include in a partial response.
544
+ # @param [String] quota_user
545
+ # Available to use for quota purposes for server-side applications. Can be any
546
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
547
+ # @param [Google::Apis::RequestOptions] options
548
+ # Request-specific options
549
+ #
550
+ # @yield [result, err] Result & error if block supplied
551
+ # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
552
+ # @yieldparam err [StandardError] error object if request failed
553
+ #
554
+ # @return [Google::Apis::DataflowV1b3::Job]
555
+ #
556
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
557
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
558
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
559
+ def get_project_location_job(project_id, location, job_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
560
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options)
561
+ command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
562
+ command.response_class = Google::Apis::DataflowV1b3::Job
563
+ command.params['projectId'] = project_id unless project_id.nil?
564
+ command.params['location'] = location unless location.nil?
565
+ command.params['jobId'] = job_id unless job_id.nil?
566
+ command.query['view'] = view unless view.nil?
567
+ command.query['fields'] = fields unless fields.nil?
568
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
569
+ execute_or_queue_command(command, &block)
570
+ end
571
+
572
+ # Updates the state of an existing dataflow job.
573
+ # @param [String] project_id
574
+ # The project which owns the job.
575
+ # @param [String] location
576
+ # The location which contains this job.
577
+ # @param [String] job_id
578
+ # Identifies a single job.
579
+ # @param [Google::Apis::DataflowV1b3::Job] job_object
580
+ # @param [String] fields
581
+ # Selector specifying which fields to include in a partial response.
582
+ # @param [String] quota_user
583
+ # Available to use for quota purposes for server-side applications. Can be any
584
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
585
+ # @param [Google::Apis::RequestOptions] options
586
+ # Request-specific options
587
+ #
588
+ # @yield [result, err] Result & error if block supplied
589
+ # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
590
+ # @yieldparam err [StandardError] error object if request failed
591
+ #
592
+ # @return [Google::Apis::DataflowV1b3::Job]
593
+ #
594
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
595
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
596
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
597
+ def update_project_location_job(project_id, location, job_id, job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
598
+ command = make_simple_command(:put, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options)
599
+ command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
600
+ command.request_object = job_object
601
+ command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
602
+ command.response_class = Google::Apis::DataflowV1b3::Job
603
+ command.params['projectId'] = project_id unless project_id.nil?
604
+ command.params['location'] = location unless location.nil?
605
+ command.params['jobId'] = job_id unless job_id.nil?
606
+ command.query['fields'] = fields unless fields.nil?
607
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
608
+ execute_or_queue_command(command, &block)
609
+ end
610
+
611
+ # List the jobs of a project
612
+ # @param [String] project_id
613
+ # The project which owns the jobs.
614
+ # @param [String] location
615
+ # The location which contains this job.
616
+ # @param [String] filter
617
+ # The kind of filter to use.
618
+ # @param [String] view
619
+ # Level of information requested in response. Default is SUMMARY.
620
+ # @param [Fixnum] page_size
621
+ # If there are many jobs, limit response to at most this many. The actual number
622
+ # of jobs returned will be the lesser of max_responses and an unspecified server-
623
+ # defined limit.
624
+ # @param [String] page_token
625
+ # Set this to the 'next_page_token' field of a previous response to request
626
+ # additional results in a long list.
627
+ # @param [String] fields
628
+ # Selector specifying which fields to include in a partial response.
629
+ # @param [String] quota_user
630
+ # Available to use for quota purposes for server-side applications. Can be any
631
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
632
+ # @param [Google::Apis::RequestOptions] options
633
+ # Request-specific options
634
+ #
635
+ # @yield [result, err] Result & error if block supplied
636
+ # @yieldparam result [Google::Apis::DataflowV1b3::ListJobsResponse] parsed result object
637
+ # @yieldparam err [StandardError] error object if request failed
638
+ #
639
+ # @return [Google::Apis::DataflowV1b3::ListJobsResponse]
640
+ #
641
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
642
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
643
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
644
+ def list_project_location_jobs(project_id, location, filter: nil, view: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
645
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
646
+ command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
647
+ command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
648
+ command.params['projectId'] = project_id unless project_id.nil?
649
+ command.params['location'] = location unless location.nil?
650
+ command.query['filter'] = filter unless filter.nil?
651
+ command.query['view'] = view unless view.nil?
652
+ command.query['pageSize'] = page_size unless page_size.nil?
653
+ command.query['pageToken'] = page_token unless page_token.nil?
654
+ command.query['fields'] = fields unless fields.nil?
655
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
656
+ execute_or_queue_command(command, &block)
657
+ end
658
+
659
+ # Request the job status.
660
+ # @param [String] project_id
661
+ # A project id.
662
+ # @param [String] location
663
+ # The location which contains the job specified by job_id.
664
+ # @param [String] job_id
665
+ # The job to get messages for.
666
+ # @param [String] start_time
667
+ # Return only metric data that has changed since this time. Default is to return
668
+ # all information about all metrics for the job.
669
+ # @param [String] fields
670
+ # Selector specifying which fields to include in a partial response.
671
+ # @param [String] quota_user
672
+ # Available to use for quota purposes for server-side applications. Can be any
673
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
674
+ # @param [Google::Apis::RequestOptions] options
675
+ # Request-specific options
676
+ #
677
+ # @yield [result, err] Result & error if block supplied
678
+ # @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
679
+ # @yieldparam err [StandardError] error object if request failed
680
+ #
681
+ # @return [Google::Apis::DataflowV1b3::JobMetrics]
682
+ #
683
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
684
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
685
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
686
+ def get_project_location_job_metrics(project_id, location, job_id, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
687
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics', options)
688
+ command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
689
+ command.response_class = Google::Apis::DataflowV1b3::JobMetrics
690
+ command.params['projectId'] = project_id unless project_id.nil?
691
+ command.params['location'] = location unless location.nil?
692
+ command.params['jobId'] = job_id unless job_id.nil?
693
+ command.query['startTime'] = start_time unless start_time.nil?
694
+ command.query['fields'] = fields unless fields.nil?
695
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
696
+ execute_or_queue_command(command, &block)
697
+ end
698
+
699
+ # Request the job status.
700
+ # @param [String] project_id
701
+ # A project id.
702
+ # @param [String] location
703
+ # The location which contains the job specified by job_id.
704
+ # @param [String] job_id
705
+ # The job to get messages about.
706
+ # @param [String] minimum_importance
707
+ # Filter to only get messages with importance >= level
708
+ # @param [Fixnum] page_size
709
+ # If specified, determines the maximum number of messages to return. If
710
+ # unspecified, the service may choose an appropriate default, or may return an
711
+ # arbitrarily large number of results.
712
+ # @param [String] page_token
713
+ # If supplied, this should be the value of next_page_token returned by an
714
+ # earlier call. This will cause the next page of results to be returned.
715
+ # @param [String] start_time
716
+ # If specified, return only messages with timestamps >= start_time. The default
717
+ # is the job creation time (i.e. beginning of messages).
718
+ # @param [String] end_time
719
+ # Return only messages with timestamps < end_time. The default is now (i.e.
720
+ # return up to the latest messages available).
721
+ # @param [String] fields
722
+ # Selector specifying which fields to include in a partial response.
723
+ # @param [String] quota_user
724
+ # Available to use for quota purposes for server-side applications. Can be any
725
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
726
+ # @param [Google::Apis::RequestOptions] options
727
+ # Request-specific options
728
+ #
729
+ # @yield [result, err] Result & error if block supplied
730
+ # @yieldparam result [Google::Apis::DataflowV1b3::ListJobMessagesResponse] parsed result object
731
+ # @yieldparam err [StandardError] error object if request failed
732
+ #
733
+ # @return [Google::Apis::DataflowV1b3::ListJobMessagesResponse]
734
+ #
735
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
736
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
737
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
738
+ def list_project_location_job_messages(project_id, location, job_id, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, fields: nil, quota_user: nil, options: nil, &block)
739
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages', options)
740
+ command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
741
+ command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
742
+ command.params['projectId'] = project_id unless project_id.nil?
743
+ command.params['location'] = location unless location.nil?
744
+ command.params['jobId'] = job_id unless job_id.nil?
745
+ command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
746
+ command.query['pageSize'] = page_size unless page_size.nil?
747
+ command.query['pageToken'] = page_token unless page_token.nil?
748
+ command.query['startTime'] = start_time unless start_time.nil?
749
+ command.query['endTime'] = end_time unless end_time.nil?
750
+ command.query['fields'] = fields unless fields.nil?
751
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
752
+ execute_or_queue_command(command, &block)
753
+ end
754
+
755
+ # Reports the status of dataflow WorkItems leased by a worker.
756
+ # @param [String] project_id
757
+ # The project which owns the WorkItem's job.
758
+ # @param [String] location
759
+ # The location which contains the WorkItem's job.
760
+ # @param [String] job_id
761
+ # The job which the WorkItem is part of.
762
+ # @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
763
+ # @param [String] fields
764
+ # Selector specifying which fields to include in a partial response.
765
+ # @param [String] quota_user
766
+ # Available to use for quota purposes for server-side applications. Can be any
767
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
768
+ # @param [Google::Apis::RequestOptions] options
769
+ # Request-specific options
770
+ #
771
+ # @yield [result, err] Result & error if block supplied
772
+ # @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
773
+ # @yieldparam err [StandardError] error object if request failed
774
+ #
775
+ # @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
776
+ #
777
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
778
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
779
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
780
+ 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)
781
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus', options)
782
+ command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
783
+ command.request_object = report_work_item_status_request_object
784
+ command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
785
+ command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
786
+ command.params['projectId'] = project_id unless project_id.nil?
787
+ command.params['location'] = location unless location.nil?
788
+ command.params['jobId'] = job_id unless job_id.nil?
789
+ command.query['fields'] = fields unless fields.nil?
790
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
791
+ execute_or_queue_command(command, &block)
792
+ end
793
+
794
+ # Leases a dataflow WorkItem to run.
795
+ # @param [String] project_id
796
+ # Identifies the project this worker belongs to.
797
+ # @param [String] location
798
+ # The location which contains the WorkItem's job.
799
+ # @param [String] job_id
800
+ # Identifies the workflow job this worker belongs to.
801
+ # @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
802
+ # @param [String] fields
803
+ # Selector specifying which fields to include in a partial response.
804
+ # @param [String] quota_user
805
+ # Available to use for quota purposes for server-side applications. Can be any
806
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
807
+ # @param [Google::Apis::RequestOptions] options
808
+ # Request-specific options
809
+ #
810
+ # @yield [result, err] Result & error if block supplied
811
+ # @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
812
+ # @yieldparam err [StandardError] error object if request failed
813
+ #
814
+ # @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
815
+ #
816
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
817
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
818
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
819
+ def lease_project_location_work_item(project_id, location, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
820
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:lease', options)
821
+ command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
822
+ command.request_object = lease_work_item_request_object
823
+ command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
824
+ command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
825
+ command.params['projectId'] = project_id unless project_id.nil?
826
+ command.params['location'] = location unless location.nil?
827
+ command.params['jobId'] = job_id unless job_id.nil?
828
+ command.query['fields'] = fields unless fields.nil?
829
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
830
+ execute_or_queue_command(command, &block)
831
+ end
832
+
473
833
  # Creates a dataflow job from a template.
474
834
  # @param [String] project_id
475
835
  # The project which owns the job.