Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions google-cloud-memorystore-v1/.owlbot-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"lib/google/cloud/memorystore/v1.rb",
"lib/google/cloud/memorystore/v1/bindings_override.rb",
"lib/google/cloud/memorystore/v1/memorystore.rb",
"lib/google/cloud/memorystore/v1/memorystore/client.rb",
"lib/google/cloud/memorystore/v1/memorystore/credentials.rb",
"lib/google/cloud/memorystore/v1/memorystore/operations.rb",
"lib/google/cloud/memorystore/v1/memorystore/paths.rb",
"lib/google/cloud/memorystore/v1/memorystore/rest.rb",
"lib/google/cloud/memorystore/v1/memorystore/rest/client.rb",
Expand Down Expand Up @@ -60,7 +62,10 @@
"snippets/memorystore/reschedule_maintenance.rb",
"snippets/memorystore/update_instance.rb",
"snippets/snippet_metadata_google.cloud.memorystore.v1.json",
"test/google/cloud/memorystore/v1/memorystore_operations_test.rb",
"test/google/cloud/memorystore/v1/memorystore_paths_test.rb",
"test/google/cloud/memorystore/v1/memorystore_rest_test.rb",
"test/google/cloud/memorystore/v1/memorystore_test.rb",
"test/helper.rb"
],
"static": [
Expand Down
8 changes: 4 additions & 4 deletions google-cloud-memorystore-v1/AUTHENTICATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ To configure a credentials file for an individual client initialization:
```ruby
require "google/cloud/memorystore/v1"

client = ::Google::Cloud::Memorystore::V1::Memorystore::Rest::Client.new do |config|
client = ::Google::Cloud::Memorystore::V1::Memorystore::Client.new do |config|
config.credentials = "path/to/credentialfile.json"
end
```
Expand All @@ -66,11 +66,11 @@ To configure a credentials file globally for all clients:
```ruby
require "google/cloud/memorystore/v1"

::Google::Cloud::Memorystore::V1::Memorystore::Rest::Client.configure do |config|
::Google::Cloud::Memorystore::V1::Memorystore::Client.configure do |config|
config.credentials = "path/to/credentialfile.json"
end

client = ::Google::Cloud::Memorystore::V1::Memorystore::Rest::Client.new
client = ::Google::Cloud::Memorystore::V1::Memorystore::Client.new
```

### Environment Variables
Expand Down Expand Up @@ -100,7 +100,7 @@ require "google/cloud/memorystore/v1"

ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json"

client = ::Google::Cloud::Memorystore::V1::Memorystore::Rest::Client.new
client = ::Google::Cloud::Memorystore::V1::Memorystore::Client.new
```

### Local ADC file
Expand Down
4 changes: 2 additions & 2 deletions google-cloud-memorystore-v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ In order to use this library, you first need to go through the following steps:
```ruby
require "google/cloud/memorystore/v1"

client = ::Google::Cloud::Memorystore::V1::Memorystore::Rest::Client.new
client = ::Google::Cloud::Memorystore::V1::Memorystore::Client.new
request = ::Google::Cloud::Memorystore::V1::ListInstancesRequest.new # (request fields as keyword arguments...)
response = client.list_instances request
```
Expand Down Expand Up @@ -75,7 +75,7 @@ constructing a client object. For example:
require "google/cloud/memorystore/v1"
require "logger"

client = ::Google::Cloud::Memorystore::V1::Memorystore::Rest::Client.new do |config|
client = ::Google::Cloud::Memorystore::V1::Memorystore::Client.new do |config|
config.logger = Logger.new "my-app.log"
end
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ module Memorystore
##
# API client module.
#
# @example Load this package, including all its services, and instantiate a gRPC client
#
# require "google/cloud/memorystore/v1"
# client = ::Google::Cloud::Memorystore::V1::Memorystore::Client.new
#
# @example Load this package, including all its services, and instantiate a REST client
#
# require "google/cloud/memorystore/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@

# Auto-generated by gapic-generator-ruby. DO NOT EDIT!

require "gapic/common"
require "gapic/config"
require "gapic/config/method"

require "google/cloud/memorystore/v1/version"

require "google/cloud/memorystore/v1/memorystore/credentials"
require "google/cloud/memorystore/v1/memorystore/paths"
require "google/cloud/memorystore/v1/memorystore/operations"
require "google/cloud/memorystore/v1/memorystore/client"
require "google/cloud/memorystore/v1/memorystore/rest"

module Google
Expand All @@ -32,6 +35,11 @@ module V1
##
# Service describing handlers for resources
#
# @example Load this service and instantiate a gRPC client
#
# require "google/cloud/memorystore/v1/memorystore"
# client = ::Google::Cloud::Memorystore::V1::Memorystore::Client.new
#
# @example Load this service and instantiate a REST client
#
# require "google/cloud/memorystore/v1/memorystore/rest"
Expand Down
Loading
Loading