google-api-client 0.9.15 → 0.9.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  6. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +82 -3
  8. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +33 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +38 -0
  10. data/generated/google/apis/admin_directory_v1.rb +1 -1
  11. data/generated/google/apis/admin_directory_v1/classes.rb +80 -0
  12. data/generated/google/apis/admin_directory_v1/representations.rb +23 -0
  13. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  14. data/generated/google/apis/adsense_v1_4.rb +1 -1
  15. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  16. data/generated/google/apis/analytics_v3.rb +1 -1
  17. data/generated/google/apis/analytics_v3/classes.rb +11 -5
  18. data/generated/google/apis/analytics_v3/representations.rb +1 -0
  19. data/generated/google/apis/analytics_v3/service.rb +17 -18
  20. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  22. data/generated/google/apis/androidenterprise_v1/classes.rb +80 -2
  23. data/generated/google/apis/androidenterprise_v1/representations.rb +30 -0
  24. data/generated/google/apis/androidenterprise_v1/service.rb +55 -6
  25. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  26. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  27. data/generated/google/apis/appengine_v1beta5/classes.rb +1 -1
  28. data/generated/google/apis/appengine_v1beta5/service.rb +36 -0
  29. data/generated/google/apis/appsactivity_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/bigquery_v2/classes.rb +2 -2
  32. data/generated/google/apis/books_v1.rb +1 -1
  33. data/generated/google/apis/books_v1/classes.rb +2 -1
  34. data/generated/google/apis/calendar_v3.rb +1 -1
  35. data/generated/google/apis/classroom_v1.rb +1 -1
  36. data/generated/google/apis/classroom_v1/classes.rb +7 -0
  37. data/generated/google/apis/classroom_v1/representations.rb +1 -0
  38. data/generated/google/apis/classroom_v1/service.rb +25 -15
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +56 -8
  41. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  42. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +535 -298
  43. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +141 -36
  44. data/generated/google/apis/cloudresourcemanager_v1/service.rb +250 -45
  45. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +99 -4
  47. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +44 -0
  48. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +24 -33
  49. data/generated/google/apis/compute_beta.rb +1 -1
  50. data/generated/google/apis/compute_beta/classes.rb +44 -29
  51. data/generated/google/apis/compute_beta/representations.rb +1 -0
  52. data/generated/google/apis/compute_beta/service.rb +123 -25
  53. data/generated/google/apis/compute_v1.rb +1 -1
  54. data/generated/google/apis/compute_v1/classes.rb +43 -20
  55. data/generated/google/apis/compute_v1/representations.rb +3 -0
  56. data/generated/google/apis/compute_v1/service.rb +608 -67
  57. data/generated/google/apis/content_v2.rb +1 -1
  58. data/generated/google/apis/dataflow_v1b3.rb +38 -0
  59. data/generated/google/apis/dataflow_v1b3/classes.rb +4009 -0
  60. data/generated/google/apis/dataflow_v1b3/representations.rb +1718 -0
  61. data/generated/google/apis/dataflow_v1b3/service.rb +515 -0
  62. data/generated/google/apis/datastore_v1.rb +1 -1
  63. data/generated/google/apis/dns_v1.rb +1 -1
  64. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  65. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  66. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  67. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  68. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  69. data/generated/google/apis/drive_v2.rb +1 -1
  70. data/generated/google/apis/drive_v2/classes.rb +9 -0
  71. data/generated/google/apis/drive_v2/representations.rb +1 -0
  72. data/generated/google/apis/drive_v2/service.rb +8 -1
  73. data/generated/google/apis/drive_v3.rb +1 -1
  74. data/generated/google/apis/drive_v3/classes.rb +7 -0
  75. data/generated/google/apis/drive_v3/representations.rb +1 -0
  76. data/generated/google/apis/drive_v3/service.rb +8 -1
  77. data/generated/google/apis/genomics_v1.rb +1 -1
  78. data/generated/google/apis/iam_v1.rb +2 -2
  79. data/generated/google/apis/iam_v1/classes.rb +181 -206
  80. data/generated/google/apis/iam_v1/representations.rb +36 -45
  81. data/generated/google/apis/iam_v1/service.rb +101 -67
  82. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  83. data/generated/google/apis/identitytoolkit_v3/classes.rb +11 -27
  84. data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -16
  85. data/generated/google/apis/language_v1beta1.rb +1 -1
  86. data/generated/google/apis/language_v1beta1/classes.rb +4 -2
  87. data/generated/google/apis/language_v1beta1/service.rb +2 -4
  88. data/generated/google/apis/logging_v2beta1.rb +6 -6
  89. data/generated/google/apis/logging_v2beta1/classes.rb +742 -732
  90. data/generated/google/apis/logging_v2beta1/representations.rb +134 -147
  91. data/generated/google/apis/logging_v2beta1/service.rb +276 -209
  92. data/generated/google/apis/monitoring_v3.rb +1 -1
  93. data/generated/google/apis/monitoring_v3/classes.rb +20 -13
  94. data/generated/google/apis/monitoring_v3/service.rb +1 -1
  95. data/generated/google/apis/oauth2_v2.rb +1 -1
  96. data/generated/google/apis/plus_domains_v1.rb +1 -1
  97. data/generated/google/apis/plus_v1.rb +1 -1
  98. data/generated/google/apis/pubsub_v1.rb +1 -1
  99. data/generated/google/apis/pubsub_v1/classes.rb +10 -9
  100. data/generated/google/apis/pubsub_v1/service.rb +128 -27
  101. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  102. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  103. data/generated/google/apis/sheets_v4.rb +1 -1
  104. data/generated/google/apis/sheets_v4/classes.rb +2 -0
  105. data/generated/google/apis/speech_v1beta1.rb +1 -1
  106. data/generated/google/apis/speech_v1beta1/classes.rb +20 -30
  107. data/generated/google/apis/speech_v1beta1/representations.rb +6 -7
  108. data/generated/google/apis/speech_v1beta1/service.rb +68 -65
  109. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  110. data/generated/google/apis/sqladmin_v1beta4/classes.rb +6 -0
  111. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  112. data/generated/google/apis/storage_v1.rb +1 -1
  113. data/generated/google/apis/storage_v1/classes.rb +3 -3
  114. data/generated/google/apis/storage_v1/representations.rb +2 -1
  115. data/generated/google/apis/storage_v1/service.rb +5 -2
  116. data/generated/google/apis/vision_v1.rb +1 -1
  117. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  118. data/lib/google/apis/version.rb +1 -1
  119. metadata +10 -2
@@ -0,0 +1,515 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module DataflowV1b3
23
+ # Google Dataflow API
24
+ #
25
+ # Develops and executes data processing patterns like ETL, batch computation,
26
+ # and continuous computation.
27
+ #
28
+ # @example
29
+ # require 'google/apis/dataflow_v1b3'
30
+ #
31
+ # Dataflow = Google::Apis::DataflowV1b3 # Alias the module
32
+ # service = Dataflow::DataflowService.new
33
+ #
34
+ # @see https://cloud.google.com/dataflow
35
+ class DataflowService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://dataflow.googleapis.com/', '')
48
+ end
49
+
50
+ # Send a worker_message to the service.
51
+ # @param [String] project_id
52
+ # The project to send the WorkerMessages to.
53
+ # @param [Google::Apis::DataflowV1b3::SendWorkerMessagesRequest] send_worker_messages_request_object
54
+ # @param [String] fields
55
+ # Selector specifying which fields to include in a partial response.
56
+ # @param [String] quota_user
57
+ # Available to use for quota purposes for server-side applications. Can be any
58
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59
+ # @param [Google::Apis::RequestOptions] options
60
+ # Request-specific options
61
+ #
62
+ # @yield [result, err] Result & error if block supplied
63
+ # @yieldparam result [Google::Apis::DataflowV1b3::SendWorkerMessagesResponse] parsed result object
64
+ # @yieldparam err [StandardError] error object if request failed
65
+ #
66
+ # @return [Google::Apis::DataflowV1b3::SendWorkerMessagesResponse]
67
+ #
68
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
71
+ def worker_project_messages(project_id, send_worker_messages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
72
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/WorkerMessages', options)
73
+ command.request_representation = Google::Apis::DataflowV1b3::SendWorkerMessagesRequest::Representation
74
+ command.request_object = send_worker_messages_request_object
75
+ command.response_representation = Google::Apis::DataflowV1b3::SendWorkerMessagesResponse::Representation
76
+ command.response_class = Google::Apis::DataflowV1b3::SendWorkerMessagesResponse
77
+ command.params['projectId'] = project_id unless project_id.nil?
78
+ command.query['fields'] = fields unless fields.nil?
79
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
80
+ execute_or_queue_command(command, &block)
81
+ end
82
+
83
+ # Creates a dataflow job.
84
+ # @param [String] project_id
85
+ # The project which owns the job.
86
+ # @param [Google::Apis::DataflowV1b3::Job] job_object
87
+ # @param [String] view
88
+ # Level of information requested in response.
89
+ # @param [String] replace_job_id
90
+ # DEPRECATED. This field is now on the Job message.
91
+ # @param [String] fields
92
+ # Selector specifying which fields to include in a partial response.
93
+ # @param [String] quota_user
94
+ # Available to use for quota purposes for server-side applications. Can be any
95
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
96
+ # @param [Google::Apis::RequestOptions] options
97
+ # Request-specific options
98
+ #
99
+ # @yield [result, err] Result & error if block supplied
100
+ # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
101
+ # @yieldparam err [StandardError] error object if request failed
102
+ #
103
+ # @return [Google::Apis::DataflowV1b3::Job]
104
+ #
105
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
106
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
107
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
108
+ def create_project_job(project_id, job_object = nil, view: nil, replace_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
109
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs', options)
110
+ command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
111
+ command.request_object = job_object
112
+ command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
113
+ command.response_class = Google::Apis::DataflowV1b3::Job
114
+ command.params['projectId'] = project_id unless project_id.nil?
115
+ command.query['view'] = view unless view.nil?
116
+ command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
117
+ command.query['fields'] = fields unless fields.nil?
118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
119
+ execute_or_queue_command(command, &block)
120
+ end
121
+
122
+ # Gets the state of the specified dataflow job.
123
+ # @param [String] project_id
124
+ # The project which owns the job.
125
+ # @param [String] job_id
126
+ # Identifies a single job.
127
+ # @param [String] view
128
+ # Level of information requested in response.
129
+ # @param [String] fields
130
+ # Selector specifying which fields to include in a partial response.
131
+ # @param [String] quota_user
132
+ # Available to use for quota purposes for server-side applications. Can be any
133
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
134
+ # @param [Google::Apis::RequestOptions] options
135
+ # Request-specific options
136
+ #
137
+ # @yield [result, err] Result & error if block supplied
138
+ # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
139
+ # @yieldparam err [StandardError] error object if request failed
140
+ #
141
+ # @return [Google::Apis::DataflowV1b3::Job]
142
+ #
143
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
144
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
145
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
146
+ def get_project_job(project_id, job_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
147
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
148
+ command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
149
+ command.response_class = Google::Apis::DataflowV1b3::Job
150
+ command.params['projectId'] = project_id unless project_id.nil?
151
+ command.params['jobId'] = job_id unless job_id.nil?
152
+ command.query['view'] = view unless view.nil?
153
+ command.query['fields'] = fields unless fields.nil?
154
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
155
+ execute_or_queue_command(command, &block)
156
+ end
157
+
158
+ # Updates the state of an existing dataflow job.
159
+ # @param [String] project_id
160
+ # The project which owns the job.
161
+ # @param [String] job_id
162
+ # Identifies a single job.
163
+ # @param [Google::Apis::DataflowV1b3::Job] job_object
164
+ # @param [String] fields
165
+ # Selector specifying which fields to include in a partial response.
166
+ # @param [String] quota_user
167
+ # Available to use for quota purposes for server-side applications. Can be any
168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
169
+ # @param [Google::Apis::RequestOptions] options
170
+ # Request-specific options
171
+ #
172
+ # @yield [result, err] Result & error if block supplied
173
+ # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
174
+ # @yieldparam err [StandardError] error object if request failed
175
+ #
176
+ # @return [Google::Apis::DataflowV1b3::Job]
177
+ #
178
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
179
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
180
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
181
+ def update_project_job(project_id, job_id, job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
182
+ command = make_simple_command(:put, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
183
+ command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
184
+ command.request_object = job_object
185
+ command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
186
+ command.response_class = Google::Apis::DataflowV1b3::Job
187
+ command.params['projectId'] = project_id unless project_id.nil?
188
+ command.params['jobId'] = job_id unless job_id.nil?
189
+ command.query['fields'] = fields unless fields.nil?
190
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
191
+ execute_or_queue_command(command, &block)
192
+ end
193
+
194
+ # List the jobs of a project
195
+ # @param [String] project_id
196
+ # The project which owns the jobs.
197
+ # @param [String] filter
198
+ # The kind of filter to use.
199
+ # @param [String] view
200
+ # Level of information requested in response. Default is SUMMARY.
201
+ # @param [Fixnum] page_size
202
+ # If there are many jobs, limit response to at most this many. The actual number
203
+ # of jobs returned will be the lesser of max_responses and an unspecified server-
204
+ # defined limit.
205
+ # @param [String] page_token
206
+ # Set this to the 'next_page_token' field of a previous response to request
207
+ # additional results in a long list.
208
+ # @param [String] fields
209
+ # Selector specifying which fields to include in a partial response.
210
+ # @param [String] quota_user
211
+ # Available to use for quota purposes for server-side applications. Can be any
212
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
213
+ # @param [Google::Apis::RequestOptions] options
214
+ # Request-specific options
215
+ #
216
+ # @yield [result, err] Result & error if block supplied
217
+ # @yieldparam result [Google::Apis::DataflowV1b3::ListJobsResponse] parsed result object
218
+ # @yieldparam err [StandardError] error object if request failed
219
+ #
220
+ # @return [Google::Apis::DataflowV1b3::ListJobsResponse]
221
+ #
222
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
223
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
224
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
225
+ def list_project_jobs(project_id, filter: nil, view: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
226
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs', options)
227
+ command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
228
+ command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
229
+ command.params['projectId'] = project_id unless project_id.nil?
230
+ command.query['filter'] = filter unless filter.nil?
231
+ command.query['view'] = view unless view.nil?
232
+ command.query['pageSize'] = page_size unless page_size.nil?
233
+ command.query['pageToken'] = page_token unless page_token.nil?
234
+ command.query['fields'] = fields unless fields.nil?
235
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
236
+ execute_or_queue_command(command, &block)
237
+ end
238
+
239
+ # Request the job status.
240
+ # @param [String] project_id
241
+ # A project id.
242
+ # @param [String] job_id
243
+ # The job to get messages for.
244
+ # @param [String] start_time
245
+ # Return only metric data that has changed since this time. Default is to return
246
+ # all information about all metrics for the job.
247
+ # @param [String] fields
248
+ # Selector specifying which fields to include in a partial response.
249
+ # @param [String] quota_user
250
+ # Available to use for quota purposes for server-side applications. Can be any
251
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
252
+ # @param [Google::Apis::RequestOptions] options
253
+ # Request-specific options
254
+ #
255
+ # @yield [result, err] Result & error if block supplied
256
+ # @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
257
+ # @yieldparam err [StandardError] error object if request failed
258
+ #
259
+ # @return [Google::Apis::DataflowV1b3::JobMetrics]
260
+ #
261
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
262
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
263
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
264
+ def get_project_job_metrics(project_id, job_id, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
265
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options)
266
+ command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
267
+ command.response_class = Google::Apis::DataflowV1b3::JobMetrics
268
+ command.params['projectId'] = project_id unless project_id.nil?
269
+ command.params['jobId'] = job_id unless job_id.nil?
270
+ command.query['startTime'] = start_time unless start_time.nil?
271
+ command.query['fields'] = fields unless fields.nil?
272
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
273
+ execute_or_queue_command(command, &block)
274
+ end
275
+
276
+ # Get encoded debug configuration for component. Not cacheable.
277
+ # @param [String] project_id
278
+ # The project id.
279
+ # @param [String] job_id
280
+ # The job id.
281
+ # @param [Google::Apis::DataflowV1b3::GetDebugConfigRequest] get_debug_config_request_object
282
+ # @param [String] fields
283
+ # Selector specifying which fields to include in a partial response.
284
+ # @param [String] quota_user
285
+ # Available to use for quota purposes for server-side applications. Can be any
286
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
287
+ # @param [Google::Apis::RequestOptions] options
288
+ # Request-specific options
289
+ #
290
+ # @yield [result, err] Result & error if block supplied
291
+ # @yieldparam result [Google::Apis::DataflowV1b3::GetDebugConfigResponse] parsed result object
292
+ # @yieldparam err [StandardError] error object if request failed
293
+ #
294
+ # @return [Google::Apis::DataflowV1b3::GetDebugConfigResponse]
295
+ #
296
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
297
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
298
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
299
+ def get_project_job_debug_config(project_id, job_id, get_debug_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
300
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/getConfig', options)
301
+ command.request_representation = Google::Apis::DataflowV1b3::GetDebugConfigRequest::Representation
302
+ command.request_object = get_debug_config_request_object
303
+ command.response_representation = Google::Apis::DataflowV1b3::GetDebugConfigResponse::Representation
304
+ command.response_class = Google::Apis::DataflowV1b3::GetDebugConfigResponse
305
+ command.params['projectId'] = project_id unless project_id.nil?
306
+ command.params['jobId'] = job_id unless job_id.nil?
307
+ command.query['fields'] = fields unless fields.nil?
308
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
309
+ execute_or_queue_command(command, &block)
310
+ end
311
+
312
+ # Send encoded debug capture data for component.
313
+ # @param [String] project_id
314
+ # The project id.
315
+ # @param [String] job_id
316
+ # The job id.
317
+ # @param [Google::Apis::DataflowV1b3::SendDebugCaptureRequest] send_debug_capture_request_object
318
+ # @param [String] fields
319
+ # Selector specifying which fields to include in a partial response.
320
+ # @param [String] quota_user
321
+ # Available to use for quota purposes for server-side applications. Can be any
322
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
323
+ # @param [Google::Apis::RequestOptions] options
324
+ # Request-specific options
325
+ #
326
+ # @yield [result, err] Result & error if block supplied
327
+ # @yieldparam result [Google::Apis::DataflowV1b3::SendDebugCaptureResponse] parsed result object
328
+ # @yieldparam err [StandardError] error object if request failed
329
+ #
330
+ # @return [Google::Apis::DataflowV1b3::SendDebugCaptureResponse]
331
+ #
332
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
333
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
334
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
335
+ def send_project_job_debug_capture(project_id, job_id, send_debug_capture_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
336
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/sendCapture', options)
337
+ command.request_representation = Google::Apis::DataflowV1b3::SendDebugCaptureRequest::Representation
338
+ command.request_object = send_debug_capture_request_object
339
+ command.response_representation = Google::Apis::DataflowV1b3::SendDebugCaptureResponse::Representation
340
+ command.response_class = Google::Apis::DataflowV1b3::SendDebugCaptureResponse
341
+ command.params['projectId'] = project_id unless project_id.nil?
342
+ command.params['jobId'] = job_id unless job_id.nil?
343
+ command.query['fields'] = fields unless fields.nil?
344
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
345
+ execute_or_queue_command(command, &block)
346
+ end
347
+
348
+ # Request the job status.
349
+ # @param [String] project_id
350
+ # A project id.
351
+ # @param [String] job_id
352
+ # The job to get messages about.
353
+ # @param [String] minimum_importance
354
+ # Filter to only get messages with importance >= level
355
+ # @param [Fixnum] page_size
356
+ # If specified, determines the maximum number of messages to return. If
357
+ # unspecified, the service may choose an appropriate default, or may return an
358
+ # arbitrarily large number of results.
359
+ # @param [String] page_token
360
+ # If supplied, this should be the value of next_page_token returned by an
361
+ # earlier call. This will cause the next page of results to be returned.
362
+ # @param [String] start_time
363
+ # If specified, return only messages with timestamps >= start_time. The default
364
+ # is the job creation time (i.e. beginning of messages).
365
+ # @param [String] end_time
366
+ # Return only messages with timestamps < end_time. The default is now (i.e.
367
+ # return up to the latest messages available).
368
+ # @param [String] fields
369
+ # Selector specifying which fields to include in a partial response.
370
+ # @param [String] quota_user
371
+ # Available to use for quota purposes for server-side applications. Can be any
372
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
373
+ # @param [Google::Apis::RequestOptions] options
374
+ # Request-specific options
375
+ #
376
+ # @yield [result, err] Result & error if block supplied
377
+ # @yieldparam result [Google::Apis::DataflowV1b3::ListJobMessagesResponse] parsed result object
378
+ # @yieldparam err [StandardError] error object if request failed
379
+ #
380
+ # @return [Google::Apis::DataflowV1b3::ListJobMessagesResponse]
381
+ #
382
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
383
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
384
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
385
+ def list_project_job_messages(project_id, job_id, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, fields: nil, quota_user: nil, options: nil, &block)
386
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/messages', options)
387
+ command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
388
+ command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
389
+ command.params['projectId'] = project_id unless project_id.nil?
390
+ command.params['jobId'] = job_id unless job_id.nil?
391
+ command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
392
+ command.query['pageSize'] = page_size unless page_size.nil?
393
+ command.query['pageToken'] = page_token unless page_token.nil?
394
+ command.query['startTime'] = start_time unless start_time.nil?
395
+ command.query['endTime'] = end_time unless end_time.nil?
396
+ command.query['fields'] = fields unless fields.nil?
397
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
398
+ execute_or_queue_command(command, &block)
399
+ end
400
+
401
+ # Reports the status of dataflow WorkItems leased by a worker.
402
+ # @param [String] project_id
403
+ # The project which owns the WorkItem's job.
404
+ # @param [String] job_id
405
+ # The job which the WorkItem is part of.
406
+ # @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
407
+ # @param [String] fields
408
+ # Selector specifying which fields to include in a partial response.
409
+ # @param [String] quota_user
410
+ # Available to use for quota purposes for server-side applications. Can be any
411
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
412
+ # @param [Google::Apis::RequestOptions] options
413
+ # Request-specific options
414
+ #
415
+ # @yield [result, err] Result & error if block supplied
416
+ # @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
417
+ # @yieldparam err [StandardError] error object if request failed
418
+ #
419
+ # @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
420
+ #
421
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
422
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
423
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
424
+ 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)
425
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus', options)
426
+ command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
427
+ command.request_object = report_work_item_status_request_object
428
+ command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
429
+ command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
430
+ command.params['projectId'] = project_id unless project_id.nil?
431
+ command.params['jobId'] = job_id unless job_id.nil?
432
+ command.query['fields'] = fields unless fields.nil?
433
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
434
+ execute_or_queue_command(command, &block)
435
+ end
436
+
437
+ # Leases a dataflow WorkItem to run.
438
+ # @param [String] project_id
439
+ # Identifies the project this worker belongs to.
440
+ # @param [String] job_id
441
+ # Identifies the workflow job this worker belongs to.
442
+ # @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
443
+ # @param [String] fields
444
+ # Selector specifying which fields to include in a partial response.
445
+ # @param [String] quota_user
446
+ # Available to use for quota purposes for server-side applications. Can be any
447
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
448
+ # @param [Google::Apis::RequestOptions] options
449
+ # Request-specific options
450
+ #
451
+ # @yield [result, err] Result & error if block supplied
452
+ # @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
453
+ # @yieldparam err [StandardError] error object if request failed
454
+ #
455
+ # @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
456
+ #
457
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
458
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
459
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
460
+ def lease_work_item(project_id, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
461
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', options)
462
+ command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
463
+ command.request_object = lease_work_item_request_object
464
+ command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
465
+ command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
466
+ command.params['projectId'] = project_id unless project_id.nil?
467
+ command.params['jobId'] = job_id unless job_id.nil?
468
+ command.query['fields'] = fields unless fields.nil?
469
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
470
+ execute_or_queue_command(command, &block)
471
+ end
472
+
473
+ # Creates a dataflow job from a template.
474
+ # @param [String] project_id
475
+ # The project which owns the job.
476
+ # @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
477
+ # @param [String] fields
478
+ # Selector specifying which fields to include in a partial response.
479
+ # @param [String] quota_user
480
+ # Available to use for quota purposes for server-side applications. Can be any
481
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
482
+ # @param [Google::Apis::RequestOptions] options
483
+ # Request-specific options
484
+ #
485
+ # @yield [result, err] Result & error if block supplied
486
+ # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
487
+ # @yieldparam err [StandardError] error object if request failed
488
+ #
489
+ # @return [Google::Apis::DataflowV1b3::Job]
490
+ #
491
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
492
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
493
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
494
+ def create_job_from_template(project_id, create_job_from_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
495
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates', options)
496
+ command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation
497
+ command.request_object = create_job_from_template_request_object
498
+ command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
499
+ command.response_class = Google::Apis::DataflowV1b3::Job
500
+ command.params['projectId'] = project_id unless project_id.nil?
501
+ command.query['fields'] = fields unless fields.nil?
502
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
503
+ execute_or_queue_command(command, &block)
504
+ end
505
+
506
+ protected
507
+
508
+ def apply_command_defaults(command)
509
+ command.query['key'] = key unless key.nil?
510
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
511
+ end
512
+ end
513
+ end
514
+ end
515
+ end