@@ -40,29 +40,31 @@ module Cloud
4040 # updater_proc is supplied.
4141 # @param timeout [Integer]
4242 # The default timeout, in seconds, for calls made through this client.
43- # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel,
43+ # @param credentials [Google::Auth::Credentials, GRPC::Core::Channel,
4444 # GRPC::Core::ChannelCredentials, Proc]
45- # Provides the means for authenticating requests made by the client. This parameter can
45+ # The means for authenticating requests made by the client. This parameter can
4646 # be one of the following types.
4747 # `Google::Auth::Credentials` uses the properties of its represented keyfile for
4848 # authenticating requests made by this client.
49- # `String` will be treated as the path to the keyfile to use to construct
50- # credentials for this client.
51- # `Hash` will be treated as the contents of a keyfile to use to construct
52- # credentials for this client.
5349 # `GRPC::Core::Channel` will be used to make calls through.
5450 # `GRPC::Core::ChannelCredentials` will be used to set up the gRPC client. The channel credentials
5551 # should already be composed with a `GRPC::Core::CallCredentials` object.
5652 # `Proc` will be used as an updater_proc for the gRPC channel. The proc transforms the
5753 # metadata for requests, generally, to give OAuth credentials.
58- # @return [Google::Cloud::Bigtable::Project]
54+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
55+ # is deprecated. Providing an unvalidated credential configuration to
56+ # Google APIs can compromise the security of your systems and data.
5957 #
60- # @example
61- # require "google/cloud/bigtable"
58+ # @example
59+ #
60+ # # The recommended way to provide credentials is to use the `make_creds` method
61+ # # on the appropriate credentials class for your environment.
6262 #
63- # gcloud = Google::Cloud.new
63+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
64+ # json_key_io: ::File.open("/path/to/keyfile.json")
65+ # )
6466 #
65- # bigtable = gcloud .bigtable
67+ # client = Google::Cloud .bigtable credentials: credentials
6668 #
6769 def bigtable scope : nil , timeout : nil , credentials : nil
6870 credentials ||= @keyfile
@@ -83,21 +85,32 @@ def bigtable scope: nil, timeout: nil, credentials: nil
8385 # Project identifier for the Bigtable service you
8486 # are connecting to. If not present, the default project for the
8587 # credentials is used.
86- # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel,
88+ # @param credentials [Google::Auth::Credentials, GRPC::Core::Channel,
8789 # GRPC::Core::ChannelCredentials, Proc]
8890 # The means for authenticating requests made by the client. This parameter can
8991 # be one of the following types.
9092 # `Google::Auth::Credentials` uses the properties of its represented keyfile for
9193 # authenticating requests made by this client.
92- # `String` will be treated as the path to the keyfile to use to construct
93- # credentials for this client.
94- # `Hash` will be treated as the contents of a keyfile to use to construct
95- # credentials for this client.
9694 # `GRPC::Core::Channel` will be used to make calls through.
9795 # `GRPC::Core::ChannelCredentials` will be used to set up the gRPC client. The channel credentials
9896 # should already be composed with a `GRPC::Core::CallCredentials` object.
9997 # `Proc` will be used as an updater_proc for the gRPC channel. The proc transforms the
10098 # metadata for requests, generally, to give OAuth credentials.
99+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
100+ # is deprecated. Providing an unvalidated credential configuration to
101+ # Google APIs can compromise the security of your systems and data.
102+ #
103+ # @example
104+ #
105+ # # The recommended way to provide credentials is to use the `make_creds` method
106+ # # on the appropriate credentials class for your environment.
107+ #
108+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
109+ # json_key_io: ::File.open("/path/to/keyfile.json")
110+ # )
111+ #
112+ # client = Google::Cloud.bigtable credentials: credentials
113+ #
101114 # @param scope [Array<String>]
102115 # The OAuth 2.0 scopes controlling the set of resources and operations
103116 # that the connection can access. See [Using OAuth 2.0 to Access Google
0 commit comments