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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f51da06de00d90f272837a18d95e6ce7efbf9c12679b6d6c4e2b2194fa92005
4
- data.tar.gz: 47ab48d9c2e417b0ff580c452952bea7264f85b5540665d539fb12c386ce2192
3
+ metadata.gz: 17000829899c2376f3790d4d4c030303eeeb8e1fc0bddb96faf02d7a4d9d6342
4
+ data.tar.gz: c007f0e0fc785992e8b17104958c569cbdb44d97f0e8cc87b6cb1fe3f07aead9
5
5
  SHA512:
6
- metadata.gz: 4d60088a51cbf1ef8fc1f8c2cd50c4fe5df3c98668fbd692407f55f75c65ff51a7cb82cbb9a469e5f4a54cee75080c3dc93c79417798b5a252dda67b1e0e2254
7
- data.tar.gz: a51d1f20c340154315f09d6e58418b7ffa14600f58346f7fa35e2d7ff80d9ae5fbdda7f16ac31e34fb6af9fb9a02b26c8294112f992cb9a998ce3b609c1cb811
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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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