google-cloud-metastore-v1 0.2.2 → 0.4.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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +12 -7
- data/lib/google/cloud/metastore/v1/dataproc_metastore/operations.rb +3 -0
- data/lib/google/cloud/metastore/v1/dataproc_metastore/paths.rb +19 -0
- data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/client.rb +900 -0
- data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/credentials.rb +51 -0
- data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/operations.rb +770 -0
- data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/paths.rb +69 -0
- data/lib/google/cloud/metastore/v1/dataproc_metastore_federation.rb +62 -0
- data/lib/google/cloud/metastore/v1/metastore_federation_pb.rb +94 -0
- data/lib/google/cloud/metastore/v1/metastore_federation_services_pb.rb +65 -0
- data/lib/google/cloud/metastore/v1/metastore_pb.rb +37 -1
- data/lib/google/cloud/metastore/v1/version.rb +1 -1
- data/lib/google/cloud/metastore/v1.rb +3 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/metastore/v1/metastore.rb +95 -2
- data/proto_docs/google/cloud/metastore/v1/metastore_federation.rb +302 -0
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/empty.rb +0 -2
- metadata +22 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17000829899c2376f3790d4d4c030303eeeb8e1fc0bddb96faf02d7a4d9d6342
|
4
|
+
data.tar.gz: c007f0e0fc785992e8b17104958c569cbdb44d97f0e8cc87b6cb1fe3f07aead9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e6d3db63254580afe638fa2692e3c2dc0d0482a0cefb9fda92657e823918bc5673340beb24b2aac1f90e162ef5c356cb2f0c10342a0df5278c91cc21e0d40c5
|
7
|
+
data.tar.gz: 3fbfac751638e5824084b091e0fb0834f7d4b06c9e2dbfd40c09dcac00664373febfaa4f54f60cac04493980995cfc5a619d3b8d13283b199ad9bbfb5d4cc0f9
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
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/)
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -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
|
|
@@ -119,6 +119,25 @@ module Google
|
|
119
119
|
"projects/#{project}/locations/#{location}/services/#{service}"
|
120
120
|
end
|
121
121
|
|
122
|
+
##
|
123
|
+
# Create a fully-qualified Subnetwork resource string.
|
124
|
+
#
|
125
|
+
# The resource will be in the following format:
|
126
|
+
#
|
127
|
+
# `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
|
128
|
+
#
|
129
|
+
# @param project [String]
|
130
|
+
# @param region [String]
|
131
|
+
# @param subnetwork [String]
|
132
|
+
#
|
133
|
+
# @return [::String]
|
134
|
+
def subnetwork_path project:, region:, subnetwork:
|
135
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
136
|
+
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
137
|
+
|
138
|
+
"projects/#{project}/regions/#{region}/subnetworks/#{subnetwork}"
|
139
|
+
end
|
140
|
+
|
122
141
|
extend self
|
123
142
|
end
|
124
143
|
end
|