google-cloud-service_control-v1 1.4.0 → 1.4.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: 3fa9350d3972df875351cde181383e8b28f7bde632edd7b6fb3f17fdfae7315b
|
|
4
|
+
data.tar.gz: 22d237c577b7e2045710e295febf6749ecf916a04548061bae0e04b291bcbc87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34c4db8d45ff33a338a708e8d3f606df18561005b90591b5888eab51815f2f25213d2ac947698dc3760b364e9acb4e15f187521cc09bb15a0ca77065fca16ef4
|
|
7
|
+
data.tar.gz: a3ea19e3946b707b1c4b9f32aa5590680a84e6988b1f1a0c3163f60997aff77f02e39d6c641c6811b0e04dd2d8e8d754bc9f300789082ffdd4b7f46a8ada09f0
|
|
@@ -323,8 +323,6 @@ module Google
|
|
|
323
323
|
# @return [::String,nil]
|
|
324
324
|
# @!attribute [rw] credentials
|
|
325
325
|
# Credentials to send with calls. You may provide any of the following types:
|
|
326
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
327
|
-
# * (`Hash`) A service account key as a Hash
|
|
328
326
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
329
327
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
330
328
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -333,7 +331,26 @@ module Google
|
|
|
333
331
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
334
332
|
# * (`nil`) indicating no credentials
|
|
335
333
|
#
|
|
336
|
-
# Warning:
|
|
334
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
335
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
336
|
+
# Google APIs can compromise the security of your systems and data.
|
|
337
|
+
#
|
|
338
|
+
# @example
|
|
339
|
+
#
|
|
340
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
341
|
+
# # on the appropriate credentials class for your environment.
|
|
342
|
+
#
|
|
343
|
+
# require "googleauth"
|
|
344
|
+
#
|
|
345
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
346
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
347
|
+
# )
|
|
348
|
+
#
|
|
349
|
+
# client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new do |config|
|
|
350
|
+
# config.credentials = credentials
|
|
351
|
+
# end
|
|
352
|
+
#
|
|
353
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
337
354
|
# external source for authentication to Google Cloud, you must validate it before
|
|
338
355
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
339
356
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -462,8 +462,6 @@ module Google
|
|
|
462
462
|
# @return [::String,nil]
|
|
463
463
|
# @!attribute [rw] credentials
|
|
464
464
|
# Credentials to send with calls. You may provide any of the following types:
|
|
465
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
466
|
-
# * (`Hash`) A service account key as a Hash
|
|
467
465
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
468
466
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
469
467
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -472,7 +470,26 @@ module Google
|
|
|
472
470
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
473
471
|
# * (`nil`) indicating no credentials
|
|
474
472
|
#
|
|
475
|
-
# Warning:
|
|
473
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
474
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
475
|
+
# Google APIs can compromise the security of your systems and data.
|
|
476
|
+
#
|
|
477
|
+
# @example
|
|
478
|
+
#
|
|
479
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
480
|
+
# # on the appropriate credentials class for your environment.
|
|
481
|
+
#
|
|
482
|
+
# require "googleauth"
|
|
483
|
+
#
|
|
484
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
485
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
486
|
+
# )
|
|
487
|
+
#
|
|
488
|
+
# client = ::Google::Cloud::ServiceControl::V1::ServiceController::Client.new do |config|
|
|
489
|
+
# config.credentials = credentials
|
|
490
|
+
# end
|
|
491
|
+
#
|
|
492
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
476
493
|
# external source for authentication to Google Cloud, you must validate it before
|
|
477
494
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
478
495
|
# configuration to Google APIs can compromise the security of your systems and data.
|