google-api-client 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +395 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
  11. data/generated/google/apis/admin_reports_v1.rb +3 -3
  12. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analytics_v3/service.rb +39 -0
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  19. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  20. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
  22. data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
  23. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  24. data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
  25. data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
  26. data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +32 -37
  30. data/generated/google/apis/bigquery_v2/service.rb +10 -2
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/calendar_v3/classes.rb +205 -0
  33. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  34. data/generated/google/apis/classroom_v1.rb +22 -25
  35. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  38. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
  40. data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
  41. data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
  42. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  43. data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
  44. data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
  45. data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
  46. data/generated/google/apis/cloudkms_v1.rb +1 -1
  47. data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
  48. data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
  49. data/generated/google/apis/cloudkms_v1/service.rb +228 -228
  50. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
  59. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  60. data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
  61. data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
  62. data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
  63. data/generated/google/apis/compute_beta.rb +1 -1
  64. data/generated/google/apis/compute_beta/classes.rb +116 -0
  65. data/generated/google/apis/compute_beta/representations.rb +48 -0
  66. data/generated/google/apis/compute_beta/service.rb +46 -1
  67. data/generated/google/apis/compute_v1.rb +1 -1
  68. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
  71. data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
  74. data/generated/google/apis/dataproc_v1/representations.rb +255 -253
  75. data/generated/google/apis/dataproc_v1/service.rb +100 -100
  76. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  77. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/dns_v2beta1.rb +1 -1
  80. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2/classes.rb +3 -1
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +3 -1
  85. data/generated/google/apis/fusiontables_v2.rb +1 -1
  86. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  87. data/generated/google/apis/games_management_v1management.rb +1 -1
  88. data/generated/google/apis/games_v1.rb +1 -1
  89. data/generated/google/apis/genomics_v1.rb +7 -7
  90. data/generated/google/apis/genomics_v1/classes.rb +959 -959
  91. data/generated/google/apis/genomics_v1/representations.rb +238 -238
  92. data/generated/google/apis/genomics_v1/service.rb +996 -996
  93. data/generated/google/apis/iam_v1.rb +1 -1
  94. data/generated/google/apis/iam_v1/classes.rb +440 -440
  95. data/generated/google/apis/iam_v1/representations.rb +94 -94
  96. data/generated/google/apis/iam_v1/service.rb +170 -173
  97. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  98. data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
  99. data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
  100. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  101. data/generated/google/apis/language_v1beta1.rb +1 -1
  102. data/generated/google/apis/language_v1beta1/classes.rb +427 -427
  103. data/generated/google/apis/language_v1beta1/representations.rb +113 -113
  104. data/generated/google/apis/language_v1beta1/service.rb +25 -24
  105. data/generated/google/apis/licensing_v1.rb +2 -2
  106. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  107. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  108. data/generated/google/apis/licensing_v1/service.rb +1 -1
  109. data/generated/google/apis/logging_v2beta1.rb +1 -1
  110. data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
  111. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  112. data/generated/google/apis/logging_v2beta1/service.rb +261 -261
  113. data/generated/google/apis/manufacturers_v1.rb +1 -1
  114. data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
  115. data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
  116. data/generated/google/apis/manufacturers_v1/service.rb +11 -11
  117. data/generated/google/apis/mirror_v1.rb +1 -1
  118. data/generated/google/apis/monitoring_v3.rb +7 -7
  119. data/generated/google/apis/monitoring_v3/classes.rb +668 -670
  120. data/generated/google/apis/monitoring_v3/representations.rb +140 -140
  121. data/generated/google/apis/monitoring_v3/service.rb +208 -208
  122. data/generated/google/apis/partners_v2.rb +1 -1
  123. data/generated/google/apis/partners_v2/classes.rb +505 -505
  124. data/generated/google/apis/partners_v2/representations.rb +118 -118
  125. data/generated/google/apis/partners_v2/service.rb +275 -275
  126. data/generated/google/apis/people_v1.rb +1 -1
  127. data/generated/google/apis/people_v1/classes.rb +1037 -1031
  128. data/generated/google/apis/people_v1/representations.rb +247 -246
  129. data/generated/google/apis/people_v1/service.rb +20 -20
  130. data/generated/google/apis/plus_domains_v1.rb +1 -1
  131. data/generated/google/apis/plus_v1.rb +1 -1
  132. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  133. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
  134. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
  135. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
  136. data/generated/google/apis/pubsub_v1.rb +4 -4
  137. data/generated/google/apis/pubsub_v1/classes.rb +131 -132
  138. data/generated/google/apis/pubsub_v1/representations.rb +35 -35
  139. data/generated/google/apis/pubsub_v1/service.rb +399 -408
  140. data/generated/google/apis/reseller_v1.rb +1 -1
  141. data/generated/google/apis/reseller_v1/classes.rb +9 -0
  142. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  143. data/generated/google/apis/script_v1.rb +9 -9
  144. data/generated/google/apis/script_v1/classes.rb +110 -110
  145. data/generated/google/apis/script_v1/representations.rb +26 -26
  146. data/generated/google/apis/sheets_v4.rb +4 -4
  147. data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
  148. data/generated/google/apis/sheets_v4/representations.rb +856 -856
  149. data/generated/google/apis/sheets_v4/service.rb +106 -106
  150. data/generated/google/apis/slides_v1.rb +4 -4
  151. data/generated/google/apis/slides_v1/classes.rb +2923 -2841
  152. data/generated/google/apis/slides_v1/representations.rb +722 -691
  153. data/generated/google/apis/slides_v1/service.rb +58 -15
  154. data/generated/google/apis/speech_v1beta1.rb +1 -1
  155. data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
  156. data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
  157. data/generated/google/apis/speech_v1beta1/service.rb +70 -70
  158. data/generated/google/apis/storage_v1.rb +1 -1
  159. data/generated/google/apis/storage_v1/classes.rb +151 -0
  160. data/generated/google/apis/storage_v1/representations.rb +45 -0
  161. data/generated/google/apis/storage_v1/service.rb +248 -0
  162. data/generated/google/apis/vision_v1.rb +1 -1
  163. data/generated/google/apis/vision_v1/classes.rb +1227 -1221
  164. data/generated/google/apis/vision_v1/representations.rb +217 -215
  165. data/generated/google/apis/webmasters_v3.rb +1 -1
  166. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  167. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  168. data/generated/google/apis/youtube_partner_v1/classes.rb +78 -0
  169. data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
  170. data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
  171. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  172. data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
  173. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  174. data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
  175. data/lib/google/apis/version.rb +1 -1
  176. metadata +2 -2
@@ -150,7 +150,8 @@ module Google
150
150
  execute_or_queue_command(command, &block)
151
151
  end
152
152
 
153
- # Deletes a cluster in a project.
153
+ # Gets cluster diagnostic information. After the operation completes, the
154
+ # Operation.response field contains DiagnoseClusterOutputLocation.
154
155
  # @param [String] project_id
155
156
  # Required The ID of the Google Cloud Platform project that the cluster belongs
156
157
  # to.
@@ -158,6 +159,7 @@ module Google
158
159
  # Required The Cloud Dataproc region in which to handle the request.
159
160
  # @param [String] cluster_name
160
161
  # Required The cluster name.
162
+ # @param [Google::Apis::DataprocV1::DiagnoseClusterRequest] diagnose_cluster_request_object
161
163
  # @param [String] fields
162
164
  # Selector specifying which fields to include in a partial response.
163
165
  # @param [String] quota_user
@@ -175,8 +177,10 @@ module Google
175
177
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
176
178
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
177
179
  # @raise [Google::Apis::AuthorizationError] Authorization is required
178
- def delete_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
179
- command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
180
+ def diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
181
+ command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose', options)
182
+ command.request_representation = Google::Apis::DataprocV1::DiagnoseClusterRequest::Representation
183
+ command.request_object = diagnose_cluster_request_object
180
184
  command.response_representation = Google::Apis::DataprocV1::Operation::Representation
181
185
  command.response_class = Google::Apis::DataprocV1::Operation
182
186
  command.params['projectId'] = project_id unless project_id.nil?
@@ -187,8 +191,7 @@ module Google
187
191
  execute_or_queue_command(command, &block)
188
192
  end
189
193
 
190
- # Gets cluster diagnostic information. After the operation completes, the
191
- # Operation.response field contains DiagnoseClusterOutputLocation.
194
+ # Deletes a cluster in a project.
192
195
  # @param [String] project_id
193
196
  # Required The ID of the Google Cloud Platform project that the cluster belongs
194
197
  # to.
@@ -196,7 +199,6 @@ module Google
196
199
  # Required The Cloud Dataproc region in which to handle the request.
197
200
  # @param [String] cluster_name
198
201
  # Required The cluster name.
199
- # @param [Google::Apis::DataprocV1::DiagnoseClusterRequest] diagnose_cluster_request_object
200
202
  # @param [String] fields
201
203
  # Selector specifying which fields to include in a partial response.
202
204
  # @param [String] quota_user
@@ -214,10 +216,8 @@ module Google
214
216
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
215
217
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
216
218
  # @raise [Google::Apis::AuthorizationError] Authorization is required
217
- def diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
218
- command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose', options)
219
- command.request_representation = Google::Apis::DataprocV1::DiagnoseClusterRequest::Representation
220
- command.request_object = diagnose_cluster_request_object
219
+ def delete_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
220
+ command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
221
221
  command.response_representation = Google::Apis::DataprocV1::Operation::Representation
222
222
  command.response_class = Google::Apis::DataprocV1::Operation
223
223
  command.params['projectId'] = project_id unless project_id.nil?
@@ -234,8 +234,6 @@ module Google
234
234
  # to.
235
235
  # @param [String] region
236
236
  # Required The Cloud Dataproc region in which to handle the request.
237
- # @param [String] page_token
238
- # Optional The standard List page token.
239
237
  # @param [Fixnum] page_size
240
238
  # Optional The standard List page size.
241
239
  # @param [String] filter
@@ -250,6 +248,8 @@ module Google
250
248
  # separated items are treated as having an implicit AND operator.Example filter:
251
249
  # status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND
252
250
  # labels.starred = *
251
+ # @param [String] page_token
252
+ # Optional The standard List page token.
253
253
  # @param [String] fields
254
254
  # Selector specifying which fields to include in a partial response.
255
255
  # @param [String] quota_user
@@ -267,15 +267,15 @@ module Google
267
267
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
268
268
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
269
269
  # @raise [Google::Apis::AuthorizationError] Authorization is required
270
- def list_clusters(project_id, region, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
270
+ def list_clusters(project_id, region, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
271
271
  command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters', options)
272
272
  command.response_representation = Google::Apis::DataprocV1::ListClustersResponse::Representation
273
273
  command.response_class = Google::Apis::DataprocV1::ListClustersResponse
274
274
  command.params['projectId'] = project_id unless project_id.nil?
275
275
  command.params['region'] = region unless region.nil?
276
- command.query['pageToken'] = page_token unless page_token.nil?
277
276
  command.query['pageSize'] = page_size unless page_size.nil?
278
277
  command.query['filter'] = filter unless filter.nil?
278
+ command.query['pageToken'] = page_token unless page_token.nil?
279
279
  command.query['fields'] = fields unless fields.nil?
280
280
  command.query['quotaUser'] = quota_user unless quota_user.nil?
281
281
  execute_or_queue_command(command, &block)
@@ -394,12 +394,12 @@ module Google
394
394
  # name schemes, such as users/*/operations.
395
395
  # @param [String] name
396
396
  # The name of the operation collection.
397
+ # @param [Fixnum] page_size
398
+ # The standard list page size.
397
399
  # @param [String] filter
398
400
  # The standard list filter.
399
401
  # @param [String] page_token
400
402
  # The standard list page token.
401
- # @param [Fixnum] page_size
402
- # The standard list page size.
403
403
  # @param [String] fields
404
404
  # Selector specifying which fields to include in a partial response.
405
405
  # @param [String] quota_user
@@ -417,14 +417,14 @@ module Google
417
417
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
418
418
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
419
419
  # @raise [Google::Apis::AuthorizationError] Authorization is required
420
- def list_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
420
+ def list_operations(name, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
421
421
  command = make_simple_command(:get, 'v1/{+name}', options)
422
422
  command.response_representation = Google::Apis::DataprocV1::ListOperationsResponse::Representation
423
423
  command.response_class = Google::Apis::DataprocV1::ListOperationsResponse
424
424
  command.params['name'] = name unless name.nil?
425
+ command.query['pageSize'] = page_size unless page_size.nil?
425
426
  command.query['filter'] = filter unless filter.nil?
426
427
  command.query['pageToken'] = page_token unless page_token.nil?
427
- command.query['pageSize'] = page_size unless page_size.nil?
428
428
  command.query['fields'] = fields unless fields.nil?
429
429
  command.query['quotaUser'] = quota_user unless quota_user.nil?
430
430
  execute_or_queue_command(command, &block)
@@ -461,12 +461,15 @@ module Google
461
461
  execute_or_queue_command(command, &block)
462
462
  end
463
463
 
464
- # Submits a job to a cluster.
464
+ # Starts a job cancellation request. To access the job resource after
465
+ # cancellation, call regions/`region`/jobs.list or regions/`region`/jobs.get.
465
466
  # @param [String] project_id
466
467
  # Required The ID of the Google Cloud Platform project that the job belongs to.
467
468
  # @param [String] region
468
469
  # Required The Cloud Dataproc region in which to handle the request.
469
- # @param [Google::Apis::DataprocV1::SubmitJobRequest] submit_job_request_object
470
+ # @param [String] job_id
471
+ # Required The job ID.
472
+ # @param [Google::Apis::DataprocV1::CancelJobRequest] cancel_job_request_object
470
473
  # @param [String] fields
471
474
  # Selector specifying which fields to include in a partial response.
472
475
  # @param [String] quota_user
@@ -484,27 +487,34 @@ module Google
484
487
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
485
488
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
486
489
  # @raise [Google::Apis::AuthorizationError] Authorization is required
487
- def submit_job(project_id, region, submit_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
488
- command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs:submit', options)
489
- command.request_representation = Google::Apis::DataprocV1::SubmitJobRequest::Representation
490
- command.request_object = submit_job_request_object
490
+ def cancel_job(project_id, region, job_id, cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
491
+ command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel', options)
492
+ command.request_representation = Google::Apis::DataprocV1::CancelJobRequest::Representation
493
+ command.request_object = cancel_job_request_object
491
494
  command.response_representation = Google::Apis::DataprocV1::Job::Representation
492
495
  command.response_class = Google::Apis::DataprocV1::Job
493
496
  command.params['projectId'] = project_id unless project_id.nil?
494
497
  command.params['region'] = region unless region.nil?
498
+ command.params['jobId'] = job_id unless job_id.nil?
495
499
  command.query['fields'] = fields unless fields.nil?
496
500
  command.query['quotaUser'] = quota_user unless quota_user.nil?
497
501
  execute_or_queue_command(command, &block)
498
502
  end
499
503
 
500
- # Deletes the job from the project. If the job is active, the delete fails, and
501
- # the response returns FAILED_PRECONDITION.
504
+ # Updates a job in a project.
502
505
  # @param [String] project_id
503
506
  # Required The ID of the Google Cloud Platform project that the job belongs to.
504
507
  # @param [String] region
505
508
  # Required The Cloud Dataproc region in which to handle the request.
506
509
  # @param [String] job_id
507
510
  # Required The job ID.
511
+ # @param [Google::Apis::DataprocV1::Job] job_object
512
+ # @param [String] update_mask
513
+ # Required Specifies the path, relative to <code>Job</code>, of the field to
514
+ # update. For example, to update the labels of a Job the <code>update_mask</code>
515
+ # parameter would be specified as <code>labels</code>, and the PATCH request
516
+ # body would specify the new value. <strong>Note:</strong> Currently, <code>
517
+ # labels</code> is the only field that can be updated.
508
518
  # @param [String] fields
509
519
  # Selector specifying which fields to include in a partial response.
510
520
  # @param [String] quota_user
@@ -514,50 +524,36 @@ module Google
514
524
  # Request-specific options
515
525
  #
516
526
  # @yield [result, err] Result & error if block supplied
517
- # @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
527
+ # @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
518
528
  # @yieldparam err [StandardError] error object if request failed
519
529
  #
520
- # @return [Google::Apis::DataprocV1::Empty]
530
+ # @return [Google::Apis::DataprocV1::Job]
521
531
  #
522
532
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
523
533
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
524
534
  # @raise [Google::Apis::AuthorizationError] Authorization is required
525
- def delete_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
526
- command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
527
- command.response_representation = Google::Apis::DataprocV1::Empty::Representation
528
- command.response_class = Google::Apis::DataprocV1::Empty
535
+ def patch_project_region_job(project_id, region, job_id, job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
536
+ command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
537
+ command.request_representation = Google::Apis::DataprocV1::Job::Representation
538
+ command.request_object = job_object
539
+ command.response_representation = Google::Apis::DataprocV1::Job::Representation
540
+ command.response_class = Google::Apis::DataprocV1::Job
529
541
  command.params['projectId'] = project_id unless project_id.nil?
530
542
  command.params['region'] = region unless region.nil?
531
543
  command.params['jobId'] = job_id unless job_id.nil?
544
+ command.query['updateMask'] = update_mask unless update_mask.nil?
532
545
  command.query['fields'] = fields unless fields.nil?
533
546
  command.query['quotaUser'] = quota_user unless quota_user.nil?
534
547
  execute_or_queue_command(command, &block)
535
548
  end
536
549
 
537
- # Lists regions/`region`/jobs in a project.
550
+ # Gets the resource representation for a job in a project.
538
551
  # @param [String] project_id
539
552
  # Required The ID of the Google Cloud Platform project that the job belongs to.
540
553
  # @param [String] region
541
554
  # Required The Cloud Dataproc region in which to handle the request.
542
- # @param [String] cluster_name
543
- # Optional If set, the returned jobs list includes only jobs that were submitted
544
- # to the named cluster.
545
- # @param [String] filter
546
- # Optional A filter constraining the jobs to list. Filters are case-sensitive
547
- # and have the following syntax:field = value AND field = value ...where field
548
- # is status.state or labels.[KEY], and [KEY] is a label key. value can be * to
549
- # match all values. status.state can be either ACTIVE or INACTIVE. Only the
550
- # logical AND operator is supported; space-separated items are treated as having
551
- # an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env =
552
- # staging AND labels.starred = *
553
- # @param [String] job_state_matcher
554
- # Optional Specifies enumerated categories of jobs to list (default = match ALL
555
- # jobs).
556
- # @param [String] page_token
557
- # Optional The page token, returned by a previous call, to request the next page
558
- # of results.
559
- # @param [Fixnum] page_size
560
- # Optional The number of results to return in each response.
555
+ # @param [String] job_id
556
+ # Required The job ID.
561
557
  # @param [String] fields
562
558
  # Selector specifying which fields to include in a partial response.
563
559
  # @param [String] quota_user
@@ -567,39 +563,32 @@ module Google
567
563
  # Request-specific options
568
564
  #
569
565
  # @yield [result, err] Result & error if block supplied
570
- # @yieldparam result [Google::Apis::DataprocV1::ListJobsResponse] parsed result object
566
+ # @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
571
567
  # @yieldparam err [StandardError] error object if request failed
572
568
  #
573
- # @return [Google::Apis::DataprocV1::ListJobsResponse]
569
+ # @return [Google::Apis::DataprocV1::Job]
574
570
  #
575
571
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
576
572
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
577
573
  # @raise [Google::Apis::AuthorizationError] Authorization is required
578
- def list_jobs(project_id, region, cluster_name: nil, filter: nil, job_state_matcher: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
579
- command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs', options)
580
- command.response_representation = Google::Apis::DataprocV1::ListJobsResponse::Representation
581
- command.response_class = Google::Apis::DataprocV1::ListJobsResponse
574
+ def get_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
575
+ command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
576
+ command.response_representation = Google::Apis::DataprocV1::Job::Representation
577
+ command.response_class = Google::Apis::DataprocV1::Job
582
578
  command.params['projectId'] = project_id unless project_id.nil?
583
579
  command.params['region'] = region unless region.nil?
584
- command.query['clusterName'] = cluster_name unless cluster_name.nil?
585
- command.query['filter'] = filter unless filter.nil?
586
- command.query['jobStateMatcher'] = job_state_matcher unless job_state_matcher.nil?
587
- command.query['pageToken'] = page_token unless page_token.nil?
588
- command.query['pageSize'] = page_size unless page_size.nil?
580
+ command.params['jobId'] = job_id unless job_id.nil?
589
581
  command.query['fields'] = fields unless fields.nil?
590
582
  command.query['quotaUser'] = quota_user unless quota_user.nil?
591
583
  execute_or_queue_command(command, &block)
592
584
  end
593
585
 
594
- # Starts a job cancellation request. To access the job resource after
595
- # cancellation, call regions/`region`/jobs.list or regions/`region`/jobs.get.
586
+ # Submits a job to a cluster.
596
587
  # @param [String] project_id
597
588
  # Required The ID of the Google Cloud Platform project that the job belongs to.
598
589
  # @param [String] region
599
590
  # Required The Cloud Dataproc region in which to handle the request.
600
- # @param [String] job_id
601
- # Required The job ID.
602
- # @param [Google::Apis::DataprocV1::CancelJobRequest] cancel_job_request_object
591
+ # @param [Google::Apis::DataprocV1::SubmitJobRequest] submit_job_request_object
603
592
  # @param [String] fields
604
593
  # Selector specifying which fields to include in a partial response.
605
594
  # @param [String] quota_user
@@ -617,34 +606,27 @@ module Google
617
606
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
618
607
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
619
608
  # @raise [Google::Apis::AuthorizationError] Authorization is required
620
- def cancel_job(project_id, region, job_id, cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
621
- command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel', options)
622
- command.request_representation = Google::Apis::DataprocV1::CancelJobRequest::Representation
623
- command.request_object = cancel_job_request_object
609
+ def submit_job(project_id, region, submit_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
610
+ command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs:submit', options)
611
+ command.request_representation = Google::Apis::DataprocV1::SubmitJobRequest::Representation
612
+ command.request_object = submit_job_request_object
624
613
  command.response_representation = Google::Apis::DataprocV1::Job::Representation
625
614
  command.response_class = Google::Apis::DataprocV1::Job
626
615
  command.params['projectId'] = project_id unless project_id.nil?
627
616
  command.params['region'] = region unless region.nil?
628
- command.params['jobId'] = job_id unless job_id.nil?
629
617
  command.query['fields'] = fields unless fields.nil?
630
618
  command.query['quotaUser'] = quota_user unless quota_user.nil?
631
619
  execute_or_queue_command(command, &block)
632
620
  end
633
621
 
634
- # Updates a job in a project.
622
+ # Deletes the job from the project. If the job is active, the delete fails, and
623
+ # the response returns FAILED_PRECONDITION.
635
624
  # @param [String] project_id
636
625
  # Required The ID of the Google Cloud Platform project that the job belongs to.
637
626
  # @param [String] region
638
627
  # Required The Cloud Dataproc region in which to handle the request.
639
628
  # @param [String] job_id
640
629
  # Required The job ID.
641
- # @param [Google::Apis::DataprocV1::Job] job_object
642
- # @param [String] update_mask
643
- # Required Specifies the path, relative to <code>Job</code>, of the field to
644
- # update. For example, to update the labels of a Job the <code>update_mask</code>
645
- # parameter would be specified as <code>labels</code>, and the PATCH request
646
- # body would specify the new value. <strong>Note:</strong> Currently, <code>
647
- # labels</code> is the only field that can be updated.
648
630
  # @param [String] fields
649
631
  # Selector specifying which fields to include in a partial response.
650
632
  # @param [String] quota_user
@@ -654,36 +636,50 @@ module Google
654
636
  # Request-specific options
655
637
  #
656
638
  # @yield [result, err] Result & error if block supplied
657
- # @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
639
+ # @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
658
640
  # @yieldparam err [StandardError] error object if request failed
659
641
  #
660
- # @return [Google::Apis::DataprocV1::Job]
642
+ # @return [Google::Apis::DataprocV1::Empty]
661
643
  #
662
644
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
663
645
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
664
646
  # @raise [Google::Apis::AuthorizationError] Authorization is required
665
- def patch_project_region_job(project_id, region, job_id, job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
666
- command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
667
- command.request_representation = Google::Apis::DataprocV1::Job::Representation
668
- command.request_object = job_object
669
- command.response_representation = Google::Apis::DataprocV1::Job::Representation
670
- command.response_class = Google::Apis::DataprocV1::Job
647
+ def delete_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
648
+ command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
649
+ command.response_representation = Google::Apis::DataprocV1::Empty::Representation
650
+ command.response_class = Google::Apis::DataprocV1::Empty
671
651
  command.params['projectId'] = project_id unless project_id.nil?
672
652
  command.params['region'] = region unless region.nil?
673
653
  command.params['jobId'] = job_id unless job_id.nil?
674
- command.query['updateMask'] = update_mask unless update_mask.nil?
675
654
  command.query['fields'] = fields unless fields.nil?
676
655
  command.query['quotaUser'] = quota_user unless quota_user.nil?
677
656
  execute_or_queue_command(command, &block)
678
657
  end
679
658
 
680
- # Gets the resource representation for a job in a project.
659
+ # Lists regions/`region`/jobs in a project.
681
660
  # @param [String] project_id
682
661
  # Required The ID of the Google Cloud Platform project that the job belongs to.
683
662
  # @param [String] region
684
663
  # Required The Cloud Dataproc region in which to handle the request.
685
- # @param [String] job_id
686
- # Required The job ID.
664
+ # @param [String] filter
665
+ # Optional A filter constraining the jobs to list. Filters are case-sensitive
666
+ # and have the following syntax:field = value AND field = value ...where field
667
+ # is status.state or labels.[KEY], and [KEY] is a label key. value can be * to
668
+ # match all values. status.state can be either ACTIVE or INACTIVE. Only the
669
+ # logical AND operator is supported; space-separated items are treated as having
670
+ # an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env =
671
+ # staging AND labels.starred = *
672
+ # @param [String] job_state_matcher
673
+ # Optional Specifies enumerated categories of jobs to list (default = match ALL
674
+ # jobs).
675
+ # @param [String] page_token
676
+ # Optional The page token, returned by a previous call, to request the next page
677
+ # of results.
678
+ # @param [Fixnum] page_size
679
+ # Optional The number of results to return in each response.
680
+ # @param [String] cluster_name
681
+ # Optional If set, the returned jobs list includes only jobs that were submitted
682
+ # to the named cluster.
687
683
  # @param [String] fields
688
684
  # Selector specifying which fields to include in a partial response.
689
685
  # @param [String] quota_user
@@ -693,21 +689,25 @@ module Google
693
689
  # Request-specific options
694
690
  #
695
691
  # @yield [result, err] Result & error if block supplied
696
- # @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
692
+ # @yieldparam result [Google::Apis::DataprocV1::ListJobsResponse] parsed result object
697
693
  # @yieldparam err [StandardError] error object if request failed
698
694
  #
699
- # @return [Google::Apis::DataprocV1::Job]
695
+ # @return [Google::Apis::DataprocV1::ListJobsResponse]
700
696
  #
701
697
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
702
698
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
703
699
  # @raise [Google::Apis::AuthorizationError] Authorization is required
704
- def get_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
705
- command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
706
- command.response_representation = Google::Apis::DataprocV1::Job::Representation
707
- command.response_class = Google::Apis::DataprocV1::Job
700
+ def list_jobs(project_id, region, filter: nil, job_state_matcher: nil, page_token: nil, page_size: nil, cluster_name: nil, fields: nil, quota_user: nil, options: nil, &block)
701
+ command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs', options)
702
+ command.response_representation = Google::Apis::DataprocV1::ListJobsResponse::Representation
703
+ command.response_class = Google::Apis::DataprocV1::ListJobsResponse
708
704
  command.params['projectId'] = project_id unless project_id.nil?
709
705
  command.params['region'] = region unless region.nil?
710
- command.params['jobId'] = job_id unless job_id.nil?
706
+ command.query['filter'] = filter unless filter.nil?
707
+ command.query['jobStateMatcher'] = job_state_matcher unless job_state_matcher.nil?
708
+ command.query['pageToken'] = page_token unless page_token.nil?
709
+ command.query['pageSize'] = page_size unless page_size.nil?
710
+ command.query['clusterName'] = cluster_name unless cluster_name.nil?
711
711
  command.query['fields'] = fields unless fields.nil?
712
712
  command.query['quotaUser'] = quota_user unless quota_user.nil?
713
713
  execute_or_queue_command(command, &block)
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/deployment-manager/
26
26
  module DeploymentmanagerV2
27
27
  VERSION = 'V2'
28
- REVISION = '20170302'
28
+ REVISION = '20170315'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,9 +22,9 @@ module Google
22
22
  module Apis
23
23
  module DeploymentmanagerV2
24
24
 
25
- # Specifies the audit configuration for a service. It consists of which
26
- # permission types are logged, and what identities, if any, are exempted from
27
- # logging. An AuditConifg must have one or more AuditLogConfigs.
25
+ # Specifies the audit configuration for a service. The configuration determines
26
+ # which permission types are logged, and what identities, if any, are exempted
27
+ # from logging. An AuditConifg must have one or more AuditLogConfigs.
28
28
  # If there are AuditConfigs for both `allServices` and a specific service, the
29
29
  # union of the two AuditConfigs is used for that service: the log_types
30
30
  # specified in each AuditConfig are enabled, and the exempted_members in each
@@ -51,8 +51,8 @@ module Google
51
51
  attr_accessor :exempted_members
52
52
 
53
53
  # Specifies a service that will be enabled for audit logging. For example, `
54
- # resourcemanager`, `storage`, `compute`. `allServices` is a special value that
55
- # covers all services.
54
+ # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
55
+ # value that covers all services.
56
56
  # Corresponds to the JSON property `service`
57
57
  # @return [String]
58
58
  attr_accessor :service