google-cloud-metastore-v1 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +1 -1
- 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 +35 -0
- data/lib/google/cloud/metastore/v1/version.rb +1 -1
- data/lib/google/cloud/metastore/v1.rb +1 -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/empty.rb +0 -2
- metadata +14 -4
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
@@ -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.
|
@@ -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
|