google-api-client 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +37747 -36512
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
  21. data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  26. data/generated/google/apis/appsactivity_v1.rb +3 -3
  27. data/generated/google/apis/appsactivity_v1/service.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 +34 -8
  31. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/calendar_v3/classes.rb +3 -5
  34. data/generated/google/apis/classroom_v1.rb +25 -22
  35. data/generated/google/apis/classroom_v1/classes.rb +910 -1001
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1064 -1272
  38. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  39. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  40. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  41. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  42. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
  44. data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
  45. data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
  46. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  47. data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
  48. data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
  49. data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
  50. data/generated/google/apis/cloudkms_v1.rb +35 -0
  51. data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
  52. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  53. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  54. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
  56. data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
  57. data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
  58. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
  61. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
  62. data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
  63. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  64. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
  66. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
  67. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  68. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
  69. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  70. data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
  71. data/generated/google/apis/compute_beta.rb +1 -1
  72. data/generated/google/apis/compute_beta/classes.rb +813 -82
  73. data/generated/google/apis/compute_beta/representations.rb +305 -0
  74. data/generated/google/apis/compute_beta/service.rb +971 -180
  75. data/generated/google/apis/compute_v1.rb +1 -1
  76. data/generated/google/apis/compute_v1/classes.rb +147 -21
  77. data/generated/google/apis/compute_v1/representations.rb +38 -0
  78. data/generated/google/apis/compute_v1/service.rb +347 -65
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/classes.rb +2 -1
  81. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
  84. data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
  87. data/generated/google/apis/dataproc_v1/representations.rb +220 -204
  88. data/generated/google/apis/dataproc_v1/service.rb +299 -299
  89. data/generated/google/apis/datastore_v1.rb +4 -4
  90. data/generated/google/apis/datastore_v1/classes.rb +688 -688
  91. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  92. data/generated/google/apis/datastore_v1/service.rb +68 -68
  93. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  94. data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v2beta1.rb +1 -1
  97. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +487 -15
  102. data/generated/google/apis/drive_v2/representations.rb +120 -0
  103. data/generated/google/apis/drive_v2/service.rb +355 -38
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +416 -14
  106. data/generated/google/apis/drive_v3/representations.rb +99 -0
  107. data/generated/google/apis/drive_v3/service.rb +315 -28
  108. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1.rb +7 -7
  112. data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
  113. data/generated/google/apis/genomics_v1/representations.rb +239 -239
  114. data/generated/google/apis/genomics_v1/service.rb +599 -599
  115. data/generated/google/apis/gmail_v1.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +18 -1
  117. data/generated/google/apis/groupssettings_v1.rb +1 -1
  118. data/generated/google/apis/iam_v1.rb +1 -1
  119. data/generated/google/apis/iam_v1/classes.rb +440 -440
  120. data/generated/google/apis/iam_v1/representations.rb +96 -96
  121. data/generated/google/apis/iam_v1/service.rb +150 -150
  122. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  123. data/generated/google/apis/language_v1beta1.rb +1 -1
  124. data/generated/google/apis/language_v1beta1/classes.rb +235 -235
  125. data/generated/google/apis/language_v1beta1/representations.rb +73 -73
  126. data/generated/google/apis/language_v1beta1/service.rb +49 -49
  127. data/generated/google/apis/licensing_v1.rb +1 -1
  128. data/generated/google/apis/logging_v2beta1.rb +1 -1
  129. data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
  130. data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
  131. data/generated/google/apis/logging_v2beta1/service.rb +315 -316
  132. data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
  133. data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
  134. data/generated/google/apis/manufacturers_v1/service.rb +32 -32
  135. data/generated/google/apis/monitoring_v3.rb +4 -4
  136. data/generated/google/apis/monitoring_v3/classes.rb +229 -229
  137. data/generated/google/apis/monitoring_v3/representations.rb +45 -45
  138. data/generated/google/apis/monitoring_v3/service.rb +141 -141
  139. data/generated/google/apis/partners_v2.rb +3 -3
  140. data/generated/google/apis/partners_v2/classes.rb +1837 -483
  141. data/generated/google/apis/partners_v2/representations.rb +614 -157
  142. data/generated/google/apis/partners_v2/service.rb +881 -150
  143. data/generated/google/apis/people_v1.rb +1 -1
  144. data/generated/google/apis/people_v1/classes.rb +517 -465
  145. data/generated/google/apis/people_v1/representations.rb +138 -107
  146. data/generated/google/apis/people_v1/service.rb +56 -49
  147. data/generated/google/apis/plus_domains_v1.rb +1 -1
  148. data/generated/google/apis/plus_v1.rb +1 -1
  149. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  150. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
  151. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
  152. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
  153. data/generated/google/apis/pubsub_v1.rb +4 -4
  154. data/generated/google/apis/pubsub_v1/classes.rb +203 -203
  155. data/generated/google/apis/pubsub_v1/representations.rb +65 -65
  156. data/generated/google/apis/pubsub_v1/service.rb +226 -217
  157. data/generated/google/apis/reseller_v1.rb +1 -1
  158. data/generated/google/apis/reseller_v1/classes.rb +213 -61
  159. data/generated/google/apis/reseller_v1/representations.rb +27 -0
  160. data/generated/google/apis/reseller_v1/service.rb +240 -47
  161. data/generated/google/apis/script_v1.rb +14 -14
  162. data/generated/google/apis/script_v1/classes.rb +95 -95
  163. data/generated/google/apis/script_v1/representations.rb +25 -25
  164. data/generated/google/apis/sheets_v4.rb +1 -1
  165. data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
  166. data/generated/google/apis/sheets_v4/representations.rb +853 -837
  167. data/generated/google/apis/sheets_v4/service.rb +32 -32
  168. data/generated/google/apis/slides_v1.rb +1 -1
  169. data/generated/google/apis/slides_v1/classes.rb +804 -748
  170. data/generated/google/apis/slides_v1/representations.rb +204 -187
  171. data/generated/google/apis/slides_v1/service.rb +16 -16
  172. data/generated/google/apis/speech_v1beta1.rb +1 -1
  173. data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
  174. data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
  175. data/generated/google/apis/speech_v1beta1/service.rb +66 -66
  176. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  177. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
  178. data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
  179. data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
  180. data/generated/google/apis/storage_v1.rb +1 -1
  181. data/generated/google/apis/storage_v1/service.rb +10 -7
  182. data/generated/google/apis/vision_v1.rb +1 -1
  183. data/generated/google/apis/vision_v1/classes.rb +1393 -865
  184. data/generated/google/apis/vision_v1/representations.rb +367 -102
  185. data/generated/google/apis/vision_v1/service.rb +4 -4
  186. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  189. data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
  190. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  191. data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
  192. data/lib/google/apis/version.rb +1 -1
  193. metadata +34 -30
@@ -50,11 +50,11 @@ module Google
50
50
  # @param [String] project_id
51
51
  # The project to send the WorkerMessages to.
52
52
  # @param [Google::Apis::DataflowV1b3::SendWorkerMessagesRequest] send_worker_messages_request_object
53
- # @param [String] fields
54
- # Selector specifying which fields to include in a partial response.
55
53
  # @param [String] quota_user
56
54
  # Available to use for quota purposes for server-side applications. Can be any
57
55
  # arbitrary string assigned to a user, but should not exceed 40 characters.
56
+ # @param [String] fields
57
+ # Selector specifying which fields to include in a partial response.
58
58
  # @param [Google::Apis::RequestOptions] options
59
59
  # Request-specific options
60
60
  #
@@ -67,15 +67,57 @@ module Google
67
67
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
68
68
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
69
69
  # @raise [Google::Apis::AuthorizationError] Authorization is required
70
- def worker_project_messages(project_id, send_worker_messages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
70
+ def worker_project_messages(project_id, send_worker_messages_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
71
71
  command = make_simple_command(:post, 'v1b3/projects/{projectId}/WorkerMessages', options)
72
72
  command.request_representation = Google::Apis::DataflowV1b3::SendWorkerMessagesRequest::Representation
73
73
  command.request_object = send_worker_messages_request_object
74
74
  command.response_representation = Google::Apis::DataflowV1b3::SendWorkerMessagesResponse::Representation
75
75
  command.response_class = Google::Apis::DataflowV1b3::SendWorkerMessagesResponse
76
76
  command.params['projectId'] = project_id unless project_id.nil?
77
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
77
78
  command.query['fields'] = fields unless fields.nil?
79
+ execute_or_queue_command(command, &block)
80
+ end
81
+
82
+ # Creates a Cloud Dataflow job.
83
+ # @param [String] project_id
84
+ # The ID of the Cloud Platform project that the job belongs to.
85
+ # @param [String] location
86
+ # The location that contains this job.
87
+ # @param [Google::Apis::DataflowV1b3::Job] job_object
88
+ # @param [String] view
89
+ # The level of information requested in response.
90
+ # @param [String] replace_job_id
91
+ # Deprecated. This field is now in the Job message.
92
+ # @param [String] quota_user
93
+ # Available to use for quota purposes for server-side applications. Can be any
94
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
95
+ # @param [String] fields
96
+ # Selector specifying which fields to include in a partial response.
97
+ # @param [Google::Apis::RequestOptions] options
98
+ # Request-specific options
99
+ #
100
+ # @yield [result, err] Result & error if block supplied
101
+ # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
102
+ # @yieldparam err [StandardError] error object if request failed
103
+ #
104
+ # @return [Google::Apis::DataflowV1b3::Job]
105
+ #
106
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
107
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
108
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
109
+ def create_project_location_job(project_id, location, job_object = nil, view: nil, replace_job_id: nil, quota_user: nil, fields: nil, options: nil, &block)
110
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
111
+ command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
112
+ command.request_object = job_object
113
+ command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
114
+ command.response_class = Google::Apis::DataflowV1b3::Job
115
+ command.params['projectId'] = project_id unless project_id.nil?
116
+ command.params['location'] = location unless location.nil?
117
+ command.query['view'] = view unless view.nil?
118
+ command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
78
119
  command.query['quotaUser'] = quota_user unless quota_user.nil?
120
+ command.query['fields'] = fields unless fields.nil?
79
121
  execute_or_queue_command(command, &block)
80
122
  end
81
123
 
@@ -89,11 +131,11 @@ module Google
89
131
  # @param [String] start_time
90
132
  # Return only metric data that has changed since this time.
91
133
  # Default is to return all information about all metrics for the job.
92
- # @param [String] fields
93
- # Selector specifying which fields to include in a partial response.
94
134
  # @param [String] quota_user
95
135
  # Available to use for quota purposes for server-side applications. Can be any
96
136
  # arbitrary string assigned to a user, but should not exceed 40 characters.
137
+ # @param [String] fields
138
+ # Selector specifying which fields to include in a partial response.
97
139
  # @param [Google::Apis::RequestOptions] options
98
140
  # Request-specific options
99
141
  #
@@ -106,7 +148,7 @@ module Google
106
148
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
107
149
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
108
150
  # @raise [Google::Apis::AuthorizationError] Authorization is required
109
- def get_project_location_job_metrics(project_id, location, job_id, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
151
+ def get_project_location_job_metrics(project_id, location, job_id, start_time: nil, quota_user: nil, fields: nil, options: nil, &block)
110
152
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics', options)
111
153
  command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
112
154
  command.response_class = Google::Apis::DataflowV1b3::JobMetrics
@@ -114,8 +156,8 @@ module Google
114
156
  command.params['location'] = location unless location.nil?
115
157
  command.params['jobId'] = job_id unless job_id.nil?
116
158
  command.query['startTime'] = start_time unless start_time.nil?
117
- command.query['fields'] = fields unless fields.nil?
118
159
  command.query['quotaUser'] = quota_user unless quota_user.nil?
160
+ command.query['fields'] = fields unless fields.nil?
119
161
  execute_or_queue_command(command, &block)
120
162
  end
121
163
 
@@ -128,11 +170,11 @@ module Google
128
170
  # The job ID.
129
171
  # @param [String] view
130
172
  # The level of information requested in response.
131
- # @param [String] fields
132
- # Selector specifying which fields to include in a partial response.
133
173
  # @param [String] quota_user
134
174
  # Available to use for quota purposes for server-side applications. Can be any
135
175
  # arbitrary string assigned to a user, but should not exceed 40 characters.
176
+ # @param [String] fields
177
+ # Selector specifying which fields to include in a partial response.
136
178
  # @param [Google::Apis::RequestOptions] options
137
179
  # Request-specific options
138
180
  #
@@ -145,7 +187,7 @@ module Google
145
187
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
188
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
189
  # @raise [Google::Apis::AuthorizationError] Authorization is required
148
- def get_project_location_job(project_id, location, job_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
190
+ def get_project_location_job(project_id, location, job_id, view: nil, quota_user: nil, fields: nil, options: nil, &block)
149
191
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options)
150
192
  command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
151
193
  command.response_class = Google::Apis::DataflowV1b3::Job
@@ -153,8 +195,8 @@ module Google
153
195
  command.params['location'] = location unless location.nil?
154
196
  command.params['jobId'] = job_id unless job_id.nil?
155
197
  command.query['view'] = view unless view.nil?
156
- command.query['fields'] = fields unless fields.nil?
157
198
  command.query['quotaUser'] = quota_user unless quota_user.nil?
199
+ command.query['fields'] = fields unless fields.nil?
158
200
  execute_or_queue_command(command, &block)
159
201
  end
160
202
 
@@ -163,6 +205,8 @@ module Google
163
205
  # The project which owns the jobs.
164
206
  # @param [String] location
165
207
  # The location that contains this job.
208
+ # @param [String] filter
209
+ # The kind of filter to use.
166
210
  # @param [String] page_token
167
211
  # Set this to the 'next_page_token' field of a previous response
168
212
  # to request additional results in a long list.
@@ -172,13 +216,11 @@ module Google
172
216
  # and an unspecified server-defined limit.
173
217
  # @param [String] view
174
218
  # Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
175
- # @param [String] filter
176
- # The kind of filter to use.
177
- # @param [String] fields
178
- # Selector specifying which fields to include in a partial response.
179
219
  # @param [String] quota_user
180
220
  # Available to use for quota purposes for server-side applications. Can be any
181
221
  # arbitrary string assigned to a user, but should not exceed 40 characters.
222
+ # @param [String] fields
223
+ # Selector specifying which fields to include in a partial response.
182
224
  # @param [Google::Apis::RequestOptions] options
183
225
  # Request-specific options
184
226
  #
@@ -191,18 +233,18 @@ module Google
191
233
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
192
234
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
193
235
  # @raise [Google::Apis::AuthorizationError] Authorization is required
194
- 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)
236
+ 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)
195
237
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
196
238
  command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
197
239
  command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
198
240
  command.params['projectId'] = project_id unless project_id.nil?
199
241
  command.params['location'] = location unless location.nil?
242
+ command.query['filter'] = filter unless filter.nil?
200
243
  command.query['pageToken'] = page_token unless page_token.nil?
201
244
  command.query['pageSize'] = page_size unless page_size.nil?
202
245
  command.query['view'] = view unless view.nil?
203
- command.query['filter'] = filter unless filter.nil?
204
- command.query['fields'] = fields unless fields.nil?
205
246
  command.query['quotaUser'] = quota_user unless quota_user.nil?
247
+ command.query['fields'] = fields unless fields.nil?
206
248
  execute_or_queue_command(command, &block)
207
249
  end
208
250
 
@@ -214,11 +256,11 @@ module Google
214
256
  # @param [String] job_id
215
257
  # The job ID.
216
258
  # @param [Google::Apis::DataflowV1b3::Job] job_object
217
- # @param [String] fields
218
- # Selector specifying which fields to include in a partial response.
219
259
  # @param [String] quota_user
220
260
  # Available to use for quota purposes for server-side applications. Can be any
221
261
  # arbitrary string assigned to a user, but should not exceed 40 characters.
262
+ # @param [String] fields
263
+ # Selector specifying which fields to include in a partial response.
222
264
  # @param [Google::Apis::RequestOptions] options
223
265
  # Request-specific options
224
266
  #
@@ -231,7 +273,7 @@ module Google
231
273
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
232
274
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
233
275
  # @raise [Google::Apis::AuthorizationError] Authorization is required
234
- def update_project_location_job(project_id, location, job_id, job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
276
+ def update_project_location_job(project_id, location, job_id, job_object = nil, quota_user: nil, fields: nil, options: nil, &block)
235
277
  command = make_simple_command(:put, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options)
236
278
  command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
237
279
  command.request_object = job_object
@@ -240,50 +282,65 @@ module Google
240
282
  command.params['projectId'] = project_id unless project_id.nil?
241
283
  command.params['location'] = location unless location.nil?
242
284
  command.params['jobId'] = job_id unless job_id.nil?
243
- command.query['fields'] = fields unless fields.nil?
244
285
  command.query['quotaUser'] = quota_user unless quota_user.nil?
286
+ command.query['fields'] = fields unless fields.nil?
245
287
  execute_or_queue_command(command, &block)
246
288
  end
247
289
 
248
- # Creates a Cloud Dataflow job.
290
+ # Request the job status.
249
291
  # @param [String] project_id
250
- # The ID of the Cloud Platform project that the job belongs to.
292
+ # A project id.
251
293
  # @param [String] location
252
- # The location that contains this job.
253
- # @param [Google::Apis::DataflowV1b3::Job] job_object
254
- # @param [String] view
255
- # The level of information requested in response.
256
- # @param [String] replace_job_id
257
- # Deprecated. This field is now in the Job message.
258
- # @param [String] fields
259
- # Selector specifying which fields to include in a partial response.
294
+ # The location which contains the job specified by job_id.
295
+ # @param [String] job_id
296
+ # The job to get messages about.
297
+ # @param [String] page_token
298
+ # If supplied, this should be the value of next_page_token returned
299
+ # by an earlier call. This will cause the next page of results to
300
+ # be returned.
301
+ # @param [String] start_time
302
+ # If specified, return only messages with timestamps >= start_time.
303
+ # The default is the job creation time (i.e. beginning of messages).
304
+ # @param [Fixnum] page_size
305
+ # If specified, determines the maximum number of messages to
306
+ # return. If unspecified, the service may choose an appropriate
307
+ # default, or may return an arbitrarily large number of results.
308
+ # @param [String] minimum_importance
309
+ # Filter to only get messages with importance >= level
310
+ # @param [String] end_time
311
+ # Return only messages with timestamps < end_time. The default is now
312
+ # (i.e. return up to the latest messages available).
260
313
  # @param [String] quota_user
261
314
  # Available to use for quota purposes for server-side applications. Can be any
262
315
  # arbitrary string assigned to a user, but should not exceed 40 characters.
316
+ # @param [String] fields
317
+ # Selector specifying which fields to include in a partial response.
263
318
  # @param [Google::Apis::RequestOptions] options
264
319
  # Request-specific options
265
320
  #
266
321
  # @yield [result, err] Result & error if block supplied
267
- # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
322
+ # @yieldparam result [Google::Apis::DataflowV1b3::ListJobMessagesResponse] parsed result object
268
323
  # @yieldparam err [StandardError] error object if request failed
269
324
  #
270
- # @return [Google::Apis::DataflowV1b3::Job]
325
+ # @return [Google::Apis::DataflowV1b3::ListJobMessagesResponse]
271
326
  #
272
327
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
273
328
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
274
329
  # @raise [Google::Apis::AuthorizationError] Authorization is required
275
- def create_project_location_job(project_id, location, job_object = nil, view: nil, replace_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
276
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
277
- command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
278
- command.request_object = job_object
279
- command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
280
- command.response_class = Google::Apis::DataflowV1b3::Job
330
+ def list_project_location_job_messages(project_id, location, job_id, page_token: nil, start_time: nil, page_size: nil, minimum_importance: nil, end_time: nil, quota_user: nil, fields: nil, options: nil, &block)
331
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages', options)
332
+ command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
333
+ command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
281
334
  command.params['projectId'] = project_id unless project_id.nil?
282
335
  command.params['location'] = location unless location.nil?
283
- command.query['view'] = view unless view.nil?
284
- command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
285
- command.query['fields'] = fields unless fields.nil?
336
+ command.params['jobId'] = job_id unless job_id.nil?
337
+ command.query['pageToken'] = page_token unless page_token.nil?
338
+ command.query['startTime'] = start_time unless start_time.nil?
339
+ command.query['pageSize'] = page_size unless page_size.nil?
340
+ command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
341
+ command.query['endTime'] = end_time unless end_time.nil?
286
342
  command.query['quotaUser'] = quota_user unless quota_user.nil?
343
+ command.query['fields'] = fields unless fields.nil?
287
344
  execute_or_queue_command(command, &block)
288
345
  end
289
346
 
@@ -295,11 +352,11 @@ module Google
295
352
  # @param [String] job_id
296
353
  # Identifies the workflow job this worker belongs to.
297
354
  # @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
298
- # @param [String] fields
299
- # Selector specifying which fields to include in a partial response.
300
355
  # @param [String] quota_user
301
356
  # Available to use for quota purposes for server-side applications. Can be any
302
357
  # arbitrary string assigned to a user, but should not exceed 40 characters.
358
+ # @param [String] fields
359
+ # Selector specifying which fields to include in a partial response.
303
360
  # @param [Google::Apis::RequestOptions] options
304
361
  # Request-specific options
305
362
  #
@@ -312,7 +369,7 @@ module Google
312
369
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
313
370
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
314
371
  # @raise [Google::Apis::AuthorizationError] Authorization is required
315
- 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)
372
+ 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)
316
373
  command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:lease', options)
317
374
  command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
318
375
  command.request_object = lease_work_item_request_object
@@ -321,8 +378,8 @@ module Google
321
378
  command.params['projectId'] = project_id unless project_id.nil?
322
379
  command.params['location'] = location unless location.nil?
323
380
  command.params['jobId'] = job_id unless job_id.nil?
324
- command.query['fields'] = fields unless fields.nil?
325
381
  command.query['quotaUser'] = quota_user unless quota_user.nil?
382
+ command.query['fields'] = fields unless fields.nil?
326
383
  execute_or_queue_command(command, &block)
327
384
  end
328
385
 
@@ -334,11 +391,11 @@ module Google
334
391
  # @param [String] job_id
335
392
  # The job which the WorkItem is part of.
336
393
  # @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
337
- # @param [String] fields
338
- # Selector specifying which fields to include in a partial response.
339
394
  # @param [String] quota_user
340
395
  # Available to use for quota purposes for server-side applications. Can be any
341
396
  # arbitrary string assigned to a user, but should not exceed 40 characters.
397
+ # @param [String] fields
398
+ # Selector specifying which fields to include in a partial response.
342
399
  # @param [Google::Apis::RequestOptions] options
343
400
  # Request-specific options
344
401
  #
@@ -351,7 +408,7 @@ module Google
351
408
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
352
409
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
353
410
  # @raise [Google::Apis::AuthorizationError] Authorization is required
354
- def report_project_location_job_work_item_status(project_id, location, job_id, report_work_item_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
411
+ 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)
355
412
  command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus', options)
356
413
  command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
357
414
  command.request_object = report_work_item_status_request_object
@@ -360,98 +417,122 @@ module Google
360
417
  command.params['projectId'] = project_id unless project_id.nil?
361
418
  command.params['location'] = location unless location.nil?
362
419
  command.params['jobId'] = job_id unless job_id.nil?
363
- command.query['fields'] = fields unless fields.nil?
364
420
  command.query['quotaUser'] = quota_user unless quota_user.nil?
421
+ command.query['fields'] = fields unless fields.nil?
365
422
  execute_or_queue_command(command, &block)
366
423
  end
367
424
 
368
- # Request the job status.
425
+ # Creates a Cloud Dataflow job from a template.
369
426
  # @param [String] project_id
370
- # A project id.
371
- # @param [String] location
372
- # The location which contains the job specified by job_id.
373
- # @param [String] job_id
374
- # The job to get messages about.
375
- # @param [String] minimum_importance
376
- # Filter to only get messages with importance >= level
377
- # @param [String] end_time
378
- # Return only messages with timestamps < end_time. The default is now
379
- # (i.e. return up to the latest messages available).
380
- # @param [String] page_token
381
- # If supplied, this should be the value of next_page_token returned
382
- # by an earlier call. This will cause the next page of results to
383
- # be returned.
384
- # @param [String] start_time
385
- # If specified, return only messages with timestamps >= start_time.
386
- # The default is the job creation time (i.e. beginning of messages).
387
- # @param [Fixnum] page_size
388
- # If specified, determines the maximum number of messages to
389
- # return. If unspecified, the service may choose an appropriate
390
- # default, or may return an arbitrarily large number of results.
391
- # @param [String] fields
392
- # Selector specifying which fields to include in a partial response.
427
+ # Required. The ID of the Cloud Platform project that the job belongs to.
428
+ # @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
393
429
  # @param [String] quota_user
394
430
  # Available to use for quota purposes for server-side applications. Can be any
395
431
  # arbitrary string assigned to a user, but should not exceed 40 characters.
432
+ # @param [String] fields
433
+ # Selector specifying which fields to include in a partial response.
396
434
  # @param [Google::Apis::RequestOptions] options
397
435
  # Request-specific options
398
436
  #
399
437
  # @yield [result, err] Result & error if block supplied
400
- # @yieldparam result [Google::Apis::DataflowV1b3::ListJobMessagesResponse] parsed result object
438
+ # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
401
439
  # @yieldparam err [StandardError] error object if request failed
402
440
  #
403
- # @return [Google::Apis::DataflowV1b3::ListJobMessagesResponse]
441
+ # @return [Google::Apis::DataflowV1b3::Job]
404
442
  #
405
443
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
406
444
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
407
445
  # @raise [Google::Apis::AuthorizationError] Authorization is required
408
- def list_project_location_job_messages(project_id, location, job_id, minimum_importance: nil, end_time: nil, page_token: nil, start_time: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
409
- command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages', options)
410
- command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
411
- command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
446
+ def create_job_from_template(project_id, create_job_from_template_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
447
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates', options)
448
+ command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation
449
+ command.request_object = create_job_from_template_request_object
450
+ command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
451
+ command.response_class = Google::Apis::DataflowV1b3::Job
412
452
  command.params['projectId'] = project_id unless project_id.nil?
413
- command.params['location'] = location unless location.nil?
414
- command.params['jobId'] = job_id unless job_id.nil?
415
- command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
416
- command.query['endTime'] = end_time unless end_time.nil?
417
- command.query['pageToken'] = page_token unless page_token.nil?
418
- command.query['startTime'] = start_time unless start_time.nil?
419
- command.query['pageSize'] = page_size unless page_size.nil?
420
- command.query['fields'] = fields unless fields.nil?
421
453
  command.query['quotaUser'] = quota_user unless quota_user.nil?
454
+ command.query['fields'] = fields unless fields.nil?
422
455
  execute_or_queue_command(command, &block)
423
456
  end
424
457
 
425
- # Creates a Cloud Dataflow job from a template.
458
+ # Launch a template.
426
459
  # @param [String] project_id
427
460
  # Required. The ID of the Cloud Platform project that the job belongs to.
428
- # @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
461
+ # @param [Google::Apis::DataflowV1b3::LaunchTemplateParameters] launch_template_parameters_object
462
+ # @param [String] gcs_path
463
+ # Required. A Cloud Storage path to the template from which to create
464
+ # the job.
465
+ # Must be valid Cloud Storage URL, beginning with 'gs://'.
466
+ # @param [Boolean] dry_run
467
+ # Whether or not the job should actually be executed after
468
+ # validating parameters. Defaults to false. Validation errors do
469
+ # not cause the HTTP request to fail if true.
470
+ # @param [String] quota_user
471
+ # Available to use for quota purposes for server-side applications. Can be any
472
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
429
473
  # @param [String] fields
430
474
  # Selector specifying which fields to include in a partial response.
475
+ # @param [Google::Apis::RequestOptions] options
476
+ # Request-specific options
477
+ #
478
+ # @yield [result, err] Result & error if block supplied
479
+ # @yieldparam result [Google::Apis::DataflowV1b3::LaunchTemplateResponse] parsed result object
480
+ # @yieldparam err [StandardError] error object if request failed
481
+ #
482
+ # @return [Google::Apis::DataflowV1b3::LaunchTemplateResponse]
483
+ #
484
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
485
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
486
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
487
+ def launch_project_template(project_id, launch_template_parameters_object = nil, gcs_path: nil, dry_run: nil, quota_user: nil, fields: nil, options: nil, &block)
488
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates:launch', options)
489
+ command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation
490
+ command.request_object = launch_template_parameters_object
491
+ command.response_representation = Google::Apis::DataflowV1b3::LaunchTemplateResponse::Representation
492
+ command.response_class = Google::Apis::DataflowV1b3::LaunchTemplateResponse
493
+ command.params['projectId'] = project_id unless project_id.nil?
494
+ command.query['gcsPath'] = gcs_path unless gcs_path.nil?
495
+ command.query['dryRun'] = dry_run unless dry_run.nil?
496
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
497
+ command.query['fields'] = fields unless fields.nil?
498
+ execute_or_queue_command(command, &block)
499
+ end
500
+
501
+ # Get the template associated with a template.
502
+ # @param [String] project_id
503
+ # Required. The ID of the Cloud Platform project that the job belongs to.
504
+ # @param [String] view
505
+ # The view to retrieve. Defaults to METADATA_ONLY.
506
+ # @param [String] gcs_path
507
+ # Required. A Cloud Storage path to the template from which to
508
+ # create the job.
509
+ # Must be a valid Cloud Storage URL, beginning with `gs://`.
431
510
  # @param [String] quota_user
432
511
  # Available to use for quota purposes for server-side applications. Can be any
433
512
  # arbitrary string assigned to a user, but should not exceed 40 characters.
513
+ # @param [String] fields
514
+ # Selector specifying which fields to include in a partial response.
434
515
  # @param [Google::Apis::RequestOptions] options
435
516
  # Request-specific options
436
517
  #
437
518
  # @yield [result, err] Result & error if block supplied
438
- # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
519
+ # @yieldparam result [Google::Apis::DataflowV1b3::GetTemplateResponse] parsed result object
439
520
  # @yieldparam err [StandardError] error object if request failed
440
521
  #
441
- # @return [Google::Apis::DataflowV1b3::Job]
522
+ # @return [Google::Apis::DataflowV1b3::GetTemplateResponse]
442
523
  #
443
524
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
444
525
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
445
526
  # @raise [Google::Apis::AuthorizationError] Authorization is required
446
- def create_job_from_template(project_id, create_job_from_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
447
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates', options)
448
- command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation
449
- command.request_object = create_job_from_template_request_object
450
- command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
451
- command.response_class = Google::Apis::DataflowV1b3::Job
527
+ def get_project_template(project_id, view: nil, gcs_path: nil, quota_user: nil, fields: nil, options: nil, &block)
528
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/templates:get', options)
529
+ command.response_representation = Google::Apis::DataflowV1b3::GetTemplateResponse::Representation
530
+ command.response_class = Google::Apis::DataflowV1b3::GetTemplateResponse
452
531
  command.params['projectId'] = project_id unless project_id.nil?
453
- command.query['fields'] = fields unless fields.nil?
532
+ command.query['view'] = view unless view.nil?
533
+ command.query['gcsPath'] = gcs_path unless gcs_path.nil?
454
534
  command.query['quotaUser'] = quota_user unless quota_user.nil?
535
+ command.query['fields'] = fields unless fields.nil?
455
536
  execute_or_queue_command(command, &block)
456
537
  end
457
538
 
@@ -460,16 +541,16 @@ module Google
460
541
  # A project id.
461
542
  # @param [String] job_id
462
543
  # The job to get messages for.
544
+ # @param [String] location
545
+ # The location which contains the job specified by job_id.
463
546
  # @param [String] start_time
464
547
  # Return only metric data that has changed since this time.
465
548
  # Default is to return all information about all metrics for the job.
466
- # @param [String] location
467
- # The location which contains the job specified by job_id.
468
- # @param [String] fields
469
- # Selector specifying which fields to include in a partial response.
470
549
  # @param [String] quota_user
471
550
  # Available to use for quota purposes for server-side applications. Can be any
472
551
  # arbitrary string assigned to a user, but should not exceed 40 characters.
552
+ # @param [String] fields
553
+ # Selector specifying which fields to include in a partial response.
473
554
  # @param [Google::Apis::RequestOptions] options
474
555
  # Request-specific options
475
556
  #
@@ -482,16 +563,16 @@ module Google
482
563
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
483
564
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
484
565
  # @raise [Google::Apis::AuthorizationError] Authorization is required
485
- def get_project_job_metrics(project_id, job_id, start_time: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
566
+ def get_project_job_metrics(project_id, job_id, location: nil, start_time: nil, quota_user: nil, fields: nil, options: nil, &block)
486
567
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options)
487
568
  command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
488
569
  command.response_class = Google::Apis::DataflowV1b3::JobMetrics
489
570
  command.params['projectId'] = project_id unless project_id.nil?
490
571
  command.params['jobId'] = job_id unless job_id.nil?
491
- command.query['startTime'] = start_time unless start_time.nil?
492
572
  command.query['location'] = location unless location.nil?
493
- command.query['fields'] = fields unless fields.nil?
573
+ command.query['startTime'] = start_time unless start_time.nil?
494
574
  command.query['quotaUser'] = quota_user unless quota_user.nil?
575
+ command.query['fields'] = fields unless fields.nil?
495
576
  execute_or_queue_command(command, &block)
496
577
  end
497
578
 
@@ -500,15 +581,15 @@ module Google
500
581
  # The ID of the Cloud Platform project that the job belongs to.
501
582
  # @param [String] job_id
502
583
  # The job ID.
503
- # @param [String] location
504
- # The location that contains this job.
505
584
  # @param [String] view
506
585
  # The level of information requested in response.
507
- # @param [String] fields
508
- # Selector specifying which fields to include in a partial response.
586
+ # @param [String] location
587
+ # The location that contains this job.
509
588
  # @param [String] quota_user
510
589
  # Available to use for quota purposes for server-side applications. Can be any
511
590
  # arbitrary string assigned to a user, but should not exceed 40 characters.
591
+ # @param [String] fields
592
+ # Selector specifying which fields to include in a partial response.
512
593
  # @param [Google::Apis::RequestOptions] options
513
594
  # Request-specific options
514
595
  #
@@ -521,28 +602,22 @@ module Google
521
602
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
522
603
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
523
604
  # @raise [Google::Apis::AuthorizationError] Authorization is required
524
- def get_project_job(project_id, job_id, location: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
605
+ def get_project_job(project_id, job_id, view: nil, location: nil, quota_user: nil, fields: nil, options: nil, &block)
525
606
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
526
607
  command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
527
608
  command.response_class = Google::Apis::DataflowV1b3::Job
528
609
  command.params['projectId'] = project_id unless project_id.nil?
529
610
  command.params['jobId'] = job_id unless job_id.nil?
530
- command.query['location'] = location unless location.nil?
531
611
  command.query['view'] = view unless view.nil?
532
- command.query['fields'] = fields unless fields.nil?
612
+ command.query['location'] = location unless location.nil?
533
613
  command.query['quotaUser'] = quota_user unless quota_user.nil?
614
+ command.query['fields'] = fields unless fields.nil?
534
615
  execute_or_queue_command(command, &block)
535
616
  end
536
617
 
537
618
  # List the jobs of a project.
538
619
  # @param [String] project_id
539
620
  # The project which owns the jobs.
540
- # @param [Fixnum] page_size
541
- # If there are many jobs, limit response to at most this many.
542
- # The actual number of jobs returned will be the lesser of max_responses
543
- # and an unspecified server-defined limit.
544
- # @param [String] view
545
- # Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
546
621
  # @param [String] filter
547
622
  # The kind of filter to use.
548
623
  # @param [String] location
@@ -550,11 +625,17 @@ module Google
550
625
  # @param [String] page_token
551
626
  # Set this to the 'next_page_token' field of a previous response
552
627
  # to request additional results in a long list.
553
- # @param [String] fields
554
- # Selector specifying which fields to include in a partial response.
628
+ # @param [Fixnum] page_size
629
+ # If there are many jobs, limit response to at most this many.
630
+ # The actual number of jobs returned will be the lesser of max_responses
631
+ # and an unspecified server-defined limit.
632
+ # @param [String] view
633
+ # Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
555
634
  # @param [String] quota_user
556
635
  # Available to use for quota purposes for server-side applications. Can be any
557
636
  # arbitrary string assigned to a user, but should not exceed 40 characters.
637
+ # @param [String] fields
638
+ # Selector specifying which fields to include in a partial response.
558
639
  # @param [Google::Apis::RequestOptions] options
559
640
  # Request-specific options
560
641
  #
@@ -567,18 +648,18 @@ module Google
567
648
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
568
649
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
569
650
  # @raise [Google::Apis::AuthorizationError] Authorization is required
570
- def list_project_jobs(project_id, page_size: nil, view: nil, filter: nil, location: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
651
+ 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)
571
652
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs', options)
572
653
  command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
573
654
  command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
574
655
  command.params['projectId'] = project_id unless project_id.nil?
575
- command.query['pageSize'] = page_size unless page_size.nil?
576
- command.query['view'] = view unless view.nil?
577
656
  command.query['filter'] = filter unless filter.nil?
578
657
  command.query['location'] = location unless location.nil?
579
658
  command.query['pageToken'] = page_token unless page_token.nil?
580
- command.query['fields'] = fields unless fields.nil?
659
+ command.query['pageSize'] = page_size unless page_size.nil?
660
+ command.query['view'] = view unless view.nil?
581
661
  command.query['quotaUser'] = quota_user unless quota_user.nil?
662
+ command.query['fields'] = fields unless fields.nil?
582
663
  execute_or_queue_command(command, &block)
583
664
  end
584
665
 
@@ -590,11 +671,11 @@ module Google
590
671
  # @param [Google::Apis::DataflowV1b3::Job] job_object
591
672
  # @param [String] location
592
673
  # The location that contains this job.
593
- # @param [String] fields
594
- # Selector specifying which fields to include in a partial response.
595
674
  # @param [String] quota_user
596
675
  # Available to use for quota purposes for server-side applications. Can be any
597
676
  # arbitrary string assigned to a user, but should not exceed 40 characters.
677
+ # @param [String] fields
678
+ # Selector specifying which fields to include in a partial response.
598
679
  # @param [Google::Apis::RequestOptions] options
599
680
  # Request-specific options
600
681
  #
@@ -607,7 +688,7 @@ module Google
607
688
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
608
689
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
609
690
  # @raise [Google::Apis::AuthorizationError] Authorization is required
610
- def update_project_job(project_id, job_id, job_object = nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
691
+ def update_project_job(project_id, job_id, job_object = nil, location: nil, quota_user: nil, fields: nil, options: nil, &block)
611
692
  command = make_simple_command(:put, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
612
693
  command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
613
694
  command.request_object = job_object
@@ -616,8 +697,8 @@ module Google
616
697
  command.params['projectId'] = project_id unless project_id.nil?
617
698
  command.params['jobId'] = job_id unless job_id.nil?
618
699
  command.query['location'] = location unless location.nil?
619
- command.query['fields'] = fields unless fields.nil?
620
700
  command.query['quotaUser'] = quota_user unless quota_user.nil?
701
+ command.query['fields'] = fields unless fields.nil?
621
702
  execute_or_queue_command(command, &block)
622
703
  end
623
704
 
@@ -631,11 +712,11 @@ module Google
631
712
  # The location that contains this job.
632
713
  # @param [String] replace_job_id
633
714
  # Deprecated. This field is now in the Job message.
634
- # @param [String] fields
635
- # Selector specifying which fields to include in a partial response.
636
715
  # @param [String] quota_user
637
716
  # Available to use for quota purposes for server-side applications. Can be any
638
717
  # arbitrary string assigned to a user, but should not exceed 40 characters.
718
+ # @param [String] fields
719
+ # Selector specifying which fields to include in a partial response.
639
720
  # @param [Google::Apis::RequestOptions] options
640
721
  # Request-specific options
641
722
  #
@@ -648,7 +729,7 @@ module Google
648
729
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
649
730
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
650
731
  # @raise [Google::Apis::AuthorizationError] Authorization is required
651
- 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)
732
+ 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)
652
733
  command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs', options)
653
734
  command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
654
735
  command.request_object = job_object
@@ -658,8 +739,8 @@ module Google
658
739
  command.query['view'] = view unless view.nil?
659
740
  command.query['location'] = location unless location.nil?
660
741
  command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
661
- command.query['fields'] = fields unless fields.nil?
662
742
  command.query['quotaUser'] = quota_user unless quota_user.nil?
743
+ command.query['fields'] = fields unless fields.nil?
663
744
  execute_or_queue_command(command, &block)
664
745
  end
665
746
 
@@ -669,11 +750,11 @@ module Google
669
750
  # @param [String] job_id
670
751
  # The job id.
671
752
  # @param [Google::Apis::DataflowV1b3::GetDebugConfigRequest] get_debug_config_request_object
672
- # @param [String] fields
673
- # Selector specifying which fields to include in a partial response.
674
753
  # @param [String] quota_user
675
754
  # Available to use for quota purposes for server-side applications. Can be any
676
755
  # arbitrary string assigned to a user, but should not exceed 40 characters.
756
+ # @param [String] fields
757
+ # Selector specifying which fields to include in a partial response.
677
758
  # @param [Google::Apis::RequestOptions] options
678
759
  # Request-specific options
679
760
  #
@@ -686,7 +767,7 @@ module Google
686
767
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
687
768
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
688
769
  # @raise [Google::Apis::AuthorizationError] Authorization is required
689
- def get_project_job_debug_config(project_id, job_id, get_debug_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
770
+ def get_project_job_debug_config(project_id, job_id, get_debug_config_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
690
771
  command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/getConfig', options)
691
772
  command.request_representation = Google::Apis::DataflowV1b3::GetDebugConfigRequest::Representation
692
773
  command.request_object = get_debug_config_request_object
@@ -694,8 +775,8 @@ module Google
694
775
  command.response_class = Google::Apis::DataflowV1b3::GetDebugConfigResponse
695
776
  command.params['projectId'] = project_id unless project_id.nil?
696
777
  command.params['jobId'] = job_id unless job_id.nil?
697
- command.query['fields'] = fields unless fields.nil?
698
778
  command.query['quotaUser'] = quota_user unless quota_user.nil?
779
+ command.query['fields'] = fields unless fields.nil?
699
780
  execute_or_queue_command(command, &block)
700
781
  end
701
782
 
@@ -705,11 +786,11 @@ module Google
705
786
  # @param [String] job_id
706
787
  # The job id.
707
788
  # @param [Google::Apis::DataflowV1b3::SendDebugCaptureRequest] send_debug_capture_request_object
708
- # @param [String] fields
709
- # Selector specifying which fields to include in a partial response.
710
789
  # @param [String] quota_user
711
790
  # Available to use for quota purposes for server-side applications. Can be any
712
791
  # arbitrary string assigned to a user, but should not exceed 40 characters.
792
+ # @param [String] fields
793
+ # Selector specifying which fields to include in a partial response.
713
794
  # @param [Google::Apis::RequestOptions] options
714
795
  # Request-specific options
715
796
  #
@@ -722,7 +803,7 @@ module Google
722
803
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
723
804
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
724
805
  # @raise [Google::Apis::AuthorizationError] Authorization is required
725
- def send_project_job_debug_capture(project_id, job_id, send_debug_capture_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
806
+ def send_project_job_debug_capture(project_id, job_id, send_debug_capture_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
726
807
  command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/sendCapture', options)
727
808
  command.request_representation = Google::Apis::DataflowV1b3::SendDebugCaptureRequest::Representation
728
809
  command.request_object = send_debug_capture_request_object
@@ -730,80 +811,80 @@ module Google
730
811
  command.response_class = Google::Apis::DataflowV1b3::SendDebugCaptureResponse
731
812
  command.params['projectId'] = project_id unless project_id.nil?
732
813
  command.params['jobId'] = job_id unless job_id.nil?
733
- command.query['fields'] = fields unless fields.nil?
734
814
  command.query['quotaUser'] = quota_user unless quota_user.nil?
815
+ command.query['fields'] = fields unless fields.nil?
735
816
  execute_or_queue_command(command, &block)
736
817
  end
737
818
 
738
- # Leases a dataflow WorkItem to run.
819
+ # Reports the status of dataflow WorkItems leased by a worker.
739
820
  # @param [String] project_id
740
- # Identifies the project this worker belongs to.
821
+ # The project which owns the WorkItem's job.
741
822
  # @param [String] job_id
742
- # Identifies the workflow job this worker belongs to.
743
- # @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
744
- # @param [String] fields
745
- # Selector specifying which fields to include in a partial response.
823
+ # The job which the WorkItem is part of.
824
+ # @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
746
825
  # @param [String] quota_user
747
826
  # Available to use for quota purposes for server-side applications. Can be any
748
827
  # arbitrary string assigned to a user, but should not exceed 40 characters.
828
+ # @param [String] fields
829
+ # Selector specifying which fields to include in a partial response.
749
830
  # @param [Google::Apis::RequestOptions] options
750
831
  # Request-specific options
751
832
  #
752
833
  # @yield [result, err] Result & error if block supplied
753
- # @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
834
+ # @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
754
835
  # @yieldparam err [StandardError] error object if request failed
755
836
  #
756
- # @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
837
+ # @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
757
838
  #
758
839
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
759
840
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
760
841
  # @raise [Google::Apis::AuthorizationError] Authorization is required
761
- def lease_project_work_item(project_id, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
762
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', options)
763
- command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
764
- command.request_object = lease_work_item_request_object
765
- command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
766
- command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
842
+ def report_project_job_work_item_status(project_id, job_id, report_work_item_status_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
843
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus', options)
844
+ command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
845
+ command.request_object = report_work_item_status_request_object
846
+ command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
847
+ command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
767
848
  command.params['projectId'] = project_id unless project_id.nil?
768
849
  command.params['jobId'] = job_id unless job_id.nil?
769
- command.query['fields'] = fields unless fields.nil?
770
850
  command.query['quotaUser'] = quota_user unless quota_user.nil?
851
+ command.query['fields'] = fields unless fields.nil?
771
852
  execute_or_queue_command(command, &block)
772
853
  end
773
854
 
774
- # Reports the status of dataflow WorkItems leased by a worker.
855
+ # Leases a dataflow WorkItem to run.
775
856
  # @param [String] project_id
776
- # The project which owns the WorkItem's job.
857
+ # Identifies the project this worker belongs to.
777
858
  # @param [String] job_id
778
- # The job which the WorkItem is part of.
779
- # @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
780
- # @param [String] fields
781
- # Selector specifying which fields to include in a partial response.
859
+ # Identifies the workflow job this worker belongs to.
860
+ # @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
782
861
  # @param [String] quota_user
783
862
  # Available to use for quota purposes for server-side applications. Can be any
784
863
  # arbitrary string assigned to a user, but should not exceed 40 characters.
864
+ # @param [String] fields
865
+ # Selector specifying which fields to include in a partial response.
785
866
  # @param [Google::Apis::RequestOptions] options
786
867
  # Request-specific options
787
868
  #
788
869
  # @yield [result, err] Result & error if block supplied
789
- # @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
870
+ # @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
790
871
  # @yieldparam err [StandardError] error object if request failed
791
872
  #
792
- # @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
873
+ # @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
793
874
  #
794
875
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
795
876
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
796
877
  # @raise [Google::Apis::AuthorizationError] Authorization is required
797
- 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)
798
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus', options)
799
- command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
800
- command.request_object = report_work_item_status_request_object
801
- command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
802
- command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
878
+ def lease_project_work_item(project_id, job_id, lease_work_item_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
879
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', options)
880
+ command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
881
+ command.request_object = lease_work_item_request_object
882
+ command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
883
+ command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
803
884
  command.params['projectId'] = project_id unless project_id.nil?
804
885
  command.params['jobId'] = job_id unless job_id.nil?
805
- command.query['fields'] = fields unless fields.nil?
806
886
  command.query['quotaUser'] = quota_user unless quota_user.nil?
887
+ command.query['fields'] = fields unless fields.nil?
807
888
  execute_or_queue_command(command, &block)
808
889
  end
809
890
 
@@ -812,6 +893,11 @@ module Google
812
893
  # A project id.
813
894
  # @param [String] job_id
814
895
  # The job to get messages about.
896
+ # @param [String] end_time
897
+ # Return only messages with timestamps < end_time. The default is now
898
+ # (i.e. return up to the latest messages available).
899
+ # @param [String] location
900
+ # The location which contains the job specified by job_id.
815
901
  # @param [String] page_token
816
902
  # If supplied, this should be the value of next_page_token returned
817
903
  # by an earlier call. This will cause the next page of results to
@@ -825,16 +911,11 @@ module Google
825
911
  # default, or may return an arbitrarily large number of results.
826
912
  # @param [String] minimum_importance
827
913
  # Filter to only get messages with importance >= level
828
- # @param [String] location
829
- # The location which contains the job specified by job_id.
830
- # @param [String] end_time
831
- # Return only messages with timestamps < end_time. The default is now
832
- # (i.e. return up to the latest messages available).
833
- # @param [String] fields
834
- # Selector specifying which fields to include in a partial response.
835
914
  # @param [String] quota_user
836
915
  # Available to use for quota purposes for server-side applications. Can be any
837
916
  # arbitrary string assigned to a user, but should not exceed 40 characters.
917
+ # @param [String] fields
918
+ # Selector specifying which fields to include in a partial response.
838
919
  # @param [Google::Apis::RequestOptions] options
839
920
  # Request-specific options
840
921
  #
@@ -847,20 +928,20 @@ module Google
847
928
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
848
929
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
849
930
  # @raise [Google::Apis::AuthorizationError] Authorization is required
850
- 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, fields: nil, quota_user: nil, options: nil, &block)
931
+ 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, quota_user: nil, fields: nil, options: nil, &block)
851
932
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/messages', options)
852
933
  command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
853
934
  command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
854
935
  command.params['projectId'] = project_id unless project_id.nil?
855
936
  command.params['jobId'] = job_id unless job_id.nil?
937
+ command.query['endTime'] = end_time unless end_time.nil?
938
+ command.query['location'] = location unless location.nil?
856
939
  command.query['pageToken'] = page_token unless page_token.nil?
857
940
  command.query['startTime'] = start_time unless start_time.nil?
858
941
  command.query['pageSize'] = page_size unless page_size.nil?
859
942
  command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
860
- command.query['location'] = location unless location.nil?
861
- command.query['endTime'] = end_time unless end_time.nil?
862
- command.query['fields'] = fields unless fields.nil?
863
943
  command.query['quotaUser'] = quota_user unless quota_user.nil?
944
+ command.query['fields'] = fields unless fields.nil?
864
945
  execute_or_queue_command(command, &block)
865
946
  end
866
947