google-cloud-billing-v1 1.5.0 → 1.5.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: 4cad1c8bab5f8a7ed19dfb39b1488b160ea044698f730b547581c9a072ce3711
4
- data.tar.gz: cfeb60d8b5b4caa946ef7899f597fc750a32f59050b20a6915feef16746595c7
3
+ metadata.gz: 8c2ada48ed03842589906e17587dfd30c95a87c4cdc7aba4ce62af2c2912a4ca
4
+ data.tar.gz: f9e50015cd53e037d982802318e36d2560cfaefdc32bc5a13fc333774b0b9c5f
5
5
  SHA512:
6
- metadata.gz: 0fa28fe699083b1b85ec92a636d1cb05c361ac243e4cfc1cc6c11429cb05ed3e15c70b659d258c28aaab582da4e2a31d8f10da2abe3d406cc2b61852c3bb5443
7
- data.tar.gz: be5cf2fc107267448f4e84070c6dca112a03549b12e51a8c8434208c9125f1a60b6104e6e926610769069da8088c5d5968c66ef56f6355ebbbb6414d8d17684d
6
+ metadata.gz: c387dcd5a170be48195e97351fc950336ef6fe7871ebc49c6ababd8aaf58bdcb95cd71498fa12f60f446853ef497eb6c5f27bd08345ad3ea7e6b0c489e3e68f0
7
+ data.tar.gz: e605c59c978a8489cc9708f4395a4dc86be802265836a95859f8333a8e526bb044ac74480f3104153c48cf41d7ab64e30bde8c4ae1bc41576991cf67704af319
@@ -1347,8 +1347,6 @@ module Google
1347
1347
  # @return [::String,nil]
1348
1348
  # @!attribute [rw] credentials
1349
1349
  # Credentials to send with calls. You may provide any of the following types:
1350
- # * (`String`) The path to a service account key file in JSON format
1351
- # * (`Hash`) A service account key as a Hash
1352
1350
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1353
1351
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1354
1352
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1357,7 +1355,26 @@ module Google
1357
1355
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1358
1356
  # * (`nil`) indicating no credentials
1359
1357
  #
1360
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1358
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1359
+ # is deprecated. Providing an unvalidated credential configuration to
1360
+ # Google APIs can compromise the security of your systems and data.
1361
+ #
1362
+ # @example
1363
+ #
1364
+ # # The recommended way to provide credentials is to use the `make_creds` method
1365
+ # # on the appropriate credentials class for your environment.
1366
+ #
1367
+ # require "googleauth"
1368
+ #
1369
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1370
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1371
+ # )
1372
+ #
1373
+ # client = ::Google::Cloud::Billing::V1::CloudBilling::Client.new do |config|
1374
+ # config.credentials = credentials
1375
+ # end
1376
+ #
1377
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1361
1378
  # external source for authentication to Google Cloud, you must validate it before
1362
1379
  # providing it to a Google API client library. Providing an unvalidated credential
1363
1380
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -427,8 +427,6 @@ module Google
427
427
  # @return [::String,nil]
428
428
  # @!attribute [rw] credentials
429
429
  # Credentials to send with calls. You may provide any of the following types:
430
- # * (`String`) The path to a service account key file in JSON format
431
- # * (`Hash`) A service account key as a Hash
432
430
  # * (`Google::Auth::Credentials`) A googleauth credentials object
433
431
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
434
432
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -437,7 +435,26 @@ module Google
437
435
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
438
436
  # * (`nil`) indicating no credentials
439
437
  #
440
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
438
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
439
+ # is deprecated. Providing an unvalidated credential configuration to
440
+ # Google APIs can compromise the security of your systems and data.
441
+ #
442
+ # @example
443
+ #
444
+ # # The recommended way to provide credentials is to use the `make_creds` method
445
+ # # on the appropriate credentials class for your environment.
446
+ #
447
+ # require "googleauth"
448
+ #
449
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
450
+ # json_key_io: ::File.open("/path/to/keyfile.json")
451
+ # )
452
+ #
453
+ # client = ::Google::Cloud::Billing::V1::CloudCatalog::Client.new do |config|
454
+ # config.credentials = credentials
455
+ # end
456
+ #
457
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
441
458
  # external source for authentication to Google Cloud, you must validate it before
442
459
  # providing it to a Google API client library. Providing an unvalidated credential
443
460
  # 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 Billing
23
23
  module V1
24
- VERSION = "1.5.0"
24
+ VERSION = "1.5.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-billing-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC