google-cloud-metastore-v1 0.2.2 → 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: ab98121eac9fc42af613737011ccec28a5e0110ad49405c52b2c4db2d618b5de
4
- data.tar.gz: edcfd9be6b4c25f7ade31376edb0e6a8748ac3f907f10908c78bf119108734b8
3
+ metadata.gz: 17000829899c2376f3790d4d4c030303eeeb8e1fc0bddb96faf02d7a4d9d6342
4
+ data.tar.gz: c007f0e0fc785992e8b17104958c569cbdb44d97f0e8cc87b6cb1fe3f07aead9
5
5
  SHA512:
6
- metadata.gz: 697737b053a350a18418c78efb29b9c741a5481262fd44406b0e652c27f95b6b6c6d406314072a5324924b33bb503d218d101f5cf49d83936489301257d97e8f
7
- data.tar.gz: cfabbfc1926e504f1d7c6016b7387bc5ed1a02caae9f3f0ffefc77f200ebe861afb3fe8a9968292863d422be3566d1d939bd770b586bc80bb1c9f2aa0c719e87
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://googleapis.dev/ruby/google-cloud-metastore-v1/latest)
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/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.
@@ -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.5+.
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. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
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
 
@@ -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
@@ -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