google-apis-datafusion_v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module DatafusionV1beta1
18
+ # Version of the google-apis-datafusion_v1beta1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20200901"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,407 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module DatafusionV1beta1
24
+
25
+ class Accelerator
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AuditConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class AuditLogConfig
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Binding
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CancelOperationRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Empty
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Expr
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Instance
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ListAvailableVersionsResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ListInstancesResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ListLocationsResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListOperationsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class Location
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class NetworkConfig
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class Operation
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class OperationMetadata
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class Policy
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class RestartInstanceRequest
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class SetIamPolicyRequest
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Status
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class TestIamPermissionsRequest
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class TestIamPermissionsResponse
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class UpgradeInstanceRequest
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class Version
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class Accelerator
170
+ # @private
171
+ class Representation < Google::Apis::Core::JsonRepresentation
172
+ property :accelerator_type, as: 'acceleratorType'
173
+ end
174
+ end
175
+
176
+ class AuditConfig
177
+ # @private
178
+ class Representation < Google::Apis::Core::JsonRepresentation
179
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::DatafusionV1beta1::AuditLogConfig, decorator: Google::Apis::DatafusionV1beta1::AuditLogConfig::Representation
180
+
181
+ property :service, as: 'service'
182
+ end
183
+ end
184
+
185
+ class AuditLogConfig
186
+ # @private
187
+ class Representation < Google::Apis::Core::JsonRepresentation
188
+ collection :exempted_members, as: 'exemptedMembers'
189
+ property :log_type, as: 'logType'
190
+ end
191
+ end
192
+
193
+ class Binding
194
+ # @private
195
+ class Representation < Google::Apis::Core::JsonRepresentation
196
+ property :binding_id, as: 'bindingId'
197
+ property :condition, as: 'condition', class: Google::Apis::DatafusionV1beta1::Expr, decorator: Google::Apis::DatafusionV1beta1::Expr::Representation
198
+
199
+ collection :members, as: 'members'
200
+ property :role, as: 'role'
201
+ end
202
+ end
203
+
204
+ class CancelOperationRequest
205
+ # @private
206
+ class Representation < Google::Apis::Core::JsonRepresentation
207
+ end
208
+ end
209
+
210
+ class Empty
211
+ # @private
212
+ class Representation < Google::Apis::Core::JsonRepresentation
213
+ end
214
+ end
215
+
216
+ class Expr
217
+ # @private
218
+ class Representation < Google::Apis::Core::JsonRepresentation
219
+ property :description, as: 'description'
220
+ property :expression, as: 'expression'
221
+ property :location, as: 'location'
222
+ property :title, as: 'title'
223
+ end
224
+ end
225
+
226
+ class Instance
227
+ # @private
228
+ class Representation < Google::Apis::Core::JsonRepresentation
229
+ collection :accelerators, as: 'accelerators', class: Google::Apis::DatafusionV1beta1::Accelerator, decorator: Google::Apis::DatafusionV1beta1::Accelerator::Representation
230
+
231
+ property :api_endpoint, as: 'apiEndpoint'
232
+ collection :available_version, as: 'availableVersion', class: Google::Apis::DatafusionV1beta1::Version, decorator: Google::Apis::DatafusionV1beta1::Version::Representation
233
+
234
+ property :create_time, as: 'createTime'
235
+ property :dataproc_service_account, as: 'dataprocServiceAccount'
236
+ property :description, as: 'description'
237
+ property :display_name, as: 'displayName'
238
+ property :enable_stackdriver_logging, as: 'enableStackdriverLogging'
239
+ property :enable_stackdriver_monitoring, as: 'enableStackdriverMonitoring'
240
+ property :gcs_bucket, as: 'gcsBucket'
241
+ hash :labels, as: 'labels'
242
+ property :name, as: 'name'
243
+ property :network_config, as: 'networkConfig', class: Google::Apis::DatafusionV1beta1::NetworkConfig, decorator: Google::Apis::DatafusionV1beta1::NetworkConfig::Representation
244
+
245
+ hash :options, as: 'options'
246
+ property :p4_service_account, as: 'p4ServiceAccount'
247
+ property :private_instance, as: 'privateInstance'
248
+ property :service_account, as: 'serviceAccount'
249
+ property :service_endpoint, as: 'serviceEndpoint'
250
+ property :state, as: 'state'
251
+ property :state_message, as: 'stateMessage'
252
+ property :tenant_project_id, as: 'tenantProjectId'
253
+ property :type, as: 'type'
254
+ property :update_time, as: 'updateTime'
255
+ property :version, as: 'version'
256
+ property :zone, as: 'zone'
257
+ end
258
+ end
259
+
260
+ class ListAvailableVersionsResponse
261
+ # @private
262
+ class Representation < Google::Apis::Core::JsonRepresentation
263
+ collection :available_versions, as: 'availableVersions', class: Google::Apis::DatafusionV1beta1::Version, decorator: Google::Apis::DatafusionV1beta1::Version::Representation
264
+
265
+ property :next_page_token, as: 'nextPageToken'
266
+ end
267
+ end
268
+
269
+ class ListInstancesResponse
270
+ # @private
271
+ class Representation < Google::Apis::Core::JsonRepresentation
272
+ collection :instances, as: 'instances', class: Google::Apis::DatafusionV1beta1::Instance, decorator: Google::Apis::DatafusionV1beta1::Instance::Representation
273
+
274
+ property :next_page_token, as: 'nextPageToken'
275
+ collection :unreachable, as: 'unreachable'
276
+ end
277
+ end
278
+
279
+ class ListLocationsResponse
280
+ # @private
281
+ class Representation < Google::Apis::Core::JsonRepresentation
282
+ collection :locations, as: 'locations', class: Google::Apis::DatafusionV1beta1::Location, decorator: Google::Apis::DatafusionV1beta1::Location::Representation
283
+
284
+ property :next_page_token, as: 'nextPageToken'
285
+ end
286
+ end
287
+
288
+ class ListOperationsResponse
289
+ # @private
290
+ class Representation < Google::Apis::Core::JsonRepresentation
291
+ property :next_page_token, as: 'nextPageToken'
292
+ collection :operations, as: 'operations', class: Google::Apis::DatafusionV1beta1::Operation, decorator: Google::Apis::DatafusionV1beta1::Operation::Representation
293
+
294
+ end
295
+ end
296
+
297
+ class Location
298
+ # @private
299
+ class Representation < Google::Apis::Core::JsonRepresentation
300
+ property :display_name, as: 'displayName'
301
+ hash :labels, as: 'labels'
302
+ property :location_id, as: 'locationId'
303
+ hash :metadata, as: 'metadata'
304
+ property :name, as: 'name'
305
+ end
306
+ end
307
+
308
+ class NetworkConfig
309
+ # @private
310
+ class Representation < Google::Apis::Core::JsonRepresentation
311
+ property :ip_allocation, as: 'ipAllocation'
312
+ property :network, as: 'network'
313
+ end
314
+ end
315
+
316
+ class Operation
317
+ # @private
318
+ class Representation < Google::Apis::Core::JsonRepresentation
319
+ property :done, as: 'done'
320
+ property :error, as: 'error', class: Google::Apis::DatafusionV1beta1::Status, decorator: Google::Apis::DatafusionV1beta1::Status::Representation
321
+
322
+ hash :metadata, as: 'metadata'
323
+ property :name, as: 'name'
324
+ hash :response, as: 'response'
325
+ end
326
+ end
327
+
328
+ class OperationMetadata
329
+ # @private
330
+ class Representation < Google::Apis::Core::JsonRepresentation
331
+ property :api_version, as: 'apiVersion'
332
+ property :create_time, as: 'createTime'
333
+ property :end_time, as: 'endTime'
334
+ property :requested_cancellation, as: 'requestedCancellation'
335
+ property :status_detail, as: 'statusDetail'
336
+ property :target, as: 'target'
337
+ property :verb, as: 'verb'
338
+ end
339
+ end
340
+
341
+ class Policy
342
+ # @private
343
+ class Representation < Google::Apis::Core::JsonRepresentation
344
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::DatafusionV1beta1::AuditConfig, decorator: Google::Apis::DatafusionV1beta1::AuditConfig::Representation
345
+
346
+ collection :bindings, as: 'bindings', class: Google::Apis::DatafusionV1beta1::Binding, decorator: Google::Apis::DatafusionV1beta1::Binding::Representation
347
+
348
+ property :etag, :base64 => true, as: 'etag'
349
+ property :version, as: 'version'
350
+ end
351
+ end
352
+
353
+ class RestartInstanceRequest
354
+ # @private
355
+ class Representation < Google::Apis::Core::JsonRepresentation
356
+ end
357
+ end
358
+
359
+ class SetIamPolicyRequest
360
+ # @private
361
+ class Representation < Google::Apis::Core::JsonRepresentation
362
+ property :policy, as: 'policy', class: Google::Apis::DatafusionV1beta1::Policy, decorator: Google::Apis::DatafusionV1beta1::Policy::Representation
363
+
364
+ property :update_mask, as: 'updateMask'
365
+ end
366
+ end
367
+
368
+ class Status
369
+ # @private
370
+ class Representation < Google::Apis::Core::JsonRepresentation
371
+ property :code, as: 'code'
372
+ collection :details, as: 'details'
373
+ property :message, as: 'message'
374
+ end
375
+ end
376
+
377
+ class TestIamPermissionsRequest
378
+ # @private
379
+ class Representation < Google::Apis::Core::JsonRepresentation
380
+ collection :permissions, as: 'permissions'
381
+ end
382
+ end
383
+
384
+ class TestIamPermissionsResponse
385
+ # @private
386
+ class Representation < Google::Apis::Core::JsonRepresentation
387
+ collection :permissions, as: 'permissions'
388
+ end
389
+ end
390
+
391
+ class UpgradeInstanceRequest
392
+ # @private
393
+ class Representation < Google::Apis::Core::JsonRepresentation
394
+ end
395
+ end
396
+
397
+ class Version
398
+ # @private
399
+ class Representation < Google::Apis::Core::JsonRepresentation
400
+ collection :available_features, as: 'availableFeatures'
401
+ property :default_version, as: 'defaultVersion'
402
+ property :version_number, as: 'versionNumber'
403
+ end
404
+ end
405
+ end
406
+ end
407
+ end
@@ -0,0 +1,705 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module DatafusionV1beta1
23
+ # Cloud Data Fusion API
24
+ #
25
+ # Cloud Data Fusion is a fully-managed, cloud native, enterprise data
26
+ # integration service for quickly building and managing data pipelines. It
27
+ # provides a graphical interface to increase time efficiency and reduce
28
+ # complexity, and allows business users, developers, and data scientists to
29
+ # easily and reliably build scalable data integration solutions to cleanse,
30
+ # prepare, blend, transfer and transform data without having to wrestle with
31
+ # infrastructure.
32
+ #
33
+ # @example
34
+ # require 'google/apis/datafusion_v1beta1'
35
+ #
36
+ # Datafusion = Google::Apis::DatafusionV1beta1 # Alias the module
37
+ # service = Datafusion::DataFusionService.new
38
+ #
39
+ # @see https://cloud.google.com/data-fusion/docs
40
+ class DataFusionService < Google::Apis::Core::BaseService
41
+ # @return [String]
42
+ # API key. Your API key identifies your project and provides you with API access,
43
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
44
+ attr_accessor :key
45
+
46
+ # @return [String]
47
+ # Available to use for quota purposes for server-side applications. Can be any
48
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
49
+ attr_accessor :quota_user
50
+
51
+ def initialize
52
+ super('https://datafusion.googleapis.com/', '',
53
+ client_name: 'google-apis-datafusion_v1beta1',
54
+ client_version: Google::Apis::DatafusionV1beta1::GEM_VERSION)
55
+ @batch_path = 'batch'
56
+ end
57
+
58
+ # Gets information about a location.
59
+ # @param [String] name
60
+ # Resource name for the location.
61
+ # @param [String] fields
62
+ # Selector specifying which fields to include in a partial response.
63
+ # @param [String] quota_user
64
+ # Available to use for quota purposes for server-side applications. Can be any
65
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
66
+ # @param [Google::Apis::RequestOptions] options
67
+ # Request-specific options
68
+ #
69
+ # @yield [result, err] Result & error if block supplied
70
+ # @yieldparam result [Google::Apis::DatafusionV1beta1::Location] parsed result object
71
+ # @yieldparam err [StandardError] error object if request failed
72
+ #
73
+ # @return [Google::Apis::DatafusionV1beta1::Location]
74
+ #
75
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
76
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
77
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
78
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
79
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
80
+ command.response_representation = Google::Apis::DatafusionV1beta1::Location::Representation
81
+ command.response_class = Google::Apis::DatafusionV1beta1::Location
82
+ command.params['name'] = name unless name.nil?
83
+ command.query['fields'] = fields unless fields.nil?
84
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
85
+ execute_or_queue_command(command, &block)
86
+ end
87
+
88
+ # Lists information about the supported locations for this service.
89
+ # @param [String] name
90
+ # The resource that owns the locations collection, if applicable.
91
+ # @param [String] filter
92
+ # The standard list filter.
93
+ # @param [Boolean] include_unrevealed_locations
94
+ # If true, the returned list will include locations which are not yet revealed.
95
+ # @param [Fixnum] page_size
96
+ # The standard list page size.
97
+ # @param [String] page_token
98
+ # The standard list page token.
99
+ # @param [String] fields
100
+ # Selector specifying which fields to include in a partial response.
101
+ # @param [String] quota_user
102
+ # Available to use for quota purposes for server-side applications. Can be any
103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
104
+ # @param [Google::Apis::RequestOptions] options
105
+ # Request-specific options
106
+ #
107
+ # @yield [result, err] Result & error if block supplied
108
+ # @yieldparam result [Google::Apis::DatafusionV1beta1::ListLocationsResponse] parsed result object
109
+ # @yieldparam err [StandardError] error object if request failed
110
+ #
111
+ # @return [Google::Apis::DatafusionV1beta1::ListLocationsResponse]
112
+ #
113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
116
+ def list_project_locations(name, filter: nil, include_unrevealed_locations: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
117
+ command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
118
+ command.response_representation = Google::Apis::DatafusionV1beta1::ListLocationsResponse::Representation
119
+ command.response_class = Google::Apis::DatafusionV1beta1::ListLocationsResponse
120
+ command.params['name'] = name unless name.nil?
121
+ command.query['filter'] = filter unless filter.nil?
122
+ command.query['includeUnrevealedLocations'] = include_unrevealed_locations unless include_unrevealed_locations.nil?
123
+ command.query['pageSize'] = page_size unless page_size.nil?
124
+ command.query['pageToken'] = page_token unless page_token.nil?
125
+ command.query['fields'] = fields unless fields.nil?
126
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
127
+ execute_or_queue_command(command, &block)
128
+ end
129
+
130
+ # Creates a new Data Fusion instance in the specified project and location.
131
+ # @param [String] parent
132
+ # The instance's project and location in the format projects/`project`/locations/
133
+ # `location`.
134
+ # @param [Google::Apis::DatafusionV1beta1::Instance] instance_object
135
+ # @param [String] instance_id
136
+ # The name of the instance to create.
137
+ # @param [String] fields
138
+ # Selector specifying which fields to include in a partial response.
139
+ # @param [String] quota_user
140
+ # Available to use for quota purposes for server-side applications. Can be any
141
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
142
+ # @param [Google::Apis::RequestOptions] options
143
+ # Request-specific options
144
+ #
145
+ # @yield [result, err] Result & error if block supplied
146
+ # @yieldparam result [Google::Apis::DatafusionV1beta1::Operation] parsed result object
147
+ # @yieldparam err [StandardError] error object if request failed
148
+ #
149
+ # @return [Google::Apis::DatafusionV1beta1::Operation]
150
+ #
151
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
152
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
153
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
154
+ def create_project_location_instance(parent, instance_object = nil, instance_id: nil, fields: nil, quota_user: nil, options: nil, &block)
155
+ command = make_simple_command(:post, 'v1beta1/{+parent}/instances', options)
156
+ command.request_representation = Google::Apis::DatafusionV1beta1::Instance::Representation
157
+ command.request_object = instance_object
158
+ command.response_representation = Google::Apis::DatafusionV1beta1::Operation::Representation
159
+ command.response_class = Google::Apis::DatafusionV1beta1::Operation
160
+ command.params['parent'] = parent unless parent.nil?
161
+ command.query['instanceId'] = instance_id unless instance_id.nil?
162
+ command.query['fields'] = fields unless fields.nil?
163
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
164
+ execute_or_queue_command(command, &block)
165
+ end
166
+
167
+ # Deletes a single Date Fusion instance.
168
+ # @param [String] name
169
+ # The instance resource name in the format projects/`project`/locations/`
170
+ # location`/instances/`instance`
171
+ # @param [String] fields
172
+ # Selector specifying which fields to include in a partial response.
173
+ # @param [String] quota_user
174
+ # Available to use for quota purposes for server-side applications. Can be any
175
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
176
+ # @param [Google::Apis::RequestOptions] options
177
+ # Request-specific options
178
+ #
179
+ # @yield [result, err] Result & error if block supplied
180
+ # @yieldparam result [Google::Apis::DatafusionV1beta1::Operation] parsed result object
181
+ # @yieldparam err [StandardError] error object if request failed
182
+ #
183
+ # @return [Google::Apis::DatafusionV1beta1::Operation]
184
+ #
185
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
186
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
187
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
188
+ def delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
189
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
190
+ command.response_representation = Google::Apis::DatafusionV1beta1::Operation::Representation
191
+ command.response_class = Google::Apis::DatafusionV1beta1::Operation
192
+ command.params['name'] = name unless name.nil?
193
+ command.query['fields'] = fields unless fields.nil?
194
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
195
+ execute_or_queue_command(command, &block)
196
+ end
197
+
198
+ # Gets details of a single Data Fusion instance.
199
+ # @param [String] name
200
+ # The instance resource name in the format projects/`project`/locations/`
201
+ # location`/instances/`instance`.
202
+ # @param [String] fields
203
+ # Selector specifying which fields to include in a partial response.
204
+ # @param [String] quota_user
205
+ # Available to use for quota purposes for server-side applications. Can be any
206
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
207
+ # @param [Google::Apis::RequestOptions] options
208
+ # Request-specific options
209
+ #
210
+ # @yield [result, err] Result & error if block supplied
211
+ # @yieldparam result [Google::Apis::DatafusionV1beta1::Instance] parsed result object
212
+ # @yieldparam err [StandardError] error object if request failed
213
+ #
214
+ # @return [Google::Apis::DatafusionV1beta1::Instance]
215
+ #
216
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
217
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
218
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
219
+ def get_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
220
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
221
+ command.response_representation = Google::Apis::DatafusionV1beta1::Instance::Representation
222
+ command.response_class = Google::Apis::DatafusionV1beta1::Instance
223
+ command.params['name'] = name unless name.nil?
224
+ command.query['fields'] = fields unless fields.nil?
225
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
226
+ execute_or_queue_command(command, &block)
227
+ end
228
+
229
+ # Gets the access control policy for a resource. Returns an empty policy if the
230
+ # resource exists and does not have a policy set.
231
+ # @param [String] resource
232
+ # REQUIRED: The resource for which the policy is being requested. See the
233
+ # operation documentation for the appropriate value for this field.
234
+ # @param [Fixnum] options_requested_policy_version
235
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
236
+ # 3. Requests specifying an invalid value will be rejected. Requests for
237
+ # policies with any conditional bindings must specify version 3. Policies
238
+ # without any conditional bindings may specify any valid value or leave the
239
+ # field unset. To learn which resources support conditions in their IAM policies,
240
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
241
+ # resource-policies).
242
+ # @param [String] fields
243
+ # Selector specifying which fields to include in a partial response.
244
+ # @param [String] quota_user
245
+ # Available to use for quota purposes for server-side applications. Can be any
246
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
247
+ # @param [Google::Apis::RequestOptions] options
248
+ # Request-specific options
249
+ #
250
+ # @yield [result, err] Result & error if block supplied
251
+ # @yieldparam result [Google::Apis::DatafusionV1beta1::Policy] parsed result object
252
+ # @yieldparam err [StandardError] error object if request failed
253
+ #
254
+ # @return [Google::Apis::DatafusionV1beta1::Policy]
255
+ #
256
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
257
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
258
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
259
+ def get_project_location_instance_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
260
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
261
+ command.response_representation = Google::Apis::DatafusionV1beta1::Policy::Representation
262
+ command.response_class = Google::Apis::DatafusionV1beta1::Policy
263
+ command.params['resource'] = resource unless resource.nil?
264
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
265
+ command.query['fields'] = fields unless fields.nil?
266
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
267
+ execute_or_queue_command(command, &block)
268
+ end
269
+
270
+ # Lists Data Fusion instances in the specified project and location.
271
+ # @param [String] parent
272
+ # The project and location for which to retrieve instance information in the
273
+ # format projects/`project`/locations/`location`. If the location is specified
274
+ # as '-' (wildcard), then all regions available to the project are queried, and
275
+ # the results are aggregated.
276
+ # @param [String] filter
277
+ # List filter.
278
+ # @param [String] order_by
279
+ # Sort results. Supported values are "name", "name desc", or "" (unsorted).
280
+ # @param [Fixnum] page_size
281
+ # The maximum number of items to return.
282
+ # @param [String] page_token
283
+ # The next_page_token value to use if there are additional results to retrieve
284
+ # for this list request.
285
+ # @param [String] fields
286
+ # Selector specifying which fields to include in a partial response.
287
+ # @param [String] quota_user
288
+ # Available to use for quota purposes for server-side applications. Can be any
289
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
290
+ # @param [Google::Apis::RequestOptions] options
291
+ # Request-specific options
292
+ #
293
+ # @yield [result, err] Result & error if block supplied
294
+ # @yieldparam result [Google::Apis::DatafusionV1beta1::ListInstancesResponse] parsed result object
295
+ # @yieldparam err [StandardError] error object if request failed
296
+ #
297
+ # @return [Google::Apis::DatafusionV1beta1::ListInstancesResponse]
298
+ #
299
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
300
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
301
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
302
+ def list_project_location_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
303
+ command = make_simple_command(:get, 'v1beta1/{+parent}/instances', options)
304
+ command.response_representation = Google::Apis::DatafusionV1beta1::ListInstancesResponse::Representation
305
+ command.response_class = Google::Apis::DatafusionV1beta1::ListInstancesResponse
306
+ command.params['parent'] = parent unless parent.nil?
307
+ command.query['filter'] = filter unless filter.nil?
308
+ command.query['orderBy'] = order_by unless order_by.nil?
309
+ command.query['pageSize'] = page_size unless page_size.nil?
310
+ command.query['pageToken'] = page_token unless page_token.nil?
311
+ command.query['fields'] = fields unless fields.nil?
312
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
313
+ execute_or_queue_command(command, &block)
314
+ end
315
+
316
+ # Updates a single Data Fusion instance.
317
+ # @param [String] name
318
+ # Output only. The name of this instance is in the form of projects/`project`/
319
+ # locations/`location`/instances/`instance`.
320
+ # @param [Google::Apis::DatafusionV1beta1::Instance] instance_object
321
+ # @param [String] update_mask
322
+ # Field mask is used to specify the fields that the update will overwrite in an
323
+ # instance resource. The fields specified in the update_mask are relative to the
324
+ # resource, not the full request. A field will be overwritten if it is in the
325
+ # mask. If the user does not provide a mask, all the supported fields (labels
326
+ # and options currently) will be overwritten.
327
+ # @param [String] fields
328
+ # Selector specifying which fields to include in a partial response.
329
+ # @param [String] quota_user
330
+ # Available to use for quota purposes for server-side applications. Can be any
331
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
332
+ # @param [Google::Apis::RequestOptions] options
333
+ # Request-specific options
334
+ #
335
+ # @yield [result, err] Result & error if block supplied
336
+ # @yieldparam result [Google::Apis::DatafusionV1beta1::Operation] parsed result object
337
+ # @yieldparam err [StandardError] error object if request failed
338
+ #
339
+ # @return [Google::Apis::DatafusionV1beta1::Operation]
340
+ #
341
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
342
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
343
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
344
+ def patch_project_location_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
345
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
346
+ command.request_representation = Google::Apis::DatafusionV1beta1::Instance::Representation
347
+ command.request_object = instance_object
348
+ command.response_representation = Google::Apis::DatafusionV1beta1::Operation::Representation
349
+ command.response_class = Google::Apis::DatafusionV1beta1::Operation
350
+ command.params['name'] = name unless name.nil?
351
+ command.query['updateMask'] = update_mask unless update_mask.nil?
352
+ command.query['fields'] = fields unless fields.nil?
353
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
354
+ execute_or_queue_command(command, &block)
355
+ end
356
+
357
+ # Restart a single Data Fusion instance. At the end of an operation instance is
358
+ # fully restarted.
359
+ # @param [String] name
360
+ # Name of the Data Fusion instance which need to be restarted in the form of
361
+ # projects/`project`/locations/`location`/instances/`instance`
362
+ # @param [Google::Apis::DatafusionV1beta1::RestartInstanceRequest] restart_instance_request_object
363
+ # @param [String] fields
364
+ # Selector specifying which fields to include in a partial response.
365
+ # @param [String] quota_user
366
+ # Available to use for quota purposes for server-side applications. Can be any
367
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
368
+ # @param [Google::Apis::RequestOptions] options
369
+ # Request-specific options
370
+ #
371
+ # @yield [result, err] Result & error if block supplied
372
+ # @yieldparam result [Google::Apis::DatafusionV1beta1::Operation] parsed result object
373
+ # @yieldparam err [StandardError] error object if request failed
374
+ #
375
+ # @return [Google::Apis::DatafusionV1beta1::Operation]
376
+ #
377
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
378
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
379
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
380
+ def restart_instance(name, restart_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
381
+ command = make_simple_command(:post, 'v1beta1/{+name}:restart', options)
382
+ command.request_representation = Google::Apis::DatafusionV1beta1::RestartInstanceRequest::Representation
383
+ command.request_object = restart_instance_request_object
384
+ command.response_representation = Google::Apis::DatafusionV1beta1::Operation::Representation
385
+ command.response_class = Google::Apis::DatafusionV1beta1::Operation
386
+ command.params['name'] = name unless name.nil?
387
+ command.query['fields'] = fields unless fields.nil?
388
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
389
+ execute_or_queue_command(command, &block)
390
+ end
391
+
392
+ # Sets the access control policy on the specified resource. Replaces any
393
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
394
+ # PERMISSION_DENIED` errors.
395
+ # @param [String] resource
396
+ # REQUIRED: The resource for which the policy is being specified. See the
397
+ # operation documentation for the appropriate value for this field.
398
+ # @param [Google::Apis::DatafusionV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
399
+ # @param [String] fields
400
+ # Selector specifying which fields to include in a partial response.
401
+ # @param [String] quota_user
402
+ # Available to use for quota purposes for server-side applications. Can be any
403
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
404
+ # @param [Google::Apis::RequestOptions] options
405
+ # Request-specific options
406
+ #
407
+ # @yield [result, err] Result & error if block supplied
408
+ # @yieldparam result [Google::Apis::DatafusionV1beta1::Policy] parsed result object
409
+ # @yieldparam err [StandardError] error object if request failed
410
+ #
411
+ # @return [Google::Apis::DatafusionV1beta1::Policy]
412
+ #
413
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
414
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
415
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
416
+ def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
417
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
418
+ command.request_representation = Google::Apis::DatafusionV1beta1::SetIamPolicyRequest::Representation
419
+ command.request_object = set_iam_policy_request_object
420
+ command.response_representation = Google::Apis::DatafusionV1beta1::Policy::Representation
421
+ command.response_class = Google::Apis::DatafusionV1beta1::Policy
422
+ command.params['resource'] = resource unless resource.nil?
423
+ command.query['fields'] = fields unless fields.nil?
424
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
425
+ execute_or_queue_command(command, &block)
426
+ end
427
+
428
+ # Returns permissions that a caller has on the specified resource. If the
429
+ # resource does not exist, this will return an empty set of permissions, not a `
430
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
431
+ # permission-aware UIs and command-line tools, not for authorization checking.
432
+ # This operation may "fail open" without warning.
433
+ # @param [String] resource
434
+ # REQUIRED: The resource for which the policy detail is being requested. See the
435
+ # operation documentation for the appropriate value for this field.
436
+ # @param [Google::Apis::DatafusionV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
437
+ # @param [String] fields
438
+ # Selector specifying which fields to include in a partial response.
439
+ # @param [String] quota_user
440
+ # Available to use for quota purposes for server-side applications. Can be any
441
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
442
+ # @param [Google::Apis::RequestOptions] options
443
+ # Request-specific options
444
+ #
445
+ # @yield [result, err] Result & error if block supplied
446
+ # @yieldparam result [Google::Apis::DatafusionV1beta1::TestIamPermissionsResponse] parsed result object
447
+ # @yieldparam err [StandardError] error object if request failed
448
+ #
449
+ # @return [Google::Apis::DatafusionV1beta1::TestIamPermissionsResponse]
450
+ #
451
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
452
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
453
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
454
+ def test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
455
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
456
+ command.request_representation = Google::Apis::DatafusionV1beta1::TestIamPermissionsRequest::Representation
457
+ command.request_object = test_iam_permissions_request_object
458
+ command.response_representation = Google::Apis::DatafusionV1beta1::TestIamPermissionsResponse::Representation
459
+ command.response_class = Google::Apis::DatafusionV1beta1::TestIamPermissionsResponse
460
+ command.params['resource'] = resource unless resource.nil?
461
+ command.query['fields'] = fields unless fields.nil?
462
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
463
+ execute_or_queue_command(command, &block)
464
+ end
465
+
466
+ # Upgrade a single Data Fusion instance. At the end of an operation instance is
467
+ # fully upgraded.
468
+ # @param [String] name
469
+ # Name of the Data Fusion instance which need to be upgraded in the form of
470
+ # projects/`project`/locations/`location`/instances/`instance` Instance will be
471
+ # upgraded with the latest stable version of the Data Fusion.
472
+ # @param [Google::Apis::DatafusionV1beta1::UpgradeInstanceRequest] upgrade_instance_request_object
473
+ # @param [String] fields
474
+ # Selector specifying which fields to include in a partial response.
475
+ # @param [String] quota_user
476
+ # Available to use for quota purposes for server-side applications. Can be any
477
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
478
+ # @param [Google::Apis::RequestOptions] options
479
+ # Request-specific options
480
+ #
481
+ # @yield [result, err] Result & error if block supplied
482
+ # @yieldparam result [Google::Apis::DatafusionV1beta1::Operation] parsed result object
483
+ # @yieldparam err [StandardError] error object if request failed
484
+ #
485
+ # @return [Google::Apis::DatafusionV1beta1::Operation]
486
+ #
487
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
488
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
489
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
490
+ def upgrade_instance(name, upgrade_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
491
+ command = make_simple_command(:post, 'v1beta1/{+name}:upgrade', options)
492
+ command.request_representation = Google::Apis::DatafusionV1beta1::UpgradeInstanceRequest::Representation
493
+ command.request_object = upgrade_instance_request_object
494
+ command.response_representation = Google::Apis::DatafusionV1beta1::Operation::Representation
495
+ command.response_class = Google::Apis::DatafusionV1beta1::Operation
496
+ command.params['name'] = name unless name.nil?
497
+ command.query['fields'] = fields unless fields.nil?
498
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
499
+ execute_or_queue_command(command, &block)
500
+ end
501
+
502
+ # Starts asynchronous cancellation on a long-running operation. The server makes
503
+ # a best effort to cancel the operation, but success is not guaranteed. If the
504
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
505
+ # Clients can use Operations.GetOperation or other methods to check whether the
506
+ # cancellation succeeded or whether the operation completed despite cancellation.
507
+ # On successful cancellation, the operation is not deleted; instead, it becomes
508
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
509
+ # corresponding to `Code.CANCELLED`.
510
+ # @param [String] name
511
+ # The name of the operation resource to be cancelled.
512
+ # @param [Google::Apis::DatafusionV1beta1::CancelOperationRequest] cancel_operation_request_object
513
+ # @param [String] fields
514
+ # Selector specifying which fields to include in a partial response.
515
+ # @param [String] quota_user
516
+ # Available to use for quota purposes for server-side applications. Can be any
517
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
518
+ # @param [Google::Apis::RequestOptions] options
519
+ # Request-specific options
520
+ #
521
+ # @yield [result, err] Result & error if block supplied
522
+ # @yieldparam result [Google::Apis::DatafusionV1beta1::Empty] parsed result object
523
+ # @yieldparam err [StandardError] error object if request failed
524
+ #
525
+ # @return [Google::Apis::DatafusionV1beta1::Empty]
526
+ #
527
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
528
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
529
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
530
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
531
+ command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
532
+ command.request_representation = Google::Apis::DatafusionV1beta1::CancelOperationRequest::Representation
533
+ command.request_object = cancel_operation_request_object
534
+ command.response_representation = Google::Apis::DatafusionV1beta1::Empty::Representation
535
+ command.response_class = Google::Apis::DatafusionV1beta1::Empty
536
+ command.params['name'] = name unless name.nil?
537
+ command.query['fields'] = fields unless fields.nil?
538
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
539
+ execute_or_queue_command(command, &block)
540
+ end
541
+
542
+ # Deletes a long-running operation. This method indicates that the client is no
543
+ # longer interested in the operation result. It does not cancel the operation.
544
+ # If the server doesn't support this method, it returns `google.rpc.Code.
545
+ # UNIMPLEMENTED`.
546
+ # @param [String] name
547
+ # The name of the operation resource to be deleted.
548
+ # @param [String] fields
549
+ # Selector specifying which fields to include in a partial response.
550
+ # @param [String] quota_user
551
+ # Available to use for quota purposes for server-side applications. Can be any
552
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
553
+ # @param [Google::Apis::RequestOptions] options
554
+ # Request-specific options
555
+ #
556
+ # @yield [result, err] Result & error if block supplied
557
+ # @yieldparam result [Google::Apis::DatafusionV1beta1::Empty] parsed result object
558
+ # @yieldparam err [StandardError] error object if request failed
559
+ #
560
+ # @return [Google::Apis::DatafusionV1beta1::Empty]
561
+ #
562
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
563
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
564
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
565
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
566
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
567
+ command.response_representation = Google::Apis::DatafusionV1beta1::Empty::Representation
568
+ command.response_class = Google::Apis::DatafusionV1beta1::Empty
569
+ command.params['name'] = name unless name.nil?
570
+ command.query['fields'] = fields unless fields.nil?
571
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
572
+ execute_or_queue_command(command, &block)
573
+ end
574
+
575
+ # Gets the latest state of a long-running operation. Clients can use this method
576
+ # to poll the operation result at intervals as recommended by the API service.
577
+ # @param [String] name
578
+ # The name of the operation resource.
579
+ # @param [String] fields
580
+ # Selector specifying which fields to include in a partial response.
581
+ # @param [String] quota_user
582
+ # Available to use for quota purposes for server-side applications. Can be any
583
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
584
+ # @param [Google::Apis::RequestOptions] options
585
+ # Request-specific options
586
+ #
587
+ # @yield [result, err] Result & error if block supplied
588
+ # @yieldparam result [Google::Apis::DatafusionV1beta1::Operation] parsed result object
589
+ # @yieldparam err [StandardError] error object if request failed
590
+ #
591
+ # @return [Google::Apis::DatafusionV1beta1::Operation]
592
+ #
593
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
594
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
595
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
596
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
597
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
598
+ command.response_representation = Google::Apis::DatafusionV1beta1::Operation::Representation
599
+ command.response_class = Google::Apis::DatafusionV1beta1::Operation
600
+ command.params['name'] = name unless name.nil?
601
+ command.query['fields'] = fields unless fields.nil?
602
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
603
+ execute_or_queue_command(command, &block)
604
+ end
605
+
606
+ # Lists operations that match the specified filter in the request. If the server
607
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
608
+ # binding allows API services to override the binding to use different resource
609
+ # name schemes, such as `users/*/operations`. To override the binding, API
610
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
611
+ # service configuration. For backwards compatibility, the default name includes
612
+ # the operations collection id, however overriding users must ensure the name
613
+ # binding is the parent resource, without the operations collection id.
614
+ # @param [String] name
615
+ # The name of the operation's parent resource.
616
+ # @param [String] filter
617
+ # The standard list filter.
618
+ # @param [Fixnum] page_size
619
+ # The standard list page size.
620
+ # @param [String] page_token
621
+ # The standard list page token.
622
+ # @param [String] fields
623
+ # Selector specifying which fields to include in a partial response.
624
+ # @param [String] quota_user
625
+ # Available to use for quota purposes for server-side applications. Can be any
626
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
627
+ # @param [Google::Apis::RequestOptions] options
628
+ # Request-specific options
629
+ #
630
+ # @yield [result, err] Result & error if block supplied
631
+ # @yieldparam result [Google::Apis::DatafusionV1beta1::ListOperationsResponse] parsed result object
632
+ # @yieldparam err [StandardError] error object if request failed
633
+ #
634
+ # @return [Google::Apis::DatafusionV1beta1::ListOperationsResponse]
635
+ #
636
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
637
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
638
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
639
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
640
+ command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
641
+ command.response_representation = Google::Apis::DatafusionV1beta1::ListOperationsResponse::Representation
642
+ command.response_class = Google::Apis::DatafusionV1beta1::ListOperationsResponse
643
+ command.params['name'] = name unless name.nil?
644
+ command.query['filter'] = filter unless filter.nil?
645
+ command.query['pageSize'] = page_size unless page_size.nil?
646
+ command.query['pageToken'] = page_token unless page_token.nil?
647
+ command.query['fields'] = fields unless fields.nil?
648
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
649
+ execute_or_queue_command(command, &block)
650
+ end
651
+
652
+ # Lists possible versions for Data Fusion instances in the specified project and
653
+ # location.
654
+ # @param [String] parent
655
+ # Required. The project and location for which to retrieve instance information
656
+ # in the format projects/`project`/locations/`location`.
657
+ # @param [Boolean] latest_patch_only
658
+ # Whether or not to return the latest patch of every available minor version. If
659
+ # true, only the latest patch will be returned. Ex. if allowed versions is [6.1.
660
+ # 1, 6.1.2, 6.2.0] then response will be [6.1.2, 6.2.0]
661
+ # @param [Fixnum] page_size
662
+ # The maximum number of items to return.
663
+ # @param [String] page_token
664
+ # The next_page_token value to use if there are additional results to retrieve
665
+ # for this list request.
666
+ # @param [String] fields
667
+ # Selector specifying which fields to include in a partial response.
668
+ # @param [String] quota_user
669
+ # Available to use for quota purposes for server-side applications. Can be any
670
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
671
+ # @param [Google::Apis::RequestOptions] options
672
+ # Request-specific options
673
+ #
674
+ # @yield [result, err] Result & error if block supplied
675
+ # @yieldparam result [Google::Apis::DatafusionV1beta1::ListAvailableVersionsResponse] parsed result object
676
+ # @yieldparam err [StandardError] error object if request failed
677
+ #
678
+ # @return [Google::Apis::DatafusionV1beta1::ListAvailableVersionsResponse]
679
+ #
680
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
681
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
682
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
683
+ def list_project_location_versions(parent, latest_patch_only: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
684
+ command = make_simple_command(:get, 'v1beta1/{+parent}/versions', options)
685
+ command.response_representation = Google::Apis::DatafusionV1beta1::ListAvailableVersionsResponse::Representation
686
+ command.response_class = Google::Apis::DatafusionV1beta1::ListAvailableVersionsResponse
687
+ command.params['parent'] = parent unless parent.nil?
688
+ command.query['latestPatchOnly'] = latest_patch_only unless latest_patch_only.nil?
689
+ command.query['pageSize'] = page_size unless page_size.nil?
690
+ command.query['pageToken'] = page_token unless page_token.nil?
691
+ command.query['fields'] = fields unless fields.nil?
692
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
693
+ execute_or_queue_command(command, &block)
694
+ end
695
+
696
+ protected
697
+
698
+ def apply_command_defaults(command)
699
+ command.query['key'] = key unless key.nil?
700
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
701
+ end
702
+ end
703
+ end
704
+ end
705
+ end