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: bb3a65ee937b571f3485556e0d3d3fda50cc53d95570803d067d30dbbf11737f
4
- data.tar.gz: 814e3545283d2b27fbe8a4811a7bc4031dcdcddb0f2d327ee00db765a92098f4
3
+ metadata.gz: 3fa9350d3972df875351cde181383e8b28f7bde632edd7b6fb3f17fdfae7315b
4
+ data.tar.gz: 22d237c577b7e2045710e295febf6749ecf916a04548061bae0e04b291bcbc87
5
5
  SHA512:
6
- metadata.gz: d666014c10b7e97316204ca9ce509e5d6219d352888f2b0195db4993d11664992d2e429ecc88762ab19ad356dc508a98681d688b5d733650ecfbd232326a7693
7
- data.tar.gz: eb7961fdb855dffaae536c4a0f7e8f2ab1663d1ab9ff35a0c5e15bda3fbaa50fc0c4c317e5496406c52c32b7743e0b81b5c07d76f7713554f6ac069aac6f4ce6
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: If you accept a credential configuration (JSON file or Hash) from an
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: If you accept a credential configuration (JSON file or Hash) from an
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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceControl
23
23
  module V1
24
- VERSION = "1.4.0"
24
+ VERSION = "1.4.1"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-service_control-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC