google-cloud-security_center-v2 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: 829ec9eecd95e55d82eb4f3157720d37b0d9685a12b6dfd5b5b126efc2028b51
4
- data.tar.gz: 4031e19622081b0aaf2933dc3c3bec8f5e270a04d742ca16b237165e2f559c23
3
+ metadata.gz: 5aa41dadd09f678c6815b09f6298ede441d1042dcf15e7fac663db685f51de8a
4
+ data.tar.gz: d1981aeccf5a29abb6e0f61fff27256b1bac5cb5d94842f0df936ae544ccc37b
5
5
  SHA512:
6
- metadata.gz: 7825ebae0962abb85bcd424d5e7e90e0a4579b6c7c867b06c75bcaec774bf510e8ea50f6b7c30ddf2ca92dda7ba776d09e44a19014b40a293b75d6f01bf36f76
7
- data.tar.gz: dbca5cb07b9d3e2b494ffa57cae03e0dc0de2cfbf14bc963912a4025265c8e605fe1e52a71a71a92bec32d9a6e4ae0315ef7ffc93a375385dc1963be6c99a832
6
+ metadata.gz: 5c36b6d43a8d301b9d16c29aff4517dfb8eb65f2ed4cae7d68d0e894410cc4e7c9b5a4b080a49e35b650668d36e01fe001db374fb1e576d78704bf50fd813d84
7
+ data.tar.gz: f7bd0ed059eb91adc9e97bce7874661fade76c8d3fc1907d4ce8205e7227f3ddbecb0f9bd2a125a560f1b035cf6a450d87c8ec9e3d0f76266cb24166cbc3ea3c
@@ -4347,8 +4347,6 @@ module Google
4347
4347
  # @return [::String,nil]
4348
4348
  # @!attribute [rw] credentials
4349
4349
  # Credentials to send with calls. You may provide any of the following types:
4350
- # * (`String`) The path to a service account key file in JSON format
4351
- # * (`Hash`) A service account key as a Hash
4352
4350
  # * (`Google::Auth::Credentials`) A googleauth credentials object
4353
4351
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
4354
4352
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -4357,7 +4355,26 @@ module Google
4357
4355
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
4358
4356
  # * (`nil`) indicating no credentials
4359
4357
  #
4360
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
4358
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
4359
+ # is deprecated. Providing an unvalidated credential configuration to
4360
+ # Google APIs can compromise the security of your systems and data.
4361
+ #
4362
+ # @example
4363
+ #
4364
+ # # The recommended way to provide credentials is to use the `make_creds` method
4365
+ # # on the appropriate credentials class for your environment.
4366
+ #
4367
+ # require "googleauth"
4368
+ #
4369
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
4370
+ # json_key_io: ::File.open("/path/to/keyfile.json")
4371
+ # )
4372
+ #
4373
+ # client = ::Google::Cloud::SecurityCenter::V2::SecurityCenter::Client.new do |config|
4374
+ # config.credentials = credentials
4375
+ # end
4376
+ #
4377
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
4361
4378
  # external source for authentication to Google Cloud, you must validate it before
4362
4379
  # providing it to a Google API client library. Providing an unvalidated credential
4363
4380
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -642,8 +642,6 @@ module Google
642
642
  # @return [::String,nil]
643
643
  # @!attribute [rw] credentials
644
644
  # Credentials to send with calls. You may provide any of the following types:
645
- # * (`String`) The path to a service account key file in JSON format
646
- # * (`Hash`) A service account key as a Hash
647
645
  # * (`Google::Auth::Credentials`) A googleauth credentials object
648
646
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
649
647
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -652,7 +650,26 @@ module Google
652
650
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
653
651
  # * (`nil`) indicating no credentials
654
652
  #
655
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
653
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
654
+ # is deprecated. Providing an unvalidated credential configuration to
655
+ # Google APIs can compromise the security of your systems and data.
656
+ #
657
+ # @example
658
+ #
659
+ # # The recommended way to provide credentials is to use the `make_creds` method
660
+ # # on the appropriate credentials class for your environment.
661
+ #
662
+ # require "googleauth"
663
+ #
664
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
665
+ # json_key_io: ::File.open("/path/to/keyfile.json")
666
+ # )
667
+ #
668
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
669
+ # config.credentials = credentials
670
+ # end
671
+ #
672
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
656
673
  # external source for authentication to Google Cloud, you must validate it before
657
674
  # providing it to a Google API client library. Providing an unvalidated credential
658
675
  # 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 SecurityCenter
23
23
  module V2
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-security_center-v2
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