google-api-client 0.9.28 → 0.10.0
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.
- checksums.yaml +4 -4
- data/.travis.yml +7 -4
- data/CHANGELOG.md +10 -0
- data/api_names.yaml +36512 -36326
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +41 -41
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +13 -13
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +110 -110
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +3 -3
- data/generated/google/apis/analyticsreporting_v4/classes.rb +845 -845
- data/generated/google/apis/analyticsreporting_v4/representations.rb +184 -184
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +5 -5
- data/generated/google/apis/androidenterprise_v1/service.rb +3 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -907
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1269 -1061
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +322 -322
- data/generated/google/apis/cloudbuild_v1/representations.rb +88 -88
- data/generated/google/apis/cloudbuild_v1/service.rb +57 -57
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +311 -311
- data/generated/google/apis/clouddebugger_v2/representations.rb +92 -92
- data/generated/google/apis/clouddebugger_v2/service.rb +41 -41
- data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +611 -611
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +124 -124
- data/generated/google/apis/cloudkms_v1beta1/service.rb +254 -248
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +116 -116
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +28 -28
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +257 -257
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +394 -394
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +269 -269
- data/generated/google/apis/cloudtrace_v1.rb +8 -8
- data/generated/google/apis/cloudtrace_v1/classes.rb +90 -84
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +40 -35
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +406 -31
- data/generated/google/apis/compute_beta/representations.rb +154 -0
- data/generated/google/apis/compute_beta/service.rb +262 -9
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +17 -20
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3226 -2847
- data/generated/google/apis/dataflow_v1b3/representations.rb +825 -677
- data/generated/google/apis/dataflow_v1b3/service.rb +175 -175
- data/generated/google/apis/dataproc_v1.rb +2 -2
- data/generated/google/apis/dataproc_v1/classes.rb +1213 -1136
- data/generated/google/apis/dataproc_v1/representations.rb +262 -244
- data/generated/google/apis/dataproc_v1/service.rb +298 -243
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +728 -728
- data/generated/google/apis/datastore_v1/representations.rb +167 -167
- data/generated/google/apis/datastore_v1/service.rb +68 -68
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +932 -932
- data/generated/google/apis/genomics_v1/representations.rb +205 -205
- data/generated/google/apis/genomics_v1/service.rb +1228 -1228
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +440 -440
- data/generated/google/apis/iam_v1/representations.rb +94 -94
- data/generated/google/apis/iam_v1/service.rb +60 -60
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +21 -1
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +21 -21
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +232 -232
- data/generated/google/apis/language_v1beta1/representations.rb +75 -75
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +345 -337
- data/generated/google/apis/logging_v2beta1/representations.rb +55 -55
- data/generated/google/apis/logging_v2beta1/service.rb +331 -306
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +253 -253
- data/generated/google/apis/monitoring_v3/representations.rb +58 -58
- data/generated/google/apis/monitoring_v3/service.rb +135 -135
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +985 -855
- data/generated/google/apis/people_v1/representations.rb +227 -220
- data/generated/google/apis/people_v1/service.rb +58 -52
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +257 -257
- data/generated/google/apis/pubsub_v1/representations.rb +83 -83
- data/generated/google/apis/pubsub_v1/service.rb +390 -390
- data/generated/google/apis/script_v1.rb +17 -17
- data/generated/google/apis/script_v1/classes.rb +149 -141
- data/generated/google/apis/script_v1/representations.rb +26 -27
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4223 -4188
- data/generated/google/apis/sheets_v4/representations.rb +850 -834
- data/generated/google/apis/sheets_v4/service.rb +192 -192
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +927 -800
- data/generated/google/apis/slides_v1/representations.rb +253 -211
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +94 -107
- data/generated/google/apis/speech_v1beta1/representations.rb +24 -36
- data/generated/google/apis/speech_v1beta1/service.rb +51 -54
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +888 -885
- data/generated/google/apis/vision_v1/representations.rb +139 -139
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +80 -80
- data/generated/google/apis/youtubereporting_v1/representations.rb +23 -23
- data/generated/google/apis/youtubereporting_v1/service.rb +51 -51
- data/google-api-client.gemspec +2 -2
- data/lib/google/apis/core/api_command.rb +1 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- metadata +36 -30
|
@@ -32,16 +32,16 @@ module Google
|
|
|
32
32
|
#
|
|
33
33
|
# @see https://cloud.google.com/dataflow
|
|
34
34
|
class DataflowService < Google::Apis::Core::BaseService
|
|
35
|
-
# @return [String]
|
|
36
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
37
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
38
|
-
attr_accessor :quota_user
|
|
39
|
-
|
|
40
35
|
# @return [String]
|
|
41
36
|
# API key. Your API key identifies your project and provides you with API access,
|
|
42
37
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
43
38
|
attr_accessor :key
|
|
44
39
|
|
|
40
|
+
# @return [String]
|
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
43
|
+
attr_accessor :quota_user
|
|
44
|
+
|
|
45
45
|
def initialize
|
|
46
46
|
super('https://dataflow.googleapis.com/', '')
|
|
47
47
|
end
|
|
@@ -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,15 +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,
|
|
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?
|
|
78
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
79
79
|
execute_or_queue_command(command, &block)
|
|
80
80
|
end
|
|
81
81
|
|
|
@@ -89,11 +89,11 @@ module Google
|
|
|
89
89
|
# @param [String] start_time
|
|
90
90
|
# Return only metric data that has changed since this time.
|
|
91
91
|
# Default is to return all information about all metrics for the job.
|
|
92
|
+
# @param [String] fields
|
|
93
|
+
# Selector specifying which fields to include in a partial response.
|
|
92
94
|
# @param [String] quota_user
|
|
93
95
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
94
96
|
# 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
97
|
# @param [Google::Apis::RequestOptions] options
|
|
98
98
|
# Request-specific options
|
|
99
99
|
#
|
|
@@ -106,7 +106,7 @@ module Google
|
|
|
106
106
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
107
107
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
108
108
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
109
|
-
def get_project_location_job_metrics(project_id, location, job_id, start_time: nil,
|
|
109
|
+
def get_project_location_job_metrics(project_id, location, job_id, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
110
110
|
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics', options)
|
|
111
111
|
command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
|
|
112
112
|
command.response_class = Google::Apis::DataflowV1b3::JobMetrics
|
|
@@ -114,8 +114,8 @@ module Google
|
|
|
114
114
|
command.params['location'] = location unless location.nil?
|
|
115
115
|
command.params['jobId'] = job_id unless job_id.nil?
|
|
116
116
|
command.query['startTime'] = start_time unless start_time.nil?
|
|
117
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
118
117
|
command.query['fields'] = fields unless fields.nil?
|
|
118
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
119
119
|
execute_or_queue_command(command, &block)
|
|
120
120
|
end
|
|
121
121
|
|
|
@@ -128,11 +128,11 @@ module Google
|
|
|
128
128
|
# The job ID.
|
|
129
129
|
# @param [String] view
|
|
130
130
|
# The level of information requested in response.
|
|
131
|
+
# @param [String] fields
|
|
132
|
+
# Selector specifying which fields to include in a partial response.
|
|
131
133
|
# @param [String] quota_user
|
|
132
134
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
133
135
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
134
|
-
# @param [String] fields
|
|
135
|
-
# Selector specifying which fields to include in a partial response.
|
|
136
136
|
# @param [Google::Apis::RequestOptions] options
|
|
137
137
|
# Request-specific options
|
|
138
138
|
#
|
|
@@ -145,7 +145,7 @@ module Google
|
|
|
145
145
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
146
146
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
147
147
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
148
|
-
def get_project_location_job(project_id, location, job_id, view: nil,
|
|
148
|
+
def get_project_location_job(project_id, location, job_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
149
149
|
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options)
|
|
150
150
|
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
151
151
|
command.response_class = Google::Apis::DataflowV1b3::Job
|
|
@@ -153,8 +153,8 @@ module Google
|
|
|
153
153
|
command.params['location'] = location unless location.nil?
|
|
154
154
|
command.params['jobId'] = job_id unless job_id.nil?
|
|
155
155
|
command.query['view'] = view unless view.nil?
|
|
156
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
157
156
|
command.query['fields'] = fields unless fields.nil?
|
|
157
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
158
158
|
execute_or_queue_command(command, &block)
|
|
159
159
|
end
|
|
160
160
|
|
|
@@ -163,8 +163,6 @@ module Google
|
|
|
163
163
|
# The project which owns the jobs.
|
|
164
164
|
# @param [String] location
|
|
165
165
|
# The location that contains this job.
|
|
166
|
-
# @param [String] filter
|
|
167
|
-
# The kind of filter to use.
|
|
168
166
|
# @param [String] page_token
|
|
169
167
|
# Set this to the 'next_page_token' field of a previous response
|
|
170
168
|
# to request additional results in a long list.
|
|
@@ -174,11 +172,13 @@ module Google
|
|
|
174
172
|
# and an unspecified server-defined limit.
|
|
175
173
|
# @param [String] view
|
|
176
174
|
# Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
|
|
175
|
+
# @param [String] filter
|
|
176
|
+
# The kind of filter to use.
|
|
177
|
+
# @param [String] fields
|
|
178
|
+
# Selector specifying which fields to include in a partial response.
|
|
177
179
|
# @param [String] quota_user
|
|
178
180
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
179
181
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
180
|
-
# @param [String] fields
|
|
181
|
-
# Selector specifying which fields to include in a partial response.
|
|
182
182
|
# @param [Google::Apis::RequestOptions] options
|
|
183
183
|
# Request-specific options
|
|
184
184
|
#
|
|
@@ -191,18 +191,18 @@ module Google
|
|
|
191
191
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
192
192
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
193
193
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
194
|
-
def list_project_location_jobs(project_id, location,
|
|
194
|
+
def list_project_location_jobs(project_id, location, page_token: nil, page_size: nil, view: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
195
195
|
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
|
|
196
196
|
command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
|
|
197
197
|
command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
|
|
198
198
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
199
199
|
command.params['location'] = location unless location.nil?
|
|
200
|
-
command.query['filter'] = filter unless filter.nil?
|
|
201
200
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
202
201
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
203
202
|
command.query['view'] = view unless view.nil?
|
|
204
|
-
command.query['
|
|
203
|
+
command.query['filter'] = filter unless filter.nil?
|
|
205
204
|
command.query['fields'] = fields unless fields.nil?
|
|
205
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
206
206
|
execute_or_queue_command(command, &block)
|
|
207
207
|
end
|
|
208
208
|
|
|
@@ -214,11 +214,11 @@ module Google
|
|
|
214
214
|
# @param [String] job_id
|
|
215
215
|
# The job ID.
|
|
216
216
|
# @param [Google::Apis::DataflowV1b3::Job] job_object
|
|
217
|
+
# @param [String] fields
|
|
218
|
+
# Selector specifying which fields to include in a partial response.
|
|
217
219
|
# @param [String] quota_user
|
|
218
220
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
219
221
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
220
|
-
# @param [String] fields
|
|
221
|
-
# Selector specifying which fields to include in a partial response.
|
|
222
222
|
# @param [Google::Apis::RequestOptions] options
|
|
223
223
|
# Request-specific options
|
|
224
224
|
#
|
|
@@ -231,7 +231,7 @@ module Google
|
|
|
231
231
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
232
232
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
233
233
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
234
|
-
def update_project_location_job(project_id, location, job_id, job_object = nil,
|
|
234
|
+
def update_project_location_job(project_id, location, job_id, job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
235
235
|
command = make_simple_command(:put, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options)
|
|
236
236
|
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
237
237
|
command.request_object = job_object
|
|
@@ -240,8 +240,8 @@ module Google
|
|
|
240
240
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
241
241
|
command.params['location'] = location unless location.nil?
|
|
242
242
|
command.params['jobId'] = job_id unless job_id.nil?
|
|
243
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
244
243
|
command.query['fields'] = fields unless fields.nil?
|
|
244
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
245
245
|
execute_or_queue_command(command, &block)
|
|
246
246
|
end
|
|
247
247
|
|
|
@@ -251,15 +251,15 @@ module Google
|
|
|
251
251
|
# @param [String] location
|
|
252
252
|
# The location that contains this job.
|
|
253
253
|
# @param [Google::Apis::DataflowV1b3::Job] job_object
|
|
254
|
-
# @param [String] replace_job_id
|
|
255
|
-
# Deprecated. This field is now in the Job message.
|
|
256
254
|
# @param [String] view
|
|
257
255
|
# The level of information requested in response.
|
|
256
|
+
# @param [String] replace_job_id
|
|
257
|
+
# Deprecated. This field is now in the Job message.
|
|
258
|
+
# @param [String] fields
|
|
259
|
+
# Selector specifying which fields to include in a partial response.
|
|
258
260
|
# @param [String] quota_user
|
|
259
261
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
260
262
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
261
|
-
# @param [String] fields
|
|
262
|
-
# Selector specifying which fields to include in a partial response.
|
|
263
263
|
# @param [Google::Apis::RequestOptions] options
|
|
264
264
|
# Request-specific options
|
|
265
265
|
#
|
|
@@ -272,7 +272,7 @@ module Google
|
|
|
272
272
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
273
273
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
274
274
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
275
|
-
def create_project_location_job(project_id, location, job_object = nil,
|
|
275
|
+
def create_project_location_job(project_id, location, job_object = nil, view: nil, replace_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
276
276
|
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
|
|
277
277
|
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
278
278
|
command.request_object = job_object
|
|
@@ -280,10 +280,10 @@ module Google
|
|
|
280
280
|
command.response_class = Google::Apis::DataflowV1b3::Job
|
|
281
281
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
282
282
|
command.params['location'] = location unless location.nil?
|
|
283
|
-
command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
|
|
284
283
|
command.query['view'] = view unless view.nil?
|
|
285
|
-
command.query['
|
|
284
|
+
command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
|
|
286
285
|
command.query['fields'] = fields unless fields.nil?
|
|
286
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
287
287
|
execute_or_queue_command(command, &block)
|
|
288
288
|
end
|
|
289
289
|
|
|
@@ -295,11 +295,11 @@ module Google
|
|
|
295
295
|
# @param [String] job_id
|
|
296
296
|
# Identifies the workflow job this worker belongs to.
|
|
297
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.
|
|
298
300
|
# @param [String] quota_user
|
|
299
301
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
300
302
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
301
|
-
# @param [String] fields
|
|
302
|
-
# Selector specifying which fields to include in a partial response.
|
|
303
303
|
# @param [Google::Apis::RequestOptions] options
|
|
304
304
|
# Request-specific options
|
|
305
305
|
#
|
|
@@ -312,7 +312,7 @@ module Google
|
|
|
312
312
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
313
313
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
314
314
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
315
|
-
def lease_project_location_work_item(project_id, location, job_id, lease_work_item_request_object = nil,
|
|
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)
|
|
316
316
|
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:lease', options)
|
|
317
317
|
command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
|
|
318
318
|
command.request_object = lease_work_item_request_object
|
|
@@ -321,8 +321,8 @@ module Google
|
|
|
321
321
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
322
322
|
command.params['location'] = location unless location.nil?
|
|
323
323
|
command.params['jobId'] = job_id unless job_id.nil?
|
|
324
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
325
324
|
command.query['fields'] = fields unless fields.nil?
|
|
325
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
326
326
|
execute_or_queue_command(command, &block)
|
|
327
327
|
end
|
|
328
328
|
|
|
@@ -334,11 +334,11 @@ module Google
|
|
|
334
334
|
# @param [String] job_id
|
|
335
335
|
# The job which the WorkItem is part of.
|
|
336
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.
|
|
337
339
|
# @param [String] quota_user
|
|
338
340
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
339
341
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
340
|
-
# @param [String] fields
|
|
341
|
-
# Selector specifying which fields to include in a partial response.
|
|
342
342
|
# @param [Google::Apis::RequestOptions] options
|
|
343
343
|
# Request-specific options
|
|
344
344
|
#
|
|
@@ -351,7 +351,7 @@ module Google
|
|
|
351
351
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
352
352
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
353
353
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
354
|
-
def report_project_location_job_work_item_status(project_id, location, job_id, report_work_item_status_request_object = nil,
|
|
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)
|
|
355
355
|
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus', options)
|
|
356
356
|
command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
|
|
357
357
|
command.request_object = report_work_item_status_request_object
|
|
@@ -360,8 +360,8 @@ module Google
|
|
|
360
360
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
361
361
|
command.params['location'] = location unless location.nil?
|
|
362
362
|
command.params['jobId'] = job_id unless job_id.nil?
|
|
363
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
364
363
|
command.query['fields'] = fields unless fields.nil?
|
|
364
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
365
365
|
execute_or_queue_command(command, &block)
|
|
366
366
|
end
|
|
367
367
|
|
|
@@ -372,27 +372,27 @@ module Google
|
|
|
372
372
|
# The location which contains the job specified by job_id.
|
|
373
373
|
# @param [String] job_id
|
|
374
374
|
# The job to get messages about.
|
|
375
|
+
# @param [String] minimum_importance
|
|
376
|
+
# Filter to only get messages with importance >= level
|
|
375
377
|
# @param [String] end_time
|
|
376
378
|
# Return only messages with timestamps < end_time. The default is now
|
|
377
379
|
# (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
380
|
# @param [String] page_token
|
|
382
381
|
# If supplied, this should be the value of next_page_token returned
|
|
383
382
|
# by an earlier call. This will cause the next page of results to
|
|
384
383
|
# be returned.
|
|
384
|
+
# @param [String] start_time
|
|
385
|
+
# If specified, return only messages with timestamps >= start_time.
|
|
386
|
+
# The default is the job creation time (i.e. beginning of messages).
|
|
385
387
|
# @param [Fixnum] page_size
|
|
386
388
|
# If specified, determines the maximum number of messages to
|
|
387
389
|
# return. If unspecified, the service may choose an appropriate
|
|
388
390
|
# default, or may return an arbitrarily large number of results.
|
|
389
|
-
# @param [String]
|
|
390
|
-
#
|
|
391
|
+
# @param [String] fields
|
|
392
|
+
# Selector specifying which fields to include in a partial response.
|
|
391
393
|
# @param [String] quota_user
|
|
392
394
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
393
395
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
394
|
-
# @param [String] fields
|
|
395
|
-
# Selector specifying which fields to include in a partial response.
|
|
396
396
|
# @param [Google::Apis::RequestOptions] options
|
|
397
397
|
# Request-specific options
|
|
398
398
|
#
|
|
@@ -405,20 +405,20 @@ module Google
|
|
|
405
405
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
406
406
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
407
407
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
408
|
-
def list_project_location_job_messages(project_id, location, job_id,
|
|
408
|
+
def list_project_location_job_messages(project_id, location, job_id, minimum_importance: nil, end_time: nil, page_token: nil, start_time: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
409
409
|
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages', options)
|
|
410
410
|
command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
|
|
411
411
|
command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
|
|
412
412
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
413
413
|
command.params['location'] = location unless location.nil?
|
|
414
414
|
command.params['jobId'] = job_id unless job_id.nil?
|
|
415
|
+
command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
|
|
415
416
|
command.query['endTime'] = end_time unless end_time.nil?
|
|
416
|
-
command.query['startTime'] = start_time unless start_time.nil?
|
|
417
417
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
418
|
+
command.query['startTime'] = start_time unless start_time.nil?
|
|
418
419
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
419
|
-
command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
|
|
420
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
421
420
|
command.query['fields'] = fields unless fields.nil?
|
|
421
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
422
422
|
execute_or_queue_command(command, &block)
|
|
423
423
|
end
|
|
424
424
|
|
|
@@ -426,11 +426,11 @@ module Google
|
|
|
426
426
|
# @param [String] project_id
|
|
427
427
|
# Required. The ID of the Cloud Platform project that the job belongs to.
|
|
428
428
|
# @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
|
|
429
|
+
# @param [String] fields
|
|
430
|
+
# Selector specifying which fields to include in a partial response.
|
|
429
431
|
# @param [String] quota_user
|
|
430
432
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
431
433
|
# 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
434
|
# @param [Google::Apis::RequestOptions] options
|
|
435
435
|
# Request-specific options
|
|
436
436
|
#
|
|
@@ -443,15 +443,15 @@ module Google
|
|
|
443
443
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
444
444
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
445
445
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
446
|
-
def create_job_from_template(project_id, create_job_from_template_request_object = nil,
|
|
446
|
+
def create_job_from_template(project_id, create_job_from_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
447
447
|
command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates', options)
|
|
448
448
|
command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation
|
|
449
449
|
command.request_object = create_job_from_template_request_object
|
|
450
450
|
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
451
451
|
command.response_class = Google::Apis::DataflowV1b3::Job
|
|
452
452
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
453
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
454
453
|
command.query['fields'] = fields unless fields.nil?
|
|
454
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
455
455
|
execute_or_queue_command(command, &block)
|
|
456
456
|
end
|
|
457
457
|
|
|
@@ -460,16 +460,16 @@ module Google
|
|
|
460
460
|
# A project id.
|
|
461
461
|
# @param [String] job_id
|
|
462
462
|
# The job to get messages for.
|
|
463
|
-
# @param [String] location
|
|
464
|
-
# The location which contains the job specified by job_id.
|
|
465
463
|
# @param [String] start_time
|
|
466
464
|
# Return only metric data that has changed since this time.
|
|
467
465
|
# Default is to return all information about all metrics for the job.
|
|
466
|
+
# @param [String] location
|
|
467
|
+
# The location which contains the job specified by job_id.
|
|
468
|
+
# @param [String] fields
|
|
469
|
+
# Selector specifying which fields to include in a partial response.
|
|
468
470
|
# @param [String] quota_user
|
|
469
471
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
470
472
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
471
|
-
# @param [String] fields
|
|
472
|
-
# Selector specifying which fields to include in a partial response.
|
|
473
473
|
# @param [Google::Apis::RequestOptions] options
|
|
474
474
|
# Request-specific options
|
|
475
475
|
#
|
|
@@ -482,16 +482,16 @@ module Google
|
|
|
482
482
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
483
483
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
484
484
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
485
|
-
def get_project_job_metrics(project_id, job_id,
|
|
485
|
+
def get_project_job_metrics(project_id, job_id, start_time: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
486
486
|
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options)
|
|
487
487
|
command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
|
|
488
488
|
command.response_class = Google::Apis::DataflowV1b3::JobMetrics
|
|
489
489
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
490
490
|
command.params['jobId'] = job_id unless job_id.nil?
|
|
491
|
-
command.query['location'] = location unless location.nil?
|
|
492
491
|
command.query['startTime'] = start_time unless start_time.nil?
|
|
493
|
-
command.query['
|
|
492
|
+
command.query['location'] = location unless location.nil?
|
|
494
493
|
command.query['fields'] = fields unless fields.nil?
|
|
494
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
495
495
|
execute_or_queue_command(command, &block)
|
|
496
496
|
end
|
|
497
497
|
|
|
@@ -504,11 +504,11 @@ module Google
|
|
|
504
504
|
# The location that contains this job.
|
|
505
505
|
# @param [String] view
|
|
506
506
|
# The level of information requested in response.
|
|
507
|
+
# @param [String] fields
|
|
508
|
+
# Selector specifying which fields to include in a partial response.
|
|
507
509
|
# @param [String] quota_user
|
|
508
510
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
509
511
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
510
|
-
# @param [String] fields
|
|
511
|
-
# Selector specifying which fields to include in a partial response.
|
|
512
512
|
# @param [Google::Apis::RequestOptions] options
|
|
513
513
|
# Request-specific options
|
|
514
514
|
#
|
|
@@ -521,7 +521,7 @@ module Google
|
|
|
521
521
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
522
522
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
523
523
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
524
|
-
def get_project_job(project_id, job_id, location: nil, view: nil,
|
|
524
|
+
def get_project_job(project_id, job_id, location: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
525
525
|
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
|
|
526
526
|
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
527
527
|
command.response_class = Google::Apis::DataflowV1b3::Job
|
|
@@ -529,14 +529,20 @@ module Google
|
|
|
529
529
|
command.params['jobId'] = job_id unless job_id.nil?
|
|
530
530
|
command.query['location'] = location unless location.nil?
|
|
531
531
|
command.query['view'] = view unless view.nil?
|
|
532
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
533
532
|
command.query['fields'] = fields unless fields.nil?
|
|
533
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
534
534
|
execute_or_queue_command(command, &block)
|
|
535
535
|
end
|
|
536
536
|
|
|
537
537
|
# List the jobs of a project.
|
|
538
538
|
# @param [String] project_id
|
|
539
539
|
# The project which owns the jobs.
|
|
540
|
+
# @param [Fixnum] page_size
|
|
541
|
+
# If there are many jobs, limit response to at most this many.
|
|
542
|
+
# The actual number of jobs returned will be the lesser of max_responses
|
|
543
|
+
# and an unspecified server-defined limit.
|
|
544
|
+
# @param [String] view
|
|
545
|
+
# Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
|
|
540
546
|
# @param [String] filter
|
|
541
547
|
# The kind of filter to use.
|
|
542
548
|
# @param [String] location
|
|
@@ -544,17 +550,11 @@ module Google
|
|
|
544
550
|
# @param [String] page_token
|
|
545
551
|
# Set this to the 'next_page_token' field of a previous response
|
|
546
552
|
# to request additional results in a long list.
|
|
547
|
-
# @param [
|
|
548
|
-
#
|
|
549
|
-
# The actual number of jobs returned will be the lesser of max_responses
|
|
550
|
-
# and an unspecified server-defined limit.
|
|
551
|
-
# @param [String] view
|
|
552
|
-
# Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
|
|
553
|
+
# @param [String] fields
|
|
554
|
+
# Selector specifying which fields to include in a partial response.
|
|
553
555
|
# @param [String] quota_user
|
|
554
556
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
555
557
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
556
|
-
# @param [String] fields
|
|
557
|
-
# Selector specifying which fields to include in a partial response.
|
|
558
558
|
# @param [Google::Apis::RequestOptions] options
|
|
559
559
|
# Request-specific options
|
|
560
560
|
#
|
|
@@ -567,18 +567,18 @@ module Google
|
|
|
567
567
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
568
568
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
569
569
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
570
|
-
def list_project_jobs(project_id,
|
|
570
|
+
def list_project_jobs(project_id, page_size: nil, view: nil, filter: nil, location: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
571
571
|
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs', options)
|
|
572
572
|
command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
|
|
573
573
|
command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
|
|
574
574
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
575
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
576
|
+
command.query['view'] = view unless view.nil?
|
|
575
577
|
command.query['filter'] = filter unless filter.nil?
|
|
576
578
|
command.query['location'] = location unless location.nil?
|
|
577
579
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
578
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
579
|
-
command.query['view'] = view unless view.nil?
|
|
580
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
581
580
|
command.query['fields'] = fields unless fields.nil?
|
|
581
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
582
582
|
execute_or_queue_command(command, &block)
|
|
583
583
|
end
|
|
584
584
|
|
|
@@ -590,11 +590,11 @@ module Google
|
|
|
590
590
|
# @param [Google::Apis::DataflowV1b3::Job] job_object
|
|
591
591
|
# @param [String] location
|
|
592
592
|
# The location that contains this job.
|
|
593
|
+
# @param [String] fields
|
|
594
|
+
# Selector specifying which fields to include in a partial response.
|
|
593
595
|
# @param [String] quota_user
|
|
594
596
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
595
597
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
596
|
-
# @param [String] fields
|
|
597
|
-
# Selector specifying which fields to include in a partial response.
|
|
598
598
|
# @param [Google::Apis::RequestOptions] options
|
|
599
599
|
# Request-specific options
|
|
600
600
|
#
|
|
@@ -607,7 +607,7 @@ module Google
|
|
|
607
607
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
608
608
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
609
609
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
610
|
-
def update_project_job(project_id, job_id, job_object = nil, location: nil,
|
|
610
|
+
def update_project_job(project_id, job_id, job_object = nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
611
611
|
command = make_simple_command(:put, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
|
|
612
612
|
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
613
613
|
command.request_object = job_object
|
|
@@ -616,8 +616,8 @@ module Google
|
|
|
616
616
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
617
617
|
command.params['jobId'] = job_id unless job_id.nil?
|
|
618
618
|
command.query['location'] = location unless location.nil?
|
|
619
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
620
619
|
command.query['fields'] = fields unless fields.nil?
|
|
620
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
621
621
|
execute_or_queue_command(command, &block)
|
|
622
622
|
end
|
|
623
623
|
|
|
@@ -625,17 +625,17 @@ module Google
|
|
|
625
625
|
# @param [String] project_id
|
|
626
626
|
# The ID of the Cloud Platform project that the job belongs to.
|
|
627
627
|
# @param [Google::Apis::DataflowV1b3::Job] job_object
|
|
628
|
+
# @param [String] view
|
|
629
|
+
# The level of information requested in response.
|
|
628
630
|
# @param [String] location
|
|
629
631
|
# The location that contains this job.
|
|
630
632
|
# @param [String] replace_job_id
|
|
631
633
|
# Deprecated. This field is now in the Job message.
|
|
632
|
-
# @param [String]
|
|
633
|
-
#
|
|
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,75 +648,18 @@ 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 create_project_job(project_id, job_object = nil,
|
|
651
|
+
def create_project_job(project_id, job_object = nil, view: nil, location: nil, replace_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
652
652
|
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs', options)
|
|
653
653
|
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
654
654
|
command.request_object = job_object
|
|
655
655
|
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
656
656
|
command.response_class = Google::Apis::DataflowV1b3::Job
|
|
657
657
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
658
|
+
command.query['view'] = view unless view.nil?
|
|
658
659
|
command.query['location'] = location unless location.nil?
|
|
659
660
|
command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
|
|
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?
|
|
663
|
-
execute_or_queue_command(command, &block)
|
|
664
|
-
end
|
|
665
|
-
|
|
666
|
-
# Request the job status.
|
|
667
|
-
# @param [String] project_id
|
|
668
|
-
# A project id.
|
|
669
|
-
# @param [String] job_id
|
|
670
|
-
# The job to get messages about.
|
|
671
|
-
# @param [String] location
|
|
672
|
-
# The location which contains the job specified by job_id.
|
|
673
|
-
# @param [String] end_time
|
|
674
|
-
# Return only messages with timestamps < end_time. The default is now
|
|
675
|
-
# (i.e. return up to the latest messages available).
|
|
676
|
-
# @param [String] page_token
|
|
677
|
-
# If supplied, this should be the value of next_page_token returned
|
|
678
|
-
# by an earlier call. This will cause the next page of results to
|
|
679
|
-
# be returned.
|
|
680
|
-
# @param [String] start_time
|
|
681
|
-
# If specified, return only messages with timestamps >= start_time.
|
|
682
|
-
# The default is the job creation time (i.e. beginning of messages).
|
|
683
|
-
# @param [Fixnum] page_size
|
|
684
|
-
# If specified, determines the maximum number of messages to
|
|
685
|
-
# return. If unspecified, the service may choose an appropriate
|
|
686
|
-
# default, or may return an arbitrarily large number of results.
|
|
687
|
-
# @param [String] minimum_importance
|
|
688
|
-
# Filter to only get messages with importance >= level
|
|
689
|
-
# @param [String] quota_user
|
|
690
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
691
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
692
|
-
# @param [String] fields
|
|
693
|
-
# Selector specifying which fields to include in a partial response.
|
|
694
|
-
# @param [Google::Apis::RequestOptions] options
|
|
695
|
-
# Request-specific options
|
|
696
|
-
#
|
|
697
|
-
# @yield [result, err] Result & error if block supplied
|
|
698
|
-
# @yieldparam result [Google::Apis::DataflowV1b3::ListJobMessagesResponse] parsed result object
|
|
699
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
700
|
-
#
|
|
701
|
-
# @return [Google::Apis::DataflowV1b3::ListJobMessagesResponse]
|
|
702
|
-
#
|
|
703
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
704
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
705
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
706
|
-
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, quota_user: nil, fields: nil, options: nil, &block)
|
|
707
|
-
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/messages', options)
|
|
708
|
-
command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
|
|
709
|
-
command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
|
|
710
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
|
711
|
-
command.params['jobId'] = job_id unless job_id.nil?
|
|
712
|
-
command.query['location'] = location unless location.nil?
|
|
713
|
-
command.query['endTime'] = end_time unless end_time.nil?
|
|
714
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
715
|
-
command.query['startTime'] = start_time unless start_time.nil?
|
|
716
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
717
|
-
command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
|
|
718
662
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
719
|
-
command.query['fields'] = fields unless fields.nil?
|
|
720
663
|
execute_or_queue_command(command, &block)
|
|
721
664
|
end
|
|
722
665
|
|
|
@@ -726,11 +669,11 @@ module Google
|
|
|
726
669
|
# @param [String] job_id
|
|
727
670
|
# The job id.
|
|
728
671
|
# @param [Google::Apis::DataflowV1b3::GetDebugConfigRequest] get_debug_config_request_object
|
|
672
|
+
# @param [String] fields
|
|
673
|
+
# Selector specifying which fields to include in a partial response.
|
|
729
674
|
# @param [String] quota_user
|
|
730
675
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
731
676
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
732
|
-
# @param [String] fields
|
|
733
|
-
# Selector specifying which fields to include in a partial response.
|
|
734
677
|
# @param [Google::Apis::RequestOptions] options
|
|
735
678
|
# Request-specific options
|
|
736
679
|
#
|
|
@@ -743,7 +686,7 @@ module Google
|
|
|
743
686
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
744
687
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
745
688
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
746
|
-
def get_project_job_debug_config(project_id, job_id, get_debug_config_request_object = nil,
|
|
689
|
+
def get_project_job_debug_config(project_id, job_id, get_debug_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
747
690
|
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/getConfig', options)
|
|
748
691
|
command.request_representation = Google::Apis::DataflowV1b3::GetDebugConfigRequest::Representation
|
|
749
692
|
command.request_object = get_debug_config_request_object
|
|
@@ -751,8 +694,8 @@ module Google
|
|
|
751
694
|
command.response_class = Google::Apis::DataflowV1b3::GetDebugConfigResponse
|
|
752
695
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
753
696
|
command.params['jobId'] = job_id unless job_id.nil?
|
|
754
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
755
697
|
command.query['fields'] = fields unless fields.nil?
|
|
698
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
756
699
|
execute_or_queue_command(command, &block)
|
|
757
700
|
end
|
|
758
701
|
|
|
@@ -762,11 +705,11 @@ module Google
|
|
|
762
705
|
# @param [String] job_id
|
|
763
706
|
# The job id.
|
|
764
707
|
# @param [Google::Apis::DataflowV1b3::SendDebugCaptureRequest] send_debug_capture_request_object
|
|
708
|
+
# @param [String] fields
|
|
709
|
+
# Selector specifying which fields to include in a partial response.
|
|
765
710
|
# @param [String] quota_user
|
|
766
711
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
767
712
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
768
|
-
# @param [String] fields
|
|
769
|
-
# Selector specifying which fields to include in a partial response.
|
|
770
713
|
# @param [Google::Apis::RequestOptions] options
|
|
771
714
|
# Request-specific options
|
|
772
715
|
#
|
|
@@ -779,7 +722,7 @@ module Google
|
|
|
779
722
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
780
723
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
781
724
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
782
|
-
def send_project_job_debug_capture(project_id, job_id, send_debug_capture_request_object = nil,
|
|
725
|
+
def send_project_job_debug_capture(project_id, job_id, send_debug_capture_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
783
726
|
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/sendCapture', options)
|
|
784
727
|
command.request_representation = Google::Apis::DataflowV1b3::SendDebugCaptureRequest::Representation
|
|
785
728
|
command.request_object = send_debug_capture_request_object
|
|
@@ -787,8 +730,44 @@ module Google
|
|
|
787
730
|
command.response_class = Google::Apis::DataflowV1b3::SendDebugCaptureResponse
|
|
788
731
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
789
732
|
command.params['jobId'] = job_id unless job_id.nil?
|
|
733
|
+
command.query['fields'] = fields unless fields.nil?
|
|
790
734
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
735
|
+
execute_or_queue_command(command, &block)
|
|
736
|
+
end
|
|
737
|
+
|
|
738
|
+
# Leases a dataflow WorkItem to run.
|
|
739
|
+
# @param [String] project_id
|
|
740
|
+
# Identifies the project this worker belongs to.
|
|
741
|
+
# @param [String] job_id
|
|
742
|
+
# Identifies the workflow job this worker belongs to.
|
|
743
|
+
# @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
|
|
744
|
+
# @param [String] fields
|
|
745
|
+
# Selector specifying which fields to include in a partial response.
|
|
746
|
+
# @param [String] quota_user
|
|
747
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
748
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
749
|
+
# @param [Google::Apis::RequestOptions] options
|
|
750
|
+
# Request-specific options
|
|
751
|
+
#
|
|
752
|
+
# @yield [result, err] Result & error if block supplied
|
|
753
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
|
|
754
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
755
|
+
#
|
|
756
|
+
# @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
|
|
757
|
+
#
|
|
758
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
759
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
760
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
761
|
+
def lease_project_work_item(project_id, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
762
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', options)
|
|
763
|
+
command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
|
|
764
|
+
command.request_object = lease_work_item_request_object
|
|
765
|
+
command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
|
|
766
|
+
command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
|
|
767
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
768
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
791
769
|
command.query['fields'] = fields unless fields.nil?
|
|
770
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
792
771
|
execute_or_queue_command(command, &block)
|
|
793
772
|
end
|
|
794
773
|
|
|
@@ -798,11 +777,11 @@ module Google
|
|
|
798
777
|
# @param [String] job_id
|
|
799
778
|
# The job which the WorkItem is part of.
|
|
800
779
|
# @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
|
|
780
|
+
# @param [String] fields
|
|
781
|
+
# Selector specifying which fields to include in a partial response.
|
|
801
782
|
# @param [String] quota_user
|
|
802
783
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
803
784
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
804
|
-
# @param [String] fields
|
|
805
|
-
# Selector specifying which fields to include in a partial response.
|
|
806
785
|
# @param [Google::Apis::RequestOptions] options
|
|
807
786
|
# Request-specific options
|
|
808
787
|
#
|
|
@@ -815,7 +794,7 @@ module Google
|
|
|
815
794
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
816
795
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
817
796
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
818
|
-
def report_project_job_work_item_status(project_id, job_id, report_work_item_status_request_object = nil,
|
|
797
|
+
def report_project_job_work_item_status(project_id, job_id, report_work_item_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
819
798
|
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus', options)
|
|
820
799
|
command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
|
|
821
800
|
command.request_object = report_work_item_status_request_object
|
|
@@ -823,52 +802,73 @@ module Google
|
|
|
823
802
|
command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
|
|
824
803
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
825
804
|
command.params['jobId'] = job_id unless job_id.nil?
|
|
826
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
827
805
|
command.query['fields'] = fields unless fields.nil?
|
|
806
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
828
807
|
execute_or_queue_command(command, &block)
|
|
829
808
|
end
|
|
830
809
|
|
|
831
|
-
#
|
|
810
|
+
# Request the job status.
|
|
832
811
|
# @param [String] project_id
|
|
833
|
-
#
|
|
812
|
+
# A project id.
|
|
834
813
|
# @param [String] job_id
|
|
835
|
-
#
|
|
836
|
-
# @param [
|
|
814
|
+
# The job to get messages about.
|
|
815
|
+
# @param [String] page_token
|
|
816
|
+
# If supplied, this should be the value of next_page_token returned
|
|
817
|
+
# by an earlier call. This will cause the next page of results to
|
|
818
|
+
# be returned.
|
|
819
|
+
# @param [String] start_time
|
|
820
|
+
# If specified, return only messages with timestamps >= start_time.
|
|
821
|
+
# The default is the job creation time (i.e. beginning of messages).
|
|
822
|
+
# @param [Fixnum] page_size
|
|
823
|
+
# If specified, determines the maximum number of messages to
|
|
824
|
+
# return. If unspecified, the service may choose an appropriate
|
|
825
|
+
# default, or may return an arbitrarily large number of results.
|
|
826
|
+
# @param [String] minimum_importance
|
|
827
|
+
# Filter to only get messages with importance >= level
|
|
828
|
+
# @param [String] location
|
|
829
|
+
# The location which contains the job specified by job_id.
|
|
830
|
+
# @param [String] end_time
|
|
831
|
+
# Return only messages with timestamps < end_time. The default is now
|
|
832
|
+
# (i.e. return up to the latest messages available).
|
|
833
|
+
# @param [String] fields
|
|
834
|
+
# Selector specifying which fields to include in a partial response.
|
|
837
835
|
# @param [String] quota_user
|
|
838
836
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
839
837
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
840
|
-
# @param [String] fields
|
|
841
|
-
# Selector specifying which fields to include in a partial response.
|
|
842
838
|
# @param [Google::Apis::RequestOptions] options
|
|
843
839
|
# Request-specific options
|
|
844
840
|
#
|
|
845
841
|
# @yield [result, err] Result & error if block supplied
|
|
846
|
-
# @yieldparam result [Google::Apis::DataflowV1b3::
|
|
842
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::ListJobMessagesResponse] parsed result object
|
|
847
843
|
# @yieldparam err [StandardError] error object if request failed
|
|
848
844
|
#
|
|
849
|
-
# @return [Google::Apis::DataflowV1b3::
|
|
845
|
+
# @return [Google::Apis::DataflowV1b3::ListJobMessagesResponse]
|
|
850
846
|
#
|
|
851
847
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
852
848
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
853
849
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
854
|
-
def
|
|
855
|
-
command = make_simple_command(:
|
|
856
|
-
command.
|
|
857
|
-
command.
|
|
858
|
-
command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
|
|
859
|
-
command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
|
|
850
|
+
def list_project_job_messages(project_id, job_id, page_token: nil, start_time: nil, page_size: nil, minimum_importance: nil, location: nil, end_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
851
|
+
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/messages', options)
|
|
852
|
+
command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
|
|
853
|
+
command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
|
|
860
854
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
861
855
|
command.params['jobId'] = job_id unless job_id.nil?
|
|
862
|
-
command.query['
|
|
856
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
857
|
+
command.query['startTime'] = start_time unless start_time.nil?
|
|
858
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
859
|
+
command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
|
|
860
|
+
command.query['location'] = location unless location.nil?
|
|
861
|
+
command.query['endTime'] = end_time unless end_time.nil?
|
|
863
862
|
command.query['fields'] = fields unless fields.nil?
|
|
863
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
864
864
|
execute_or_queue_command(command, &block)
|
|
865
865
|
end
|
|
866
866
|
|
|
867
867
|
protected
|
|
868
868
|
|
|
869
869
|
def apply_command_defaults(command)
|
|
870
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
871
870
|
command.query['key'] = key unless key.nil?
|
|
871
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
872
872
|
end
|
|
873
873
|
end
|
|
874
874
|
end
|