google-api-client 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -80,16 +80,19 @@ module Google
80
80
  execute_or_queue_command(command, &block)
81
81
  end
82
82
 
83
- # Request the job status.
83
+ # Launch a template.
84
84
  # @param [String] project_id
85
- # A project id.
85
+ # Required. The ID of the Cloud Platform project that the job belongs to.
86
+ # @param [Google::Apis::DataflowV1b3::LaunchTemplateParameters] launch_template_parameters_object
87
+ # @param [String] gcs_path
88
+ # Required. A Cloud Storage path to the template from which to create
89
+ # the job.
90
+ # Must be valid Cloud Storage URL, beginning with 'gs://'.
86
91
  # @param [String] location
87
- # The location which contains the job specified by job_id.
88
- # @param [String] job_id
89
- # The job to get messages for.
90
- # @param [String] start_time
91
- # Return only metric data that has changed since this time.
92
- # Default is to return all information about all metrics for the job.
92
+ # The location to which to direct the request.
93
+ # @param [Boolean] validate_only
94
+ # If true, the request is validated but not actually executed.
95
+ # Defaults to false.
93
96
  # @param [String] fields
94
97
  # Selector specifying which fields to include in a partial response.
95
98
  # @param [String] quota_user
@@ -99,22 +102,256 @@ module Google
99
102
  # Request-specific options
100
103
  #
101
104
  # @yield [result, err] Result & error if block supplied
102
- # @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
105
+ # @yieldparam result [Google::Apis::DataflowV1b3::LaunchTemplateResponse] parsed result object
103
106
  # @yieldparam err [StandardError] error object if request failed
104
107
  #
105
- # @return [Google::Apis::DataflowV1b3::JobMetrics]
108
+ # @return [Google::Apis::DataflowV1b3::LaunchTemplateResponse]
106
109
  #
107
110
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
108
111
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
109
112
  # @raise [Google::Apis::AuthorizationError] Authorization is required
110
- def get_project_location_job_metrics(project_id, location, job_id, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
111
- command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics', options)
112
- command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
113
- command.response_class = Google::Apis::DataflowV1b3::JobMetrics
113
+ def launch_project_template(project_id, launch_template_parameters_object = nil, gcs_path: nil, location: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
114
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates:launch', options)
115
+ command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation
116
+ command.request_object = launch_template_parameters_object
117
+ command.response_representation = Google::Apis::DataflowV1b3::LaunchTemplateResponse::Representation
118
+ command.response_class = Google::Apis::DataflowV1b3::LaunchTemplateResponse
119
+ command.params['projectId'] = project_id unless project_id.nil?
120
+ command.query['gcsPath'] = gcs_path unless gcs_path.nil?
121
+ command.query['location'] = location unless location.nil?
122
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
123
+ command.query['fields'] = fields unless fields.nil?
124
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
125
+ execute_or_queue_command(command, &block)
126
+ end
127
+
128
+ # Get the template associated with a template.
129
+ # @param [String] project_id
130
+ # Required. The ID of the Cloud Platform project that the job belongs to.
131
+ # @param [String] gcs_path
132
+ # Required. A Cloud Storage path to the template from which to
133
+ # create the job.
134
+ # Must be a valid Cloud Storage URL, beginning with `gs://`.
135
+ # @param [String] location
136
+ # The location to which to direct the request.
137
+ # @param [String] view
138
+ # The view to retrieve. Defaults to METADATA_ONLY.
139
+ # @param [String] fields
140
+ # Selector specifying which fields to include in a partial response.
141
+ # @param [String] quota_user
142
+ # Available to use for quota purposes for server-side applications. Can be any
143
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
144
+ # @param [Google::Apis::RequestOptions] options
145
+ # Request-specific options
146
+ #
147
+ # @yield [result, err] Result & error if block supplied
148
+ # @yieldparam result [Google::Apis::DataflowV1b3::GetTemplateResponse] parsed result object
149
+ # @yieldparam err [StandardError] error object if request failed
150
+ #
151
+ # @return [Google::Apis::DataflowV1b3::GetTemplateResponse]
152
+ #
153
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
154
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
155
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
156
+ def get_project_template(project_id, gcs_path: nil, location: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
157
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/templates:get', options)
158
+ command.response_representation = Google::Apis::DataflowV1b3::GetTemplateResponse::Representation
159
+ command.response_class = Google::Apis::DataflowV1b3::GetTemplateResponse
160
+ command.params['projectId'] = project_id unless project_id.nil?
161
+ command.query['gcsPath'] = gcs_path unless gcs_path.nil?
162
+ command.query['location'] = location unless location.nil?
163
+ command.query['view'] = view unless view.nil?
164
+ command.query['fields'] = fields unless fields.nil?
165
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
166
+ execute_or_queue_command(command, &block)
167
+ end
168
+
169
+ # Creates a Cloud Dataflow job from a template.
170
+ # @param [String] project_id
171
+ # Required. The ID of the Cloud Platform project that the job belongs to.
172
+ # @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
173
+ # @param [String] fields
174
+ # Selector specifying which fields to include in a partial response.
175
+ # @param [String] quota_user
176
+ # Available to use for quota purposes for server-side applications. Can be any
177
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
178
+ # @param [Google::Apis::RequestOptions] options
179
+ # Request-specific options
180
+ #
181
+ # @yield [result, err] Result & error if block supplied
182
+ # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
183
+ # @yieldparam err [StandardError] error object if request failed
184
+ #
185
+ # @return [Google::Apis::DataflowV1b3::Job]
186
+ #
187
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
188
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
189
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
190
+ def create_job_from_template(project_id, create_job_from_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
191
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates', options)
192
+ command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation
193
+ command.request_object = create_job_from_template_request_object
194
+ command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
195
+ command.response_class = Google::Apis::DataflowV1b3::Job
196
+ command.params['projectId'] = project_id unless project_id.nil?
197
+ command.query['fields'] = fields unless fields.nil?
198
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
199
+ execute_or_queue_command(command, &block)
200
+ end
201
+
202
+ # Send a worker_message to the service.
203
+ # @param [String] project_id
204
+ # The project to send the WorkerMessages to.
205
+ # @param [String] location
206
+ # The location which contains the job
207
+ # @param [Google::Apis::DataflowV1b3::SendWorkerMessagesRequest] send_worker_messages_request_object
208
+ # @param [String] fields
209
+ # Selector specifying which fields to include in a partial response.
210
+ # @param [String] quota_user
211
+ # Available to use for quota purposes for server-side applications. Can be any
212
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
213
+ # @param [Google::Apis::RequestOptions] options
214
+ # Request-specific options
215
+ #
216
+ # @yield [result, err] Result & error if block supplied
217
+ # @yieldparam result [Google::Apis::DataflowV1b3::SendWorkerMessagesResponse] parsed result object
218
+ # @yieldparam err [StandardError] error object if request failed
219
+ #
220
+ # @return [Google::Apis::DataflowV1b3::SendWorkerMessagesResponse]
221
+ #
222
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
223
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
224
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
225
+ def worker_project_location_messages(project_id, location, send_worker_messages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
226
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/WorkerMessages', options)
227
+ command.request_representation = Google::Apis::DataflowV1b3::SendWorkerMessagesRequest::Representation
228
+ command.request_object = send_worker_messages_request_object
229
+ command.response_representation = Google::Apis::DataflowV1b3::SendWorkerMessagesResponse::Representation
230
+ command.response_class = Google::Apis::DataflowV1b3::SendWorkerMessagesResponse
114
231
  command.params['projectId'] = project_id unless project_id.nil?
115
232
  command.params['location'] = location unless location.nil?
116
- command.params['jobId'] = job_id unless job_id.nil?
117
- command.query['startTime'] = start_time unless start_time.nil?
233
+ command.query['fields'] = fields unless fields.nil?
234
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
235
+ execute_or_queue_command(command, &block)
236
+ end
237
+
238
+ # Creates a Cloud Dataflow job from a template.
239
+ # @param [String] project_id
240
+ # Required. The ID of the Cloud Platform project that the job belongs to.
241
+ # @param [String] location
242
+ # The location to which to direct the request.
243
+ # @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
244
+ # @param [String] fields
245
+ # Selector specifying which fields to include in a partial response.
246
+ # @param [String] quota_user
247
+ # Available to use for quota purposes for server-side applications. Can be any
248
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
249
+ # @param [Google::Apis::RequestOptions] options
250
+ # Request-specific options
251
+ #
252
+ # @yield [result, err] Result & error if block supplied
253
+ # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
254
+ # @yieldparam err [StandardError] error object if request failed
255
+ #
256
+ # @return [Google::Apis::DataflowV1b3::Job]
257
+ #
258
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
259
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
260
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
261
+ 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)
262
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/templates', options)
263
+ command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation
264
+ command.request_object = create_job_from_template_request_object
265
+ command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
266
+ command.response_class = Google::Apis::DataflowV1b3::Job
267
+ command.params['projectId'] = project_id unless project_id.nil?
268
+ command.params['location'] = location unless location.nil?
269
+ command.query['fields'] = fields unless fields.nil?
270
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
271
+ execute_or_queue_command(command, &block)
272
+ end
273
+
274
+ # Launch a template.
275
+ # @param [String] project_id
276
+ # Required. The ID of the Cloud Platform project that the job belongs to.
277
+ # @param [String] location
278
+ # The location to which to direct the request.
279
+ # @param [Google::Apis::DataflowV1b3::LaunchTemplateParameters] launch_template_parameters_object
280
+ # @param [String] gcs_path
281
+ # Required. A Cloud Storage path to the template from which to create
282
+ # the job.
283
+ # Must be valid Cloud Storage URL, beginning with 'gs://'.
284
+ # @param [Boolean] validate_only
285
+ # If true, the request is validated but not actually executed.
286
+ # Defaults to false.
287
+ # @param [String] fields
288
+ # Selector specifying which fields to include in a partial response.
289
+ # @param [String] quota_user
290
+ # Available to use for quota purposes for server-side applications. Can be any
291
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
292
+ # @param [Google::Apis::RequestOptions] options
293
+ # Request-specific options
294
+ #
295
+ # @yield [result, err] Result & error if block supplied
296
+ # @yieldparam result [Google::Apis::DataflowV1b3::LaunchTemplateResponse] parsed result object
297
+ # @yieldparam err [StandardError] error object if request failed
298
+ #
299
+ # @return [Google::Apis::DataflowV1b3::LaunchTemplateResponse]
300
+ #
301
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
302
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
303
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
304
+ def launch_project_location_template(project_id, location, launch_template_parameters_object = nil, gcs_path: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
305
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/templates:launch', options)
306
+ command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation
307
+ command.request_object = launch_template_parameters_object
308
+ command.response_representation = Google::Apis::DataflowV1b3::LaunchTemplateResponse::Representation
309
+ command.response_class = Google::Apis::DataflowV1b3::LaunchTemplateResponse
310
+ command.params['projectId'] = project_id unless project_id.nil?
311
+ command.params['location'] = location unless location.nil?
312
+ command.query['gcsPath'] = gcs_path unless gcs_path.nil?
313
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
314
+ command.query['fields'] = fields unless fields.nil?
315
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
316
+ execute_or_queue_command(command, &block)
317
+ end
318
+
319
+ # Get the template associated with a template.
320
+ # @param [String] project_id
321
+ # Required. The ID of the Cloud Platform project that the job belongs to.
322
+ # @param [String] location
323
+ # The location to which to direct the request.
324
+ # @param [String] view
325
+ # The view to retrieve. Defaults to METADATA_ONLY.
326
+ # @param [String] gcs_path
327
+ # Required. A Cloud Storage path to the template from which to
328
+ # create the job.
329
+ # Must be a valid Cloud Storage URL, beginning with `gs://`.
330
+ # @param [String] fields
331
+ # Selector specifying which fields to include in a partial response.
332
+ # @param [String] quota_user
333
+ # Available to use for quota purposes for server-side applications. Can be any
334
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
335
+ # @param [Google::Apis::RequestOptions] options
336
+ # Request-specific options
337
+ #
338
+ # @yield [result, err] Result & error if block supplied
339
+ # @yieldparam result [Google::Apis::DataflowV1b3::GetTemplateResponse] parsed result object
340
+ # @yieldparam err [StandardError] error object if request failed
341
+ #
342
+ # @return [Google::Apis::DataflowV1b3::GetTemplateResponse]
343
+ #
344
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
345
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
346
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
347
+ def get_project_location_template(project_id, location, view: nil, gcs_path: nil, fields: nil, quota_user: nil, options: nil, &block)
348
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/templates:get', options)
349
+ command.response_representation = Google::Apis::DataflowV1b3::GetTemplateResponse::Representation
350
+ command.response_class = Google::Apis::DataflowV1b3::GetTemplateResponse
351
+ command.params['projectId'] = project_id unless project_id.nil?
352
+ command.params['location'] = location unless location.nil?
353
+ command.query['view'] = view unless view.nil?
354
+ command.query['gcsPath'] = gcs_path unless gcs_path.nil?
118
355
  command.query['fields'] = fields unless fields.nil?
119
356
  command.query['quotaUser'] = quota_user unless quota_user.nil?
120
357
  execute_or_queue_command(command, &block)
@@ -164,6 +401,8 @@ module Google
164
401
  # The project which owns the jobs.
165
402
  # @param [String] location
166
403
  # The location that contains this job.
404
+ # @param [String] filter
405
+ # The kind of filter to use.
167
406
  # @param [String] page_token
168
407
  # Set this to the 'next_page_token' field of a previous response
169
408
  # to request additional results in a long list.
@@ -173,8 +412,6 @@ module Google
173
412
  # and an unspecified server-defined limit.
174
413
  # @param [String] view
175
414
  # Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
176
- # @param [String] filter
177
- # The kind of filter to use.
178
415
  # @param [String] fields
179
416
  # Selector specifying which fields to include in a partial response.
180
417
  # @param [String] quota_user
@@ -192,16 +429,16 @@ module Google
192
429
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
193
430
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
194
431
  # @raise [Google::Apis::AuthorizationError] Authorization is required
195
- def list_project_location_jobs(project_id, location, page_token: nil, page_size: nil, view: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
432
+ 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)
196
433
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
197
434
  command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
198
435
  command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
199
436
  command.params['projectId'] = project_id unless project_id.nil?
200
437
  command.params['location'] = location unless location.nil?
438
+ command.query['filter'] = filter unless filter.nil?
201
439
  command.query['pageToken'] = page_token unless page_token.nil?
202
440
  command.query['pageSize'] = page_size unless page_size.nil?
203
441
  command.query['view'] = view unless view.nil?
204
- command.query['filter'] = filter unless filter.nil?
205
442
  command.query['fields'] = fields unless fields.nil?
206
443
  command.query['quotaUser'] = quota_user unless quota_user.nil?
207
444
  execute_or_queue_command(command, &block)
@@ -288,14 +525,16 @@ module Google
288
525
  execute_or_queue_command(command, &block)
289
526
  end
290
527
 
291
- # Reports the status of dataflow WorkItems leased by a worker.
528
+ # Request the job status.
292
529
  # @param [String] project_id
293
- # The project which owns the WorkItem's job.
530
+ # A project id.
294
531
  # @param [String] location
295
- # The location which contains the WorkItem's job.
532
+ # The location which contains the job specified by job_id.
296
533
  # @param [String] job_id
297
- # The job which the WorkItem is part of.
298
- # @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
534
+ # The job to get messages for.
535
+ # @param [String] start_time
536
+ # Return only metric data that has changed since this time.
537
+ # Default is to return all information about all metrics for the job.
299
538
  # @param [String] fields
300
539
  # Selector specifying which fields to include in a partial response.
301
540
  # @param [String] quota_user
@@ -305,36 +544,35 @@ module Google
305
544
  # Request-specific options
306
545
  #
307
546
  # @yield [result, err] Result & error if block supplied
308
- # @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
547
+ # @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
309
548
  # @yieldparam err [StandardError] error object if request failed
310
549
  #
311
- # @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
550
+ # @return [Google::Apis::DataflowV1b3::JobMetrics]
312
551
  #
313
552
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
314
553
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
315
554
  # @raise [Google::Apis::AuthorizationError] Authorization is required
316
- 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)
317
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus', options)
318
- command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
319
- command.request_object = report_work_item_status_request_object
320
- command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
321
- command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
555
+ def get_project_location_job_metrics(project_id, location, job_id, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
556
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics', options)
557
+ command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
558
+ command.response_class = Google::Apis::DataflowV1b3::JobMetrics
322
559
  command.params['projectId'] = project_id unless project_id.nil?
323
560
  command.params['location'] = location unless location.nil?
324
561
  command.params['jobId'] = job_id unless job_id.nil?
562
+ command.query['startTime'] = start_time unless start_time.nil?
325
563
  command.query['fields'] = fields unless fields.nil?
326
564
  command.query['quotaUser'] = quota_user unless quota_user.nil?
327
565
  execute_or_queue_command(command, &block)
328
566
  end
329
567
 
330
- # Leases a dataflow WorkItem to run.
568
+ # Get encoded debug configuration for component. Not cacheable.
331
569
  # @param [String] project_id
332
- # Identifies the project this worker belongs to.
570
+ # The project id.
333
571
  # @param [String] location
334
- # The location which contains the WorkItem's job.
572
+ # The location which contains the job specified by job_id.
335
573
  # @param [String] job_id
336
- # Identifies the workflow job this worker belongs to.
337
- # @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
574
+ # The job id.
575
+ # @param [Google::Apis::DataflowV1b3::GetDebugConfigRequest] get_debug_config_request_object
338
576
  # @param [String] fields
339
577
  # Selector specifying which fields to include in a partial response.
340
578
  # @param [String] quota_user
@@ -344,20 +582,20 @@ module Google
344
582
  # Request-specific options
345
583
  #
346
584
  # @yield [result, err] Result & error if block supplied
347
- # @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
585
+ # @yieldparam result [Google::Apis::DataflowV1b3::GetDebugConfigResponse] parsed result object
348
586
  # @yieldparam err [StandardError] error object if request failed
349
587
  #
350
- # @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
588
+ # @return [Google::Apis::DataflowV1b3::GetDebugConfigResponse]
351
589
  #
352
590
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
353
591
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
354
592
  # @raise [Google::Apis::AuthorizationError] Authorization is required
355
- 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)
356
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:lease', options)
357
- command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
358
- command.request_object = lease_work_item_request_object
359
- command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
360
- command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
593
+ 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)
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
361
599
  command.params['projectId'] = project_id unless project_id.nil?
362
600
  command.params['location'] = location unless location.nil?
363
601
  command.params['jobId'] = job_id unless job_id.nil?
@@ -366,29 +604,14 @@ module Google
366
604
  execute_or_queue_command(command, &block)
367
605
  end
368
606
 
369
- # Request the job status.
607
+ # Send encoded debug capture data for component.
370
608
  # @param [String] project_id
371
- # A project id.
609
+ # The project id.
372
610
  # @param [String] location
373
611
  # The location which contains the job specified by job_id.
374
612
  # @param [String] job_id
375
- # The job to get messages about.
376
- # @param [String] end_time
377
- # Return only messages with timestamps < end_time. The default is now
378
- # (i.e. return up to the latest messages available).
379
- # @param [String] start_time
380
- # If specified, return only messages with timestamps >= start_time.
381
- # The default is the job creation time (i.e. beginning of messages).
382
- # @param [String] page_token
383
- # If supplied, this should be the value of next_page_token returned
384
- # by an earlier call. This will cause the next page of results to
385
- # be returned.
386
- # @param [Fixnum] page_size
387
- # If specified, determines the maximum number of messages to
388
- # return. If unspecified, the service may choose an appropriate
389
- # default, or may return an arbitrarily large number of results.
390
- # @param [String] minimum_importance
391
- # Filter to only get messages with importance >= level
613
+ # The job id.
614
+ # @param [Google::Apis::DataflowV1b3::SendDebugCaptureRequest] send_debug_capture_request_object
392
615
  # @param [String] fields
393
616
  # Selector specifying which fields to include in a partial response.
394
617
  # @param [String] quota_user
@@ -398,43 +621,36 @@ module Google
398
621
  # Request-specific options
399
622
  #
400
623
  # @yield [result, err] Result & error if block supplied
401
- # @yieldparam result [Google::Apis::DataflowV1b3::ListJobMessagesResponse] parsed result object
624
+ # @yieldparam result [Google::Apis::DataflowV1b3::SendDebugCaptureResponse] parsed result object
402
625
  # @yieldparam err [StandardError] error object if request failed
403
626
  #
404
- # @return [Google::Apis::DataflowV1b3::ListJobMessagesResponse]
627
+ # @return [Google::Apis::DataflowV1b3::SendDebugCaptureResponse]
405
628
  #
406
629
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
407
630
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
408
631
  # @raise [Google::Apis::AuthorizationError] Authorization is required
409
- 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)
410
- command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages', options)
411
- command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
412
- command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
632
+ 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)
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
413
638
  command.params['projectId'] = project_id unless project_id.nil?
414
639
  command.params['location'] = location unless location.nil?
415
640
  command.params['jobId'] = job_id unless job_id.nil?
416
- command.query['endTime'] = end_time unless end_time.nil?
417
- command.query['startTime'] = start_time unless start_time.nil?
418
- command.query['pageToken'] = page_token unless page_token.nil?
419
- command.query['pageSize'] = page_size unless page_size.nil?
420
- command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
421
641
  command.query['fields'] = fields unless fields.nil?
422
642
  command.query['quotaUser'] = quota_user unless quota_user.nil?
423
643
  execute_or_queue_command(command, &block)
424
644
  end
425
645
 
426
- # Launch a template.
646
+ # Leases a dataflow WorkItem to run.
427
647
  # @param [String] project_id
428
- # Required. The ID of the Cloud Platform project that the job belongs to.
429
- # @param [Google::Apis::DataflowV1b3::LaunchTemplateParameters] launch_template_parameters_object
430
- # @param [Boolean] dry_run
431
- # Whether or not the job should actually be executed after
432
- # validating parameters. Defaults to false. Validation errors do
433
- # not cause the HTTP request to fail if true.
434
- # @param [String] gcs_path
435
- # Required. A Cloud Storage path to the template from which to create
436
- # the job.
437
- # Must be valid Cloud Storage URL, beginning with 'gs://'.
648
+ # Identifies the project this worker belongs to.
649
+ # @param [String] location
650
+ # The location which contains the WorkItem's job.
651
+ # @param [String] job_id
652
+ # Identifies the workflow job this worker belongs to.
653
+ # @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
438
654
  # @param [String] fields
439
655
  # Selector specifying which fields to include in a partial response.
440
656
  # @param [String] quota_user
@@ -444,37 +660,36 @@ module Google
444
660
  # Request-specific options
445
661
  #
446
662
  # @yield [result, err] Result & error if block supplied
447
- # @yieldparam result [Google::Apis::DataflowV1b3::LaunchTemplateResponse] parsed result object
663
+ # @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
448
664
  # @yieldparam err [StandardError] error object if request failed
449
665
  #
450
- # @return [Google::Apis::DataflowV1b3::LaunchTemplateResponse]
666
+ # @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
451
667
  #
452
668
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
453
669
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
454
670
  # @raise [Google::Apis::AuthorizationError] Authorization is required
455
- def launch_project_template(project_id, launch_template_parameters_object = nil, dry_run: nil, gcs_path: nil, fields: nil, quota_user: nil, options: nil, &block)
456
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates:launch', options)
457
- command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation
458
- command.request_object = launch_template_parameters_object
459
- command.response_representation = Google::Apis::DataflowV1b3::LaunchTemplateResponse::Representation
460
- command.response_class = Google::Apis::DataflowV1b3::LaunchTemplateResponse
671
+ 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)
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
461
677
  command.params['projectId'] = project_id unless project_id.nil?
462
- command.query['dryRun'] = dry_run unless dry_run.nil?
463
- command.query['gcsPath'] = gcs_path unless gcs_path.nil?
678
+ command.params['location'] = location unless location.nil?
679
+ command.params['jobId'] = job_id unless job_id.nil?
464
680
  command.query['fields'] = fields unless fields.nil?
465
681
  command.query['quotaUser'] = quota_user unless quota_user.nil?
466
682
  execute_or_queue_command(command, &block)
467
683
  end
468
684
 
469
- # Get the template associated with a template.
685
+ # Reports the status of dataflow WorkItems leased by a worker.
470
686
  # @param [String] project_id
471
- # Required. The ID of the Cloud Platform project that the job belongs to.
472
- # @param [String] view
473
- # The view to retrieve. Defaults to METADATA_ONLY.
474
- # @param [String] gcs_path
475
- # Required. A Cloud Storage path to the template from which to
476
- # create the job.
477
- # Must be a valid Cloud Storage URL, beginning with `gs://`.
687
+ # The project which owns the WorkItem's job.
688
+ # @param [String] location
689
+ # The location which contains the WorkItem's job.
690
+ # @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
478
693
  # @param [String] fields
479
694
  # Selector specifying which fields to include in a partial response.
480
695
  # @param [String] quota_user
@@ -484,30 +699,51 @@ module Google
484
699
  # Request-specific options
485
700
  #
486
701
  # @yield [result, err] Result & error if block supplied
487
- # @yieldparam result [Google::Apis::DataflowV1b3::GetTemplateResponse] parsed result object
702
+ # @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
488
703
  # @yieldparam err [StandardError] error object if request failed
489
704
  #
490
- # @return [Google::Apis::DataflowV1b3::GetTemplateResponse]
705
+ # @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
491
706
  #
492
707
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
493
708
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
494
709
  # @raise [Google::Apis::AuthorizationError] Authorization is required
495
- def get_project_template(project_id, view: nil, gcs_path: nil, fields: nil, quota_user: nil, options: nil, &block)
496
- command = make_simple_command(:get, 'v1b3/projects/{projectId}/templates:get', options)
497
- command.response_representation = Google::Apis::DataflowV1b3::GetTemplateResponse::Representation
498
- command.response_class = Google::Apis::DataflowV1b3::GetTemplateResponse
710
+ 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)
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
499
716
  command.params['projectId'] = project_id unless project_id.nil?
500
- command.query['view'] = view unless view.nil?
501
- command.query['gcsPath'] = gcs_path unless gcs_path.nil?
717
+ command.params['location'] = location unless location.nil?
718
+ command.params['jobId'] = job_id unless job_id.nil?
502
719
  command.query['fields'] = fields unless fields.nil?
503
720
  command.query['quotaUser'] = quota_user unless quota_user.nil?
504
721
  execute_or_queue_command(command, &block)
505
722
  end
506
723
 
507
- # Creates a Cloud Dataflow job from a template.
724
+ # Request the job status.
508
725
  # @param [String] project_id
509
- # Required. The ID of the Cloud Platform project that the job belongs to.
510
- # @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
726
+ # A project id.
727
+ # @param [String] location
728
+ # The location which contains the job specified by job_id.
729
+ # @param [String] job_id
730
+ # The job to get messages about.
731
+ # @param [String] end_time
732
+ # Return only messages with timestamps < end_time. The default is now
733
+ # (i.e. return up to the latest messages available).
734
+ # @param [String] start_time
735
+ # If specified, return only messages with timestamps >= start_time.
736
+ # The default is the job creation time (i.e. beginning of messages).
737
+ # @param [String] page_token
738
+ # If supplied, this should be the value of next_page_token returned
739
+ # by an earlier call. This will cause the next page of results to
740
+ # be returned.
741
+ # @param [Fixnum] page_size
742
+ # If specified, determines the maximum number of messages to
743
+ # return. If unspecified, the service may choose an appropriate
744
+ # default, or may return an arbitrarily large number of results.
745
+ # @param [String] minimum_importance
746
+ # Filter to only get messages with importance >= level
511
747
  # @param [String] fields
512
748
  # Selector specifying which fields to include in a partial response.
513
749
  # @param [String] quota_user
@@ -517,21 +753,26 @@ module Google
517
753
  # Request-specific options
518
754
  #
519
755
  # @yield [result, err] Result & error if block supplied
520
- # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
756
+ # @yieldparam result [Google::Apis::DataflowV1b3::ListJobMessagesResponse] parsed result object
521
757
  # @yieldparam err [StandardError] error object if request failed
522
758
  #
523
- # @return [Google::Apis::DataflowV1b3::Job]
759
+ # @return [Google::Apis::DataflowV1b3::ListJobMessagesResponse]
524
760
  #
525
761
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
526
762
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
527
763
  # @raise [Google::Apis::AuthorizationError] Authorization is required
528
- def create_job_from_template(project_id, create_job_from_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
529
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates', options)
530
- command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation
531
- command.request_object = create_job_from_template_request_object
532
- command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
533
- command.response_class = Google::Apis::DataflowV1b3::Job
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, fields: nil, quota_user: nil, options: nil, &block)
765
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages', options)
766
+ command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
767
+ command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
534
768
  command.params['projectId'] = project_id unless project_id.nil?
769
+ command.params['location'] = location unless location.nil?
770
+ command.params['jobId'] = job_id unless job_id.nil?
771
+ command.query['endTime'] = end_time unless end_time.nil?
772
+ command.query['startTime'] = start_time unless start_time.nil?
773
+ command.query['pageToken'] = page_token unless page_token.nil?
774
+ command.query['pageSize'] = page_size unless page_size.nil?
775
+ command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
535
776
  command.query['fields'] = fields unless fields.nil?
536
777
  command.query['quotaUser'] = quota_user unless quota_user.nil?
537
778
  execute_or_queue_command(command, &block)
@@ -542,10 +783,10 @@ module Google
542
783
  # The ID of the Cloud Platform project that the job belongs to.
543
784
  # @param [String] job_id
544
785
  # The job ID.
545
- # @param [String] location
546
- # The location that contains this job.
547
786
  # @param [String] view
548
787
  # The level of information requested in response.
788
+ # @param [String] location
789
+ # The location that contains this job.
549
790
  # @param [String] fields
550
791
  # Selector specifying which fields to include in a partial response.
551
792
  # @param [String] quota_user
@@ -563,14 +804,14 @@ module Google
563
804
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
564
805
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
565
806
  # @raise [Google::Apis::AuthorizationError] Authorization is required
566
- def get_project_job(project_id, job_id, location: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
807
+ def get_project_job(project_id, job_id, view: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
567
808
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
568
809
  command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
569
810
  command.response_class = Google::Apis::DataflowV1b3::Job
570
811
  command.params['projectId'] = project_id unless project_id.nil?
571
812
  command.params['jobId'] = job_id unless job_id.nil?
572
- command.query['location'] = location unless location.nil?
573
813
  command.query['view'] = view unless view.nil?
814
+ command.query['location'] = location unless location.nil?
574
815
  command.query['fields'] = fields unless fields.nil?
575
816
  command.query['quotaUser'] = quota_user unless quota_user.nil?
576
817
  execute_or_queue_command(command, &block)
@@ -710,11 +951,11 @@ module Google
710
951
  # A project id.
711
952
  # @param [String] job_id
712
953
  # The job to get messages for.
713
- # @param [String] location
714
- # The location which contains the job specified by job_id.
715
954
  # @param [String] start_time
716
955
  # Return only metric data that has changed since this time.
717
956
  # Default is to return all information about all metrics for the job.
957
+ # @param [String] location
958
+ # The location which contains the job specified by job_id.
718
959
  # @param [String] fields
719
960
  # Selector specifying which fields to include in a partial response.
720
961
  # @param [String] quota_user
@@ -732,14 +973,14 @@ module Google
732
973
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
733
974
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
734
975
  # @raise [Google::Apis::AuthorizationError] Authorization is required
735
- def get_project_job_metrics(project_id, job_id, location: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
976
+ def get_project_job_metrics(project_id, job_id, start_time: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
736
977
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options)
737
978
  command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
738
979
  command.response_class = Google::Apis::DataflowV1b3::JobMetrics
739
980
  command.params['projectId'] = project_id unless project_id.nil?
740
981
  command.params['jobId'] = job_id unless job_id.nil?
741
- command.query['location'] = location unless location.nil?
742
982
  command.query['startTime'] = start_time unless start_time.nil?
983
+ command.query['location'] = location unless location.nil?
743
984
  command.query['fields'] = fields unless fields.nil?
744
985
  command.query['quotaUser'] = quota_user unless quota_user.nil?
745
986
  execute_or_queue_command(command, &block)
@@ -899,13 +1140,13 @@ module Google
899
1140
  # (i.e. return up to the latest messages available).
900
1141
  # @param [String] location
901
1142
  # The location which contains the job specified by job_id.
902
- # @param [String] start_time
903
- # If specified, return only messages with timestamps >= start_time.
904
- # The default is the job creation time (i.e. beginning of messages).
905
1143
  # @param [String] page_token
906
1144
  # If supplied, this should be the value of next_page_token returned
907
1145
  # by an earlier call. This will cause the next page of results to
908
1146
  # be returned.
1147
+ # @param [String] start_time
1148
+ # If specified, return only messages with timestamps >= start_time.
1149
+ # The default is the job creation time (i.e. beginning of messages).
909
1150
  # @param [Fixnum] page_size
910
1151
  # If specified, determines the maximum number of messages to
911
1152
  # return. If unspecified, the service may choose an appropriate
@@ -929,7 +1170,7 @@ module Google
929
1170
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
930
1171
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
931
1172
  # @raise [Google::Apis::AuthorizationError] Authorization is required
932
- def list_project_job_messages(project_id, job_id, end_time: nil, location: nil, start_time: nil, page_token: nil, page_size: nil, minimum_importance: nil, fields: nil, quota_user: nil, options: nil, &block)
1173
+ def list_project_job_messages(project_id, job_id, end_time: nil, location: nil, page_token: nil, start_time: nil, page_size: nil, minimum_importance: nil, fields: nil, quota_user: nil, options: nil, &block)
933
1174
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/messages', options)
934
1175
  command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
935
1176
  command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
@@ -937,8 +1178,8 @@ module Google
937
1178
  command.params['jobId'] = job_id unless job_id.nil?
938
1179
  command.query['endTime'] = end_time unless end_time.nil?
939
1180
  command.query['location'] = location unless location.nil?
940
- command.query['startTime'] = start_time unless start_time.nil?
941
1181
  command.query['pageToken'] = page_token unless page_token.nil?
1182
+ command.query['startTime'] = start_time unless start_time.nil?
942
1183
  command.query['pageSize'] = page_size unless page_size.nil?
943
1184
  command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
944
1185
  command.query['fields'] = fields unless fields.nil?