google-cloud-metastore-v1 0.8.1 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/metastore/v1/dataproc_metastore/client.rb +341 -1
- data/lib/google/cloud/metastore/v1/dataproc_metastore/operations.rb +10 -1
- data/lib/google/cloud/metastore/v1/dataproc_metastore/rest/client.rb +625 -0
- data/lib/google/cloud/metastore/v1/dataproc_metastore/rest/operations.rb +75 -0
- data/lib/google/cloud/metastore/v1/dataproc_metastore/rest/service_stub.rb +180 -0
- data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/client.rb +10 -1
- data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/operations.rb +10 -1
- data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/rest/client.rb +105 -0
- data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/rest/operations.rb +75 -0
- data/lib/google/cloud/metastore/v1/metastore_federation_pb.rb +1 -1
- data/lib/google/cloud/metastore/v1/metastore_pb.rb +9 -1
- data/lib/google/cloud/metastore/v1/metastore_services_pb.rb +9 -0
- data/lib/google/cloud/metastore/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/metastore/v1/metastore.rb +132 -0
- data/proto_docs/google/cloud/metastore/v1/metastore_federation.rb +3 -0
- metadata +5 -5
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -610,6 +610,120 @@ module Google
|
|
610
610
|
result
|
611
611
|
end
|
612
612
|
|
613
|
+
##
|
614
|
+
# Baseline implementation for the query_metadata REST call
|
615
|
+
#
|
616
|
+
# @param request_pb [::Google::Cloud::Metastore::V1::QueryMetadataRequest]
|
617
|
+
# A request object representing the call parameters. Required.
|
618
|
+
# @param options [::Gapic::CallOptions]
|
619
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
620
|
+
#
|
621
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
622
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
623
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
624
|
+
#
|
625
|
+
# @return [::Google::Longrunning::Operation]
|
626
|
+
# A result object deserialized from the server's reply
|
627
|
+
def query_metadata request_pb, options = nil
|
628
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
629
|
+
|
630
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_query_metadata_request request_pb
|
631
|
+
query_string_params = if query_string_params.any?
|
632
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
633
|
+
else
|
634
|
+
{}
|
635
|
+
end
|
636
|
+
|
637
|
+
response = @client_stub.make_http_request(
|
638
|
+
verb,
|
639
|
+
uri: uri,
|
640
|
+
body: body || "",
|
641
|
+
params: query_string_params,
|
642
|
+
options: options
|
643
|
+
)
|
644
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
645
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
646
|
+
|
647
|
+
yield result, operation if block_given?
|
648
|
+
result
|
649
|
+
end
|
650
|
+
|
651
|
+
##
|
652
|
+
# Baseline implementation for the move_table_to_database REST call
|
653
|
+
#
|
654
|
+
# @param request_pb [::Google::Cloud::Metastore::V1::MoveTableToDatabaseRequest]
|
655
|
+
# A request object representing the call parameters. Required.
|
656
|
+
# @param options [::Gapic::CallOptions]
|
657
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
658
|
+
#
|
659
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
660
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
661
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
662
|
+
#
|
663
|
+
# @return [::Google::Longrunning::Operation]
|
664
|
+
# A result object deserialized from the server's reply
|
665
|
+
def move_table_to_database request_pb, options = nil
|
666
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
667
|
+
|
668
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_move_table_to_database_request request_pb
|
669
|
+
query_string_params = if query_string_params.any?
|
670
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
671
|
+
else
|
672
|
+
{}
|
673
|
+
end
|
674
|
+
|
675
|
+
response = @client_stub.make_http_request(
|
676
|
+
verb,
|
677
|
+
uri: uri,
|
678
|
+
body: body || "",
|
679
|
+
params: query_string_params,
|
680
|
+
options: options
|
681
|
+
)
|
682
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
683
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
684
|
+
|
685
|
+
yield result, operation if block_given?
|
686
|
+
result
|
687
|
+
end
|
688
|
+
|
689
|
+
##
|
690
|
+
# Baseline implementation for the alter_metadata_resource_location REST call
|
691
|
+
#
|
692
|
+
# @param request_pb [::Google::Cloud::Metastore::V1::AlterMetadataResourceLocationRequest]
|
693
|
+
# A request object representing the call parameters. Required.
|
694
|
+
# @param options [::Gapic::CallOptions]
|
695
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
696
|
+
#
|
697
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
698
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
699
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
700
|
+
#
|
701
|
+
# @return [::Google::Longrunning::Operation]
|
702
|
+
# A result object deserialized from the server's reply
|
703
|
+
def alter_metadata_resource_location request_pb, options = nil
|
704
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
705
|
+
|
706
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_alter_metadata_resource_location_request request_pb
|
707
|
+
query_string_params = if query_string_params.any?
|
708
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
709
|
+
else
|
710
|
+
{}
|
711
|
+
end
|
712
|
+
|
713
|
+
response = @client_stub.make_http_request(
|
714
|
+
verb,
|
715
|
+
uri: uri,
|
716
|
+
body: body || "",
|
717
|
+
params: query_string_params,
|
718
|
+
options: options
|
719
|
+
)
|
720
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
721
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
722
|
+
|
723
|
+
yield result, operation if block_given?
|
724
|
+
result
|
725
|
+
end
|
726
|
+
|
613
727
|
##
|
614
728
|
# @private
|
615
729
|
#
|
@@ -931,6 +1045,72 @@ module Google
|
|
931
1045
|
)
|
932
1046
|
transcoder.transcode request_pb
|
933
1047
|
end
|
1048
|
+
|
1049
|
+
##
|
1050
|
+
# @private
|
1051
|
+
#
|
1052
|
+
# GRPC transcoding helper method for the query_metadata REST call
|
1053
|
+
#
|
1054
|
+
# @param request_pb [::Google::Cloud::Metastore::V1::QueryMetadataRequest]
|
1055
|
+
# A request object representing the call parameters. Required.
|
1056
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1057
|
+
# Uri, Body, Query string parameters
|
1058
|
+
def self.transcode_query_metadata_request request_pb
|
1059
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1060
|
+
.with_bindings(
|
1061
|
+
uri_method: :post,
|
1062
|
+
uri_template: "/v1/{service}:queryMetadata",
|
1063
|
+
body: "*",
|
1064
|
+
matches: [
|
1065
|
+
["service", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
|
1066
|
+
]
|
1067
|
+
)
|
1068
|
+
transcoder.transcode request_pb
|
1069
|
+
end
|
1070
|
+
|
1071
|
+
##
|
1072
|
+
# @private
|
1073
|
+
#
|
1074
|
+
# GRPC transcoding helper method for the move_table_to_database REST call
|
1075
|
+
#
|
1076
|
+
# @param request_pb [::Google::Cloud::Metastore::V1::MoveTableToDatabaseRequest]
|
1077
|
+
# A request object representing the call parameters. Required.
|
1078
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1079
|
+
# Uri, Body, Query string parameters
|
1080
|
+
def self.transcode_move_table_to_database_request request_pb
|
1081
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1082
|
+
.with_bindings(
|
1083
|
+
uri_method: :post,
|
1084
|
+
uri_template: "/v1/{service}:moveTableToDatabase",
|
1085
|
+
body: "*",
|
1086
|
+
matches: [
|
1087
|
+
["service", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
|
1088
|
+
]
|
1089
|
+
)
|
1090
|
+
transcoder.transcode request_pb
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
##
|
1094
|
+
# @private
|
1095
|
+
#
|
1096
|
+
# GRPC transcoding helper method for the alter_metadata_resource_location REST call
|
1097
|
+
#
|
1098
|
+
# @param request_pb [::Google::Cloud::Metastore::V1::AlterMetadataResourceLocationRequest]
|
1099
|
+
# A request object representing the call parameters. Required.
|
1100
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1101
|
+
# Uri, Body, Query string parameters
|
1102
|
+
def self.transcode_alter_metadata_resource_location_request request_pb
|
1103
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1104
|
+
.with_bindings(
|
1105
|
+
uri_method: :post,
|
1106
|
+
uri_template: "/v1/{service}:alterLocation",
|
1107
|
+
body: "*",
|
1108
|
+
matches: [
|
1109
|
+
["service", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
|
1110
|
+
]
|
1111
|
+
)
|
1112
|
+
transcoder.transcode request_pb
|
1113
|
+
end
|
934
1114
|
end
|
935
1115
|
end
|
936
1116
|
end
|
@@ -170,7 +170,8 @@ module Google
|
|
170
170
|
credentials: credentials,
|
171
171
|
endpoint: @config.endpoint,
|
172
172
|
channel_args: @config.channel_args,
|
173
|
-
interceptors: @config.interceptors
|
173
|
+
interceptors: @config.interceptors,
|
174
|
+
channel_pool_config: @config.channel_pool
|
174
175
|
)
|
175
176
|
end
|
176
177
|
|
@@ -860,6 +861,14 @@ module Google
|
|
860
861
|
end
|
861
862
|
end
|
862
863
|
|
864
|
+
##
|
865
|
+
# Configuration for the channel pool
|
866
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
867
|
+
#
|
868
|
+
def channel_pool
|
869
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
870
|
+
end
|
871
|
+
|
863
872
|
##
|
864
873
|
# Configuration RPC class for the DataprocMetastoreFederation API.
|
865
874
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -239,6 +239,26 @@ module Google
|
|
239
239
|
# @return [::Google::Cloud::Metastore::V1::ListFederationsResponse]
|
240
240
|
#
|
241
241
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
242
|
+
#
|
243
|
+
# @example Basic example
|
244
|
+
# require "google/cloud/metastore/v1"
|
245
|
+
#
|
246
|
+
# # Create a client object. The client can be reused for multiple calls.
|
247
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastoreFederation::Rest::Client.new
|
248
|
+
#
|
249
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
250
|
+
# request = Google::Cloud::Metastore::V1::ListFederationsRequest.new
|
251
|
+
#
|
252
|
+
# # Call the list_federations method.
|
253
|
+
# result = client.list_federations request
|
254
|
+
#
|
255
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
256
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
257
|
+
# result.each do |item|
|
258
|
+
# # Each element is of type ::Google::Cloud::Metastore::V1::Federation.
|
259
|
+
# p item
|
260
|
+
# end
|
261
|
+
#
|
242
262
|
def list_federations request, options = nil
|
243
263
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
244
264
|
|
@@ -304,6 +324,22 @@ module Google
|
|
304
324
|
# @return [::Google::Cloud::Metastore::V1::Federation]
|
305
325
|
#
|
306
326
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
327
|
+
#
|
328
|
+
# @example Basic example
|
329
|
+
# require "google/cloud/metastore/v1"
|
330
|
+
#
|
331
|
+
# # Create a client object. The client can be reused for multiple calls.
|
332
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastoreFederation::Rest::Client.new
|
333
|
+
#
|
334
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
335
|
+
# request = Google::Cloud::Metastore::V1::GetFederationRequest.new
|
336
|
+
#
|
337
|
+
# # Call the get_federation method.
|
338
|
+
# result = client.get_federation request
|
339
|
+
#
|
340
|
+
# # The returned object is of type Google::Cloud::Metastore::V1::Federation.
|
341
|
+
# p result
|
342
|
+
#
|
307
343
|
def get_federation request, options = nil
|
308
344
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
309
345
|
|
@@ -393,6 +429,29 @@ module Google
|
|
393
429
|
# @return [::Gapic::Operation]
|
394
430
|
#
|
395
431
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
432
|
+
#
|
433
|
+
# @example Basic example
|
434
|
+
# require "google/cloud/metastore/v1"
|
435
|
+
#
|
436
|
+
# # Create a client object. The client can be reused for multiple calls.
|
437
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastoreFederation::Rest::Client.new
|
438
|
+
#
|
439
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
440
|
+
# request = Google::Cloud::Metastore::V1::CreateFederationRequest.new
|
441
|
+
#
|
442
|
+
# # Call the create_federation method.
|
443
|
+
# result = client.create_federation request
|
444
|
+
#
|
445
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
446
|
+
# # check the status of an operation, cancel it, or wait for results.
|
447
|
+
# # Here is how to wait for a response.
|
448
|
+
# result.wait_until_done! timeout: 60
|
449
|
+
# if result.response?
|
450
|
+
# p result.response
|
451
|
+
# else
|
452
|
+
# puts "No response received."
|
453
|
+
# end
|
454
|
+
#
|
396
455
|
def create_federation request, options = nil
|
397
456
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
398
457
|
|
@@ -478,6 +537,29 @@ module Google
|
|
478
537
|
# @return [::Gapic::Operation]
|
479
538
|
#
|
480
539
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
540
|
+
#
|
541
|
+
# @example Basic example
|
542
|
+
# require "google/cloud/metastore/v1"
|
543
|
+
#
|
544
|
+
# # Create a client object. The client can be reused for multiple calls.
|
545
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastoreFederation::Rest::Client.new
|
546
|
+
#
|
547
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
548
|
+
# request = Google::Cloud::Metastore::V1::UpdateFederationRequest.new
|
549
|
+
#
|
550
|
+
# # Call the update_federation method.
|
551
|
+
# result = client.update_federation request
|
552
|
+
#
|
553
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
554
|
+
# # check the status of an operation, cancel it, or wait for results.
|
555
|
+
# # Here is how to wait for a response.
|
556
|
+
# result.wait_until_done! timeout: 60
|
557
|
+
# if result.response?
|
558
|
+
# p result.response
|
559
|
+
# else
|
560
|
+
# puts "No response received."
|
561
|
+
# end
|
562
|
+
#
|
481
563
|
def update_federation request, options = nil
|
482
564
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
483
565
|
|
@@ -557,6 +639,29 @@ module Google
|
|
557
639
|
# @return [::Gapic::Operation]
|
558
640
|
#
|
559
641
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
642
|
+
#
|
643
|
+
# @example Basic example
|
644
|
+
# require "google/cloud/metastore/v1"
|
645
|
+
#
|
646
|
+
# # Create a client object. The client can be reused for multiple calls.
|
647
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastoreFederation::Rest::Client.new
|
648
|
+
#
|
649
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
650
|
+
# request = Google::Cloud::Metastore::V1::DeleteFederationRequest.new
|
651
|
+
#
|
652
|
+
# # Call the delete_federation method.
|
653
|
+
# result = client.delete_federation request
|
654
|
+
#
|
655
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
656
|
+
# # check the status of an operation, cancel it, or wait for results.
|
657
|
+
# # Here is how to wait for a response.
|
658
|
+
# result.wait_until_done! timeout: 60
|
659
|
+
# if result.response?
|
660
|
+
# p result.response
|
661
|
+
# else
|
662
|
+
# puts "No response received."
|
663
|
+
# end
|
664
|
+
#
|
560
665
|
def delete_federation request, options = nil
|
561
666
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
562
667
|
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -15,7 +15,7 @@ require 'google/protobuf/field_mask_pb'
|
|
15
15
|
require 'google/protobuf/timestamp_pb'
|
16
16
|
|
17
17
|
|
18
|
-
descriptor_data = "\n4google/cloud/metastore/v1/metastore_federation.proto\x12\x19google.cloud.metastore.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/metastore/v1/metastore.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xab\x06\n\nFederation\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x41\n\x06labels\x18\x04 \x03(\x0b\x32\x31.google.cloud.metastore.v1.Federation.LabelsEntry\x12\x14\n\x07version\x18\x05 \x01(\tB\x03\xe0\x41\x05\x12X\n\x12\x62\x61\x63kend_metastores\x18\x06 \x03(\x0b\x32<.google.cloud.metastore.v1.Federation.BackendMetastoresEntry\x12\x19\n\x0c\x65ndpoint_uri\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12?\n\x05state\x18\x08 \x01(\x0e\x32+.google.cloud.metastore.v1.Federation.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\n \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x65\n\x16\x42\x61\x63kendMetastoresEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12:\n\x05value\x18\x02 \x01(\x0b\x32+.google.cloud.metastore.v1.BackendMetastore:\x02\x38\x01\"_\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\t\n\x05\x45RROR\x10\x05:j\xea\x41g\n#metastore.googleapis.com/Federation\x12@projects/{project}/locations/{location}/federations/{federation}\"\
|
18
|
+
descriptor_data = "\n4google/cloud/metastore/v1/metastore_federation.proto\x12\x19google.cloud.metastore.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/metastore/v1/metastore.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xab\x06\n\nFederation\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x41\n\x06labels\x18\x04 \x03(\x0b\x32\x31.google.cloud.metastore.v1.Federation.LabelsEntry\x12\x14\n\x07version\x18\x05 \x01(\tB\x03\xe0\x41\x05\x12X\n\x12\x62\x61\x63kend_metastores\x18\x06 \x03(\x0b\x32<.google.cloud.metastore.v1.Federation.BackendMetastoresEntry\x12\x19\n\x0c\x65ndpoint_uri\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12?\n\x05state\x18\x08 \x01(\x0e\x32+.google.cloud.metastore.v1.Federation.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\n \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x65\n\x16\x42\x61\x63kendMetastoresEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12:\n\x05value\x18\x02 \x01(\x0b\x32+.google.cloud.metastore.v1.BackendMetastore:\x02\x38\x01\"_\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\t\n\x05\x45RROR\x10\x05:j\xea\x41g\n#metastore.googleapis.com/Federation\x12@projects/{project}/locations/{location}/federations/{federation}\"\xca\x01\n\x10\x42\x61\x63kendMetastore\x12\x0c\n\x04name\x18\x01 \x01(\t\x12Q\n\x0emetastore_type\x18\x02 \x01(\x0e\x32\x39.google.cloud.metastore.v1.BackendMetastore.MetastoreType\"U\n\rMetastoreType\x12\x1e\n\x1aMETASTORE_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x42IGQUERY\x10\x02\x12\x16\n\x12\x44\x41TAPROC_METASTORE\x10\x03\"\xb2\x01\n\x16ListFederationsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#metastore.googleapis.com/Federation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x17ListFederationsResponse\x12:\n\x0b\x66\x65\x64\x65rations\x18\x01 \x03(\x0b\x32%.google.cloud.metastore.v1.Federation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"Q\n\x14GetFederationRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#metastore.googleapis.com/Federation\"\xcb\x01\n\x17\x43reateFederationRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#metastore.googleapis.com/Federation\x12\x1a\n\rfederation_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\nfederation\x18\x03 \x01(\x0b\x32%.google.cloud.metastore.v1.FederationB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xa8\x01\n\x17UpdateFederationRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12>\n\nfederation\x18\x02 \x01(\x0b\x32%.google.cloud.metastore.v1.FederationB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"m\n\x17\x44\x65leteFederationRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#metastore.googleapis.com/Federation\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\xdc\t\n\x1b\x44\x61taprocMetastoreFederation\x12\xba\x01\n\x0fListFederations\x12\x31.google.cloud.metastore.v1.ListFederationsRequest\x1a\x32.google.cloud.metastore.v1.ListFederationsResponse\"@\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/federations\xda\x41\x06parent\x12\xa7\x01\n\rGetFederation\x12/.google.cloud.metastore.v1.GetFederationRequest\x1a%.google.cloud.metastore.v1.Federation\">\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/federations/*}\xda\x41\x04name\x12\x89\x02\n\x10\x43reateFederation\x12\x32.google.cloud.metastore.v1.CreateFederationRequest\x1a\x1d.google.longrunning.Operation\"\xa1\x01\x82\xd3\xe4\x93\x02=\"//v1/{parent=projects/*/locations/*}/federations:\nfederation\xda\x41\x1fparent,federation,federation_id\xca\x41\x39\n\nFederation\x12+google.cloud.metastore.v1.OperationMetadata\x12\x8b\x02\n\x10UpdateFederation\x12\x32.google.cloud.metastore.v1.UpdateFederationRequest\x1a\x1d.google.longrunning.Operation\"\xa3\x01\x82\xd3\xe4\x93\x02H2:/v1/{federation.name=projects/*/locations/*/federations/*}:\nfederation\xda\x41\x16\x66\x65\x64\x65ration,update_mask\xca\x41\x39\n\nFederation\x12+google.cloud.metastore.v1.OperationMetadata\x12\xed\x01\n\x10\x44\x65leteFederation\x12\x32.google.cloud.metastore.v1.DeleteFederationRequest\x1a\x1d.google.longrunning.Operation\"\x85\x01\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/federations/*}\xda\x41\x04name\xca\x41\x44\n\x15google.protobuf.Empty\x12+google.cloud.metastore.v1.OperationMetadata\x1aL\xca\x41\x18metastore.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBx\n\x1d\x63om.google.cloud.metastore.v1B\x18MetastoreFederationProtoP\x01Z;cloud.google.com/go/metastore/apiv1/metastorepb;metastorepbb\x06proto3"
|
19
19
|
|
20
20
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
21
|
|