google-api-client 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
  13. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  14. data/generated/google/apis/admin_directory_v1/service.rb +4 -1
  15. data/generated/google/apis/admin_reports_v1.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
  21. data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
  22. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +4 -4
  24. data/generated/google/apis/appengine_v1/classes.rb +747 -747
  25. data/generated/google/apis/appengine_v1/representations.rb +158 -158
  26. data/generated/google/apis/appengine_v1/service.rb +214 -214
  27. data/generated/google/apis/appsactivity_v1.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  31. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/classroom_v1.rb +7 -7
  34. data/generated/google/apis/classroom_v1/classes.rb +517 -515
  35. data/generated/google/apis/classroom_v1/representations.rb +147 -147
  36. data/generated/google/apis/classroom_v1/service.rb +1144 -1143
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
  40. data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
  41. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  42. data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
  43. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  44. data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
  45. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  46. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
  47. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
  48. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
  49. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  50. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  51. data/generated/google/apis/cloudkms_v1.rb +1 -1
  52. data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
  53. data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
  54. data/generated/google/apis/cloudkms_v1/service.rb +276 -276
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
  63. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  66. data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +82 -6
  69. data/generated/google/apis/compute_beta/representations.rb +4 -0
  70. data/generated/google/apis/compute_beta/service.rb +1177 -834
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +371 -1
  73. data/generated/google/apis/compute_v1/representations.rb +139 -0
  74. data/generated/google/apis/compute_v1/service.rb +257 -9
  75. data/generated/google/apis/container_v1.rb +1 -1
  76. data/generated/google/apis/container_v1/classes.rb +1122 -826
  77. data/generated/google/apis/container_v1/representations.rb +279 -135
  78. data/generated/google/apis/container_v1/service.rb +440 -98
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +3 -1
  81. data/generated/google/apis/customsearch_v1.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  83. data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
  84. data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
  85. data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
  86. data/generated/google/apis/dataproc_v1.rb +1 -1
  87. data/generated/google/apis/dataproc_v1/classes.rb +450 -431
  88. data/generated/google/apis/dataproc_v1/representations.rb +92 -92
  89. data/generated/google/apis/dataproc_v1/service.rb +200 -200
  90. data/generated/google/apis/datastore_v1.rb +4 -4
  91. data/generated/google/apis/datastore_v1/classes.rb +397 -397
  92. data/generated/google/apis/datastore_v1/representations.rb +100 -100
  93. data/generated/google/apis/datastore_v1/service.rb +62 -62
  94. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  95. data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
  96. data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
  97. data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v2beta1.rb +1 -1
  100. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  101. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
  102. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  103. data/generated/google/apis/drive_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2/service.rb +1 -1
  105. data/generated/google/apis/drive_v3.rb +1 -1
  106. data/generated/google/apis/drive_v3/service.rb +1 -1
  107. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  108. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
  109. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
  110. data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
  111. data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
  112. data/generated/google/apis/firebaserules_v1/service.rb +151 -151
  113. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  114. data/generated/google/apis/games_management_v1management.rb +1 -1
  115. data/generated/google/apis/games_v1.rb +1 -1
  116. data/generated/google/apis/genomics_v1.rb +9 -9
  117. data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
  118. data/generated/google/apis/genomics_v1/representations.rb +306 -306
  119. data/generated/google/apis/genomics_v1/service.rb +1172 -1172
  120. data/generated/google/apis/gmail_v1.rb +1 -1
  121. data/generated/google/apis/iam_v1.rb +1 -1
  122. data/generated/google/apis/iam_v1/classes.rb +243 -243
  123. data/generated/google/apis/iam_v1/representations.rb +79 -79
  124. data/generated/google/apis/iam_v1/service.rb +137 -137
  125. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  126. data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
  127. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  128. data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
  129. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  130. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  131. data/generated/google/apis/language_v1.rb +1 -1
  132. data/generated/google/apis/language_v1/classes.rb +451 -451
  133. data/generated/google/apis/language_v1/representations.rb +103 -103
  134. data/generated/google/apis/language_v1/service.rb +49 -49
  135. data/generated/google/apis/language_v1beta1.rb +1 -1
  136. data/generated/google/apis/language_v1beta1/classes.rb +459 -459
  137. data/generated/google/apis/language_v1beta1/representations.rb +110 -110
  138. data/generated/google/apis/language_v1beta1/service.rb +43 -43
  139. data/generated/google/apis/logging_v2.rb +8 -8
  140. data/generated/google/apis/logging_v2/classes.rb +915 -915
  141. data/generated/google/apis/logging_v2/representations.rb +142 -142
  142. data/generated/google/apis/logging_v2/service.rb +415 -415
  143. data/generated/google/apis/logging_v2beta1.rb +8 -8
  144. data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
  145. data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
  146. data/generated/google/apis/logging_v2beta1/service.rb +221 -221
  147. data/generated/google/apis/manufacturers_v1.rb +1 -1
  148. data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
  149. data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
  150. data/generated/google/apis/manufacturers_v1/service.rb +101 -4
  151. data/generated/google/apis/ml_v1.rb +1 -1
  152. data/generated/google/apis/ml_v1/classes.rb +709 -673
  153. data/generated/google/apis/ml_v1/representations.rb +154 -151
  154. data/generated/google/apis/ml_v1/service.rb +341 -354
  155. data/generated/google/apis/monitoring_v3.rb +6 -6
  156. data/generated/google/apis/monitoring_v3/classes.rb +869 -869
  157. data/generated/google/apis/monitoring_v3/representations.rb +171 -171
  158. data/generated/google/apis/monitoring_v3/service.rb +340 -340
  159. data/generated/google/apis/partners_v2.rb +1 -1
  160. data/generated/google/apis/partners_v2/classes.rb +1569 -1569
  161. data/generated/google/apis/partners_v2/representations.rb +256 -256
  162. data/generated/google/apis/partners_v2/service.rb +530 -530
  163. data/generated/google/apis/people_v1.rb +7 -7
  164. data/generated/google/apis/people_v1/classes.rb +1287 -946
  165. data/generated/google/apis/people_v1/representations.rb +355 -203
  166. data/generated/google/apis/people_v1/service.rb +409 -32
  167. data/generated/google/apis/plus_domains_v1.rb +1 -1
  168. data/generated/google/apis/plus_v1.rb +1 -1
  169. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  170. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
  171. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
  172. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
  173. data/generated/google/apis/pubsub_v1.rb +4 -4
  174. data/generated/google/apis/pubsub_v1/classes.rb +286 -287
  175. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  176. data/generated/google/apis/pubsub_v1/service.rb +178 -178
  177. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  178. data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
  179. data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
  180. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  181. data/generated/google/apis/script_v1.rb +4 -4
  182. data/generated/google/apis/script_v1/classes.rb +172 -172
  183. data/generated/google/apis/script_v1/representations.rb +41 -41
  184. data/generated/google/apis/script_v1/service.rb +6 -6
  185. data/generated/google/apis/searchconsole_v1.rb +1 -1
  186. data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
  187. data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
  188. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
  191. data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
  192. data/generated/google/apis/servicemanagement_v1.rb +6 -6
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
  194. data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
  195. data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
  196. data/generated/google/apis/serviceuser_v1.rb +1 -1
  197. data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
  198. data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
  199. data/generated/google/apis/serviceuser_v1/service.rb +59 -59
  200. data/generated/google/apis/sheets_v4.rb +5 -5
  201. data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
  202. data/generated/google/apis/sheets_v4/representations.rb +957 -940
  203. data/generated/google/apis/sheets_v4/service.rb +175 -175
  204. data/generated/google/apis/slides_v1.rb +1 -1
  205. data/generated/google/apis/slides_v1/classes.rb +2932 -2905
  206. data/generated/google/apis/slides_v1/representations.rb +709 -694
  207. data/generated/google/apis/slides_v1/service.rb +50 -50
  208. data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
  209. data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
  210. data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
  211. data/generated/google/apis/spanner_v1.rb +7 -1
  212. data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
  213. data/generated/google/apis/spanner_v1/representations.rb +342 -323
  214. data/generated/google/apis/spanner_v1/service.rb +502 -492
  215. data/generated/google/apis/speech_v1beta1.rb +1 -1
  216. data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
  217. data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
  218. data/generated/google/apis/speech_v1beta1/service.rb +91 -91
  219. data/generated/google/apis/storage_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  221. data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
  222. data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
  223. data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
  224. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  225. data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
  226. data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
  227. data/generated/google/apis/translate_v2/classes.rb +107 -107
  228. data/generated/google/apis/translate_v2/representations.rb +49 -49
  229. data/generated/google/apis/translate_v2/service.rb +81 -81
  230. data/generated/google/apis/vision_v1.rb +4 -1
  231. data/generated/google/apis/vision_v1/classes.rb +527 -527
  232. data/generated/google/apis/vision_v1/representations.rb +115 -115
  233. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  234. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  235. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  236. data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
  237. data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
  238. data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
  239. data/lib/google/apis/version.rb +1 -1
  240. data/samples/cli/lib/samples/analytics.rb +2 -2
  241. metadata +2 -2
@@ -32,16 +32,16 @@ module Google
32
32
  #
33
33
  # @see https://cloud.google.com/dataflow
34
34
  class DataflowService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # Available to use for quota purposes for server-side applications. Can be any
37
- # arbitrary string assigned to a user, but should not exceed 40 characters.
38
- attr_accessor :quota_user
39
-
40
35
  # @return [String]
41
36
  # API key. Your API key identifies your project and provides you with API access,
42
37
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
43
38
  attr_accessor :key
44
39
 
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
45
  def initialize
46
46
  super('https://dataflow.googleapis.com/', '')
47
47
  @batch_path = 'batch'
@@ -51,11 +51,11 @@ module Google
51
51
  # @param [String] project_id
52
52
  # The project to send the WorkerMessages to.
53
53
  # @param [Google::Apis::DataflowV1b3::SendWorkerMessagesRequest] send_worker_messages_request_object
54
+ # @param [String] fields
55
+ # Selector specifying which fields to include in a partial response.
54
56
  # @param [String] quota_user
55
57
  # Available to use for quota purposes for server-side applications. Can be any
56
58
  # arbitrary string assigned to a user, but should not exceed 40 characters.
57
- # @param [String] fields
58
- # Selector specifying which fields to include in a partial response.
59
59
  # @param [Google::Apis::RequestOptions] options
60
60
  # Request-specific options
61
61
  #
@@ -68,134 +68,15 @@ module Google
68
68
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
69
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
70
  # @raise [Google::Apis::AuthorizationError] Authorization is required
71
- def worker_project_messages(project_id, send_worker_messages_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
71
+ def worker_project_messages(project_id, send_worker_messages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
72
72
  command = make_simple_command(:post, 'v1b3/projects/{projectId}/WorkerMessages', options)
73
73
  command.request_representation = Google::Apis::DataflowV1b3::SendWorkerMessagesRequest::Representation
74
74
  command.request_object = send_worker_messages_request_object
75
75
  command.response_representation = Google::Apis::DataflowV1b3::SendWorkerMessagesResponse::Representation
76
76
  command.response_class = Google::Apis::DataflowV1b3::SendWorkerMessagesResponse
77
77
  command.params['projectId'] = project_id unless project_id.nil?
78
- command.query['quotaUser'] = quota_user unless quota_user.nil?
79
- command.query['fields'] = fields unless fields.nil?
80
- execute_or_queue_command(command, &block)
81
- end
82
-
83
- # Get the template associated with a template.
84
- # @param [String] project_id
85
- # Required. The ID of the Cloud Platform project that the job belongs to.
86
- # @param [String] view
87
- # The view to retrieve. Defaults to METADATA_ONLY.
88
- # @param [String] gcs_path
89
- # Required. A Cloud Storage path to the template from which to
90
- # create the job.
91
- # Must be a valid Cloud Storage URL, beginning with `gs://`.
92
- # @param [String] location
93
- # The location to which to direct the request.
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 [String] fields
98
- # Selector specifying which fields to include in a partial response.
99
- # @param [Google::Apis::RequestOptions] options
100
- # Request-specific options
101
- #
102
- # @yield [result, err] Result & error if block supplied
103
- # @yieldparam result [Google::Apis::DataflowV1b3::GetTemplateResponse] parsed result object
104
- # @yieldparam err [StandardError] error object if request failed
105
- #
106
- # @return [Google::Apis::DataflowV1b3::GetTemplateResponse]
107
- #
108
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
109
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
110
- # @raise [Google::Apis::AuthorizationError] Authorization is required
111
- def get_project_template(project_id, view: nil, gcs_path: nil, location: nil, quota_user: nil, fields: nil, options: nil, &block)
112
- command = make_simple_command(:get, 'v1b3/projects/{projectId}/templates:get', options)
113
- command.response_representation = Google::Apis::DataflowV1b3::GetTemplateResponse::Representation
114
- command.response_class = Google::Apis::DataflowV1b3::GetTemplateResponse
115
- command.params['projectId'] = project_id unless project_id.nil?
116
- command.query['view'] = view unless view.nil?
117
- command.query['gcsPath'] = gcs_path unless gcs_path.nil?
118
- command.query['location'] = location unless location.nil?
119
- command.query['quotaUser'] = quota_user unless quota_user.nil?
120
78
  command.query['fields'] = fields unless fields.nil?
121
- execute_or_queue_command(command, &block)
122
- end
123
-
124
- # Creates a Cloud Dataflow job from a template.
125
- # @param [String] project_id
126
- # Required. The ID of the Cloud Platform project that the job belongs to.
127
- # @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
128
- # @param [String] quota_user
129
- # Available to use for quota purposes for server-side applications. Can be any
130
- # arbitrary string assigned to a user, but should not exceed 40 characters.
131
- # @param [String] fields
132
- # Selector specifying which fields to include in a partial response.
133
- # @param [Google::Apis::RequestOptions] options
134
- # Request-specific options
135
- #
136
- # @yield [result, err] Result & error if block supplied
137
- # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
138
- # @yieldparam err [StandardError] error object if request failed
139
- #
140
- # @return [Google::Apis::DataflowV1b3::Job]
141
- #
142
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
143
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
144
- # @raise [Google::Apis::AuthorizationError] Authorization is required
145
- def create_job_from_template(project_id, create_job_from_template_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
146
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates', options)
147
- command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation
148
- command.request_object = create_job_from_template_request_object
149
- command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
150
- command.response_class = Google::Apis::DataflowV1b3::Job
151
- command.params['projectId'] = project_id unless project_id.nil?
152
- command.query['quotaUser'] = quota_user unless quota_user.nil?
153
- command.query['fields'] = fields unless fields.nil?
154
- execute_or_queue_command(command, &block)
155
- end
156
-
157
- # Launch a template.
158
- # @param [String] project_id
159
- # Required. The ID of the Cloud Platform project that the job belongs to.
160
- # @param [Google::Apis::DataflowV1b3::LaunchTemplateParameters] launch_template_parameters_object
161
- # @param [String] location
162
- # The location to which to direct the request.
163
- # @param [Boolean] validate_only
164
- # If true, the request is validated but not actually executed.
165
- # Defaults to false.
166
- # @param [String] gcs_path
167
- # Required. A Cloud Storage path to the template from which to create
168
- # the job.
169
- # Must be valid Cloud Storage URL, beginning with 'gs://'.
170
- # @param [String] quota_user
171
- # Available to use for quota purposes for server-side applications. Can be any
172
- # arbitrary string assigned to a user, but should not exceed 40 characters.
173
- # @param [String] fields
174
- # Selector specifying which fields to include in a partial response.
175
- # @param [Google::Apis::RequestOptions] options
176
- # Request-specific options
177
- #
178
- # @yield [result, err] Result & error if block supplied
179
- # @yieldparam result [Google::Apis::DataflowV1b3::LaunchTemplateResponse] parsed result object
180
- # @yieldparam err [StandardError] error object if request failed
181
- #
182
- # @return [Google::Apis::DataflowV1b3::LaunchTemplateResponse]
183
- #
184
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
185
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
186
- # @raise [Google::Apis::AuthorizationError] Authorization is required
187
- def launch_project_template(project_id, launch_template_parameters_object = nil, location: nil, validate_only: nil, gcs_path: nil, quota_user: nil, fields: nil, options: nil, &block)
188
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates:launch', options)
189
- command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation
190
- command.request_object = launch_template_parameters_object
191
- command.response_representation = Google::Apis::DataflowV1b3::LaunchTemplateResponse::Representation
192
- command.response_class = Google::Apis::DataflowV1b3::LaunchTemplateResponse
193
- command.params['projectId'] = project_id unless project_id.nil?
194
- command.query['location'] = location unless location.nil?
195
- command.query['validateOnly'] = validate_only unless validate_only.nil?
196
- command.query['gcsPath'] = gcs_path unless gcs_path.nil?
197
79
  command.query['quotaUser'] = quota_user unless quota_user.nil?
198
- command.query['fields'] = fields unless fields.nil?
199
80
  execute_or_queue_command(command, &block)
200
81
  end
201
82
 
@@ -205,11 +86,11 @@ module Google
205
86
  # @param [String] location
206
87
  # The location which contains the job
207
88
  # @param [Google::Apis::DataflowV1b3::SendWorkerMessagesRequest] send_worker_messages_request_object
89
+ # @param [String] fields
90
+ # Selector specifying which fields to include in a partial response.
208
91
  # @param [String] quota_user
209
92
  # Available to use for quota purposes for server-side applications. Can be any
210
93
  # arbitrary string assigned to a user, but should not exceed 40 characters.
211
- # @param [String] fields
212
- # Selector specifying which fields to include in a partial response.
213
94
  # @param [Google::Apis::RequestOptions] options
214
95
  # Request-specific options
215
96
  #
@@ -222,7 +103,7 @@ module Google
222
103
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
223
104
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
224
105
  # @raise [Google::Apis::AuthorizationError] Authorization is required
225
- def worker_project_location_messages(project_id, location, send_worker_messages_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
106
+ def worker_project_location_messages(project_id, location, send_worker_messages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
226
107
  command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/WorkerMessages', options)
227
108
  command.request_representation = Google::Apis::DataflowV1b3::SendWorkerMessagesRequest::Representation
228
109
  command.request_object = send_worker_messages_request_object
@@ -230,8 +111,8 @@ module Google
230
111
  command.response_class = Google::Apis::DataflowV1b3::SendWorkerMessagesResponse
231
112
  command.params['projectId'] = project_id unless project_id.nil?
232
113
  command.params['location'] = location unless location.nil?
233
- command.query['quotaUser'] = quota_user unless quota_user.nil?
234
114
  command.query['fields'] = fields unless fields.nil?
115
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
235
116
  execute_or_queue_command(command, &block)
236
117
  end
237
118
 
@@ -248,11 +129,11 @@ module Google
248
129
  # Required. A Cloud Storage path to the template from which to create
249
130
  # the job.
250
131
  # Must be valid Cloud Storage URL, beginning with 'gs://'.
132
+ # @param [String] fields
133
+ # Selector specifying which fields to include in a partial response.
251
134
  # @param [String] quota_user
252
135
  # Available to use for quota purposes for server-side applications. Can be any
253
136
  # arbitrary string assigned to a user, but should not exceed 40 characters.
254
- # @param [String] fields
255
- # Selector specifying which fields to include in a partial response.
256
137
  # @param [Google::Apis::RequestOptions] options
257
138
  # Request-specific options
258
139
  #
@@ -265,7 +146,7 @@ module Google
265
146
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
266
147
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
267
148
  # @raise [Google::Apis::AuthorizationError] Authorization is required
268
- def launch_project_location_template(project_id, location, launch_template_parameters_object = nil, validate_only: nil, gcs_path: nil, quota_user: nil, fields: nil, options: nil, &block)
149
+ def launch_project_location_template(project_id, location, launch_template_parameters_object = nil, validate_only: nil, gcs_path: nil, fields: nil, quota_user: nil, options: nil, &block)
269
150
  command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/templates:launch', options)
270
151
  command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation
271
152
  command.request_object = launch_template_parameters_object
@@ -275,8 +156,8 @@ module Google
275
156
  command.params['location'] = location unless location.nil?
276
157
  command.query['validateOnly'] = validate_only unless validate_only.nil?
277
158
  command.query['gcsPath'] = gcs_path unless gcs_path.nil?
278
- command.query['quotaUser'] = quota_user unless quota_user.nil?
279
159
  command.query['fields'] = fields unless fields.nil?
160
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
280
161
  execute_or_queue_command(command, &block)
281
162
  end
282
163
 
@@ -285,17 +166,17 @@ module Google
285
166
  # Required. The ID of the Cloud Platform project that the job belongs to.
286
167
  # @param [String] location
287
168
  # The location to which to direct the request.
169
+ # @param [String] view
170
+ # The view to retrieve. Defaults to METADATA_ONLY.
288
171
  # @param [String] gcs_path
289
172
  # Required. A Cloud Storage path to the template from which to
290
173
  # create the job.
291
174
  # Must be a valid Cloud Storage URL, beginning with `gs://`.
292
- # @param [String] view
293
- # The view to retrieve. Defaults to METADATA_ONLY.
175
+ # @param [String] fields
176
+ # Selector specifying which fields to include in a partial response.
294
177
  # @param [String] quota_user
295
178
  # Available to use for quota purposes for server-side applications. Can be any
296
179
  # arbitrary string assigned to a user, but should not exceed 40 characters.
297
- # @param [String] fields
298
- # Selector specifying which fields to include in a partial response.
299
180
  # @param [Google::Apis::RequestOptions] options
300
181
  # Request-specific options
301
182
  #
@@ -308,16 +189,16 @@ module Google
308
189
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
309
190
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
310
191
  # @raise [Google::Apis::AuthorizationError] Authorization is required
311
- def get_project_location_template(project_id, location, gcs_path: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
192
+ def get_project_location_template(project_id, location, view: nil, gcs_path: nil, fields: nil, quota_user: nil, options: nil, &block)
312
193
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/templates:get', options)
313
194
  command.response_representation = Google::Apis::DataflowV1b3::GetTemplateResponse::Representation
314
195
  command.response_class = Google::Apis::DataflowV1b3::GetTemplateResponse
315
196
  command.params['projectId'] = project_id unless project_id.nil?
316
197
  command.params['location'] = location unless location.nil?
317
- command.query['gcsPath'] = gcs_path unless gcs_path.nil?
318
198
  command.query['view'] = view unless view.nil?
319
- command.query['quotaUser'] = quota_user unless quota_user.nil?
199
+ command.query['gcsPath'] = gcs_path unless gcs_path.nil?
320
200
  command.query['fields'] = fields unless fields.nil?
201
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
321
202
  execute_or_queue_command(command, &block)
322
203
  end
323
204
 
@@ -327,11 +208,11 @@ module Google
327
208
  # @param [String] location
328
209
  # The location to which to direct the request.
329
210
  # @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
211
+ # @param [String] fields
212
+ # Selector specifying which fields to include in a partial response.
330
213
  # @param [String] quota_user
331
214
  # Available to use for quota purposes for server-side applications. Can be any
332
215
  # arbitrary string assigned to a user, but should not exceed 40 characters.
333
- # @param [String] fields
334
- # Selector specifying which fields to include in a partial response.
335
216
  # @param [Google::Apis::RequestOptions] options
336
217
  # Request-specific options
337
218
  #
@@ -344,7 +225,7 @@ module Google
344
225
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
345
226
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
346
227
  # @raise [Google::Apis::AuthorizationError] Authorization is required
347
- def create_job_from_template_with_location(project_id, location, create_job_from_template_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
228
+ def create_job_from_template_with_location(project_id, location, create_job_from_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
348
229
  command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/templates', options)
349
230
  command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation
350
231
  command.request_object = create_job_from_template_request_object
@@ -352,146 +233,151 @@ module Google
352
233
  command.response_class = Google::Apis::DataflowV1b3::Job
353
234
  command.params['projectId'] = project_id unless project_id.nil?
354
235
  command.params['location'] = location unless location.nil?
355
- command.query['quotaUser'] = quota_user unless quota_user.nil?
356
236
  command.query['fields'] = fields unless fields.nil?
237
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
357
238
  execute_or_queue_command(command, &block)
358
239
  end
359
240
 
360
- # Updates the state of an existing Cloud Dataflow job.
241
+ # Request the job status.
361
242
  # @param [String] project_id
362
- # The ID of the Cloud Platform project that the job belongs to.
243
+ # A project id.
363
244
  # @param [String] location
364
- # The location that contains this job.
245
+ # The location which contains the job specified by job_id.
365
246
  # @param [String] job_id
366
- # The job ID.
367
- # @param [Google::Apis::DataflowV1b3::Job] job_object
247
+ # The job to get messages for.
248
+ # @param [String] start_time
249
+ # Return only metric data that has changed since this time.
250
+ # Default is to return all information about all metrics for the job.
251
+ # @param [String] fields
252
+ # Selector specifying which fields to include in a partial response.
368
253
  # @param [String] quota_user
369
254
  # Available to use for quota purposes for server-side applications. Can be any
370
255
  # arbitrary string assigned to a user, but should not exceed 40 characters.
371
- # @param [String] fields
372
- # Selector specifying which fields to include in a partial response.
373
256
  # @param [Google::Apis::RequestOptions] options
374
257
  # Request-specific options
375
258
  #
376
259
  # @yield [result, err] Result & error if block supplied
377
- # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
260
+ # @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
378
261
  # @yieldparam err [StandardError] error object if request failed
379
262
  #
380
- # @return [Google::Apis::DataflowV1b3::Job]
263
+ # @return [Google::Apis::DataflowV1b3::JobMetrics]
381
264
  #
382
265
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
383
266
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
384
267
  # @raise [Google::Apis::AuthorizationError] Authorization is required
385
- def update_project_location_job(project_id, location, job_id, job_object = nil, quota_user: nil, fields: nil, options: nil, &block)
386
- command = make_simple_command(:put, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options)
387
- command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
388
- command.request_object = job_object
389
- command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
390
- command.response_class = Google::Apis::DataflowV1b3::Job
268
+ def get_project_location_job_metrics(project_id, location, job_id, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
269
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics', options)
270
+ command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
271
+ command.response_class = Google::Apis::DataflowV1b3::JobMetrics
391
272
  command.params['projectId'] = project_id unless project_id.nil?
392
273
  command.params['location'] = location unless location.nil?
393
274
  command.params['jobId'] = job_id unless job_id.nil?
394
- command.query['quotaUser'] = quota_user unless quota_user.nil?
275
+ command.query['startTime'] = start_time unless start_time.nil?
395
276
  command.query['fields'] = fields unless fields.nil?
277
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
396
278
  execute_or_queue_command(command, &block)
397
279
  end
398
280
 
399
- # Creates a Cloud Dataflow job.
281
+ # List the jobs of a project.
400
282
  # @param [String] project_id
401
- # The ID of the Cloud Platform project that the job belongs to.
283
+ # The project which owns the jobs.
402
284
  # @param [String] location
403
285
  # The location that contains this job.
404
- # @param [Google::Apis::DataflowV1b3::Job] job_object
405
- # @param [String] replace_job_id
406
- # Deprecated. This field is now in the Job message.
286
+ # @param [String] filter
287
+ # The kind of filter to use.
288
+ # @param [String] page_token
289
+ # Set this to the 'next_page_token' field of a previous response
290
+ # to request additional results in a long list.
291
+ # @param [Fixnum] page_size
292
+ # If there are many jobs, limit response to at most this many.
293
+ # The actual number of jobs returned will be the lesser of max_responses
294
+ # and an unspecified server-defined limit.
407
295
  # @param [String] view
408
- # The level of information requested in response.
296
+ # Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
297
+ # @param [String] fields
298
+ # Selector specifying which fields to include in a partial response.
409
299
  # @param [String] quota_user
410
300
  # Available to use for quota purposes for server-side applications. Can be any
411
301
  # arbitrary string assigned to a user, but should not exceed 40 characters.
412
- # @param [String] fields
413
- # Selector specifying which fields to include in a partial response.
414
302
  # @param [Google::Apis::RequestOptions] options
415
303
  # Request-specific options
416
304
  #
417
305
  # @yield [result, err] Result & error if block supplied
418
- # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
306
+ # @yieldparam result [Google::Apis::DataflowV1b3::ListJobsResponse] parsed result object
419
307
  # @yieldparam err [StandardError] error object if request failed
420
308
  #
421
- # @return [Google::Apis::DataflowV1b3::Job]
309
+ # @return [Google::Apis::DataflowV1b3::ListJobsResponse]
422
310
  #
423
311
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
424
312
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
425
313
  # @raise [Google::Apis::AuthorizationError] Authorization is required
426
- def create_project_location_job(project_id, location, job_object = nil, replace_job_id: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
427
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
428
- command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
429
- command.request_object = job_object
430
- command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
431
- command.response_class = Google::Apis::DataflowV1b3::Job
314
+ 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)
315
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
316
+ command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
317
+ command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
432
318
  command.params['projectId'] = project_id unless project_id.nil?
433
319
  command.params['location'] = location unless location.nil?
434
- command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
320
+ command.query['filter'] = filter unless filter.nil?
321
+ command.query['pageToken'] = page_token unless page_token.nil?
322
+ command.query['pageSize'] = page_size unless page_size.nil?
435
323
  command.query['view'] = view unless view.nil?
436
- command.query['quotaUser'] = quota_user unless quota_user.nil?
437
324
  command.query['fields'] = fields unless fields.nil?
325
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
438
326
  execute_or_queue_command(command, &block)
439
327
  end
440
328
 
441
- # Request the job status.
329
+ # Gets the state of the specified Cloud Dataflow job.
442
330
  # @param [String] project_id
443
- # A project id.
331
+ # The ID of the Cloud Platform project that the job belongs to.
444
332
  # @param [String] location
445
- # The location which contains the job specified by job_id.
333
+ # The location that contains this job.
446
334
  # @param [String] job_id
447
- # The job to get messages for.
448
- # @param [String] start_time
449
- # Return only metric data that has changed since this time.
450
- # Default is to return all information about all metrics for the job.
335
+ # The job ID.
336
+ # @param [String] view
337
+ # The level of information requested in response.
338
+ # @param [String] fields
339
+ # Selector specifying which fields to include in a partial response.
451
340
  # @param [String] quota_user
452
341
  # Available to use for quota purposes for server-side applications. Can be any
453
342
  # arbitrary string assigned to a user, but should not exceed 40 characters.
454
- # @param [String] fields
455
- # Selector specifying which fields to include in a partial response.
456
343
  # @param [Google::Apis::RequestOptions] options
457
344
  # Request-specific options
458
345
  #
459
346
  # @yield [result, err] Result & error if block supplied
460
- # @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
347
+ # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
461
348
  # @yieldparam err [StandardError] error object if request failed
462
349
  #
463
- # @return [Google::Apis::DataflowV1b3::JobMetrics]
350
+ # @return [Google::Apis::DataflowV1b3::Job]
464
351
  #
465
352
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
466
353
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
467
354
  # @raise [Google::Apis::AuthorizationError] Authorization is required
468
- def get_project_location_job_metrics(project_id, location, job_id, start_time: nil, quota_user: nil, fields: nil, options: nil, &block)
469
- command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics', options)
470
- command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
471
- command.response_class = Google::Apis::DataflowV1b3::JobMetrics
355
+ def get_project_location_job(project_id, location, job_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
356
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options)
357
+ command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
358
+ command.response_class = Google::Apis::DataflowV1b3::Job
472
359
  command.params['projectId'] = project_id unless project_id.nil?
473
360
  command.params['location'] = location unless location.nil?
474
361
  command.params['jobId'] = job_id unless job_id.nil?
475
- command.query['startTime'] = start_time unless start_time.nil?
476
- command.query['quotaUser'] = quota_user unless quota_user.nil?
362
+ command.query['view'] = view unless view.nil?
477
363
  command.query['fields'] = fields unless fields.nil?
364
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
478
365
  execute_or_queue_command(command, &block)
479
366
  end
480
367
 
481
- # Gets the state of the specified Cloud Dataflow job.
368
+ # Updates the state of an existing Cloud Dataflow job.
482
369
  # @param [String] project_id
483
370
  # The ID of the Cloud Platform project that the job belongs to.
484
371
  # @param [String] location
485
372
  # The location that contains this job.
486
373
  # @param [String] job_id
487
374
  # The job ID.
488
- # @param [String] view
489
- # The level of information requested in response.
375
+ # @param [Google::Apis::DataflowV1b3::Job] job_object
376
+ # @param [String] fields
377
+ # Selector specifying which fields to include in a partial response.
490
378
  # @param [String] quota_user
491
379
  # Available to use for quota purposes for server-side applications. Can be any
492
380
  # arbitrary string assigned to a user, but should not exceed 40 characters.
493
- # @param [String] fields
494
- # Selector specifying which fields to include in a partial response.
495
381
  # @param [Google::Apis::RequestOptions] options
496
382
  # Request-specific options
497
383
  #
@@ -504,220 +390,215 @@ module Google
504
390
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
505
391
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
506
392
  # @raise [Google::Apis::AuthorizationError] Authorization is required
507
- def get_project_location_job(project_id, location, job_id, view: nil, quota_user: nil, fields: nil, options: nil, &block)
508
- command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options)
393
+ def update_project_location_job(project_id, location, job_id, job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
394
+ command = make_simple_command(:put, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options)
395
+ command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
396
+ command.request_object = job_object
509
397
  command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
510
398
  command.response_class = Google::Apis::DataflowV1b3::Job
511
399
  command.params['projectId'] = project_id unless project_id.nil?
512
400
  command.params['location'] = location unless location.nil?
513
401
  command.params['jobId'] = job_id unless job_id.nil?
514
- command.query['view'] = view unless view.nil?
515
- command.query['quotaUser'] = quota_user unless quota_user.nil?
516
402
  command.query['fields'] = fields unless fields.nil?
403
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
517
404
  execute_or_queue_command(command, &block)
518
405
  end
519
406
 
520
- # List the jobs of a project.
407
+ # Creates a Cloud Dataflow job.
521
408
  # @param [String] project_id
522
- # The project which owns the jobs.
409
+ # The ID of the Cloud Platform project that the job belongs to.
523
410
  # @param [String] location
524
411
  # The location that contains this job.
525
- # @param [String] filter
526
- # The kind of filter to use.
527
- # @param [String] page_token
528
- # Set this to the 'next_page_token' field of a previous response
529
- # to request additional results in a long list.
530
- # @param [Fixnum] page_size
531
- # If there are many jobs, limit response to at most this many.
532
- # The actual number of jobs returned will be the lesser of max_responses
533
- # and an unspecified server-defined limit.
412
+ # @param [Google::Apis::DataflowV1b3::Job] job_object
413
+ # @param [String] replace_job_id
414
+ # Deprecated. This field is now in the Job message.
534
415
  # @param [String] view
535
- # Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
416
+ # The level of information requested in response.
417
+ # @param [String] fields
418
+ # Selector specifying which fields to include in a partial response.
536
419
  # @param [String] quota_user
537
420
  # Available to use for quota purposes for server-side applications. Can be any
538
421
  # arbitrary string assigned to a user, but should not exceed 40 characters.
539
- # @param [String] fields
540
- # Selector specifying which fields to include in a partial response.
541
422
  # @param [Google::Apis::RequestOptions] options
542
423
  # Request-specific options
543
424
  #
544
425
  # @yield [result, err] Result & error if block supplied
545
- # @yieldparam result [Google::Apis::DataflowV1b3::ListJobsResponse] parsed result object
426
+ # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
546
427
  # @yieldparam err [StandardError] error object if request failed
547
428
  #
548
- # @return [Google::Apis::DataflowV1b3::ListJobsResponse]
429
+ # @return [Google::Apis::DataflowV1b3::Job]
549
430
  #
550
431
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
551
432
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
552
433
  # @raise [Google::Apis::AuthorizationError] Authorization is required
553
- def list_project_location_jobs(project_id, location, filter: nil, page_token: nil, page_size: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
554
- command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
555
- command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
556
- command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
434
+ def create_project_location_job(project_id, location, job_object = nil, replace_job_id: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
435
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
436
+ command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
437
+ command.request_object = job_object
438
+ command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
439
+ command.response_class = Google::Apis::DataflowV1b3::Job
557
440
  command.params['projectId'] = project_id unless project_id.nil?
558
441
  command.params['location'] = location unless location.nil?
559
- command.query['filter'] = filter unless filter.nil?
560
- command.query['pageToken'] = page_token unless page_token.nil?
561
- command.query['pageSize'] = page_size unless page_size.nil?
442
+ command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
562
443
  command.query['view'] = view unless view.nil?
563
- command.query['quotaUser'] = quota_user unless quota_user.nil?
564
444
  command.query['fields'] = fields unless fields.nil?
445
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
565
446
  execute_or_queue_command(command, &block)
566
447
  end
567
448
 
568
- # Get encoded debug configuration for component. Not cacheable.
449
+ # Leases a dataflow WorkItem to run.
569
450
  # @param [String] project_id
570
- # The project id.
451
+ # Identifies the project this worker belongs to.
571
452
  # @param [String] location
572
- # The location which contains the job specified by job_id.
453
+ # The location which contains the WorkItem's job.
573
454
  # @param [String] job_id
574
- # The job id.
575
- # @param [Google::Apis::DataflowV1b3::GetDebugConfigRequest] get_debug_config_request_object
455
+ # Identifies the workflow job this worker belongs to.
456
+ # @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
457
+ # @param [String] fields
458
+ # Selector specifying which fields to include in a partial response.
576
459
  # @param [String] quota_user
577
460
  # Available to use for quota purposes for server-side applications. Can be any
578
461
  # arbitrary string assigned to a user, but should not exceed 40 characters.
579
- # @param [String] fields
580
- # Selector specifying which fields to include in a partial response.
581
462
  # @param [Google::Apis::RequestOptions] options
582
463
  # Request-specific options
583
464
  #
584
465
  # @yield [result, err] Result & error if block supplied
585
- # @yieldparam result [Google::Apis::DataflowV1b3::GetDebugConfigResponse] parsed result object
466
+ # @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
586
467
  # @yieldparam err [StandardError] error object if request failed
587
468
  #
588
- # @return [Google::Apis::DataflowV1b3::GetDebugConfigResponse]
469
+ # @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
589
470
  #
590
471
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
591
472
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
592
473
  # @raise [Google::Apis::AuthorizationError] Authorization is required
593
- def get_project_location_job_debug_config(project_id, location, job_id, get_debug_config_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
594
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/getConfig', options)
595
- command.request_representation = Google::Apis::DataflowV1b3::GetDebugConfigRequest::Representation
596
- command.request_object = get_debug_config_request_object
597
- command.response_representation = Google::Apis::DataflowV1b3::GetDebugConfigResponse::Representation
598
- command.response_class = Google::Apis::DataflowV1b3::GetDebugConfigResponse
474
+ 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)
475
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:lease', options)
476
+ command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
477
+ command.request_object = lease_work_item_request_object
478
+ command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
479
+ command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
599
480
  command.params['projectId'] = project_id unless project_id.nil?
600
481
  command.params['location'] = location unless location.nil?
601
482
  command.params['jobId'] = job_id unless job_id.nil?
602
- command.query['quotaUser'] = quota_user unless quota_user.nil?
603
483
  command.query['fields'] = fields unless fields.nil?
484
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
604
485
  execute_or_queue_command(command, &block)
605
486
  end
606
487
 
607
- # Send encoded debug capture data for component.
488
+ # Reports the status of dataflow WorkItems leased by a worker.
608
489
  # @param [String] project_id
609
- # The project id.
490
+ # The project which owns the WorkItem's job.
610
491
  # @param [String] location
611
- # The location which contains the job specified by job_id.
492
+ # The location which contains the WorkItem's job.
612
493
  # @param [String] job_id
613
- # The job id.
614
- # @param [Google::Apis::DataflowV1b3::SendDebugCaptureRequest] send_debug_capture_request_object
494
+ # The job which the WorkItem is part of.
495
+ # @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
496
+ # @param [String] fields
497
+ # Selector specifying which fields to include in a partial response.
615
498
  # @param [String] quota_user
616
499
  # Available to use for quota purposes for server-side applications. Can be any
617
500
  # arbitrary string assigned to a user, but should not exceed 40 characters.
618
- # @param [String] fields
619
- # Selector specifying which fields to include in a partial response.
620
501
  # @param [Google::Apis::RequestOptions] options
621
502
  # Request-specific options
622
503
  #
623
504
  # @yield [result, err] Result & error if block supplied
624
- # @yieldparam result [Google::Apis::DataflowV1b3::SendDebugCaptureResponse] parsed result object
505
+ # @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
625
506
  # @yieldparam err [StandardError] error object if request failed
626
507
  #
627
- # @return [Google::Apis::DataflowV1b3::SendDebugCaptureResponse]
508
+ # @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
628
509
  #
629
510
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
630
511
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
631
512
  # @raise [Google::Apis::AuthorizationError] Authorization is required
632
- def send_project_location_job_debug_capture(project_id, location, job_id, send_debug_capture_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
633
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/sendCapture', options)
634
- command.request_representation = Google::Apis::DataflowV1b3::SendDebugCaptureRequest::Representation
635
- command.request_object = send_debug_capture_request_object
636
- command.response_representation = Google::Apis::DataflowV1b3::SendDebugCaptureResponse::Representation
637
- command.response_class = Google::Apis::DataflowV1b3::SendDebugCaptureResponse
513
+ 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)
514
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus', options)
515
+ command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
516
+ command.request_object = report_work_item_status_request_object
517
+ command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
518
+ command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
638
519
  command.params['projectId'] = project_id unless project_id.nil?
639
520
  command.params['location'] = location unless location.nil?
640
521
  command.params['jobId'] = job_id unless job_id.nil?
641
- command.query['quotaUser'] = quota_user unless quota_user.nil?
642
522
  command.query['fields'] = fields unless fields.nil?
523
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
643
524
  execute_or_queue_command(command, &block)
644
525
  end
645
526
 
646
- # Leases a dataflow WorkItem to run.
527
+ # Send encoded debug capture data for component.
647
528
  # @param [String] project_id
648
- # Identifies the project this worker belongs to.
529
+ # The project id.
649
530
  # @param [String] location
650
- # The location which contains the WorkItem's job.
531
+ # The location which contains the job specified by job_id.
651
532
  # @param [String] job_id
652
- # Identifies the workflow job this worker belongs to.
653
- # @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
533
+ # The job id.
534
+ # @param [Google::Apis::DataflowV1b3::SendDebugCaptureRequest] send_debug_capture_request_object
535
+ # @param [String] fields
536
+ # Selector specifying which fields to include in a partial response.
654
537
  # @param [String] quota_user
655
538
  # Available to use for quota purposes for server-side applications. Can be any
656
539
  # arbitrary string assigned to a user, but should not exceed 40 characters.
657
- # @param [String] fields
658
- # Selector specifying which fields to include in a partial response.
659
540
  # @param [Google::Apis::RequestOptions] options
660
541
  # Request-specific options
661
542
  #
662
543
  # @yield [result, err] Result & error if block supplied
663
- # @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
544
+ # @yieldparam result [Google::Apis::DataflowV1b3::SendDebugCaptureResponse] parsed result object
664
545
  # @yieldparam err [StandardError] error object if request failed
665
546
  #
666
- # @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
547
+ # @return [Google::Apis::DataflowV1b3::SendDebugCaptureResponse]
667
548
  #
668
549
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
669
550
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
670
551
  # @raise [Google::Apis::AuthorizationError] Authorization is required
671
- def lease_project_location_work_item(project_id, location, job_id, lease_work_item_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
672
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:lease', options)
673
- command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
674
- command.request_object = lease_work_item_request_object
675
- command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
676
- command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
552
+ def send_project_location_job_debug_capture(project_id, location, job_id, send_debug_capture_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
553
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/sendCapture', options)
554
+ command.request_representation = Google::Apis::DataflowV1b3::SendDebugCaptureRequest::Representation
555
+ command.request_object = send_debug_capture_request_object
556
+ command.response_representation = Google::Apis::DataflowV1b3::SendDebugCaptureResponse::Representation
557
+ command.response_class = Google::Apis::DataflowV1b3::SendDebugCaptureResponse
677
558
  command.params['projectId'] = project_id unless project_id.nil?
678
559
  command.params['location'] = location unless location.nil?
679
560
  command.params['jobId'] = job_id unless job_id.nil?
680
- command.query['quotaUser'] = quota_user unless quota_user.nil?
681
561
  command.query['fields'] = fields unless fields.nil?
562
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
682
563
  execute_or_queue_command(command, &block)
683
564
  end
684
565
 
685
- # Reports the status of dataflow WorkItems leased by a worker.
566
+ # Get encoded debug configuration for component. Not cacheable.
686
567
  # @param [String] project_id
687
- # The project which owns the WorkItem's job.
568
+ # The project id.
688
569
  # @param [String] location
689
- # The location which contains the WorkItem's job.
570
+ # The location which contains the job specified by job_id.
690
571
  # @param [String] job_id
691
- # The job which the WorkItem is part of.
692
- # @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
572
+ # The job id.
573
+ # @param [Google::Apis::DataflowV1b3::GetDebugConfigRequest] get_debug_config_request_object
574
+ # @param [String] fields
575
+ # Selector specifying which fields to include in a partial response.
693
576
  # @param [String] quota_user
694
577
  # Available to use for quota purposes for server-side applications. Can be any
695
578
  # arbitrary string assigned to a user, but should not exceed 40 characters.
696
- # @param [String] fields
697
- # Selector specifying which fields to include in a partial response.
698
579
  # @param [Google::Apis::RequestOptions] options
699
580
  # Request-specific options
700
581
  #
701
582
  # @yield [result, err] Result & error if block supplied
702
- # @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
583
+ # @yieldparam result [Google::Apis::DataflowV1b3::GetDebugConfigResponse] parsed result object
703
584
  # @yieldparam err [StandardError] error object if request failed
704
585
  #
705
- # @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
586
+ # @return [Google::Apis::DataflowV1b3::GetDebugConfigResponse]
706
587
  #
707
588
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
708
589
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
709
590
  # @raise [Google::Apis::AuthorizationError] Authorization is required
710
- def report_project_location_job_work_item_status(project_id, location, job_id, report_work_item_status_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
711
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus', options)
712
- command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
713
- command.request_object = report_work_item_status_request_object
714
- command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
715
- command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
591
+ def get_project_location_job_debug_config(project_id, location, job_id, get_debug_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
592
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/getConfig', options)
593
+ command.request_representation = Google::Apis::DataflowV1b3::GetDebugConfigRequest::Representation
594
+ command.request_object = get_debug_config_request_object
595
+ command.response_representation = Google::Apis::DataflowV1b3::GetDebugConfigResponse::Representation
596
+ command.response_class = Google::Apis::DataflowV1b3::GetDebugConfigResponse
716
597
  command.params['projectId'] = project_id unless project_id.nil?
717
598
  command.params['location'] = location unless location.nil?
718
599
  command.params['jobId'] = job_id unless job_id.nil?
719
- command.query['quotaUser'] = quota_user unless quota_user.nil?
720
600
  command.query['fields'] = fields unless fields.nil?
601
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
721
602
  execute_or_queue_command(command, &block)
722
603
  end
723
604
 
@@ -744,11 +625,11 @@ module Google
744
625
  # default, or may return an arbitrarily large number of results.
745
626
  # @param [String] minimum_importance
746
627
  # Filter to only get messages with importance >= level
628
+ # @param [String] fields
629
+ # Selector specifying which fields to include in a partial response.
747
630
  # @param [String] quota_user
748
631
  # Available to use for quota purposes for server-side applications. Can be any
749
632
  # arbitrary string assigned to a user, but should not exceed 40 characters.
750
- # @param [String] fields
751
- # Selector specifying which fields to include in a partial response.
752
633
  # @param [Google::Apis::RequestOptions] options
753
634
  # Request-specific options
754
635
  #
@@ -761,7 +642,7 @@ module Google
761
642
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
762
643
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
763
644
  # @raise [Google::Apis::AuthorizationError] Authorization is required
764
- def list_project_location_job_messages(project_id, location, job_id, end_time: nil, start_time: nil, page_token: nil, page_size: nil, minimum_importance: nil, quota_user: nil, fields: nil, options: nil, &block)
645
+ def list_project_location_job_messages(project_id, location, job_id, end_time: nil, start_time: nil, page_token: nil, page_size: nil, minimum_importance: nil, fields: nil, quota_user: nil, options: nil, &block)
765
646
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages', options)
766
647
  command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
767
648
  command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
@@ -773,87 +654,127 @@ module Google
773
654
  command.query['pageToken'] = page_token unless page_token.nil?
774
655
  command.query['pageSize'] = page_size unless page_size.nil?
775
656
  command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
776
- command.query['quotaUser'] = quota_user unless quota_user.nil?
777
657
  command.query['fields'] = fields unless fields.nil?
658
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
778
659
  execute_or_queue_command(command, &block)
779
660
  end
780
661
 
781
- # Request the job status.
662
+ # Get the template associated with a template.
782
663
  # @param [String] project_id
783
- # A project id.
784
- # @param [String] job_id
785
- # The job to get messages for.
664
+ # Required. The ID of the Cloud Platform project that the job belongs to.
786
665
  # @param [String] location
787
- # The location which contains the job specified by job_id.
788
- # @param [String] start_time
789
- # Return only metric data that has changed since this time.
790
- # Default is to return all information about all metrics for the job.
666
+ # The location to which to direct the request.
667
+ # @param [String] view
668
+ # The view to retrieve. Defaults to METADATA_ONLY.
669
+ # @param [String] gcs_path
670
+ # Required. A Cloud Storage path to the template from which to
671
+ # create the job.
672
+ # Must be a valid Cloud Storage URL, beginning with `gs://`.
673
+ # @param [String] fields
674
+ # Selector specifying which fields to include in a partial response.
791
675
  # @param [String] quota_user
792
676
  # Available to use for quota purposes for server-side applications. Can be any
793
677
  # arbitrary string assigned to a user, but should not exceed 40 characters.
794
- # @param [String] fields
795
- # Selector specifying which fields to include in a partial response.
796
678
  # @param [Google::Apis::RequestOptions] options
797
679
  # Request-specific options
798
680
  #
799
681
  # @yield [result, err] Result & error if block supplied
800
- # @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
682
+ # @yieldparam result [Google::Apis::DataflowV1b3::GetTemplateResponse] parsed result object
801
683
  # @yieldparam err [StandardError] error object if request failed
802
684
  #
803
- # @return [Google::Apis::DataflowV1b3::JobMetrics]
685
+ # @return [Google::Apis::DataflowV1b3::GetTemplateResponse]
804
686
  #
805
687
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
806
688
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
807
689
  # @raise [Google::Apis::AuthorizationError] Authorization is required
808
- def get_project_job_metrics(project_id, job_id, location: nil, start_time: nil, quota_user: nil, fields: nil, options: nil, &block)
809
- command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options)
810
- command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
811
- command.response_class = Google::Apis::DataflowV1b3::JobMetrics
690
+ def get_project_template(project_id, location: nil, view: nil, gcs_path: nil, fields: nil, quota_user: nil, options: nil, &block)
691
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/templates:get', options)
692
+ command.response_representation = Google::Apis::DataflowV1b3::GetTemplateResponse::Representation
693
+ command.response_class = Google::Apis::DataflowV1b3::GetTemplateResponse
812
694
  command.params['projectId'] = project_id unless project_id.nil?
813
- command.params['jobId'] = job_id unless job_id.nil?
814
695
  command.query['location'] = location unless location.nil?
815
- command.query['startTime'] = start_time unless start_time.nil?
696
+ command.query['view'] = view unless view.nil?
697
+ command.query['gcsPath'] = gcs_path unless gcs_path.nil?
698
+ command.query['fields'] = fields unless fields.nil?
816
699
  command.query['quotaUser'] = quota_user unless quota_user.nil?
700
+ execute_or_queue_command(command, &block)
701
+ end
702
+
703
+ # Creates a Cloud Dataflow job from a template.
704
+ # @param [String] project_id
705
+ # Required. The ID of the Cloud Platform project that the job belongs to.
706
+ # @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
707
+ # @param [String] fields
708
+ # Selector specifying which fields to include in a partial response.
709
+ # @param [String] quota_user
710
+ # Available to use for quota purposes for server-side applications. Can be any
711
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
712
+ # @param [Google::Apis::RequestOptions] options
713
+ # Request-specific options
714
+ #
715
+ # @yield [result, err] Result & error if block supplied
716
+ # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
717
+ # @yieldparam err [StandardError] error object if request failed
718
+ #
719
+ # @return [Google::Apis::DataflowV1b3::Job]
720
+ #
721
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
722
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
723
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
724
+ def create_job_from_template(project_id, create_job_from_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
725
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates', options)
726
+ command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation
727
+ command.request_object = create_job_from_template_request_object
728
+ command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
729
+ command.response_class = Google::Apis::DataflowV1b3::Job
730
+ command.params['projectId'] = project_id unless project_id.nil?
817
731
  command.query['fields'] = fields unless fields.nil?
732
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
818
733
  execute_or_queue_command(command, &block)
819
734
  end
820
735
 
821
- # Gets the state of the specified Cloud Dataflow job.
736
+ # Launch a template.
822
737
  # @param [String] project_id
823
- # The ID of the Cloud Platform project that the job belongs to.
824
- # @param [String] job_id
825
- # The job ID.
738
+ # Required. The ID of the Cloud Platform project that the job belongs to.
739
+ # @param [Google::Apis::DataflowV1b3::LaunchTemplateParameters] launch_template_parameters_object
826
740
  # @param [String] location
827
- # The location that contains this job.
828
- # @param [String] view
829
- # The level of information requested in response.
741
+ # The location to which to direct the request.
742
+ # @param [Boolean] validate_only
743
+ # If true, the request is validated but not actually executed.
744
+ # Defaults to false.
745
+ # @param [String] gcs_path
746
+ # Required. A Cloud Storage path to the template from which to create
747
+ # the job.
748
+ # Must be valid Cloud Storage URL, beginning with 'gs://'.
749
+ # @param [String] fields
750
+ # Selector specifying which fields to include in a partial response.
830
751
  # @param [String] quota_user
831
752
  # Available to use for quota purposes for server-side applications. Can be any
832
753
  # arbitrary string assigned to a user, but should not exceed 40 characters.
833
- # @param [String] fields
834
- # Selector specifying which fields to include in a partial response.
835
754
  # @param [Google::Apis::RequestOptions] options
836
755
  # Request-specific options
837
756
  #
838
757
  # @yield [result, err] Result & error if block supplied
839
- # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
758
+ # @yieldparam result [Google::Apis::DataflowV1b3::LaunchTemplateResponse] parsed result object
840
759
  # @yieldparam err [StandardError] error object if request failed
841
760
  #
842
- # @return [Google::Apis::DataflowV1b3::Job]
761
+ # @return [Google::Apis::DataflowV1b3::LaunchTemplateResponse]
843
762
  #
844
763
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
845
764
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
846
765
  # @raise [Google::Apis::AuthorizationError] Authorization is required
847
- def get_project_job(project_id, job_id, location: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
848
- command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
849
- command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
850
- command.response_class = Google::Apis::DataflowV1b3::Job
766
+ def launch_project_template(project_id, launch_template_parameters_object = nil, location: nil, validate_only: nil, gcs_path: nil, fields: nil, quota_user: nil, options: nil, &block)
767
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates:launch', options)
768
+ command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation
769
+ command.request_object = launch_template_parameters_object
770
+ command.response_representation = Google::Apis::DataflowV1b3::LaunchTemplateResponse::Representation
771
+ command.response_class = Google::Apis::DataflowV1b3::LaunchTemplateResponse
851
772
  command.params['projectId'] = project_id unless project_id.nil?
852
- command.params['jobId'] = job_id unless job_id.nil?
853
773
  command.query['location'] = location unless location.nil?
854
- command.query['view'] = view unless view.nil?
855
- command.query['quotaUser'] = quota_user unless quota_user.nil?
774
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
775
+ command.query['gcsPath'] = gcs_path unless gcs_path.nil?
856
776
  command.query['fields'] = fields unless fields.nil?
777
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
857
778
  execute_or_queue_command(command, &block)
858
779
  end
859
780
 
@@ -873,11 +794,11 @@ module Google
873
794
  # and an unspecified server-defined limit.
874
795
  # @param [String] view
875
796
  # Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
797
+ # @param [String] fields
798
+ # Selector specifying which fields to include in a partial response.
876
799
  # @param [String] quota_user
877
800
  # Available to use for quota purposes for server-side applications. Can be any
878
801
  # arbitrary string assigned to a user, but should not exceed 40 characters.
879
- # @param [String] fields
880
- # Selector specifying which fields to include in a partial response.
881
802
  # @param [Google::Apis::RequestOptions] options
882
803
  # Request-specific options
883
804
  #
@@ -890,7 +811,7 @@ module Google
890
811
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
891
812
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
892
813
  # @raise [Google::Apis::AuthorizationError] Authorization is required
893
- def list_project_jobs(project_id, filter: nil, location: nil, page_token: nil, page_size: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
814
+ 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)
894
815
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs', options)
895
816
  command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
896
817
  command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
@@ -900,24 +821,25 @@ module Google
900
821
  command.query['pageToken'] = page_token unless page_token.nil?
901
822
  command.query['pageSize'] = page_size unless page_size.nil?
902
823
  command.query['view'] = view unless view.nil?
903
- command.query['quotaUser'] = quota_user unless quota_user.nil?
904
824
  command.query['fields'] = fields unless fields.nil?
825
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
905
826
  execute_or_queue_command(command, &block)
906
827
  end
907
828
 
908
- # Updates the state of an existing Cloud Dataflow job.
829
+ # Gets the state of the specified Cloud Dataflow job.
909
830
  # @param [String] project_id
910
831
  # The ID of the Cloud Platform project that the job belongs to.
911
832
  # @param [String] job_id
912
833
  # The job ID.
913
- # @param [Google::Apis::DataflowV1b3::Job] job_object
834
+ # @param [String] view
835
+ # The level of information requested in response.
914
836
  # @param [String] location
915
837
  # The location that contains this job.
838
+ # @param [String] fields
839
+ # Selector specifying which fields to include in a partial response.
916
840
  # @param [String] quota_user
917
841
  # Available to use for quota purposes for server-side applications. Can be any
918
842
  # arbitrary string assigned to a user, but should not exceed 40 characters.
919
- # @param [String] fields
920
- # Selector specifying which fields to include in a partial response.
921
843
  # @param [Google::Apis::RequestOptions] options
922
844
  # Request-specific options
923
845
  #
@@ -930,35 +852,32 @@ module Google
930
852
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
931
853
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
932
854
  # @raise [Google::Apis::AuthorizationError] Authorization is required
933
- def update_project_job(project_id, job_id, job_object = nil, location: nil, quota_user: nil, fields: nil, options: nil, &block)
934
- command = make_simple_command(:put, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
935
- command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
936
- command.request_object = job_object
855
+ def get_project_job(project_id, job_id, view: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
856
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
937
857
  command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
938
858
  command.response_class = Google::Apis::DataflowV1b3::Job
939
859
  command.params['projectId'] = project_id unless project_id.nil?
940
860
  command.params['jobId'] = job_id unless job_id.nil?
861
+ command.query['view'] = view unless view.nil?
941
862
  command.query['location'] = location unless location.nil?
942
- command.query['quotaUser'] = quota_user unless quota_user.nil?
943
863
  command.query['fields'] = fields unless fields.nil?
864
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
944
865
  execute_or_queue_command(command, &block)
945
866
  end
946
867
 
947
- # Creates a Cloud Dataflow job.
868
+ # Updates the state of an existing Cloud Dataflow job.
948
869
  # @param [String] project_id
949
870
  # The ID of the Cloud Platform project that the job belongs to.
871
+ # @param [String] job_id
872
+ # The job ID.
950
873
  # @param [Google::Apis::DataflowV1b3::Job] job_object
951
- # @param [String] view
952
- # The level of information requested in response.
953
874
  # @param [String] location
954
875
  # The location that contains this job.
955
- # @param [String] replace_job_id
956
- # Deprecated. This field is now in the Job message.
876
+ # @param [String] fields
877
+ # Selector specifying which fields to include in a partial response.
957
878
  # @param [String] quota_user
958
879
  # Available to use for quota purposes for server-side applications. Can be any
959
880
  # arbitrary string assigned to a user, but should not exceed 40 characters.
960
- # @param [String] fields
961
- # Selector specifying which fields to include in a partial response.
962
881
  # @param [Google::Apis::RequestOptions] options
963
882
  # Request-specific options
964
883
  #
@@ -971,90 +890,99 @@ module Google
971
890
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
972
891
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
973
892
  # @raise [Google::Apis::AuthorizationError] Authorization is required
974
- def create_project_job(project_id, job_object = nil, view: nil, location: nil, replace_job_id: nil, quota_user: nil, fields: nil, options: nil, &block)
975
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs', options)
893
+ def update_project_job(project_id, job_id, job_object = nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
894
+ command = make_simple_command(:put, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
976
895
  command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
977
896
  command.request_object = job_object
978
897
  command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
979
898
  command.response_class = Google::Apis::DataflowV1b3::Job
980
899
  command.params['projectId'] = project_id unless project_id.nil?
981
- command.query['view'] = view unless view.nil?
900
+ command.params['jobId'] = job_id unless job_id.nil?
982
901
  command.query['location'] = location unless location.nil?
983
- command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
984
- command.query['quotaUser'] = quota_user unless quota_user.nil?
985
902
  command.query['fields'] = fields unless fields.nil?
903
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
986
904
  execute_or_queue_command(command, &block)
987
905
  end
988
906
 
989
- # Get encoded debug configuration for component. Not cacheable.
907
+ # Creates a Cloud Dataflow job.
990
908
  # @param [String] project_id
991
- # The project id.
992
- # @param [String] job_id
993
- # The job id.
994
- # @param [Google::Apis::DataflowV1b3::GetDebugConfigRequest] get_debug_config_request_object
909
+ # The ID of the Cloud Platform project that the job belongs to.
910
+ # @param [Google::Apis::DataflowV1b3::Job] job_object
911
+ # @param [String] view
912
+ # The level of information requested in response.
913
+ # @param [String] location
914
+ # The location that contains this job.
915
+ # @param [String] replace_job_id
916
+ # Deprecated. This field is now in the Job message.
917
+ # @param [String] fields
918
+ # Selector specifying which fields to include in a partial response.
995
919
  # @param [String] quota_user
996
920
  # Available to use for quota purposes for server-side applications. Can be any
997
921
  # arbitrary string assigned to a user, but should not exceed 40 characters.
998
- # @param [String] fields
999
- # Selector specifying which fields to include in a partial response.
1000
922
  # @param [Google::Apis::RequestOptions] options
1001
923
  # Request-specific options
1002
924
  #
1003
925
  # @yield [result, err] Result & error if block supplied
1004
- # @yieldparam result [Google::Apis::DataflowV1b3::GetDebugConfigResponse] parsed result object
926
+ # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
1005
927
  # @yieldparam err [StandardError] error object if request failed
1006
928
  #
1007
- # @return [Google::Apis::DataflowV1b3::GetDebugConfigResponse]
929
+ # @return [Google::Apis::DataflowV1b3::Job]
1008
930
  #
1009
931
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1010
932
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1011
933
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1012
- def get_project_job_debug_config(project_id, job_id, get_debug_config_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1013
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/getConfig', options)
1014
- command.request_representation = Google::Apis::DataflowV1b3::GetDebugConfigRequest::Representation
1015
- command.request_object = get_debug_config_request_object
1016
- command.response_representation = Google::Apis::DataflowV1b3::GetDebugConfigResponse::Representation
1017
- command.response_class = Google::Apis::DataflowV1b3::GetDebugConfigResponse
934
+ def create_project_job(project_id, job_object = nil, view: nil, location: nil, replace_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
935
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs', options)
936
+ command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
937
+ command.request_object = job_object
938
+ command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
939
+ command.response_class = Google::Apis::DataflowV1b3::Job
1018
940
  command.params['projectId'] = project_id unless project_id.nil?
1019
- command.params['jobId'] = job_id unless job_id.nil?
1020
- command.query['quotaUser'] = quota_user unless quota_user.nil?
941
+ command.query['view'] = view unless view.nil?
942
+ command.query['location'] = location unless location.nil?
943
+ command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
1021
944
  command.query['fields'] = fields unless fields.nil?
945
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1022
946
  execute_or_queue_command(command, &block)
1023
947
  end
1024
948
 
1025
- # Send encoded debug capture data for component.
949
+ # Request the job status.
1026
950
  # @param [String] project_id
1027
- # The project id.
951
+ # A project id.
1028
952
  # @param [String] job_id
1029
- # The job id.
1030
- # @param [Google::Apis::DataflowV1b3::SendDebugCaptureRequest] send_debug_capture_request_object
953
+ # The job to get messages for.
954
+ # @param [String] location
955
+ # The location which contains the job specified by job_id.
956
+ # @param [String] start_time
957
+ # Return only metric data that has changed since this time.
958
+ # Default is to return all information about all metrics for the job.
959
+ # @param [String] fields
960
+ # Selector specifying which fields to include in a partial response.
1031
961
  # @param [String] quota_user
1032
962
  # Available to use for quota purposes for server-side applications. Can be any
1033
963
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1034
- # @param [String] fields
1035
- # Selector specifying which fields to include in a partial response.
1036
964
  # @param [Google::Apis::RequestOptions] options
1037
965
  # Request-specific options
1038
966
  #
1039
967
  # @yield [result, err] Result & error if block supplied
1040
- # @yieldparam result [Google::Apis::DataflowV1b3::SendDebugCaptureResponse] parsed result object
968
+ # @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
1041
969
  # @yieldparam err [StandardError] error object if request failed
1042
970
  #
1043
- # @return [Google::Apis::DataflowV1b3::SendDebugCaptureResponse]
971
+ # @return [Google::Apis::DataflowV1b3::JobMetrics]
1044
972
  #
1045
973
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1046
974
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1047
975
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1048
- def send_project_job_debug_capture(project_id, job_id, send_debug_capture_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1049
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/sendCapture', options)
1050
- command.request_representation = Google::Apis::DataflowV1b3::SendDebugCaptureRequest::Representation
1051
- command.request_object = send_debug_capture_request_object
1052
- command.response_representation = Google::Apis::DataflowV1b3::SendDebugCaptureResponse::Representation
1053
- command.response_class = Google::Apis::DataflowV1b3::SendDebugCaptureResponse
976
+ def get_project_job_metrics(project_id, job_id, location: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
977
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options)
978
+ command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
979
+ command.response_class = Google::Apis::DataflowV1b3::JobMetrics
1054
980
  command.params['projectId'] = project_id unless project_id.nil?
1055
981
  command.params['jobId'] = job_id unless job_id.nil?
1056
- command.query['quotaUser'] = quota_user unless quota_user.nil?
982
+ command.query['location'] = location unless location.nil?
983
+ command.query['startTime'] = start_time unless start_time.nil?
1057
984
  command.query['fields'] = fields unless fields.nil?
985
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1058
986
  execute_or_queue_command(command, &block)
1059
987
  end
1060
988
 
@@ -1064,11 +992,11 @@ module Google
1064
992
  # @param [String] job_id
1065
993
  # The job which the WorkItem is part of.
1066
994
  # @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
995
+ # @param [String] fields
996
+ # Selector specifying which fields to include in a partial response.
1067
997
  # @param [String] quota_user
1068
998
  # Available to use for quota purposes for server-side applications. Can be any
1069
999
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1070
- # @param [String] fields
1071
- # Selector specifying which fields to include in a partial response.
1072
1000
  # @param [Google::Apis::RequestOptions] options
1073
1001
  # Request-specific options
1074
1002
  #
@@ -1081,7 +1009,7 @@ module Google
1081
1009
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1082
1010
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1083
1011
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1084
- def report_project_job_work_item_status(project_id, job_id, report_work_item_status_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1012
+ 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)
1085
1013
  command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus', options)
1086
1014
  command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
1087
1015
  command.request_object = report_work_item_status_request_object
@@ -1089,8 +1017,8 @@ module Google
1089
1017
  command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
1090
1018
  command.params['projectId'] = project_id unless project_id.nil?
1091
1019
  command.params['jobId'] = job_id unless job_id.nil?
1092
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1093
1020
  command.query['fields'] = fields unless fields.nil?
1021
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1094
1022
  execute_or_queue_command(command, &block)
1095
1023
  end
1096
1024
 
@@ -1100,11 +1028,11 @@ module Google
1100
1028
  # @param [String] job_id
1101
1029
  # Identifies the workflow job this worker belongs to.
1102
1030
  # @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
1031
+ # @param [String] fields
1032
+ # Selector specifying which fields to include in a partial response.
1103
1033
  # @param [String] quota_user
1104
1034
  # Available to use for quota purposes for server-side applications. Can be any
1105
1035
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1106
- # @param [String] fields
1107
- # Selector specifying which fields to include in a partial response.
1108
1036
  # @param [Google::Apis::RequestOptions] options
1109
1037
  # Request-specific options
1110
1038
  #
@@ -1117,7 +1045,7 @@ module Google
1117
1045
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1118
1046
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1119
1047
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1120
- def lease_project_work_item(project_id, job_id, lease_work_item_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1048
+ def lease_project_work_item(project_id, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1121
1049
  command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', options)
1122
1050
  command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
1123
1051
  command.request_object = lease_work_item_request_object
@@ -1125,8 +1053,80 @@ module Google
1125
1053
  command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
1126
1054
  command.params['projectId'] = project_id unless project_id.nil?
1127
1055
  command.params['jobId'] = job_id unless job_id.nil?
1056
+ command.query['fields'] = fields unless fields.nil?
1057
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1058
+ execute_or_queue_command(command, &block)
1059
+ end
1060
+
1061
+ # Send encoded debug capture data for component.
1062
+ # @param [String] project_id
1063
+ # The project id.
1064
+ # @param [String] job_id
1065
+ # The job id.
1066
+ # @param [Google::Apis::DataflowV1b3::SendDebugCaptureRequest] send_debug_capture_request_object
1067
+ # @param [String] fields
1068
+ # Selector specifying which fields to include in a partial response.
1069
+ # @param [String] quota_user
1070
+ # Available to use for quota purposes for server-side applications. Can be any
1071
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1072
+ # @param [Google::Apis::RequestOptions] options
1073
+ # Request-specific options
1074
+ #
1075
+ # @yield [result, err] Result & error if block supplied
1076
+ # @yieldparam result [Google::Apis::DataflowV1b3::SendDebugCaptureResponse] parsed result object
1077
+ # @yieldparam err [StandardError] error object if request failed
1078
+ #
1079
+ # @return [Google::Apis::DataflowV1b3::SendDebugCaptureResponse]
1080
+ #
1081
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1082
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1083
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1084
+ def send_project_job_debug_capture(project_id, job_id, send_debug_capture_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1085
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/sendCapture', options)
1086
+ command.request_representation = Google::Apis::DataflowV1b3::SendDebugCaptureRequest::Representation
1087
+ command.request_object = send_debug_capture_request_object
1088
+ command.response_representation = Google::Apis::DataflowV1b3::SendDebugCaptureResponse::Representation
1089
+ command.response_class = Google::Apis::DataflowV1b3::SendDebugCaptureResponse
1090
+ command.params['projectId'] = project_id unless project_id.nil?
1091
+ command.params['jobId'] = job_id unless job_id.nil?
1092
+ command.query['fields'] = fields unless fields.nil?
1128
1093
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1094
+ execute_or_queue_command(command, &block)
1095
+ end
1096
+
1097
+ # Get encoded debug configuration for component. Not cacheable.
1098
+ # @param [String] project_id
1099
+ # The project id.
1100
+ # @param [String] job_id
1101
+ # The job id.
1102
+ # @param [Google::Apis::DataflowV1b3::GetDebugConfigRequest] get_debug_config_request_object
1103
+ # @param [String] fields
1104
+ # Selector specifying which fields to include in a partial response.
1105
+ # @param [String] quota_user
1106
+ # Available to use for quota purposes for server-side applications. Can be any
1107
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1108
+ # @param [Google::Apis::RequestOptions] options
1109
+ # Request-specific options
1110
+ #
1111
+ # @yield [result, err] Result & error if block supplied
1112
+ # @yieldparam result [Google::Apis::DataflowV1b3::GetDebugConfigResponse] parsed result object
1113
+ # @yieldparam err [StandardError] error object if request failed
1114
+ #
1115
+ # @return [Google::Apis::DataflowV1b3::GetDebugConfigResponse]
1116
+ #
1117
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1118
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1119
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1120
+ def get_project_job_debug_config(project_id, job_id, get_debug_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1121
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/getConfig', options)
1122
+ command.request_representation = Google::Apis::DataflowV1b3::GetDebugConfigRequest::Representation
1123
+ command.request_object = get_debug_config_request_object
1124
+ command.response_representation = Google::Apis::DataflowV1b3::GetDebugConfigResponse::Representation
1125
+ command.response_class = Google::Apis::DataflowV1b3::GetDebugConfigResponse
1126
+ command.params['projectId'] = project_id unless project_id.nil?
1127
+ command.params['jobId'] = job_id unless job_id.nil?
1129
1128
  command.query['fields'] = fields unless fields.nil?
1129
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1130
1130
  execute_or_queue_command(command, &block)
1131
1131
  end
1132
1132
 
@@ -1135,6 +1135,11 @@ module Google
1135
1135
  # A project id.
1136
1136
  # @param [String] job_id
1137
1137
  # The job to get messages about.
1138
+ # @param [String] location
1139
+ # The location which contains the job specified by job_id.
1140
+ # @param [String] end_time
1141
+ # Return only messages with timestamps < end_time. The default is now
1142
+ # (i.e. return up to the latest messages available).
1138
1143
  # @param [String] page_token
1139
1144
  # If supplied, this should be the value of next_page_token returned
1140
1145
  # by an earlier call. This will cause the next page of results to
@@ -1148,16 +1153,11 @@ module Google
1148
1153
  # default, or may return an arbitrarily large number of results.
1149
1154
  # @param [String] minimum_importance
1150
1155
  # Filter to only get messages with importance >= level
1151
- # @param [String] location
1152
- # The location which contains the job specified by job_id.
1153
- # @param [String] end_time
1154
- # Return only messages with timestamps < end_time. The default is now
1155
- # (i.e. return up to the latest messages available).
1156
+ # @param [String] fields
1157
+ # Selector specifying which fields to include in a partial response.
1156
1158
  # @param [String] quota_user
1157
1159
  # Available to use for quota purposes for server-side applications. Can be any
1158
1160
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1159
- # @param [String] fields
1160
- # Selector specifying which fields to include in a partial response.
1161
1161
  # @param [Google::Apis::RequestOptions] options
1162
1162
  # Request-specific options
1163
1163
  #
@@ -1170,28 +1170,28 @@ module Google
1170
1170
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1171
1171
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1172
1172
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1173
- def list_project_job_messages(project_id, job_id, page_token: nil, start_time: nil, page_size: nil, minimum_importance: nil, location: nil, end_time: nil, quota_user: nil, fields: nil, options: nil, &block)
1173
+ 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)
1174
1174
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/messages', options)
1175
1175
  command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
1176
1176
  command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
1177
1177
  command.params['projectId'] = project_id unless project_id.nil?
1178
1178
  command.params['jobId'] = job_id unless job_id.nil?
1179
+ command.query['location'] = location unless location.nil?
1180
+ command.query['endTime'] = end_time unless end_time.nil?
1179
1181
  command.query['pageToken'] = page_token unless page_token.nil?
1180
1182
  command.query['startTime'] = start_time unless start_time.nil?
1181
1183
  command.query['pageSize'] = page_size unless page_size.nil?
1182
1184
  command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
1183
- command.query['location'] = location unless location.nil?
1184
- command.query['endTime'] = end_time unless end_time.nil?
1185
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1186
1185
  command.query['fields'] = fields unless fields.nil?
1186
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1187
1187
  execute_or_queue_command(command, &block)
1188
1188
  end
1189
1189
 
1190
1190
  protected
1191
1191
 
1192
1192
  def apply_command_defaults(command)
1193
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1194
1193
  command.query['key'] = key unless key.nil?
1194
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1195
1195
  end
1196
1196
  end
1197
1197
  end