google-cloud-security-public_ca-v1 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 939dc89ef435576df288cd573a1ae0910a7de6e5bb3ce47ca0878992b590569e
|
|
4
|
+
data.tar.gz: 1ed1a623d96fd8510efae25a40afcafed1c0be9b2196fa66b68194557d489a52
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5aa695d06894c5b7c6ea344af54d9e643fbce412a166f65ad25eb338e32a080056070d5b23f9783a3086d1f729dce7c3bd882da339db02b5b48afdf266d5ab2e
|
|
7
|
+
data.tar.gz: 8a693d4edd49c283db39032437d825dba4f634a3be50348216e7fb1c1a77d8b704193e7c623ba71552664b9139fd19bae969f3cd6b2f113bc087dd710f1544a6
|
|
@@ -320,8 +320,6 @@ module Google
|
|
|
320
320
|
# @return [::String,nil]
|
|
321
321
|
# @!attribute [rw] credentials
|
|
322
322
|
# Credentials to send with calls. You may provide any of the following types:
|
|
323
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
324
|
-
# * (`Hash`) A service account key as a Hash
|
|
325
323
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
326
324
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
327
325
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -330,7 +328,26 @@ module Google
|
|
|
330
328
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
331
329
|
# * (`nil`) indicating no credentials
|
|
332
330
|
#
|
|
333
|
-
# Warning:
|
|
331
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
332
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
333
|
+
# Google APIs can compromise the security of your systems and data.
|
|
334
|
+
#
|
|
335
|
+
# @example
|
|
336
|
+
#
|
|
337
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
338
|
+
# # on the appropriate credentials class for your environment.
|
|
339
|
+
#
|
|
340
|
+
# require "googleauth"
|
|
341
|
+
#
|
|
342
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
343
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
344
|
+
# )
|
|
345
|
+
#
|
|
346
|
+
# client = ::Google::Cloud::Security::PublicCA::V1::PublicCertificateAuthorityService::Client.new do |config|
|
|
347
|
+
# config.credentials = credentials
|
|
348
|
+
# end
|
|
349
|
+
#
|
|
350
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
334
351
|
# external source for authentication to Google Cloud, you must validate it before
|
|
335
352
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
336
353
|
# configuration to Google APIs can compromise the security of your systems and data.
|