google-cloud-assured_workloads-v1beta1 0.23.0 → 0.23.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: 8d66872ff3411a6397d75f3c07724742ae290be1522b17e2d95bf129200a3e82
4
- data.tar.gz: 4d25303fb0ea03e01ba75676479d53362c6275f97cb194d144fc94be7b50634d
3
+ metadata.gz: 0aa9a1c259d339d489a568dc0976d9a74fe2ee43773fbc9cef63239d63127bcc
4
+ data.tar.gz: 0b2e229dedc16999b2e8c0f25b41cccf37fb11abd87e5b1e6c7e19939e4be70c
5
5
  SHA512:
6
- metadata.gz: 858cdc2488f1116865abb9fde9d511b56e255c0cb6c9c2e91b317c631314f987d1a7185558ac015ee4f9ca95be8194c373a5ae5c6d825ada44a2b620f753edef
7
- data.tar.gz: 566c04977a90af0136084e5aa1d92365d8f721888e0d5c76c95e0a043705b957b9eca2c3eaf7afd4560cf178d9d27638fdcf38ec13fbe08e8643fa5f68ab83a9
6
+ metadata.gz: c3016ad3404fa9f3fb8236a6d05ccbef6ca928edbe59cd885cc6dbfa04e9098ee9128806ee55451174cc9a2db241c58c77da0208bacde323709628856b7f5e80
7
+ data.tar.gz: a02d7a75843af364e5ae5e47bb1e3f6c16f0b2b2d9ed7343957342bbf09a51e1e49497a84916e93bf2941d7e2ba5c51d5b700190706430882a5db4f723e76934
@@ -908,8 +908,6 @@ module Google
908
908
  # @return [::String,nil]
909
909
  # @!attribute [rw] credentials
910
910
  # Credentials to send with calls. You may provide any of the following types:
911
- # * (`String`) The path to a service account key file in JSON format
912
- # * (`Hash`) A service account key as a Hash
913
911
  # * (`Google::Auth::Credentials`) A googleauth credentials object
914
912
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
915
913
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -918,7 +916,26 @@ module Google
918
916
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
919
917
  # * (`nil`) indicating no credentials
920
918
  #
921
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
919
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
920
+ # is deprecated. Providing an unvalidated credential configuration to
921
+ # Google APIs can compromise the security of your systems and data.
922
+ #
923
+ # @example
924
+ #
925
+ # # The recommended way to provide credentials is to use the `make_creds` method
926
+ # # on the appropriate credentials class for your environment.
927
+ #
928
+ # require "googleauth"
929
+ #
930
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
931
+ # json_key_io: ::File.open("/path/to/keyfile.json")
932
+ # )
933
+ #
934
+ # client = ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new do |config|
935
+ # config.credentials = credentials
936
+ # end
937
+ #
938
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
922
939
  # external source for authentication to Google Cloud, you must validate it before
923
940
  # providing it to a Google API client library. Providing an unvalidated credential
924
941
  # 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 AssuredWorkloads
23
23
  module V1beta1
24
- VERSION = "0.23.0"
24
+ VERSION = "0.23.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-assured_workloads-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.23.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC