google-api-client 0.9.2 → 0.9.3
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 +1 -0
- data/CHANGELOG.md +9 -0
- data/Gemfile +1 -0
- data/README.md +2 -2
- data/api_names.yaml +19 -0
- data/api_names_out.yaml +843 -269
- data/bin/generate-api +18 -4
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +249 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +208 -1
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +68 -0
- data/generated/google/apis/adexchangeseller_v2_0/representations.rb +38 -0
- data/generated/google/apis/admin_datatransfer_v1.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +12 -0
- data/generated/google/apis/admin_datatransfer_v1/service.rb +1 -1
- data/generated/google/apis/admin_directory_v1/representations.rb +118 -0
- data/generated/google/apis/admin_reports_v1/representations.rb +26 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +0 -7
- data/generated/google/apis/adsense_v1_4/representations.rb +62 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/representations.rb +40 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/representations.rb +188 -0
- data/generated/google/apis/analytics_v3/service.rb +3 -3
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/representations.rb +76 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +6 -2
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/representations.rb +92 -0
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +22 -1
- data/generated/google/apis/appengine_v1beta5/representations.rb +69 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +43 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +22 -0
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/representations.rb +8 -0
- data/generated/google/apis/autoscaler_v1beta2/representations.rb +32 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +31 -0
- data/generated/google/apis/bigquery_v2/representations.rb +98 -0
- data/generated/google/apis/blogger_v3/representations.rb +70 -0
- data/generated/google/apis/books_v1/representations.rb +196 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/representations.rb +64 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +40 -0
- data/generated/google/apis/classroom_v1/representations.rb +28 -0
- data/generated/google/apis/cloudbilling_v1/representations.rb +8 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/representations.rb +24 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +2 -2
- data/generated/google/apis/clouddebugger_v2/representations.rb +54 -0
- data/generated/google/apis/cloudlatencytest_v2/representations.rb +14 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +42 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +15 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +4 -1
- data/generated/google/apis/cloudtrace_v1/representations.rb +10 -0
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +38 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +512 -0
- data/generated/google/apis/compute_beta/representations.rb +599 -0
- data/generated/google/apis/compute_beta/service.rb +415 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/representations.rb +386 -0
- data/generated/google/apis/container_v1/representations.rb +20 -0
- data/generated/google/apis/content_v2/representations.rb +296 -0
- data/generated/google/apis/coordinate_v1/representations.rb +36 -0
- data/generated/google/apis/customsearch_v1/representations.rb +26 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1415 -0
- data/generated/google/apis/dataproc_v1/representations.rb +569 -0
- data/generated/google/apis/dataproc_v1/service.rb +581 -4
- data/generated/google/apis/datastore_v1beta2/representations.rb +68 -0
- data/generated/google/apis/deploymentmanager_v2/representations.rb +58 -0
- data/generated/google/apis/dfareporting_v2_3/representations.rb +386 -0
- data/generated/google/apis/discovery_v1/representations.rb +40 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +2 -2
- data/generated/google/apis/dns_v1/representations.rb +16 -0
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +42 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +34 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +7 -0
- data/generated/google/apis/drive_v2/representations.rb +83 -0
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +7 -0
- data/generated/google/apis/drive_v3/representations.rb +51 -0
- data/generated/google/apis/fitness_v1/representations.rb +40 -0
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/representations.rb +48 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +22 -0
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/representations.rb +30 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/representations.rb +198 -0
- data/generated/google/apis/gan_v1beta1/representations.rb +34 -0
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2 -211
- data/generated/google/apis/genomics_v1/representations.rb +119 -84
- data/generated/google/apis/gmail_v1/representations.rb +44 -0
- data/generated/google/apis/groupsmigration_v1/representations.rb +2 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +105 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +99 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +36 -1
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/representations.rb +6 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +40 -0
- data/generated/google/apis/manager_v1beta2/representations.rb +70 -0
- data/generated/google/apis/mirror_v1/representations.rb +40 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/representations.rb +8 -0
- data/generated/google/apis/pagespeedonline_v2/representations.rb +28 -0
- data/generated/google/apis/partners_v2/representations.rb +52 -0
- data/generated/google/apis/people_v1.rb +11 -11
- data/generated/google/apis/people_v1/classes.rb +888 -961
- data/generated/google/apis/people_v1/representations.rb +295 -225
- data/generated/google/apis/people_v1/service.rb +61 -65
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/representations.rb +124 -0
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/representations.rb +102 -0
- data/generated/google/apis/prediction_v1_6/classes.rb +1 -1
- data/generated/google/apis/prediction_v1_6/representations.rb +42 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +38 -0
- data/generated/google/apis/pubsub_v1/representations.rb +42 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +48 -0
- data/generated/google/apis/replicapool_v1beta2/representations.rb +28 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +30 -0
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +6 -0
- data/generated/google/apis/reseller_v1/representations.rb +23 -0
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +32 -0
- data/generated/google/apis/script_v1/representations.rb +12 -0
- data/generated/google/apis/site_verification_v1/representations.rb +12 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +50 -21
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +98 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -3
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/representations.rb +52 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +48 -0
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/classes.rb +110 -0
- data/generated/google/apis/tagmanager_v1/representations.rb +96 -0
- data/generated/google/apis/tagmanager_v1/service.rb +303 -1
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +12 -0
- data/generated/google/apis/tasks_v1/representations.rb +10 -0
- data/generated/google/apis/translate_v2.rb +1 -1
- data/generated/google/apis/translate_v2/representations.rb +12 -0
- data/generated/google/apis/urlshortener_v1/representations.rb +10 -0
- data/generated/google/apis/vision_v1.rb +37 -0
- data/generated/google/apis/vision_v1/classes.rb +1259 -0
- data/generated/google/apis/vision_v1/representations.rb +418 -0
- data/generated/google/apis/vision_v1/service.rb +91 -0
- data/generated/google/apis/webmasters_v3/representations.rb +32 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +30 -0
- data/generated/google/apis/youtube_v3/representations.rb +332 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +16 -0
- data/google-api-client.gemspec +0 -2
- data/lib/google/api_client/client_secrets.rb +3 -4
- data/lib/google/apis/core/api_command.rb +5 -4
- data/lib/google/apis/core/http_command.rb +20 -4
- data/lib/google/apis/core/json_representation.rb +20 -2
- data/lib/google/apis/generator/annotator.rb +1 -1
- data/lib/google/apis/generator/templates/_representation_stub.tmpl +2 -0
- data/lib/google/apis/version.rb +1 -1
- data/script/generate +2 -1
- data/spec/google/api_client/client_secrets_spec.rb +2 -2
- data/spec/google/apis/core/api_command_spec.rb +2 -2
- data/spec/google/apis/core/http_command_spec.rb +19 -0
- data/spec/google/apis/core/json_representation_spec.rb +14 -7
- data/spec/google/apis/generator/generator_spec.rb +52 -0
- metadata +6 -30
|
@@ -49,8 +49,8 @@ module Google
|
|
|
49
49
|
# Method for media upload. Upload is supported on the URI `/upload/v1/media/`+
|
|
50
50
|
# name``.
|
|
51
51
|
# @param [String] resource_name
|
|
52
|
-
# Name of the media that is being downloaded. See
|
|
53
|
-
# resource_name
|
|
52
|
+
# Name of the media that is being downloaded. See ByteStream.ReadRequest.
|
|
53
|
+
# resource_name.
|
|
54
54
|
# @param [Google::Apis::DataprocV1::Media] media_object
|
|
55
55
|
# @param [String] fields
|
|
56
56
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -94,8 +94,8 @@ module Google
|
|
|
94
94
|
# Method for media download. Download is supported on the URI `/v1/media/`+name`?
|
|
95
95
|
# alt=media`.
|
|
96
96
|
# @param [String] resource_name
|
|
97
|
-
# Name of the media that is being downloaded. See
|
|
98
|
-
# resource_name
|
|
97
|
+
# Name of the media that is being downloaded. See ByteStream.ReadRequest.
|
|
98
|
+
# resource_name.
|
|
99
99
|
# @param [String] fields
|
|
100
100
|
# Selector specifying which fields to include in a partial response.
|
|
101
101
|
# @param [String] quota_user
|
|
@@ -129,6 +129,583 @@ module Google
|
|
|
129
129
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
130
130
|
execute_or_queue_command(command, &block)
|
|
131
131
|
end
|
|
132
|
+
|
|
133
|
+
# Creates a cluster in a project.
|
|
134
|
+
# @param [String] project_id
|
|
135
|
+
# [Required] The ID of the Google Cloud Platform project that the cluster
|
|
136
|
+
# belongs to.
|
|
137
|
+
# @param [String] region
|
|
138
|
+
# [Required] The Cloud Dataproc region in which to handle the request.
|
|
139
|
+
# @param [Google::Apis::DataprocV1::Cluster] cluster_object
|
|
140
|
+
# @param [String] fields
|
|
141
|
+
# Selector specifying which fields to include in a partial response.
|
|
142
|
+
# @param [String] quota_user
|
|
143
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
144
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
145
|
+
# @param [Google::Apis::RequestOptions] options
|
|
146
|
+
# Request-specific options
|
|
147
|
+
#
|
|
148
|
+
# @yield [result, err] Result & error if block supplied
|
|
149
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
|
150
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
151
|
+
#
|
|
152
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
|
153
|
+
#
|
|
154
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
155
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
156
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
157
|
+
def create_cluster(project_id, region, cluster_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
158
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters', options)
|
|
159
|
+
command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
|
|
160
|
+
command.request_object = cluster_object
|
|
161
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
162
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
|
163
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
164
|
+
command.params['region'] = region unless region.nil?
|
|
165
|
+
command.query['fields'] = fields unless fields.nil?
|
|
166
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
167
|
+
execute_or_queue_command(command, &block)
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Updates a cluster in a project.
|
|
171
|
+
# @param [String] project_id
|
|
172
|
+
# [Required] The ID of the Google Cloud Platform project the cluster belongs to.
|
|
173
|
+
# @param [String] region
|
|
174
|
+
# [Required] The Cloud Dataproc region in which to handle the request.
|
|
175
|
+
# @param [String] cluster_name
|
|
176
|
+
# [Required] The cluster name.
|
|
177
|
+
# @param [Google::Apis::DataprocV1::Cluster] cluster_object
|
|
178
|
+
# @param [String] update_mask
|
|
179
|
+
# [Required] Specifies the path, relative to Cluster, of the field to update.
|
|
180
|
+
# For example, to change the number of workers in a cluster to 5, the
|
|
181
|
+
# update_mask parameter would be specified as config.worker_config.num_instances,
|
|
182
|
+
# and the `PATCH` request body would specify the new value, as follows: ` "
|
|
183
|
+
# config":` "workerConfig":` "numInstances":"5" ` ` ` Note: Currently, config.
|
|
184
|
+
# worker_config.num_instances is the only field that can be updated.
|
|
185
|
+
# @param [String] fields
|
|
186
|
+
# Selector specifying which fields to include in a partial response.
|
|
187
|
+
# @param [String] quota_user
|
|
188
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
189
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
190
|
+
# @param [Google::Apis::RequestOptions] options
|
|
191
|
+
# Request-specific options
|
|
192
|
+
#
|
|
193
|
+
# @yield [result, err] Result & error if block supplied
|
|
194
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
|
195
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
196
|
+
#
|
|
197
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
|
198
|
+
#
|
|
199
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
200
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
201
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
202
|
+
def patch_cluster(project_id, region, cluster_name, cluster_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
203
|
+
command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
|
204
|
+
command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
|
|
205
|
+
command.request_object = cluster_object
|
|
206
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
207
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
|
208
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
209
|
+
command.params['region'] = region unless region.nil?
|
|
210
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
|
211
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
212
|
+
command.query['fields'] = fields unless fields.nil?
|
|
213
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
214
|
+
execute_or_queue_command(command, &block)
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Deletes a cluster in a project.
|
|
218
|
+
# @param [String] project_id
|
|
219
|
+
# [Required] The ID of the Google Cloud Platform project that the cluster
|
|
220
|
+
# belongs to.
|
|
221
|
+
# @param [String] region
|
|
222
|
+
# [Required] The Cloud Dataproc region in which to handle the request.
|
|
223
|
+
# @param [String] cluster_name
|
|
224
|
+
# [Required] The cluster name.
|
|
225
|
+
# @param [String] fields
|
|
226
|
+
# Selector specifying which fields to include in a partial response.
|
|
227
|
+
# @param [String] quota_user
|
|
228
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
229
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
230
|
+
# @param [Google::Apis::RequestOptions] options
|
|
231
|
+
# Request-specific options
|
|
232
|
+
#
|
|
233
|
+
# @yield [result, err] Result & error if block supplied
|
|
234
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
|
235
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
236
|
+
#
|
|
237
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
|
238
|
+
#
|
|
239
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
240
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
241
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
242
|
+
def delete_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
243
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
|
244
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
245
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
|
246
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
247
|
+
command.params['region'] = region unless region.nil?
|
|
248
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
|
249
|
+
command.query['fields'] = fields unless fields.nil?
|
|
250
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
251
|
+
execute_or_queue_command(command, &block)
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Gets the resource representation for a cluster in a project.
|
|
255
|
+
# @param [String] project_id
|
|
256
|
+
# [Required] The ID of the Google Cloud Platform project that the cluster
|
|
257
|
+
# belongs to.
|
|
258
|
+
# @param [String] region
|
|
259
|
+
# [Required] The Cloud Dataproc region in which to handle the request.
|
|
260
|
+
# @param [String] cluster_name
|
|
261
|
+
# [Required] The cluster name.
|
|
262
|
+
# @param [String] fields
|
|
263
|
+
# Selector specifying which fields to include in a partial response.
|
|
264
|
+
# @param [String] quota_user
|
|
265
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
266
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
267
|
+
# @param [Google::Apis::RequestOptions] options
|
|
268
|
+
# Request-specific options
|
|
269
|
+
#
|
|
270
|
+
# @yield [result, err] Result & error if block supplied
|
|
271
|
+
# @yieldparam result [Google::Apis::DataprocV1::Cluster] parsed result object
|
|
272
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
273
|
+
#
|
|
274
|
+
# @return [Google::Apis::DataprocV1::Cluster]
|
|
275
|
+
#
|
|
276
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
277
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
278
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
279
|
+
def get_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
280
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
|
281
|
+
command.response_representation = Google::Apis::DataprocV1::Cluster::Representation
|
|
282
|
+
command.response_class = Google::Apis::DataprocV1::Cluster
|
|
283
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
284
|
+
command.params['region'] = region unless region.nil?
|
|
285
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
|
286
|
+
command.query['fields'] = fields unless fields.nil?
|
|
287
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
288
|
+
execute_or_queue_command(command, &block)
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
# Lists all regions/`region`/clusters in a project.
|
|
292
|
+
# @param [String] project_id
|
|
293
|
+
# [Required] The ID of the Google Cloud Platform project that the cluster
|
|
294
|
+
# belongs to.
|
|
295
|
+
# @param [String] region
|
|
296
|
+
# [Required] The Cloud Dataproc region in which to handle the request.
|
|
297
|
+
# @param [Fixnum] page_size
|
|
298
|
+
# The standard List page size.
|
|
299
|
+
# @param [String] page_token
|
|
300
|
+
# The standard List page token.
|
|
301
|
+
# @param [String] fields
|
|
302
|
+
# Selector specifying which fields to include in a partial response.
|
|
303
|
+
# @param [String] quota_user
|
|
304
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
305
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
306
|
+
# @param [Google::Apis::RequestOptions] options
|
|
307
|
+
# Request-specific options
|
|
308
|
+
#
|
|
309
|
+
# @yield [result, err] Result & error if block supplied
|
|
310
|
+
# @yieldparam result [Google::Apis::DataprocV1::ListClustersResponse] parsed result object
|
|
311
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
312
|
+
#
|
|
313
|
+
# @return [Google::Apis::DataprocV1::ListClustersResponse]
|
|
314
|
+
#
|
|
315
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
316
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
317
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
318
|
+
def list_clusters(project_id, region, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
319
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters', options)
|
|
320
|
+
command.response_representation = Google::Apis::DataprocV1::ListClustersResponse::Representation
|
|
321
|
+
command.response_class = Google::Apis::DataprocV1::ListClustersResponse
|
|
322
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
323
|
+
command.params['region'] = region unless region.nil?
|
|
324
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
325
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
326
|
+
command.query['fields'] = fields unless fields.nil?
|
|
327
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
328
|
+
execute_or_queue_command(command, &block)
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
# Gets cluster diagnostic information. After the operation completes, the
|
|
332
|
+
# Operation.response field contains `DiagnoseClusterOutputLocation`.
|
|
333
|
+
# @param [String] project_id
|
|
334
|
+
# [Required] The ID of the Google Cloud Platform project that the cluster
|
|
335
|
+
# belongs to.
|
|
336
|
+
# @param [String] region
|
|
337
|
+
# [Required] The Cloud Dataproc region in which to handle the request.
|
|
338
|
+
# @param [String] cluster_name
|
|
339
|
+
# [Required] The cluster name.
|
|
340
|
+
# @param [Google::Apis::DataprocV1::DiagnoseClusterRequest] diagnose_cluster_request_object
|
|
341
|
+
# @param [String] fields
|
|
342
|
+
# Selector specifying which fields to include in a partial response.
|
|
343
|
+
# @param [String] quota_user
|
|
344
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
345
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
346
|
+
# @param [Google::Apis::RequestOptions] options
|
|
347
|
+
# Request-specific options
|
|
348
|
+
#
|
|
349
|
+
# @yield [result, err] Result & error if block supplied
|
|
350
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
|
351
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
352
|
+
#
|
|
353
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
|
354
|
+
#
|
|
355
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
356
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
357
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
358
|
+
def diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
359
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose', options)
|
|
360
|
+
command.request_representation = Google::Apis::DataprocV1::DiagnoseClusterRequest::Representation
|
|
361
|
+
command.request_object = diagnose_cluster_request_object
|
|
362
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
363
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
|
364
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
365
|
+
command.params['region'] = region unless region.nil?
|
|
366
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
|
367
|
+
command.query['fields'] = fields unless fields.nil?
|
|
368
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
369
|
+
execute_or_queue_command(command, &block)
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
# Submits a job to a cluster.
|
|
373
|
+
# @param [String] project_id
|
|
374
|
+
# [Required] The ID of the Google Cloud Platform project that the job belongs to.
|
|
375
|
+
# @param [String] region
|
|
376
|
+
# [Required] The Cloud Dataproc region in which to handle the request.
|
|
377
|
+
# @param [Google::Apis::DataprocV1::SubmitJobRequest] submit_job_request_object
|
|
378
|
+
# @param [String] fields
|
|
379
|
+
# Selector specifying which fields to include in a partial response.
|
|
380
|
+
# @param [String] quota_user
|
|
381
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
382
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
383
|
+
# @param [Google::Apis::RequestOptions] options
|
|
384
|
+
# Request-specific options
|
|
385
|
+
#
|
|
386
|
+
# @yield [result, err] Result & error if block supplied
|
|
387
|
+
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
|
388
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
389
|
+
#
|
|
390
|
+
# @return [Google::Apis::DataprocV1::Job]
|
|
391
|
+
#
|
|
392
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
393
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
394
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
395
|
+
def submit_job(project_id, region, submit_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
396
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs:submit', options)
|
|
397
|
+
command.request_representation = Google::Apis::DataprocV1::SubmitJobRequest::Representation
|
|
398
|
+
command.request_object = submit_job_request_object
|
|
399
|
+
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
|
400
|
+
command.response_class = Google::Apis::DataprocV1::Job
|
|
401
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
402
|
+
command.params['region'] = region unless region.nil?
|
|
403
|
+
command.query['fields'] = fields unless fields.nil?
|
|
404
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
405
|
+
execute_or_queue_command(command, &block)
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
# Gets the resource representation for a job in a project.
|
|
409
|
+
# @param [String] project_id
|
|
410
|
+
# [Required] The ID of the Google Cloud Platform project that the job belongs to.
|
|
411
|
+
# @param [String] region
|
|
412
|
+
# [Required] The Cloud Dataproc region in which to handle the request.
|
|
413
|
+
# @param [String] job_id
|
|
414
|
+
# [Required] The job ID.
|
|
415
|
+
# @param [String] fields
|
|
416
|
+
# Selector specifying which fields to include in a partial response.
|
|
417
|
+
# @param [String] quota_user
|
|
418
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
419
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
420
|
+
# @param [Google::Apis::RequestOptions] options
|
|
421
|
+
# Request-specific options
|
|
422
|
+
#
|
|
423
|
+
# @yield [result, err] Result & error if block supplied
|
|
424
|
+
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
|
425
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
426
|
+
#
|
|
427
|
+
# @return [Google::Apis::DataprocV1::Job]
|
|
428
|
+
#
|
|
429
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
430
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
431
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
432
|
+
def get_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
433
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
|
434
|
+
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
|
435
|
+
command.response_class = Google::Apis::DataprocV1::Job
|
|
436
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
437
|
+
command.params['region'] = region unless region.nil?
|
|
438
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
439
|
+
command.query['fields'] = fields unless fields.nil?
|
|
440
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
441
|
+
execute_or_queue_command(command, &block)
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
# Lists regions/`region`/jobs in a project.
|
|
445
|
+
# @param [String] project_id
|
|
446
|
+
# [Required] The ID of the Google Cloud Platform project that the job belongs to.
|
|
447
|
+
# @param [String] region
|
|
448
|
+
# [Required] The Cloud Dataproc region in which to handle the request.
|
|
449
|
+
# @param [Fixnum] page_size
|
|
450
|
+
# [Optional] The number of results to return in each response.
|
|
451
|
+
# @param [String] page_token
|
|
452
|
+
# [Optional] The page token, returned by a previous call, to request the next
|
|
453
|
+
# page of results.
|
|
454
|
+
# @param [String] cluster_name
|
|
455
|
+
# [Optional] If set, the returned jobs list includes only jobs that were
|
|
456
|
+
# submitted to the named cluster.
|
|
457
|
+
# @param [String] job_state_matcher
|
|
458
|
+
# [Optional] Specifies enumerated categories of jobs to list.
|
|
459
|
+
# @param [String] fields
|
|
460
|
+
# Selector specifying which fields to include in a partial response.
|
|
461
|
+
# @param [String] quota_user
|
|
462
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
463
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
464
|
+
# @param [Google::Apis::RequestOptions] options
|
|
465
|
+
# Request-specific options
|
|
466
|
+
#
|
|
467
|
+
# @yield [result, err] Result & error if block supplied
|
|
468
|
+
# @yieldparam result [Google::Apis::DataprocV1::ListJobsResponse] parsed result object
|
|
469
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
470
|
+
#
|
|
471
|
+
# @return [Google::Apis::DataprocV1::ListJobsResponse]
|
|
472
|
+
#
|
|
473
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
474
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
475
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
476
|
+
def list_jobs(project_id, region, page_size: nil, page_token: nil, cluster_name: nil, job_state_matcher: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
477
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs', options)
|
|
478
|
+
command.response_representation = Google::Apis::DataprocV1::ListJobsResponse::Representation
|
|
479
|
+
command.response_class = Google::Apis::DataprocV1::ListJobsResponse
|
|
480
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
481
|
+
command.params['region'] = region unless region.nil?
|
|
482
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
483
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
484
|
+
command.query['clusterName'] = cluster_name unless cluster_name.nil?
|
|
485
|
+
command.query['jobStateMatcher'] = job_state_matcher unless job_state_matcher.nil?
|
|
486
|
+
command.query['fields'] = fields unless fields.nil?
|
|
487
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
488
|
+
execute_or_queue_command(command, &block)
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
# Starts a job cancellation request. To access the job resource after
|
|
492
|
+
# cancellation, call [regions/`region`/jobs.list](/dataproc/reference/rest/v1/
|
|
493
|
+
# projects.regions.jobs/list) or [regions/`region`/jobs.get](/dataproc/reference/
|
|
494
|
+
# rest/v1/projects.regions.jobs/get).
|
|
495
|
+
# @param [String] project_id
|
|
496
|
+
# [Required] The ID of the Google Cloud Platform project that the job belongs to.
|
|
497
|
+
# @param [String] region
|
|
498
|
+
# [Required] The Cloud Dataproc region in which to handle the request.
|
|
499
|
+
# @param [String] job_id
|
|
500
|
+
# [Required] The job ID.
|
|
501
|
+
# @param [Google::Apis::DataprocV1::CancelJobRequest] cancel_job_request_object
|
|
502
|
+
# @param [String] fields
|
|
503
|
+
# Selector specifying which fields to include in a partial response.
|
|
504
|
+
# @param [String] quota_user
|
|
505
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
506
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
507
|
+
# @param [Google::Apis::RequestOptions] options
|
|
508
|
+
# Request-specific options
|
|
509
|
+
#
|
|
510
|
+
# @yield [result, err] Result & error if block supplied
|
|
511
|
+
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
|
512
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
513
|
+
#
|
|
514
|
+
# @return [Google::Apis::DataprocV1::Job]
|
|
515
|
+
#
|
|
516
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
517
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
518
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
519
|
+
def cancel_job(project_id, region, job_id, cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
520
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel', options)
|
|
521
|
+
command.request_representation = Google::Apis::DataprocV1::CancelJobRequest::Representation
|
|
522
|
+
command.request_object = cancel_job_request_object
|
|
523
|
+
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
|
524
|
+
command.response_class = Google::Apis::DataprocV1::Job
|
|
525
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
526
|
+
command.params['region'] = region unless region.nil?
|
|
527
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
528
|
+
command.query['fields'] = fields unless fields.nil?
|
|
529
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
530
|
+
execute_or_queue_command(command, &block)
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
# Deletes the job from the project. If the job is active, the delete fails, and
|
|
534
|
+
# the response returns `FAILED_PRECONDITION`.
|
|
535
|
+
# @param [String] project_id
|
|
536
|
+
# [Required] The ID of the Google Cloud Platform project that the job belongs to.
|
|
537
|
+
# @param [String] region
|
|
538
|
+
# [Required] The Cloud Dataproc region in which to handle the request.
|
|
539
|
+
# @param [String] job_id
|
|
540
|
+
# [Required] The job ID.
|
|
541
|
+
# @param [String] fields
|
|
542
|
+
# Selector specifying which fields to include in a partial response.
|
|
543
|
+
# @param [String] quota_user
|
|
544
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
545
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
546
|
+
# @param [Google::Apis::RequestOptions] options
|
|
547
|
+
# Request-specific options
|
|
548
|
+
#
|
|
549
|
+
# @yield [result, err] Result & error if block supplied
|
|
550
|
+
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
|
551
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
552
|
+
#
|
|
553
|
+
# @return [Google::Apis::DataprocV1::Empty]
|
|
554
|
+
#
|
|
555
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
556
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
557
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
558
|
+
def delete_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
559
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
|
560
|
+
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
|
561
|
+
command.response_class = Google::Apis::DataprocV1::Empty
|
|
562
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
563
|
+
command.params['region'] = region unless region.nil?
|
|
564
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
565
|
+
command.query['fields'] = fields unless fields.nil?
|
|
566
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
567
|
+
execute_or_queue_command(command, &block)
|
|
568
|
+
end
|
|
569
|
+
|
|
570
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
|
571
|
+
# to poll the operation result at intervals as recommended by the API service.
|
|
572
|
+
# @param [String] name
|
|
573
|
+
# The name of the operation resource.
|
|
574
|
+
# @param [String] fields
|
|
575
|
+
# Selector specifying which fields to include in a partial response.
|
|
576
|
+
# @param [String] quota_user
|
|
577
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
578
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
579
|
+
# @param [Google::Apis::RequestOptions] options
|
|
580
|
+
# Request-specific options
|
|
581
|
+
#
|
|
582
|
+
# @yield [result, err] Result & error if block supplied
|
|
583
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
|
584
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
585
|
+
#
|
|
586
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
|
587
|
+
#
|
|
588
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
589
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
590
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
591
|
+
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
592
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
593
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
594
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
|
595
|
+
command.params['name'] = name unless name.nil?
|
|
596
|
+
command.query['fields'] = fields unless fields.nil?
|
|
597
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
598
|
+
execute_or_queue_command(command, &block)
|
|
599
|
+
end
|
|
600
|
+
|
|
601
|
+
# Lists operations that match the specified filter in the request. If the server
|
|
602
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
|
603
|
+
# binding below allows API services to override the binding to use different
|
|
604
|
+
# resource name schemes, such as `users/*/operations`.
|
|
605
|
+
# @param [String] name
|
|
606
|
+
# The name of the operation collection.
|
|
607
|
+
# @param [String] filter
|
|
608
|
+
# The standard list filter.
|
|
609
|
+
# @param [Fixnum] page_size
|
|
610
|
+
# The standard list page size.
|
|
611
|
+
# @param [String] page_token
|
|
612
|
+
# The standard list page token.
|
|
613
|
+
# @param [String] fields
|
|
614
|
+
# Selector specifying which fields to include in a partial response.
|
|
615
|
+
# @param [String] quota_user
|
|
616
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
617
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
618
|
+
# @param [Google::Apis::RequestOptions] options
|
|
619
|
+
# Request-specific options
|
|
620
|
+
#
|
|
621
|
+
# @yield [result, err] Result & error if block supplied
|
|
622
|
+
# @yieldparam result [Google::Apis::DataprocV1::ListOperationsResponse] parsed result object
|
|
623
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
624
|
+
#
|
|
625
|
+
# @return [Google::Apis::DataprocV1::ListOperationsResponse]
|
|
626
|
+
#
|
|
627
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
628
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
629
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
630
|
+
def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
631
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
632
|
+
command.response_representation = Google::Apis::DataprocV1::ListOperationsResponse::Representation
|
|
633
|
+
command.response_class = Google::Apis::DataprocV1::ListOperationsResponse
|
|
634
|
+
command.params['name'] = name unless name.nil?
|
|
635
|
+
command.query['filter'] = filter unless filter.nil?
|
|
636
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
637
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
638
|
+
command.query['fields'] = fields unless fields.nil?
|
|
639
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
640
|
+
execute_or_queue_command(command, &block)
|
|
641
|
+
end
|
|
642
|
+
|
|
643
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
|
644
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
|
645
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
646
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
|
647
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
|
648
|
+
# @param [String] name
|
|
649
|
+
# The name of the operation resource to be cancelled.
|
|
650
|
+
# @param [String] fields
|
|
651
|
+
# Selector specifying which fields to include in a partial response.
|
|
652
|
+
# @param [String] quota_user
|
|
653
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
654
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
655
|
+
# @param [Google::Apis::RequestOptions] options
|
|
656
|
+
# Request-specific options
|
|
657
|
+
#
|
|
658
|
+
# @yield [result, err] Result & error if block supplied
|
|
659
|
+
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
|
660
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
661
|
+
#
|
|
662
|
+
# @return [Google::Apis::DataprocV1::Empty]
|
|
663
|
+
#
|
|
664
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
665
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
666
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
667
|
+
def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
668
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
669
|
+
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
|
670
|
+
command.response_class = Google::Apis::DataprocV1::Empty
|
|
671
|
+
command.params['name'] = name unless name.nil?
|
|
672
|
+
command.query['fields'] = fields unless fields.nil?
|
|
673
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
674
|
+
execute_or_queue_command(command, &block)
|
|
675
|
+
end
|
|
676
|
+
|
|
677
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
|
678
|
+
# longer interested in the operation result. It does not cancel the operation.
|
|
679
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
|
680
|
+
# UNIMPLEMENTED`.
|
|
681
|
+
# @param [String] name
|
|
682
|
+
# The name of the operation resource to be deleted.
|
|
683
|
+
# @param [String] fields
|
|
684
|
+
# Selector specifying which fields to include in a partial response.
|
|
685
|
+
# @param [String] quota_user
|
|
686
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
687
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
688
|
+
# @param [Google::Apis::RequestOptions] options
|
|
689
|
+
# Request-specific options
|
|
690
|
+
#
|
|
691
|
+
# @yield [result, err] Result & error if block supplied
|
|
692
|
+
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
|
693
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
694
|
+
#
|
|
695
|
+
# @return [Google::Apis::DataprocV1::Empty]
|
|
696
|
+
#
|
|
697
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
698
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
699
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
700
|
+
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
701
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
702
|
+
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
|
703
|
+
command.response_class = Google::Apis::DataprocV1::Empty
|
|
704
|
+
command.params['name'] = name unless name.nil?
|
|
705
|
+
command.query['fields'] = fields unless fields.nil?
|
|
706
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
707
|
+
execute_or_queue_command(command, &block)
|
|
708
|
+
end
|
|
132
709
|
|
|
133
710
|
protected
|
|
134
711
|
|