lib/google/cloud/redis/v1/cloud_redis/client.rb in google-cloud-redis-v1-0.9.0 vs lib/google/cloud/redis/v1/cloud_redis/client.rb in google-cloud-redis-v1-0.10.0
- old
+ new
@@ -16,10 +16,11 @@
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
require "google/cloud/errors"
require "google/cloud/redis/v1/cloud_redis_pb"
+require "google/cloud/location"
module Google
module Cloud
module Redis
module V1
@@ -173,10 +174,16 @@
config.credentials = credentials
config.quota_project = @quota_project_id
config.endpoint = @config.endpoint
end
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
+ config.credentials = credentials
+ config.quota_project = @quota_project_id
+ config.endpoint = @config.endpoint
+ end
+
@cloud_redis_stub = ::Gapic::ServiceStub.new(
::Google::Cloud::Redis::V1::CloudRedis::Stub,
credentials: credentials,
endpoint: @config.endpoint,
channel_args: @config.channel_args,
@@ -189,10 +196,17 @@
#
# @return [::Google::Cloud::Redis::V1::CloudRedis::Operations]
#
attr_reader :operations_client
+ ##
+ # Get the associated client for mix-in of the Locations.
+ #
+ # @return [Google::Cloud::Location::Locations::Client]
+ #
+ attr_reader :location_client
+
# Service calls
##
# Lists all Redis instances owned by a project in either the specified
# location (region) or all locations.
@@ -231,11 +245,12 @@
# and a caller should only rely on response's
# {::Google::Cloud::Redis::V1::ListInstancesResponse#next_page_token `next_page_token`}
# to determine if there are more instances left to be queried.
# @param page_token [::String]
# The `next_page_token` value returned from a previous
- # {::Google::Cloud::Redis::V1::CloudRedis::Client#list_instances ListInstances} request, if any.
+ # {::Google::Cloud::Redis::V1::CloudRedis::Client#list_instances ListInstances} request, if
+ # any.
#
# @yield [response, operation] Access the result along with the RPC operation
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Redis::V1::Instance>]
# @yieldparam operation [::GRPC::ActiveCall::Operation]
#
@@ -1226,11 +1241,12 @@
# @param name [::String]
# Required. Redis instance resource name using the form:
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
# where `location_id` refers to a GCP region.
# @param reschedule_type [::Google::Cloud::Redis::V1::RescheduleMaintenanceRequest::RescheduleType]
- # Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
+ # Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
+ # well.
# @param schedule_time [::Google::Protobuf::Timestamp, ::Hash]
# Optional. Timestamp when the maintenance shall be rescheduled to if
# reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
# example `2012-11-15T16:19:00.094Z`.
#
@@ -1342,12 +1358,12 @@
# @!attribute [rw] credentials
# Credentials to send with calls. You may provide any of the following types:
# * (`String`) The path to a service account key file in JSON format
# * (`Hash`) A service account key as a Hash
# * (`Google::Auth::Credentials`) A googleauth credentials object
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
# * (`nil`) indicating no credentials
# @return [::Object]
# @!attribute [rw] scope