google-cloud-policy_simulator-v1 1.6.0 → 1.6.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: eba545e6723f6a1fecf80f4a05b147eb82a7a4dfcaf2eeb20698554cd772ccb8
4
- data.tar.gz: 16deef1408001ff684d5de4b1583016197796855c54e52dde2dcad03edbe3c97
3
+ metadata.gz: 1349249b8d368f23719a306004d59820797e8d37e01ddc703c9ad1e83bd74146
4
+ data.tar.gz: 06e1e5ecf49ce3f8e34aedc02248f4a7a2327dbe0cbaa0d4d1b513032a7c2725
5
5
  SHA512:
6
- metadata.gz: a0fe4047d7dd9eb8a412745ab9a3fa19be7ebcc6de2f736fdc007f02c89b2f8097ba6a20c0c08297a5e795b0c28b5581f8118038bf9545dad5fe62093cc4cf76
7
- data.tar.gz: 132a6a0e142c791103992ac6bd35ac30eae05ec725ebf211f87b15b82aca6171d43fa90620c2e4427ba2c17e4b27cc634326eaa91fb0e68a8c853242d9662a23
6
+ metadata.gz: a14290817addc54d1fc824cde94222668c8193ae559f2e5cfc99b72b15608f9dc3d478b0649213735164c5714fecc96af7d2843577d61e5be6732de9d12257a9
7
+ data.tar.gz: 2393ab61c01206ae201dbccbd55f1b6ac7ed5ec75fbc977061a7ee6e6698f1e7665867e43bcf62b6bfdac8bb2e1b74e6d4e2004a99dc9e302bf3b8547037a771
@@ -673,8 +673,6 @@ module Google
673
673
  # @return [::String,nil]
674
674
  # @!attribute [rw] credentials
675
675
  # Credentials to send with calls. You may provide any of the following types:
676
- # * (`String`) The path to a service account key file in JSON format
677
- # * (`Hash`) A service account key as a Hash
678
676
  # * (`Google::Auth::Credentials`) A googleauth credentials object
679
677
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
680
678
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -683,7 +681,26 @@ module Google
683
681
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
684
682
  # * (`nil`) indicating no credentials
685
683
  #
686
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
684
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
685
+ # is deprecated. Providing an unvalidated credential configuration to
686
+ # Google APIs can compromise the security of your systems and data.
687
+ #
688
+ # @example
689
+ #
690
+ # # The recommended way to provide credentials is to use the `make_creds` method
691
+ # # on the appropriate credentials class for your environment.
692
+ #
693
+ # require "googleauth"
694
+ #
695
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
696
+ # json_key_io: ::File.open("/path/to/keyfile.json")
697
+ # )
698
+ #
699
+ # client = ::Google::Cloud::PolicySimulator::V1::OrgPolicyViolationsPreviewService::Client.new do |config|
700
+ # config.credentials = credentials
701
+ # end
702
+ #
703
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
687
704
  # external source for authentication to Google Cloud, you must validate it before
688
705
  # providing it to a Google API client library. Providing an unvalidated credential
689
706
  # 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.
@@ -563,8 +563,6 @@ module Google
563
563
  # @return [::String,nil]
564
564
  # @!attribute [rw] credentials
565
565
  # Credentials to send with calls. You may provide any of the following types:
566
- # * (`String`) The path to a service account key file in JSON format
567
- # * (`Hash`) A service account key as a Hash
568
566
  # * (`Google::Auth::Credentials`) A googleauth credentials object
569
567
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
570
568
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -573,7 +571,26 @@ module Google
573
571
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
574
572
  # * (`nil`) indicating no credentials
575
573
  #
576
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
574
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
575
+ # is deprecated. Providing an unvalidated credential configuration to
576
+ # Google APIs can compromise the security of your systems and data.
577
+ #
578
+ # @example
579
+ #
580
+ # # The recommended way to provide credentials is to use the `make_creds` method
581
+ # # on the appropriate credentials class for your environment.
582
+ #
583
+ # require "googleauth"
584
+ #
585
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
586
+ # json_key_io: ::File.open("/path/to/keyfile.json")
587
+ # )
588
+ #
589
+ # client = ::Google::Cloud::PolicySimulator::V1::Simulator::Client.new do |config|
590
+ # config.credentials = credentials
591
+ # end
592
+ #
593
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
577
594
  # external source for authentication to Google Cloud, you must validate it before
578
595
  # providing it to a Google API client library. Providing an unvalidated credential
579
596
  # 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 PolicySimulator
23
23
  module V1
24
- VERSION = "1.6.0"
24
+ VERSION = "1.6.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-policy_simulator-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC