AUTHENTICATION.md in google-cloud-gke_connect-gateway-v1beta1-0.7.1 vs AUTHENTICATION.md in google-cloud-gke_connect-gateway-v1beta1-0.8.0
- old
+ new
@@ -54,25 +54,25 @@
To configure a credentials file for an individual client initialization:
```ruby
require "google/cloud/gke_connect/gateway/v1beta1"
-client = ::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayControl::Client.new do |config|
+client = ::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayControl::Rest::Client.new do |config|
config.credentials = "path/to/credentialfile.json"
end
```
To configure a credentials file globally for all clients:
```ruby
require "google/cloud/gke_connect/gateway/v1beta1"
-::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayControl::Client.configure do |config|
+::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayControl::Rest::Client.configure do |config|
config.credentials = "path/to/credentialfile.json"
end
-client = ::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayControl::Client.new
+client = ::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayControl::Rest::Client.new
```
### Environment Variables
You can also use an environment variable to provide a JSON credentials file.
@@ -98,10 +98,10 @@
```ruby
require "google/cloud/gke_connect/gateway/v1beta1"
ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json"
-client = ::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayControl::Client.new
+client = ::Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayControl::Rest::Client.new
```
### Local ADC file
You can set up a local ADC file with your user credentials for authentication during