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