google-apis-datafusion_v1 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 DatafusionV1
18
+ # Version of the google-apis-datafusion_v1 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 = "20200928"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,395 @@
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 DatafusionV1
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 Version
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class Accelerator
164
+ # @private
165
+ class Representation < Google::Apis::Core::JsonRepresentation
166
+ property :accelerator_type, as: 'acceleratorType'
167
+ end
168
+ end
169
+
170
+ class AuditConfig
171
+ # @private
172
+ class Representation < Google::Apis::Core::JsonRepresentation
173
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::DatafusionV1::AuditLogConfig, decorator: Google::Apis::DatafusionV1::AuditLogConfig::Representation
174
+
175
+ property :service, as: 'service'
176
+ end
177
+ end
178
+
179
+ class AuditLogConfig
180
+ # @private
181
+ class Representation < Google::Apis::Core::JsonRepresentation
182
+ collection :exempted_members, as: 'exemptedMembers'
183
+ property :log_type, as: 'logType'
184
+ end
185
+ end
186
+
187
+ class Binding
188
+ # @private
189
+ class Representation < Google::Apis::Core::JsonRepresentation
190
+ property :binding_id, as: 'bindingId'
191
+ property :condition, as: 'condition', class: Google::Apis::DatafusionV1::Expr, decorator: Google::Apis::DatafusionV1::Expr::Representation
192
+
193
+ collection :members, as: 'members'
194
+ property :role, as: 'role'
195
+ end
196
+ end
197
+
198
+ class CancelOperationRequest
199
+ # @private
200
+ class Representation < Google::Apis::Core::JsonRepresentation
201
+ end
202
+ end
203
+
204
+ class Empty
205
+ # @private
206
+ class Representation < Google::Apis::Core::JsonRepresentation
207
+ end
208
+ end
209
+
210
+ class Expr
211
+ # @private
212
+ class Representation < Google::Apis::Core::JsonRepresentation
213
+ property :description, as: 'description'
214
+ property :expression, as: 'expression'
215
+ property :location, as: 'location'
216
+ property :title, as: 'title'
217
+ end
218
+ end
219
+
220
+ class Instance
221
+ # @private
222
+ class Representation < Google::Apis::Core::JsonRepresentation
223
+ collection :accelerators, as: 'accelerators', class: Google::Apis::DatafusionV1::Accelerator, decorator: Google::Apis::DatafusionV1::Accelerator::Representation
224
+
225
+ property :api_endpoint, as: 'apiEndpoint'
226
+ collection :available_version, as: 'availableVersion', class: Google::Apis::DatafusionV1::Version, decorator: Google::Apis::DatafusionV1::Version::Representation
227
+
228
+ property :create_time, as: 'createTime'
229
+ property :dataproc_service_account, as: 'dataprocServiceAccount'
230
+ property :description, as: 'description'
231
+ property :display_name, as: 'displayName'
232
+ property :enable_stackdriver_logging, as: 'enableStackdriverLogging'
233
+ property :enable_stackdriver_monitoring, as: 'enableStackdriverMonitoring'
234
+ property :gcs_bucket, as: 'gcsBucket'
235
+ hash :labels, as: 'labels'
236
+ property :name, as: 'name'
237
+ property :network_config, as: 'networkConfig', class: Google::Apis::DatafusionV1::NetworkConfig, decorator: Google::Apis::DatafusionV1::NetworkConfig::Representation
238
+
239
+ hash :options, as: 'options'
240
+ property :p4_service_account, as: 'p4ServiceAccount'
241
+ property :private_instance, as: 'privateInstance'
242
+ property :service_account, as: 'serviceAccount'
243
+ property :service_endpoint, as: 'serviceEndpoint'
244
+ property :state, as: 'state'
245
+ property :state_message, as: 'stateMessage'
246
+ property :tenant_project_id, as: 'tenantProjectId'
247
+ property :type, as: 'type'
248
+ property :update_time, as: 'updateTime'
249
+ property :version, as: 'version'
250
+ property :zone, as: 'zone'
251
+ end
252
+ end
253
+
254
+ class ListAvailableVersionsResponse
255
+ # @private
256
+ class Representation < Google::Apis::Core::JsonRepresentation
257
+ collection :available_versions, as: 'availableVersions', class: Google::Apis::DatafusionV1::Version, decorator: Google::Apis::DatafusionV1::Version::Representation
258
+
259
+ property :next_page_token, as: 'nextPageToken'
260
+ end
261
+ end
262
+
263
+ class ListInstancesResponse
264
+ # @private
265
+ class Representation < Google::Apis::Core::JsonRepresentation
266
+ collection :instances, as: 'instances', class: Google::Apis::DatafusionV1::Instance, decorator: Google::Apis::DatafusionV1::Instance::Representation
267
+
268
+ property :next_page_token, as: 'nextPageToken'
269
+ collection :unreachable, as: 'unreachable'
270
+ end
271
+ end
272
+
273
+ class ListLocationsResponse
274
+ # @private
275
+ class Representation < Google::Apis::Core::JsonRepresentation
276
+ collection :locations, as: 'locations', class: Google::Apis::DatafusionV1::Location, decorator: Google::Apis::DatafusionV1::Location::Representation
277
+
278
+ property :next_page_token, as: 'nextPageToken'
279
+ end
280
+ end
281
+
282
+ class ListOperationsResponse
283
+ # @private
284
+ class Representation < Google::Apis::Core::JsonRepresentation
285
+ property :next_page_token, as: 'nextPageToken'
286
+ collection :operations, as: 'operations', class: Google::Apis::DatafusionV1::Operation, decorator: Google::Apis::DatafusionV1::Operation::Representation
287
+
288
+ end
289
+ end
290
+
291
+ class Location
292
+ # @private
293
+ class Representation < Google::Apis::Core::JsonRepresentation
294
+ property :display_name, as: 'displayName'
295
+ hash :labels, as: 'labels'
296
+ property :location_id, as: 'locationId'
297
+ hash :metadata, as: 'metadata'
298
+ property :name, as: 'name'
299
+ end
300
+ end
301
+
302
+ class NetworkConfig
303
+ # @private
304
+ class Representation < Google::Apis::Core::JsonRepresentation
305
+ property :ip_allocation, as: 'ipAllocation'
306
+ property :network, as: 'network'
307
+ end
308
+ end
309
+
310
+ class Operation
311
+ # @private
312
+ class Representation < Google::Apis::Core::JsonRepresentation
313
+ property :done, as: 'done'
314
+ property :error, as: 'error', class: Google::Apis::DatafusionV1::Status, decorator: Google::Apis::DatafusionV1::Status::Representation
315
+
316
+ hash :metadata, as: 'metadata'
317
+ property :name, as: 'name'
318
+ hash :response, as: 'response'
319
+ end
320
+ end
321
+
322
+ class OperationMetadata
323
+ # @private
324
+ class Representation < Google::Apis::Core::JsonRepresentation
325
+ property :api_version, as: 'apiVersion'
326
+ property :create_time, as: 'createTime'
327
+ property :end_time, as: 'endTime'
328
+ property :requested_cancellation, as: 'requestedCancellation'
329
+ property :status_detail, as: 'statusDetail'
330
+ property :target, as: 'target'
331
+ property :verb, as: 'verb'
332
+ end
333
+ end
334
+
335
+ class Policy
336
+ # @private
337
+ class Representation < Google::Apis::Core::JsonRepresentation
338
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::DatafusionV1::AuditConfig, decorator: Google::Apis::DatafusionV1::AuditConfig::Representation
339
+
340
+ collection :bindings, as: 'bindings', class: Google::Apis::DatafusionV1::Binding, decorator: Google::Apis::DatafusionV1::Binding::Representation
341
+
342
+ property :etag, :base64 => true, as: 'etag'
343
+ property :version, as: 'version'
344
+ end
345
+ end
346
+
347
+ class RestartInstanceRequest
348
+ # @private
349
+ class Representation < Google::Apis::Core::JsonRepresentation
350
+ end
351
+ end
352
+
353
+ class SetIamPolicyRequest
354
+ # @private
355
+ class Representation < Google::Apis::Core::JsonRepresentation
356
+ property :policy, as: 'policy', class: Google::Apis::DatafusionV1::Policy, decorator: Google::Apis::DatafusionV1::Policy::Representation
357
+
358
+ property :update_mask, as: 'updateMask'
359
+ end
360
+ end
361
+
362
+ class Status
363
+ # @private
364
+ class Representation < Google::Apis::Core::JsonRepresentation
365
+ property :code, as: 'code'
366
+ collection :details, as: 'details'
367
+ property :message, as: 'message'
368
+ end
369
+ end
370
+
371
+ class TestIamPermissionsRequest
372
+ # @private
373
+ class Representation < Google::Apis::Core::JsonRepresentation
374
+ collection :permissions, as: 'permissions'
375
+ end
376
+ end
377
+
378
+ class TestIamPermissionsResponse
379
+ # @private
380
+ class Representation < Google::Apis::Core::JsonRepresentation
381
+ collection :permissions, as: 'permissions'
382
+ end
383
+ end
384
+
385
+ class Version
386
+ # @private
387
+ class Representation < Google::Apis::Core::JsonRepresentation
388
+ collection :available_features, as: 'availableFeatures'
389
+ property :default_version, as: 'defaultVersion'
390
+ property :version_number, as: 'versionNumber'
391
+ end
392
+ end
393
+ end
394
+ end
395
+ end
@@ -0,0 +1,669 @@
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 DatafusionV1
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_v1'
35
+ #
36
+ # Datafusion = Google::Apis::DatafusionV1 # 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_v1',
54
+ client_version: Google::Apis::DatafusionV1::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::DatafusionV1::Location] parsed result object
71
+ # @yieldparam err [StandardError] error object if request failed
72
+ #
73
+ # @return [Google::Apis::DatafusionV1::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, 'v1/{+name}', options)
80
+ command.response_representation = Google::Apis::DatafusionV1::Location::Representation
81
+ command.response_class = Google::Apis::DatafusionV1::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::DatafusionV1::ListLocationsResponse] parsed result object
109
+ # @yieldparam err [StandardError] error object if request failed
110
+ #
111
+ # @return [Google::Apis::DatafusionV1::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, 'v1/{+name}/locations', options)
118
+ command.response_representation = Google::Apis::DatafusionV1::ListLocationsResponse::Representation
119
+ command.response_class = Google::Apis::DatafusionV1::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::DatafusionV1::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::DatafusionV1::Operation] parsed result object
147
+ # @yieldparam err [StandardError] error object if request failed
148
+ #
149
+ # @return [Google::Apis::DatafusionV1::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, 'v1/{+parent}/instances', options)
156
+ command.request_representation = Google::Apis::DatafusionV1::Instance::Representation
157
+ command.request_object = instance_object
158
+ command.response_representation = Google::Apis::DatafusionV1::Operation::Representation
159
+ command.response_class = Google::Apis::DatafusionV1::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::DatafusionV1::Operation] parsed result object
181
+ # @yieldparam err [StandardError] error object if request failed
182
+ #
183
+ # @return [Google::Apis::DatafusionV1::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, 'v1/{+name}', options)
190
+ command.response_representation = Google::Apis::DatafusionV1::Operation::Representation
191
+ command.response_class = Google::Apis::DatafusionV1::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::DatafusionV1::Instance] parsed result object
212
+ # @yieldparam err [StandardError] error object if request failed
213
+ #
214
+ # @return [Google::Apis::DatafusionV1::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, 'v1/{+name}', options)
221
+ command.response_representation = Google::Apis::DatafusionV1::Instance::Representation
222
+ command.response_class = Google::Apis::DatafusionV1::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::DatafusionV1::Policy] parsed result object
252
+ # @yieldparam err [StandardError] error object if request failed
253
+ #
254
+ # @return [Google::Apis::DatafusionV1::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, 'v1/{+resource}:getIamPolicy', options)
261
+ command.response_representation = Google::Apis::DatafusionV1::Policy::Representation
262
+ command.response_class = Google::Apis::DatafusionV1::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::DatafusionV1::ListInstancesResponse] parsed result object
295
+ # @yieldparam err [StandardError] error object if request failed
296
+ #
297
+ # @return [Google::Apis::DatafusionV1::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, 'v1/{+parent}/instances', options)
304
+ command.response_representation = Google::Apis::DatafusionV1::ListInstancesResponse::Representation
305
+ command.response_class = Google::Apis::DatafusionV1::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::DatafusionV1::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
+ # options, and version 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::DatafusionV1::Operation] parsed result object
337
+ # @yieldparam err [StandardError] error object if request failed
338
+ #
339
+ # @return [Google::Apis::DatafusionV1::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, 'v1/{+name}', options)
346
+ command.request_representation = Google::Apis::DatafusionV1::Instance::Representation
347
+ command.request_object = instance_object
348
+ command.response_representation = Google::Apis::DatafusionV1::Operation::Representation
349
+ command.response_class = Google::Apis::DatafusionV1::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::DatafusionV1::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::DatafusionV1::Operation] parsed result object
373
+ # @yieldparam err [StandardError] error object if request failed
374
+ #
375
+ # @return [Google::Apis::DatafusionV1::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, 'v1/{+name}:restart', options)
382
+ command.request_representation = Google::Apis::DatafusionV1::RestartInstanceRequest::Representation
383
+ command.request_object = restart_instance_request_object
384
+ command.response_representation = Google::Apis::DatafusionV1::Operation::Representation
385
+ command.response_class = Google::Apis::DatafusionV1::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::DatafusionV1::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::DatafusionV1::Policy] parsed result object
409
+ # @yieldparam err [StandardError] error object if request failed
410
+ #
411
+ # @return [Google::Apis::DatafusionV1::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, 'v1/{+resource}:setIamPolicy', options)
418
+ command.request_representation = Google::Apis::DatafusionV1::SetIamPolicyRequest::Representation
419
+ command.request_object = set_iam_policy_request_object
420
+ command.response_representation = Google::Apis::DatafusionV1::Policy::Representation
421
+ command.response_class = Google::Apis::DatafusionV1::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::DatafusionV1::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::DatafusionV1::TestIamPermissionsResponse] parsed result object
447
+ # @yieldparam err [StandardError] error object if request failed
448
+ #
449
+ # @return [Google::Apis::DatafusionV1::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, 'v1/{+resource}:testIamPermissions', options)
456
+ command.request_representation = Google::Apis::DatafusionV1::TestIamPermissionsRequest::Representation
457
+ command.request_object = test_iam_permissions_request_object
458
+ command.response_representation = Google::Apis::DatafusionV1::TestIamPermissionsResponse::Representation
459
+ command.response_class = Google::Apis::DatafusionV1::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
+ # Starts asynchronous cancellation on a long-running operation. The server makes
467
+ # a best effort to cancel the operation, but success is not guaranteed. If the
468
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
469
+ # Clients can use Operations.GetOperation or other methods to check whether the
470
+ # cancellation succeeded or whether the operation completed despite cancellation.
471
+ # On successful cancellation, the operation is not deleted; instead, it becomes
472
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
473
+ # corresponding to `Code.CANCELLED`.
474
+ # @param [String] name
475
+ # The name of the operation resource to be cancelled.
476
+ # @param [Google::Apis::DatafusionV1::CancelOperationRequest] cancel_operation_request_object
477
+ # @param [String] fields
478
+ # Selector specifying which fields to include in a partial response.
479
+ # @param [String] quota_user
480
+ # Available to use for quota purposes for server-side applications. Can be any
481
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
482
+ # @param [Google::Apis::RequestOptions] options
483
+ # Request-specific options
484
+ #
485
+ # @yield [result, err] Result & error if block supplied
486
+ # @yieldparam result [Google::Apis::DatafusionV1::Empty] parsed result object
487
+ # @yieldparam err [StandardError] error object if request failed
488
+ #
489
+ # @return [Google::Apis::DatafusionV1::Empty]
490
+ #
491
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
492
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
493
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
494
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
495
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
496
+ command.request_representation = Google::Apis::DatafusionV1::CancelOperationRequest::Representation
497
+ command.request_object = cancel_operation_request_object
498
+ command.response_representation = Google::Apis::DatafusionV1::Empty::Representation
499
+ command.response_class = Google::Apis::DatafusionV1::Empty
500
+ command.params['name'] = name unless name.nil?
501
+ command.query['fields'] = fields unless fields.nil?
502
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
503
+ execute_or_queue_command(command, &block)
504
+ end
505
+
506
+ # Deletes a long-running operation. This method indicates that the client is no
507
+ # longer interested in the operation result. It does not cancel the operation.
508
+ # If the server doesn't support this method, it returns `google.rpc.Code.
509
+ # UNIMPLEMENTED`.
510
+ # @param [String] name
511
+ # The name of the operation resource to be deleted.
512
+ # @param [String] fields
513
+ # Selector specifying which fields to include in a partial response.
514
+ # @param [String] quota_user
515
+ # Available to use for quota purposes for server-side applications. Can be any
516
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
517
+ # @param [Google::Apis::RequestOptions] options
518
+ # Request-specific options
519
+ #
520
+ # @yield [result, err] Result & error if block supplied
521
+ # @yieldparam result [Google::Apis::DatafusionV1::Empty] parsed result object
522
+ # @yieldparam err [StandardError] error object if request failed
523
+ #
524
+ # @return [Google::Apis::DatafusionV1::Empty]
525
+ #
526
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
527
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
528
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
529
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
530
+ command = make_simple_command(:delete, 'v1/{+name}', options)
531
+ command.response_representation = Google::Apis::DatafusionV1::Empty::Representation
532
+ command.response_class = Google::Apis::DatafusionV1::Empty
533
+ command.params['name'] = name unless name.nil?
534
+ command.query['fields'] = fields unless fields.nil?
535
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
536
+ execute_or_queue_command(command, &block)
537
+ end
538
+
539
+ # Gets the latest state of a long-running operation. Clients can use this method
540
+ # to poll the operation result at intervals as recommended by the API service.
541
+ # @param [String] name
542
+ # The name of the operation resource.
543
+ # @param [String] fields
544
+ # Selector specifying which fields to include in a partial response.
545
+ # @param [String] quota_user
546
+ # Available to use for quota purposes for server-side applications. Can be any
547
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
548
+ # @param [Google::Apis::RequestOptions] options
549
+ # Request-specific options
550
+ #
551
+ # @yield [result, err] Result & error if block supplied
552
+ # @yieldparam result [Google::Apis::DatafusionV1::Operation] parsed result object
553
+ # @yieldparam err [StandardError] error object if request failed
554
+ #
555
+ # @return [Google::Apis::DatafusionV1::Operation]
556
+ #
557
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
558
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
559
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
560
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
561
+ command = make_simple_command(:get, 'v1/{+name}', options)
562
+ command.response_representation = Google::Apis::DatafusionV1::Operation::Representation
563
+ command.response_class = Google::Apis::DatafusionV1::Operation
564
+ command.params['name'] = name unless name.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
+ # Lists operations that match the specified filter in the request. If the server
571
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
572
+ # binding allows API services to override the binding to use different resource
573
+ # name schemes, such as `users/*/operations`. To override the binding, API
574
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
575
+ # service configuration. For backwards compatibility, the default name includes
576
+ # the operations collection id, however overriding users must ensure the name
577
+ # binding is the parent resource, without the operations collection id.
578
+ # @param [String] name
579
+ # The name of the operation's parent resource.
580
+ # @param [String] filter
581
+ # The standard list filter.
582
+ # @param [Fixnum] page_size
583
+ # The standard list page size.
584
+ # @param [String] page_token
585
+ # The standard list page token.
586
+ # @param [String] fields
587
+ # Selector specifying which fields to include in a partial response.
588
+ # @param [String] quota_user
589
+ # Available to use for quota purposes for server-side applications. Can be any
590
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
591
+ # @param [Google::Apis::RequestOptions] options
592
+ # Request-specific options
593
+ #
594
+ # @yield [result, err] Result & error if block supplied
595
+ # @yieldparam result [Google::Apis::DatafusionV1::ListOperationsResponse] parsed result object
596
+ # @yieldparam err [StandardError] error object if request failed
597
+ #
598
+ # @return [Google::Apis::DatafusionV1::ListOperationsResponse]
599
+ #
600
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
601
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
602
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
603
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
604
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
605
+ command.response_representation = Google::Apis::DatafusionV1::ListOperationsResponse::Representation
606
+ command.response_class = Google::Apis::DatafusionV1::ListOperationsResponse
607
+ command.params['name'] = name unless name.nil?
608
+ command.query['filter'] = filter unless filter.nil?
609
+ command.query['pageSize'] = page_size unless page_size.nil?
610
+ command.query['pageToken'] = page_token unless page_token.nil?
611
+ command.query['fields'] = fields unless fields.nil?
612
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
613
+ execute_or_queue_command(command, &block)
614
+ end
615
+
616
+ # Lists possible versions for Data Fusion instances in the specified project and
617
+ # location.
618
+ # @param [String] parent
619
+ # Required. The project and location for which to retrieve instance information
620
+ # in the format projects/`project`/locations/`location`.
621
+ # @param [Boolean] latest_patch_only
622
+ # Whether or not to return the latest patch of every available minor version. If
623
+ # true, only the latest patch will be returned. Ex. if allowed versions is [6.1.
624
+ # 1, 6.1.2, 6.2.0] then response will be [6.1.2, 6.2.0]
625
+ # @param [Fixnum] page_size
626
+ # The maximum number of items to return.
627
+ # @param [String] page_token
628
+ # The next_page_token value to use if there are additional results to retrieve
629
+ # for this list request.
630
+ # @param [String] fields
631
+ # Selector specifying which fields to include in a partial response.
632
+ # @param [String] quota_user
633
+ # Available to use for quota purposes for server-side applications. Can be any
634
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
635
+ # @param [Google::Apis::RequestOptions] options
636
+ # Request-specific options
637
+ #
638
+ # @yield [result, err] Result & error if block supplied
639
+ # @yieldparam result [Google::Apis::DatafusionV1::ListAvailableVersionsResponse] parsed result object
640
+ # @yieldparam err [StandardError] error object if request failed
641
+ #
642
+ # @return [Google::Apis::DatafusionV1::ListAvailableVersionsResponse]
643
+ #
644
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
645
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
646
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
647
+ def list_project_location_versions(parent, latest_patch_only: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
648
+ command = make_simple_command(:get, 'v1/{+parent}/versions', options)
649
+ command.response_representation = Google::Apis::DatafusionV1::ListAvailableVersionsResponse::Representation
650
+ command.response_class = Google::Apis::DatafusionV1::ListAvailableVersionsResponse
651
+ command.params['parent'] = parent unless parent.nil?
652
+ command.query['latestPatchOnly'] = latest_patch_only unless latest_patch_only.nil?
653
+ command.query['pageSize'] = page_size unless page_size.nil?
654
+ command.query['pageToken'] = page_token unless page_token.nil?
655
+ command.query['fields'] = fields unless fields.nil?
656
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
657
+ execute_or_queue_command(command, &block)
658
+ end
659
+
660
+ protected
661
+
662
+ def apply_command_defaults(command)
663
+ command.query['key'] = key unless key.nil?
664
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
665
+ end
666
+ end
667
+ end
668
+ end
669
+ end