google-api-client 0.10.1 → 0.10.2

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