lib/google/cloud/datastream/v1/datastream/client.rb in google-cloud-datastream-v1-0.5.0 vs lib/google/cloud/datastream/v1/datastream/client.rb in google-cloud-datastream-v1-0.6.0
- old
+ new
@@ -148,11 +148,11 @@
# Create credentials
credentials = @config.credentials
# Use self-signed JWT if the endpoint is unchanged from default,
# but only if the default endpoint does not have a region prefix.
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
!@config.endpoint.split(".").first.include?("-")
credentials ||= Credentials.default scope: @config.scope,
enable_self_signed_jwt: enable_self_signed_jwt
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
credentials = Credentials.new credentials, scope: @config.scope
@@ -437,12 +437,12 @@
# from accidentally creating duplicate commitments.
#
# The request ID must be a valid UUID with the exception that zero UUID is
# not supported (00000000-0000-0000-0000-000000000000).
# @param validate_only [::Boolean]
- # Optional. Only validate the connection profile, but don't create any resources.
- # The default is false.
+ # Optional. Only validate the connection profile, but don't create any
+ # resources. The default is false.
# @param force [::Boolean]
# Optional. Create the connection profile without validating it.
#
# @yield [response, operation] Access the result along with the RPC operation
# @yieldparam response [::Gapic::Operation]
@@ -555,12 +555,12 @@
# from accidentally creating duplicate commitments.
#
# The request ID must be a valid UUID with the exception that zero UUID is
# not supported (00000000-0000-0000-0000-000000000000).
# @param validate_only [::Boolean]
- # Optional. Only validate the connection profile, but don't update any resources.
- # The default is false.
+ # Optional. Only validate the connection profile, but don't update any
+ # resources. The default is false.
# @param force [::Boolean]
# Optional. Update the connection profile without validating it.
#
# @yield [response, operation] Access the result along with the RPC operation
# @yieldparam response [::Gapic::Operation]
@@ -761,12 +761,12 @@
# Pass arguments to `discover_connection_profile` via keyword arguments. Note that at
# least one keyword argument is required. To specify no parameters, or to keep all
# the default parameter values, pass an empty Hash as a request object (see above).
#
# @param parent [::String]
- # Required. The parent resource of the connection profile type. Must be in the
- # format `projects/*/locations/*`.
+ # Required. The parent resource of the connection profile type. Must be in
+ # the format `projects/*/locations/*`.
# @param connection_profile [::Google::Cloud::Datastream::V1::ConnectionProfile, ::Hash]
# An ad-hoc connection profile configuration.
# @param connection_profile_name [::String]
# A reference to an existing connection profile.
# @param full_hierarchy [::Boolean]
@@ -1189,12 +1189,12 @@
# from accidentally creating duplicate commitments.
#
# The request ID must be a valid UUID with the exception that zero UUID is
# not supported (00000000-0000-0000-0000-000000000000).
# @param validate_only [::Boolean]
- # Optional. Only validate the stream with the changes, without actually updating it.
- # The default is false.
+ # Optional. Only validate the stream with the changes, without actually
+ # updating it. The default is false.
# @param force [::Boolean]
# Optional. Update the stream without validating it.
#
# @yield [response, operation] Access the result along with the RPC operation
# @yieldparam response [::Gapic::Operation]
@@ -1664,11 +1664,12 @@
# Pass arguments to `start_backfill_job` via keyword arguments. Note that at
# least one keyword argument is required. To specify no parameters, or to keep all
# the default parameter values, pass an empty Hash as a request object (see above).
#
# @param object [::String]
- # Required. The name of the stream object resource to start a backfill job for.
+ # Required. The name of the stream object resource to start a backfill job
+ # for.
#
# @yield [response, operation] Access the result along with the RPC operation
# @yieldparam response [::Google::Cloud::Datastream::V1::StartBackfillJobResponse]
# @yieldparam operation [::GRPC::ActiveCall::Operation]
#
@@ -1749,11 +1750,12 @@
# Pass arguments to `stop_backfill_job` via keyword arguments. Note that at
# least one keyword argument is required. To specify no parameters, or to keep all
# the default parameter values, pass an empty Hash as a request object (see above).
#
# @param object [::String]
- # Required. The name of the stream object resource to stop the backfill job for.
+ # Required. The name of the stream object resource to stop the backfill job
+ # for.
#
# @yield [response, operation] Access the result along with the RPC operation
# @yieldparam response [::Google::Cloud::Datastream::V1::StopBackfillJobResponse]
# @yieldparam operation [::GRPC::ActiveCall::Operation]
#
@@ -1835,12 +1837,12 @@
# Pass arguments to `fetch_static_ips` via keyword arguments. Note that at
# least one keyword argument is required. To specify no parameters, or to keep all
# the default parameter values, pass an empty Hash as a request object (see above).
#
# @param name [::String]
- # Required. The resource name for the location for which static IPs should be returned.
- # Must be in the format `projects/*/locations/*`.
+ # Required. The resource name for the location for which static IPs should be
+ # returned. Must be in the format `projects/*/locations/*`.
# @param page_size [::Integer]
# Maximum number of Ips to return, will likely not be specified.
# @param page_token [::String]
# A page token, received from a previous `ListStaticIps` call.
# will likely not be specified.
@@ -1920,11 +1922,11 @@
# A request object representing the call parameters. Required. To specify no
# parameters, or to keep all the default parameter values, pass an empty Hash.
# @param options [::Gapic::CallOptions, ::Hash]
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
#
- # @overload create_private_connection(parent: nil, private_connection_id: nil, private_connection: nil, request_id: nil)
+ # @overload create_private_connection(parent: nil, private_connection_id: nil, private_connection: nil, request_id: nil, force: nil)
# Pass arguments to `create_private_connection` via keyword arguments. Note that at
# least one keyword argument is required. To specify no parameters, or to keep all
# the default parameter values, pass an empty Hash as a request object (see above).
#
# @param parent [::String]
@@ -1945,10 +1947,12 @@
# received, and if so, will ignore the second request. This prevents clients
# from accidentally creating duplicate commitments.
#
# The request ID must be a valid UUID with the exception that zero UUID is
# not supported (00000000-0000-0000-0000-000000000000).
+ # @param force [::Boolean]
+ # Optional. If set to true, will skip validations.
#
# @yield [response, operation] Access the result along with the RPC operation
# @yieldparam response [::Gapic::Operation]
# @yieldparam operation [::GRPC::ActiveCall::Operation]
#
@@ -2123,11 +2127,12 @@
# Pass arguments to `list_private_connections` via keyword arguments. Note that at
# least one keyword argument is required. To specify no parameters, or to keep all
# the default parameter values, pass an empty Hash as a request object (see above).
#
# @param parent [::String]
- # Required. The parent that owns the collection of private connectivity configurations.
+ # Required. The parent that owns the collection of private connectivity
+ # configurations.
# @param page_size [::Integer]
# Maximum number of private connectivity configurations to return.
# If unspecified, at most 50 private connectivity configurations that will be
# returned. The maximum value is 1000; values above 1000 will be coerced to
# 1000.
@@ -2245,12 +2250,12 @@
# from accidentally creating duplicate commitments.
#
# The request ID must be a valid UUID with the exception that zero UUID is
# not supported (00000000-0000-0000-0000-000000000000).
# @param force [::Boolean]
- # Optional. If set to true, any child routes that belong to this PrivateConnection will
- # also be deleted.
+ # Optional. If set to true, any child routes that belong to this
+ # PrivateConnection will also be deleted.
#
# @yield [response, operation] Access the result along with the RPC operation
# @yieldparam response [::Gapic::Operation]
# @yieldparam operation [::GRPC::ActiveCall::Operation]
#
@@ -2769,13 +2774,13 @@
# @!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
@@ -2813,10 +2818,12 @@
# @return [::String]
#
class Configuration
extend ::Gapic::Config
- config_attr :endpoint, "datastream.googleapis.com", ::String
+ DEFAULT_ENDPOINT = "datastream.googleapis.com"
+
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
config_attr :credentials, nil do |value|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
allowed.any? { |klass| klass === value }
end