google-cloud-metastore-v1 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +11 -6
- data/lib/google/cloud/metastore/v1/dataproc_metastore/client.rb +382 -45
- data/lib/google/cloud/metastore/v1/dataproc_metastore/operations.rb +118 -12
- data/lib/google/cloud/metastore/v1/metastore_pb.rb +1 -0
- data/lib/google/cloud/metastore/v1/metastore_services_pb.rb +1 -1
- data/lib/google/cloud/metastore/v1/version.rb +1 -1
- data/lib/google/cloud/metastore/v1.rb +2 -0
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/protobuf/any.rb +3 -3
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f51da06de00d90f272837a18d95e6ce7efbf9c12679b6d6c4e2b2194fa92005
|
4
|
+
data.tar.gz: 47ab48d9c2e417b0ff580c452952bea7264f85b5540665d539fb12c386ce2192
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d60088a51cbf1ef8fc1f8c2cd50c4fe5df3c98668fbd692407f55f75c65ff51a7cb82cbb9a469e5f4a54cee75080c3dc93c79417798b5a252dda67b1e0e2254
|
7
|
+
data.tar.gz: a51d1f20c340154315f09d6e58418b7ffa14600f58346f7fa35e2d7ff80d9ae5fbdda7f16ac31e34fb6af9fb9a02b26c8294112f992cb9a998ce3b609c1cb811
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Metastore::V1::ListServicesRequest.new # (request fie
|
|
37
37
|
response = client.list_services request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-metastore-v1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/dataproc-metastore/)
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -174,6 +174,7 @@ module Google
|
|
174
174
|
|
175
175
|
@operations_client = Operations.new do |config|
|
176
176
|
config.credentials = credentials
|
177
|
+
config.quota_project = @quota_project_id
|
177
178
|
config.endpoint = @config.endpoint
|
178
179
|
end
|
179
180
|
|
@@ -246,6 +247,27 @@ module Google
|
|
246
247
|
#
|
247
248
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
248
249
|
#
|
250
|
+
# @example Basic example
|
251
|
+
# require "google/cloud/metastore/v1"
|
252
|
+
#
|
253
|
+
# # Create a client object. The client can be reused for multiple calls.
|
254
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
255
|
+
#
|
256
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
257
|
+
# request = Google::Cloud::Metastore::V1::ListServicesRequest.new
|
258
|
+
#
|
259
|
+
# # Call the list_services method.
|
260
|
+
# result = client.list_services request
|
261
|
+
#
|
262
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
263
|
+
# # iterate over all elements by calling #each, and the enumerable
|
264
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
265
|
+
# # methods are also available for managing paging directly.
|
266
|
+
# result.each do |response|
|
267
|
+
# # Each element is of type ::Google::Cloud::Metastore::V1::Service.
|
268
|
+
# p response
|
269
|
+
# end
|
270
|
+
#
|
249
271
|
def list_services request, options = nil
|
250
272
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
251
273
|
|
@@ -263,9 +285,11 @@ module Google
|
|
263
285
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
264
286
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
265
287
|
|
266
|
-
header_params = {
|
267
|
-
|
268
|
-
|
288
|
+
header_params = {}
|
289
|
+
if request.parent
|
290
|
+
header_params["parent"] = request.parent
|
291
|
+
end
|
292
|
+
|
269
293
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
270
294
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
271
295
|
|
@@ -318,6 +342,21 @@ module Google
|
|
318
342
|
#
|
319
343
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
320
344
|
#
|
345
|
+
# @example Basic example
|
346
|
+
# require "google/cloud/metastore/v1"
|
347
|
+
#
|
348
|
+
# # Create a client object. The client can be reused for multiple calls.
|
349
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
350
|
+
#
|
351
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
352
|
+
# request = Google::Cloud::Metastore::V1::GetServiceRequest.new
|
353
|
+
#
|
354
|
+
# # Call the get_service method.
|
355
|
+
# result = client.get_service request
|
356
|
+
#
|
357
|
+
# # The returned object is of type Google::Cloud::Metastore::V1::Service.
|
358
|
+
# p result
|
359
|
+
#
|
321
360
|
def get_service request, options = nil
|
322
361
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
323
362
|
|
@@ -335,9 +374,11 @@ module Google
|
|
335
374
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
336
375
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
337
376
|
|
338
|
-
header_params = {
|
339
|
-
|
340
|
-
|
377
|
+
header_params = {}
|
378
|
+
if request.name
|
379
|
+
header_params["name"] = request.name
|
380
|
+
end
|
381
|
+
|
341
382
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
342
383
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
343
384
|
|
@@ -413,6 +454,28 @@ module Google
|
|
413
454
|
#
|
414
455
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
415
456
|
#
|
457
|
+
# @example Basic example
|
458
|
+
# require "google/cloud/metastore/v1"
|
459
|
+
#
|
460
|
+
# # Create a client object. The client can be reused for multiple calls.
|
461
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
462
|
+
#
|
463
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
464
|
+
# request = Google::Cloud::Metastore::V1::CreateServiceRequest.new
|
465
|
+
#
|
466
|
+
# # Call the create_service method.
|
467
|
+
# result = client.create_service request
|
468
|
+
#
|
469
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
470
|
+
# # object to check the status of an operation, cancel it, or wait
|
471
|
+
# # for results. Here is how to block until completion:
|
472
|
+
# result.wait_until_done! timeout: 60
|
473
|
+
# if result.response?
|
474
|
+
# p result.response
|
475
|
+
# else
|
476
|
+
# puts "Error!"
|
477
|
+
# end
|
478
|
+
#
|
416
479
|
def create_service request, options = nil
|
417
480
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
418
481
|
|
@@ -430,9 +493,11 @@ module Google
|
|
430
493
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
431
494
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
432
495
|
|
433
|
-
header_params = {
|
434
|
-
|
435
|
-
|
496
|
+
header_params = {}
|
497
|
+
if request.parent
|
498
|
+
header_params["parent"] = request.parent
|
499
|
+
end
|
500
|
+
|
436
501
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
437
502
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
438
503
|
|
@@ -504,6 +569,28 @@ module Google
|
|
504
569
|
#
|
505
570
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
506
571
|
#
|
572
|
+
# @example Basic example
|
573
|
+
# require "google/cloud/metastore/v1"
|
574
|
+
#
|
575
|
+
# # Create a client object. The client can be reused for multiple calls.
|
576
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
577
|
+
#
|
578
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
579
|
+
# request = Google::Cloud::Metastore::V1::UpdateServiceRequest.new
|
580
|
+
#
|
581
|
+
# # Call the update_service method.
|
582
|
+
# result = client.update_service request
|
583
|
+
#
|
584
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
585
|
+
# # object to check the status of an operation, cancel it, or wait
|
586
|
+
# # for results. Here is how to block until completion:
|
587
|
+
# result.wait_until_done! timeout: 60
|
588
|
+
# if result.response?
|
589
|
+
# p result.response
|
590
|
+
# else
|
591
|
+
# puts "Error!"
|
592
|
+
# end
|
593
|
+
#
|
507
594
|
def update_service request, options = nil
|
508
595
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
509
596
|
|
@@ -521,9 +608,11 @@ module Google
|
|
521
608
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
522
609
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
523
610
|
|
524
|
-
header_params = {
|
525
|
-
|
526
|
-
|
611
|
+
header_params = {}
|
612
|
+
if request.service&.name
|
613
|
+
header_params["service.name"] = request.service.name
|
614
|
+
end
|
615
|
+
|
527
616
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
528
617
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
529
618
|
|
@@ -589,6 +678,28 @@ module Google
|
|
589
678
|
#
|
590
679
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
591
680
|
#
|
681
|
+
# @example Basic example
|
682
|
+
# require "google/cloud/metastore/v1"
|
683
|
+
#
|
684
|
+
# # Create a client object. The client can be reused for multiple calls.
|
685
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
686
|
+
#
|
687
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
688
|
+
# request = Google::Cloud::Metastore::V1::DeleteServiceRequest.new
|
689
|
+
#
|
690
|
+
# # Call the delete_service method.
|
691
|
+
# result = client.delete_service request
|
692
|
+
#
|
693
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
694
|
+
# # object to check the status of an operation, cancel it, or wait
|
695
|
+
# # for results. Here is how to block until completion:
|
696
|
+
# result.wait_until_done! timeout: 60
|
697
|
+
# if result.response?
|
698
|
+
# p result.response
|
699
|
+
# else
|
700
|
+
# puts "Error!"
|
701
|
+
# end
|
702
|
+
#
|
592
703
|
def delete_service request, options = nil
|
593
704
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
594
705
|
|
@@ -606,9 +717,11 @@ module Google
|
|
606
717
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
607
718
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
608
719
|
|
609
|
-
header_params = {
|
610
|
-
|
611
|
-
|
720
|
+
header_params = {}
|
721
|
+
if request.name
|
722
|
+
header_params["name"] = request.name
|
723
|
+
end
|
724
|
+
|
612
725
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
613
726
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
614
727
|
|
@@ -680,6 +793,27 @@ module Google
|
|
680
793
|
#
|
681
794
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
682
795
|
#
|
796
|
+
# @example Basic example
|
797
|
+
# require "google/cloud/metastore/v1"
|
798
|
+
#
|
799
|
+
# # Create a client object. The client can be reused for multiple calls.
|
800
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
801
|
+
#
|
802
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
803
|
+
# request = Google::Cloud::Metastore::V1::ListMetadataImportsRequest.new
|
804
|
+
#
|
805
|
+
# # Call the list_metadata_imports method.
|
806
|
+
# result = client.list_metadata_imports request
|
807
|
+
#
|
808
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
809
|
+
# # iterate over all elements by calling #each, and the enumerable
|
810
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
811
|
+
# # methods are also available for managing paging directly.
|
812
|
+
# result.each do |response|
|
813
|
+
# # Each element is of type ::Google::Cloud::Metastore::V1::MetadataImport.
|
814
|
+
# p response
|
815
|
+
# end
|
816
|
+
#
|
683
817
|
def list_metadata_imports request, options = nil
|
684
818
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
685
819
|
|
@@ -697,9 +831,11 @@ module Google
|
|
697
831
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
698
832
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
699
833
|
|
700
|
-
header_params = {
|
701
|
-
|
702
|
-
|
834
|
+
header_params = {}
|
835
|
+
if request.parent
|
836
|
+
header_params["parent"] = request.parent
|
837
|
+
end
|
838
|
+
|
703
839
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
704
840
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
705
841
|
|
@@ -752,6 +888,21 @@ module Google
|
|
752
888
|
#
|
753
889
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
754
890
|
#
|
891
|
+
# @example Basic example
|
892
|
+
# require "google/cloud/metastore/v1"
|
893
|
+
#
|
894
|
+
# # Create a client object. The client can be reused for multiple calls.
|
895
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
896
|
+
#
|
897
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
898
|
+
# request = Google::Cloud::Metastore::V1::GetMetadataImportRequest.new
|
899
|
+
#
|
900
|
+
# # Call the get_metadata_import method.
|
901
|
+
# result = client.get_metadata_import request
|
902
|
+
#
|
903
|
+
# # The returned object is of type Google::Cloud::Metastore::V1::MetadataImport.
|
904
|
+
# p result
|
905
|
+
#
|
755
906
|
def get_metadata_import request, options = nil
|
756
907
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
757
908
|
|
@@ -769,9 +920,11 @@ module Google
|
|
769
920
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
770
921
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
771
922
|
|
772
|
-
header_params = {
|
773
|
-
|
774
|
-
|
923
|
+
header_params = {}
|
924
|
+
if request.name
|
925
|
+
header_params["name"] = request.name
|
926
|
+
end
|
927
|
+
|
775
928
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
776
929
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
777
930
|
|
@@ -847,6 +1000,28 @@ module Google
|
|
847
1000
|
#
|
848
1001
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
849
1002
|
#
|
1003
|
+
# @example Basic example
|
1004
|
+
# require "google/cloud/metastore/v1"
|
1005
|
+
#
|
1006
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1007
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
1008
|
+
#
|
1009
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1010
|
+
# request = Google::Cloud::Metastore::V1::CreateMetadataImportRequest.new
|
1011
|
+
#
|
1012
|
+
# # Call the create_metadata_import method.
|
1013
|
+
# result = client.create_metadata_import request
|
1014
|
+
#
|
1015
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1016
|
+
# # object to check the status of an operation, cancel it, or wait
|
1017
|
+
# # for results. Here is how to block until completion:
|
1018
|
+
# result.wait_until_done! timeout: 60
|
1019
|
+
# if result.response?
|
1020
|
+
# p result.response
|
1021
|
+
# else
|
1022
|
+
# puts "Error!"
|
1023
|
+
# end
|
1024
|
+
#
|
850
1025
|
def create_metadata_import request, options = nil
|
851
1026
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
852
1027
|
|
@@ -864,9 +1039,11 @@ module Google
|
|
864
1039
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
865
1040
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
866
1041
|
|
867
|
-
header_params = {
|
868
|
-
|
869
|
-
|
1042
|
+
header_params = {}
|
1043
|
+
if request.parent
|
1044
|
+
header_params["parent"] = request.parent
|
1045
|
+
end
|
1046
|
+
|
870
1047
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
871
1048
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
872
1049
|
|
@@ -939,6 +1116,28 @@ module Google
|
|
939
1116
|
#
|
940
1117
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
941
1118
|
#
|
1119
|
+
# @example Basic example
|
1120
|
+
# require "google/cloud/metastore/v1"
|
1121
|
+
#
|
1122
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1123
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
1124
|
+
#
|
1125
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1126
|
+
# request = Google::Cloud::Metastore::V1::UpdateMetadataImportRequest.new
|
1127
|
+
#
|
1128
|
+
# # Call the update_metadata_import method.
|
1129
|
+
# result = client.update_metadata_import request
|
1130
|
+
#
|
1131
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1132
|
+
# # object to check the status of an operation, cancel it, or wait
|
1133
|
+
# # for results. Here is how to block until completion:
|
1134
|
+
# result.wait_until_done! timeout: 60
|
1135
|
+
# if result.response?
|
1136
|
+
# p result.response
|
1137
|
+
# else
|
1138
|
+
# puts "Error!"
|
1139
|
+
# end
|
1140
|
+
#
|
942
1141
|
def update_metadata_import request, options = nil
|
943
1142
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
944
1143
|
|
@@ -956,9 +1155,11 @@ module Google
|
|
956
1155
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
957
1156
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
958
1157
|
|
959
|
-
header_params = {
|
960
|
-
|
961
|
-
|
1158
|
+
header_params = {}
|
1159
|
+
if request.metadata_import&.name
|
1160
|
+
header_params["metadata_import.name"] = request.metadata_import.name
|
1161
|
+
end
|
1162
|
+
|
962
1163
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
963
1164
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
964
1165
|
|
@@ -1030,6 +1231,28 @@ module Google
|
|
1030
1231
|
#
|
1031
1232
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1032
1233
|
#
|
1234
|
+
# @example Basic example
|
1235
|
+
# require "google/cloud/metastore/v1"
|
1236
|
+
#
|
1237
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1238
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
1239
|
+
#
|
1240
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1241
|
+
# request = Google::Cloud::Metastore::V1::ExportMetadataRequest.new
|
1242
|
+
#
|
1243
|
+
# # Call the export_metadata method.
|
1244
|
+
# result = client.export_metadata request
|
1245
|
+
#
|
1246
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1247
|
+
# # object to check the status of an operation, cancel it, or wait
|
1248
|
+
# # for results. Here is how to block until completion:
|
1249
|
+
# result.wait_until_done! timeout: 60
|
1250
|
+
# if result.response?
|
1251
|
+
# p result.response
|
1252
|
+
# else
|
1253
|
+
# puts "Error!"
|
1254
|
+
# end
|
1255
|
+
#
|
1033
1256
|
def export_metadata request, options = nil
|
1034
1257
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1035
1258
|
|
@@ -1047,9 +1270,11 @@ module Google
|
|
1047
1270
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
1048
1271
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1049
1272
|
|
1050
|
-
header_params = {
|
1051
|
-
|
1052
|
-
|
1273
|
+
header_params = {}
|
1274
|
+
if request.service
|
1275
|
+
header_params["service"] = request.service
|
1276
|
+
end
|
1277
|
+
|
1053
1278
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1054
1279
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1055
1280
|
|
@@ -1122,6 +1347,28 @@ module Google
|
|
1122
1347
|
#
|
1123
1348
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1124
1349
|
#
|
1350
|
+
# @example Basic example
|
1351
|
+
# require "google/cloud/metastore/v1"
|
1352
|
+
#
|
1353
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1354
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
1355
|
+
#
|
1356
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1357
|
+
# request = Google::Cloud::Metastore::V1::RestoreServiceRequest.new
|
1358
|
+
#
|
1359
|
+
# # Call the restore_service method.
|
1360
|
+
# result = client.restore_service request
|
1361
|
+
#
|
1362
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1363
|
+
# # object to check the status of an operation, cancel it, or wait
|
1364
|
+
# # for results. Here is how to block until completion:
|
1365
|
+
# result.wait_until_done! timeout: 60
|
1366
|
+
# if result.response?
|
1367
|
+
# p result.response
|
1368
|
+
# else
|
1369
|
+
# puts "Error!"
|
1370
|
+
# end
|
1371
|
+
#
|
1125
1372
|
def restore_service request, options = nil
|
1126
1373
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1127
1374
|
|
@@ -1139,9 +1386,11 @@ module Google
|
|
1139
1386
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
1140
1387
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1141
1388
|
|
1142
|
-
header_params = {
|
1143
|
-
|
1144
|
-
|
1389
|
+
header_params = {}
|
1390
|
+
if request.service
|
1391
|
+
header_params["service"] = request.service
|
1392
|
+
end
|
1393
|
+
|
1145
1394
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1146
1395
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1147
1396
|
|
@@ -1213,6 +1462,27 @@ module Google
|
|
1213
1462
|
#
|
1214
1463
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1215
1464
|
#
|
1465
|
+
# @example Basic example
|
1466
|
+
# require "google/cloud/metastore/v1"
|
1467
|
+
#
|
1468
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1469
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
1470
|
+
#
|
1471
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1472
|
+
# request = Google::Cloud::Metastore::V1::ListBackupsRequest.new
|
1473
|
+
#
|
1474
|
+
# # Call the list_backups method.
|
1475
|
+
# result = client.list_backups request
|
1476
|
+
#
|
1477
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1478
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1479
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1480
|
+
# # methods are also available for managing paging directly.
|
1481
|
+
# result.each do |response|
|
1482
|
+
# # Each element is of type ::Google::Cloud::Metastore::V1::Backup.
|
1483
|
+
# p response
|
1484
|
+
# end
|
1485
|
+
#
|
1216
1486
|
def list_backups request, options = nil
|
1217
1487
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1218
1488
|
|
@@ -1230,9 +1500,11 @@ module Google
|
|
1230
1500
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
1231
1501
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1232
1502
|
|
1233
|
-
header_params = {
|
1234
|
-
|
1235
|
-
|
1503
|
+
header_params = {}
|
1504
|
+
if request.parent
|
1505
|
+
header_params["parent"] = request.parent
|
1506
|
+
end
|
1507
|
+
|
1236
1508
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1237
1509
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1238
1510
|
|
@@ -1285,6 +1557,21 @@ module Google
|
|
1285
1557
|
#
|
1286
1558
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1287
1559
|
#
|
1560
|
+
# @example Basic example
|
1561
|
+
# require "google/cloud/metastore/v1"
|
1562
|
+
#
|
1563
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1564
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
1565
|
+
#
|
1566
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1567
|
+
# request = Google::Cloud::Metastore::V1::GetBackupRequest.new
|
1568
|
+
#
|
1569
|
+
# # Call the get_backup method.
|
1570
|
+
# result = client.get_backup request
|
1571
|
+
#
|
1572
|
+
# # The returned object is of type Google::Cloud::Metastore::V1::Backup.
|
1573
|
+
# p result
|
1574
|
+
#
|
1288
1575
|
def get_backup request, options = nil
|
1289
1576
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1290
1577
|
|
@@ -1302,9 +1589,11 @@ module Google
|
|
1302
1589
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
1303
1590
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1304
1591
|
|
1305
|
-
header_params = {
|
1306
|
-
|
1307
|
-
|
1592
|
+
header_params = {}
|
1593
|
+
if request.name
|
1594
|
+
header_params["name"] = request.name
|
1595
|
+
end
|
1596
|
+
|
1308
1597
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1309
1598
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1310
1599
|
|
@@ -1379,6 +1668,28 @@ module Google
|
|
1379
1668
|
#
|
1380
1669
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1381
1670
|
#
|
1671
|
+
# @example Basic example
|
1672
|
+
# require "google/cloud/metastore/v1"
|
1673
|
+
#
|
1674
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1675
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
1676
|
+
#
|
1677
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1678
|
+
# request = Google::Cloud::Metastore::V1::CreateBackupRequest.new
|
1679
|
+
#
|
1680
|
+
# # Call the create_backup method.
|
1681
|
+
# result = client.create_backup request
|
1682
|
+
#
|
1683
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1684
|
+
# # object to check the status of an operation, cancel it, or wait
|
1685
|
+
# # for results. Here is how to block until completion:
|
1686
|
+
# result.wait_until_done! timeout: 60
|
1687
|
+
# if result.response?
|
1688
|
+
# p result.response
|
1689
|
+
# else
|
1690
|
+
# puts "Error!"
|
1691
|
+
# end
|
1692
|
+
#
|
1382
1693
|
def create_backup request, options = nil
|
1383
1694
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1384
1695
|
|
@@ -1396,9 +1707,11 @@ module Google
|
|
1396
1707
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
1397
1708
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1398
1709
|
|
1399
|
-
header_params = {
|
1400
|
-
|
1401
|
-
|
1710
|
+
header_params = {}
|
1711
|
+
if request.parent
|
1712
|
+
header_params["parent"] = request.parent
|
1713
|
+
end
|
1714
|
+
|
1402
1715
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1403
1716
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1404
1717
|
|
@@ -1464,6 +1777,28 @@ module Google
|
|
1464
1777
|
#
|
1465
1778
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1466
1779
|
#
|
1780
|
+
# @example Basic example
|
1781
|
+
# require "google/cloud/metastore/v1"
|
1782
|
+
#
|
1783
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1784
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
1785
|
+
#
|
1786
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1787
|
+
# request = Google::Cloud::Metastore::V1::DeleteBackupRequest.new
|
1788
|
+
#
|
1789
|
+
# # Call the delete_backup method.
|
1790
|
+
# result = client.delete_backup request
|
1791
|
+
#
|
1792
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1793
|
+
# # object to check the status of an operation, cancel it, or wait
|
1794
|
+
# # for results. Here is how to block until completion:
|
1795
|
+
# result.wait_until_done! timeout: 60
|
1796
|
+
# if result.response?
|
1797
|
+
# p result.response
|
1798
|
+
# else
|
1799
|
+
# puts "Error!"
|
1800
|
+
# end
|
1801
|
+
#
|
1467
1802
|
def delete_backup request, options = nil
|
1468
1803
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1469
1804
|
|
@@ -1481,9 +1816,11 @@ module Google
|
|
1481
1816
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
1482
1817
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1483
1818
|
|
1484
|
-
header_params = {
|
1485
|
-
|
1486
|
-
|
1819
|
+
header_params = {}
|
1820
|
+
if request.name
|
1821
|
+
header_params["name"] = request.name
|
1822
|
+
end
|
1823
|
+
|
1487
1824
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1488
1825
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1489
1826
|
|
@@ -95,6 +95,9 @@ module Google
|
|
95
95
|
channel_args: @config.channel_args,
|
96
96
|
interceptors: @config.interceptors
|
97
97
|
)
|
98
|
+
|
99
|
+
# Used by an LRO wrapper for some methods of this service
|
100
|
+
@operations_client = self
|
98
101
|
end
|
99
102
|
|
100
103
|
# Service calls
|
@@ -143,6 +146,27 @@ module Google
|
|
143
146
|
#
|
144
147
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
145
148
|
#
|
149
|
+
# @example Basic example
|
150
|
+
# require "google/longrunning"
|
151
|
+
#
|
152
|
+
# # Create a client object. The client can be reused for multiple calls.
|
153
|
+
# client = Google::Longrunning::Operations::Client.new
|
154
|
+
#
|
155
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
156
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
157
|
+
#
|
158
|
+
# # Call the list_operations method.
|
159
|
+
# result = client.list_operations request
|
160
|
+
#
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
+
# # iterate over all elements by calling #each, and the enumerable
|
163
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
164
|
+
# # methods are also available for managing paging directly.
|
165
|
+
# result.each do |response|
|
166
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
+
# p response
|
168
|
+
# end
|
169
|
+
#
|
146
170
|
def list_operations request, options = nil
|
147
171
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
148
172
|
|
@@ -160,9 +184,11 @@ module Google
|
|
160
184
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
161
185
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
186
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
187
|
+
header_params = {}
|
188
|
+
if request.name
|
189
|
+
header_params["name"] = request.name
|
190
|
+
end
|
191
|
+
|
166
192
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
193
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
194
|
|
@@ -215,6 +241,28 @@ module Google
|
|
215
241
|
#
|
216
242
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
243
|
#
|
244
|
+
# @example Basic example
|
245
|
+
# require "google/longrunning"
|
246
|
+
#
|
247
|
+
# # Create a client object. The client can be reused for multiple calls.
|
248
|
+
# client = Google::Longrunning::Operations::Client.new
|
249
|
+
#
|
250
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
251
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
252
|
+
#
|
253
|
+
# # Call the get_operation method.
|
254
|
+
# result = client.get_operation request
|
255
|
+
#
|
256
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
257
|
+
# # object to check the status of an operation, cancel it, or wait
|
258
|
+
# # for results. Here is how to block until completion:
|
259
|
+
# result.wait_until_done! timeout: 60
|
260
|
+
# if result.response?
|
261
|
+
# p result.response
|
262
|
+
# else
|
263
|
+
# puts "Error!"
|
264
|
+
# end
|
265
|
+
#
|
218
266
|
def get_operation request, options = nil
|
219
267
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
268
|
|
@@ -232,9 +280,11 @@ module Google
|
|
232
280
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
233
281
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
282
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
283
|
+
header_params = {}
|
284
|
+
if request.name
|
285
|
+
header_params["name"] = request.name
|
286
|
+
end
|
287
|
+
|
238
288
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
289
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
290
|
|
@@ -287,6 +337,21 @@ module Google
|
|
287
337
|
#
|
288
338
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
339
|
#
|
340
|
+
# @example Basic example
|
341
|
+
# require "google/longrunning"
|
342
|
+
#
|
343
|
+
# # Create a client object. The client can be reused for multiple calls.
|
344
|
+
# client = Google::Longrunning::Operations::Client.new
|
345
|
+
#
|
346
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
347
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
348
|
+
#
|
349
|
+
# # Call the delete_operation method.
|
350
|
+
# result = client.delete_operation request
|
351
|
+
#
|
352
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
353
|
+
# p result
|
354
|
+
#
|
290
355
|
def delete_operation request, options = nil
|
291
356
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
357
|
|
@@ -304,9 +369,11 @@ module Google
|
|
304
369
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
305
370
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
371
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
372
|
+
header_params = {}
|
373
|
+
if request.name
|
374
|
+
header_params["name"] = request.name
|
375
|
+
end
|
376
|
+
|
310
377
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
378
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
379
|
|
@@ -364,6 +431,21 @@ module Google
|
|
364
431
|
#
|
365
432
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
366
433
|
#
|
434
|
+
# @example Basic example
|
435
|
+
# require "google/longrunning"
|
436
|
+
#
|
437
|
+
# # Create a client object. The client can be reused for multiple calls.
|
438
|
+
# client = Google::Longrunning::Operations::Client.new
|
439
|
+
#
|
440
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
441
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
442
|
+
#
|
443
|
+
# # Call the cancel_operation method.
|
444
|
+
# result = client.cancel_operation request
|
445
|
+
#
|
446
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
447
|
+
# p result
|
448
|
+
#
|
367
449
|
def cancel_operation request, options = nil
|
368
450
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
451
|
|
@@ -381,9 +463,11 @@ module Google
|
|
381
463
|
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
382
464
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
465
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
466
|
+
header_params = {}
|
467
|
+
if request.name
|
468
|
+
header_params["name"] = request.name
|
469
|
+
end
|
470
|
+
|
387
471
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
472
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
473
|
|
@@ -444,6 +528,28 @@ module Google
|
|
444
528
|
#
|
445
529
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
530
|
#
|
531
|
+
# @example Basic example
|
532
|
+
# require "google/longrunning"
|
533
|
+
#
|
534
|
+
# # Create a client object. The client can be reused for multiple calls.
|
535
|
+
# client = Google::Longrunning::Operations::Client.new
|
536
|
+
#
|
537
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
538
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
539
|
+
#
|
540
|
+
# # Call the wait_operation method.
|
541
|
+
# result = client.wait_operation request
|
542
|
+
#
|
543
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
544
|
+
# # object to check the status of an operation, cancel it, or wait
|
545
|
+
# # for results. Here is how to block until completion:
|
546
|
+
# result.wait_until_done! timeout: 60
|
547
|
+
# if result.response?
|
548
|
+
# p result.response
|
549
|
+
# else
|
550
|
+
# puts "Error!"
|
551
|
+
# end
|
552
|
+
#
|
447
553
|
def wait_operation request, options = nil
|
448
554
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
555
|
|
@@ -12,6 +12,7 @@ require 'google/protobuf/field_mask_pb'
|
|
12
12
|
require 'google/protobuf/timestamp_pb'
|
13
13
|
require 'google/protobuf/wrappers_pb'
|
14
14
|
require 'google/type/dayofweek_pb'
|
15
|
+
|
15
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
17
|
add_file("google/cloud/metastore/v1/metastore.proto", :syntax => :proto3) do
|
17
18
|
add_message "google.cloud.metastore.v1.Service" do
|
@@ -43,7 +43,7 @@ module Google
|
|
43
43
|
# `/projects/{project_number}/locations/{location_id}/services/{service_id}`.
|
44
44
|
class Service
|
45
45
|
|
46
|
-
include GRPC::GenericService
|
46
|
+
include ::GRPC::GenericService
|
47
47
|
|
48
48
|
self.marshal_class_method = :encode
|
49
49
|
self.unmarshal_class_method = :decode
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# Example 3: Pack and unpack a message in Python.
|
48
48
|
#
|
49
49
|
# foo = Foo(...)
|
50
50
|
# any = Any()
|
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# any.Unpack(foo)
|
55
55
|
# ...
|
56
56
|
#
|
57
|
-
#
|
57
|
+
# Example 4: Pack and unpack a message in Go
|
58
58
|
#
|
59
59
|
# foo := &pb.Foo{...}
|
60
60
|
# any, err := anypb.New(foo)
|
@@ -75,7 +75,7 @@ module Google
|
|
75
75
|
#
|
76
76
|
#
|
77
77
|
# JSON
|
78
|
-
#
|
78
|
+
#
|
79
79
|
# The JSON representation of an `Any` value uses the regular
|
80
80
|
# representation of the deserialized, embedded message, with an
|
81
81
|
# additional field `@type` which contains the type URL. Example:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-metastore-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.10'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.10'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,28 +50,28 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: 1.26.1
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.26.1
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
67
|
+
version: '5.16'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
74
|
+
version: '5.16'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest-focus
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '13.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '13.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: redcarpet
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -207,14 +207,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
207
207
|
requirements:
|
208
208
|
- - ">="
|
209
209
|
- !ruby/object:Gem::Version
|
210
|
-
version: '2.
|
210
|
+
version: '2.6'
|
211
211
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
213
|
- - ">="
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '0'
|
216
216
|
requirements: []
|
217
|
-
rubygems_version: 3.
|
217
|
+
rubygems_version: 3.3.14
|
218
218
|
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: API Client library for the Dataproc Metastore V1 API
|