google-cloud-metastore-v1 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/google/cloud/metastore/v1/bindings_override.rb +175 -0
  4. data/lib/google/cloud/metastore/v1/dataproc_metastore/client.rb +88 -83
  5. data/lib/google/cloud/metastore/v1/dataproc_metastore/operations.rb +2 -2
  6. data/lib/google/cloud/metastore/v1/dataproc_metastore/rest/client.rb +1690 -0
  7. data/lib/google/cloud/metastore/v1/dataproc_metastore/rest/operations.rb +793 -0
  8. data/lib/google/cloud/metastore/v1/dataproc_metastore/rest/service_stub.rb +940 -0
  9. data/lib/google/cloud/metastore/v1/dataproc_metastore/rest.rb +70 -0
  10. data/lib/google/cloud/metastore/v1/dataproc_metastore.rb +6 -0
  11. data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/client.rb +24 -23
  12. data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/operations.rb +2 -2
  13. data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/rest/client.rb +775 -0
  14. data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/rest/operations.rb +793 -0
  15. data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/rest/service_stub.rb +345 -0
  16. data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/rest.rb +66 -0
  17. data/lib/google/cloud/metastore/v1/dataproc_metastore_federation.rb +6 -0
  18. data/lib/google/cloud/metastore/v1/metastore_federation_pb.rb +2 -0
  19. data/lib/google/cloud/metastore/v1/metastore_pb.rb +25 -0
  20. data/lib/google/cloud/metastore/v1/rest.rb +39 -0
  21. data/lib/google/cloud/metastore/v1/version.rb +1 -1
  22. data/lib/google/cloud/metastore/v1.rb +5 -0
  23. data/proto_docs/google/api/client.rb +57 -3
  24. data/proto_docs/google/cloud/metastore/v1/metastore.rb +237 -123
  25. data/proto_docs/google/cloud/metastore/v1/metastore_federation.rb +30 -30
  26. data/proto_docs/google/type/expr.rb +75 -0
  27. metadata +17 -5
@@ -0,0 +1,70 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/metastore/v1/version"
24
+ require "google/cloud/metastore/v1/bindings_override"
25
+
26
+ require "google/cloud/metastore/v1/dataproc_metastore/credentials"
27
+ require "google/cloud/metastore/v1/dataproc_metastore/paths"
28
+ require "google/cloud/metastore/v1/dataproc_metastore/rest/operations"
29
+ require "google/cloud/metastore/v1/dataproc_metastore/rest/client"
30
+
31
+ module Google
32
+ module Cloud
33
+ module Metastore
34
+ module V1
35
+ ##
36
+ # Configures and manages metastore services.
37
+ # Metastore services are fully managed, highly available, autoscaled,
38
+ # autohealing, OSS-native deployments of technical metadata management
39
+ # software. Each metastore service exposes a network endpoint through which
40
+ # metadata queries are served. Metadata queries can originate from a variety
41
+ # of sources, including Apache Hive, Apache Presto, and Apache Spark.
42
+ #
43
+ # The Dataproc Metastore API defines the following resource model:
44
+ #
45
+ # * The service works with a collection of Google Cloud projects, named:
46
+ # `/projects/*`
47
+ # * Each project has a collection of available locations, named: `/locations/*`
48
+ # (a location must refer to a Google Cloud `region`)
49
+ # * Each location has a collection of services, named: `/services/*`
50
+ # * Dataproc Metastore services are resources with names of the form:
51
+ #
52
+ # `/projects/{project_number}/locations/{location_id}/services/{service_id}`.
53
+ #
54
+ # To load this service and instantiate a REST client:
55
+ #
56
+ # require "google/cloud/metastore/v1/dataproc_metastore/rest"
57
+ # client = ::Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
58
+ #
59
+ module DataprocMetastore
60
+ # Client for the REST transport
61
+ module Rest
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end
68
+
69
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
70
+ require "google/cloud/metastore/v1/dataproc_metastore/rest/helpers" if ::File.file? helper_path
@@ -26,6 +26,7 @@ require "google/cloud/metastore/v1/dataproc_metastore/credentials"
26
26
  require "google/cloud/metastore/v1/dataproc_metastore/paths"
27
27
  require "google/cloud/metastore/v1/dataproc_metastore/operations"
28
28
  require "google/cloud/metastore/v1/dataproc_metastore/client"
29
+ require "google/cloud/metastore/v1/dataproc_metastore/rest"
29
30
 
30
31
  module Google
31
32
  module Cloud
@@ -55,6 +56,11 @@ module Google
55
56
  # require "google/cloud/metastore/v1/dataproc_metastore"
56
57
  # client = ::Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
57
58
  #
59
+ # @example Load this service and instantiate a REST client
60
+ #
61
+ # require "google/cloud/metastore/v1/dataproc_metastore/rest"
62
+ # client = ::Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
63
+ #
58
64
  module DataprocMetastore
59
65
  end
60
66
  end
@@ -216,13 +216,14 @@ module Google
216
216
  # the default parameter values, pass an empty Hash as a request object (see above).
217
217
  #
218
218
  # @param parent [::String]
219
- # Required. The relative resource name of the location of metastore federations
220
- # to list, in the following form:
219
+ # Required. The relative resource name of the location of metastore
220
+ # federations to list, in the following form:
221
221
  # `projects/{project_number}/locations/{location_id}`.
222
222
  # @param page_size [::Integer]
223
- # Optional. The maximum number of federations to return. The response may contain less
224
- # than the maximum number. If unspecified, no more than 500 services are
225
- # returned. The maximum value is 1000; values above 1000 are changed to 1000.
223
+ # Optional. The maximum number of federations to return. The response may
224
+ # contain less than the maximum number. If unspecified, no more than 500
225
+ # services are returned. The maximum value is 1000; values above 1000 are
226
+ # changed to 1000.
226
227
  # @param page_token [::String]
227
228
  # Optional. A page token, received from a previous ListFederationServices
228
229
  # call. Provide this token to retrieve the subsequent page.
@@ -327,8 +328,8 @@ module Google
327
328
  # the default parameter values, pass an empty Hash as a request object (see above).
328
329
  #
329
330
  # @param name [::String]
330
- # Required. The relative resource name of the metastore federation to retrieve,
331
- # in the following form:
331
+ # Required. The relative resource name of the metastore federation to
332
+ # retrieve, in the following form:
332
333
  #
333
334
  # `projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
334
335
  #
@@ -415,8 +416,8 @@ module Google
415
416
  # the default parameter values, pass an empty Hash as a request object (see above).
416
417
  #
417
418
  # @param parent [::String]
418
- # Required. The relative resource name of the location in which to create a federation
419
- # service, in the following form:
419
+ # Required. The relative resource name of the location in which to create a
420
+ # federation service, in the following form:
420
421
  #
421
422
  # `projects/{project_number}/locations/{location_id}`.
422
423
  # @param federation_id [::String]
@@ -431,10 +432,10 @@ module Google
431
432
  # ignored. The ID of the created metastore federation must be
432
433
  # provided in the request's `federation_id` field.
433
434
  # @param request_id [::String]
434
- # Optional. A request ID. Specify a unique request ID to allow the server to ignore the
435
- # request if it has completed. The server will ignore subsequent requests
436
- # that provide a duplicate request ID for at least 60 minutes after the first
437
- # request.
435
+ # Optional. A request ID. Specify a unique request ID to allow the server to
436
+ # ignore the request if it has completed. The server will ignore subsequent
437
+ # requests that provide a duplicate request ID for at least 60 minutes after
438
+ # the first request.
438
439
  #
439
440
  # For example, if an initial request times out, followed by another request
440
441
  # with the same request ID, the server ignores the second request to prevent
@@ -546,10 +547,10 @@ module Google
546
547
  # The metastore federation's `name` field is used to identify the
547
548
  # metastore service to be updated.
548
549
  # @param request_id [::String]
549
- # Optional. A request ID. Specify a unique request ID to allow the server to ignore the
550
- # request if it has completed. The server will ignore subsequent requests
551
- # that provide a duplicate request ID for at least 60 minutes after the first
552
- # request.
550
+ # Optional. A request ID. Specify a unique request ID to allow the server to
551
+ # ignore the request if it has completed. The server will ignore subsequent
552
+ # requests that provide a duplicate request ID for at least 60 minutes after
553
+ # the first request.
553
554
  #
554
555
  # For example, if an initial request times out, followed by another request
555
556
  # with the same request ID, the server ignores the second request to prevent
@@ -655,10 +656,10 @@ module Google
655
656
  #
656
657
  # `projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
657
658
  # @param request_id [::String]
658
- # Optional. A request ID. Specify a unique request ID to allow the server to ignore the
659
- # request if it has completed. The server will ignore subsequent requests
660
- # that provide a duplicate request ID for at least 60 minutes after the first
661
- # request.
659
+ # Optional. A request ID. Specify a unique request ID to allow the server to
660
+ # ignore the request if it has completed. The server will ignore subsequent
661
+ # requests that provide a duplicate request ID for at least 60 minutes after
662
+ # the first request.
662
663
  #
663
664
  # For example, if an initial request times out, followed by another request
664
665
  # with the same request ID, the server ignores the second request to prevent
@@ -778,9 +779,9 @@ module Google
778
779
  # * (`String`) The path to a service account key file in JSON format
779
780
  # * (`Hash`) A service account key as a Hash
780
781
  # * (`Google::Auth::Credentials`) A googleauth credentials object
781
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
782
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
782
783
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
783
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
784
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
784
785
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
785
786
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
786
787
  # * (`nil`) indicating no credentials
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials