google-cloud-discovery_engine-v1beta 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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +20 -3
  3. data/lib/google/cloud/discovery_engine/v1beta/completion_service/operations.rb +20 -3
  4. data/lib/google/cloud/discovery_engine/v1beta/control_service/client.rb +20 -3
  5. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +20 -3
  6. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/client.rb +20 -3
  7. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/operations.rb +20 -3
  8. data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +20 -3
  9. data/lib/google/cloud/discovery_engine/v1beta/document_service/operations.rb +20 -3
  10. data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +20 -3
  11. data/lib/google/cloud/discovery_engine/v1beta/engine_service/operations.rb +20 -3
  12. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/client.rb +20 -3
  13. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/operations.rb +20 -3
  14. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +20 -3
  15. data/lib/google/cloud/discovery_engine/v1beta/project_service/client.rb +20 -3
  16. data/lib/google/cloud/discovery_engine/v1beta/project_service/operations.rb +20 -3
  17. data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +20 -3
  18. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +20 -3
  19. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/client.rb +20 -3
  20. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/operations.rb +20 -3
  21. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/client.rb +20 -3
  22. data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +20 -3
  23. data/lib/google/cloud/discovery_engine/v1beta/schema_service/operations.rb +20 -3
  24. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +20 -3
  25. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/client.rb +20 -3
  26. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/operations.rb +20 -3
  27. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +20 -3
  28. data/lib/google/cloud/discovery_engine/v1beta/session_service/client.rb +20 -3
  29. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +20 -3
  30. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/operations.rb +20 -3
  31. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +20 -3
  32. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/operations.rb +20 -3
  33. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  34. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e914a75e7ec7660b0701df22da8c8d698117ab29a5e05c596d2f4c654e98da34
4
- data.tar.gz: 73c41e4286bef290cf357a5f2252d0f06f877ad4f128df9d64d8c4286464531a
3
+ metadata.gz: bfde689308455d5d15f75b8dd68a9ff39e527f3aa1b4d015100769708fbf98af
4
+ data.tar.gz: 3e356a32384bc846acf988588e29f22d0af5bb06d76e5da7bf76ac1a470fdc5e
5
5
  SHA512:
6
- metadata.gz: 4f6feaba3c4dff61966f148b08978a904000dfe896a47bae37f4ae25d74748531aa8468740bbe3264359d9da254dd326566be113ae168ee984f4517976a4321a
7
- data.tar.gz: 76a642af566962040ede0e5a506093393695357e5ca6bff0789ddca5718369f20af6303f79f311b420a8d0bb765726753a7408933f06ee0129d005a83a2707ca
6
+ metadata.gz: a8fce17645b17143b278e7b89355ce4a89f39147da9bbd9303e5dd9ff58758a848eadd8b528b0f227bdda221565e870bde6d25f900d28c241f9c727631810322
7
+ data.tar.gz: dfc4e434ccd601f93f122bb17f18e9cb9dc11ac2de1bd3decd719280d073be92fc9fc03a46dc591a5314f2b03a6a7213e111a05a4a695ffe94fb9156f4aa2b4c
@@ -948,8 +948,6 @@ module Google
948
948
  # @return [::String,nil]
949
949
  # @!attribute [rw] credentials
950
950
  # Credentials to send with calls. You may provide any of the following types:
951
- # * (`String`) The path to a service account key file in JSON format
952
- # * (`Hash`) A service account key as a Hash
953
951
  # * (`Google::Auth::Credentials`) A googleauth credentials object
954
952
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
955
953
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -958,7 +956,26 @@ module Google
958
956
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
959
957
  # * (`nil`) indicating no credentials
960
958
  #
961
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
959
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
960
+ # is deprecated. Providing an unvalidated credential configuration to
961
+ # Google APIs can compromise the security of your systems and data.
962
+ #
963
+ # @example
964
+ #
965
+ # # The recommended way to provide credentials is to use the `make_creds` method
966
+ # # on the appropriate credentials class for your environment.
967
+ #
968
+ # require "googleauth"
969
+ #
970
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
971
+ # json_key_io: ::File.open("/path/to/keyfile.json")
972
+ # )
973
+ #
974
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::CompletionService::Client.new do |config|
975
+ # config.credentials = credentials
976
+ # end
977
+ #
978
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
962
979
  # external source for authentication to Google Cloud, you must validate it before
963
980
  # providing it to a Google API client library. Providing an unvalidated credential
964
981
  # 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.
@@ -723,8 +723,6 @@ module Google
723
723
  # @return [::String,nil]
724
724
  # @!attribute [rw] credentials
725
725
  # Credentials to send with calls. You may provide any of the following types:
726
- # * (`String`) The path to a service account key file in JSON format
727
- # * (`Hash`) A service account key as a Hash
728
726
  # * (`Google::Auth::Credentials`) A googleauth credentials object
729
727
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
730
728
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -733,7 +731,26 @@ module Google
733
731
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
734
732
  # * (`nil`) indicating no credentials
735
733
  #
736
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
734
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
735
+ # is deprecated. Providing an unvalidated credential configuration to
736
+ # Google APIs can compromise the security of your systems and data.
737
+ #
738
+ # @example
739
+ #
740
+ # # The recommended way to provide credentials is to use the `make_creds` method
741
+ # # on the appropriate credentials class for your environment.
742
+ #
743
+ # require "googleauth"
744
+ #
745
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
746
+ # json_key_io: ::File.open("/path/to/keyfile.json")
747
+ # )
748
+ #
749
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::ControlService::Client.new do |config|
750
+ # config.credentials = credentials
751
+ # end
752
+ #
753
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
737
754
  # external source for authentication to Google Cloud, you must validate it before
738
755
  # providing it to a Google API client library. Providing an unvalidated credential
739
756
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -1599,8 +1599,6 @@ module Google
1599
1599
  # @return [::String,nil]
1600
1600
  # @!attribute [rw] credentials
1601
1601
  # Credentials to send with calls. You may provide any of the following types:
1602
- # * (`String`) The path to a service account key file in JSON format
1603
- # * (`Hash`) A service account key as a Hash
1604
1602
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1605
1603
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1606
1604
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1609,7 +1607,26 @@ module Google
1609
1607
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1610
1608
  # * (`nil`) indicating no credentials
1611
1609
  #
1612
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1610
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1611
+ # is deprecated. Providing an unvalidated credential configuration to
1612
+ # Google APIs can compromise the security of your systems and data.
1613
+ #
1614
+ # @example
1615
+ #
1616
+ # # The recommended way to provide credentials is to use the `make_creds` method
1617
+ # # on the appropriate credentials class for your environment.
1618
+ #
1619
+ # require "googleauth"
1620
+ #
1621
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1622
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1623
+ # )
1624
+ #
1625
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Client.new do |config|
1626
+ # config.credentials = credentials
1627
+ # end
1628
+ #
1629
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1613
1630
  # external source for authentication to Google Cloud, you must validate it before
1614
1631
  # providing it to a Google API client library. Providing an unvalidated credential
1615
1632
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -792,8 +792,6 @@ module Google
792
792
  # @return [::String,nil]
793
793
  # @!attribute [rw] credentials
794
794
  # Credentials to send with calls. You may provide any of the following types:
795
- # * (`String`) The path to a service account key file in JSON format
796
- # * (`Hash`) A service account key as a Hash
797
795
  # * (`Google::Auth::Credentials`) A googleauth credentials object
798
796
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
799
797
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -802,7 +800,26 @@ module Google
802
800
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
803
801
  # * (`nil`) indicating no credentials
804
802
  #
805
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
803
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
804
+ # is deprecated. Providing an unvalidated credential configuration to
805
+ # Google APIs can compromise the security of your systems and data.
806
+ #
807
+ # @example
808
+ #
809
+ # # The recommended way to provide credentials is to use the `make_creds` method
810
+ # # on the appropriate credentials class for your environment.
811
+ #
812
+ # require "googleauth"
813
+ #
814
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
815
+ # json_key_io: ::File.open("/path/to/keyfile.json")
816
+ # )
817
+ #
818
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::DataStoreService::Client.new do |config|
819
+ # config.credentials = credentials
820
+ # end
821
+ #
822
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
806
823
  # external source for authentication to Google Cloud, you must validate it before
807
824
  # providing it to a Google API client library. Providing an unvalidated credential
808
825
  # 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.
@@ -1202,8 +1202,6 @@ module Google
1202
1202
  # @return [::String,nil]
1203
1203
  # @!attribute [rw] credentials
1204
1204
  # Credentials to send with calls. You may provide any of the following types:
1205
- # * (`String`) The path to a service account key file in JSON format
1206
- # * (`Hash`) A service account key as a Hash
1207
1205
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1208
1206
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1209
1207
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1212,7 +1210,26 @@ module Google
1212
1210
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1213
1211
  # * (`nil`) indicating no credentials
1214
1212
  #
1215
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1213
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1214
+ # is deprecated. Providing an unvalidated credential configuration to
1215
+ # Google APIs can compromise the security of your systems and data.
1216
+ #
1217
+ # @example
1218
+ #
1219
+ # # The recommended way to provide credentials is to use the `make_creds` method
1220
+ # # on the appropriate credentials class for your environment.
1221
+ #
1222
+ # require "googleauth"
1223
+ #
1224
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1225
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1226
+ # )
1227
+ #
1228
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::DocumentService::Client.new do |config|
1229
+ # config.credentials = credentials
1230
+ # end
1231
+ #
1232
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1216
1233
  # external source for authentication to Google Cloud, you must validate it before
1217
1234
  # providing it to a Google API client library. Providing an unvalidated credential
1218
1235
  # 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.
@@ -1021,8 +1021,6 @@ module Google
1021
1021
  # @return [::String,nil]
1022
1022
  # @!attribute [rw] credentials
1023
1023
  # Credentials to send with calls. You may provide any of the following types:
1024
- # * (`String`) The path to a service account key file in JSON format
1025
- # * (`Hash`) A service account key as a Hash
1026
1024
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1027
1025
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1028
1026
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1031,7 +1029,26 @@ module Google
1031
1029
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1032
1030
  # * (`nil`) indicating no credentials
1033
1031
  #
1034
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1032
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1033
+ # is deprecated. Providing an unvalidated credential configuration to
1034
+ # Google APIs can compromise the security of your systems and data.
1035
+ #
1036
+ # @example
1037
+ #
1038
+ # # The recommended way to provide credentials is to use the `make_creds` method
1039
+ # # on the appropriate credentials class for your environment.
1040
+ #
1041
+ # require "googleauth"
1042
+ #
1043
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1044
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1045
+ # )
1046
+ #
1047
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::EngineService::Client.new do |config|
1048
+ # config.credentials = credentials
1049
+ # end
1050
+ #
1051
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1035
1052
  # external source for authentication to Google Cloud, you must validate it before
1036
1053
  # providing it to a Google API client library. Providing an unvalidated credential
1037
1054
  # 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.
@@ -682,8 +682,6 @@ module Google
682
682
  # @return [::String,nil]
683
683
  # @!attribute [rw] credentials
684
684
  # Credentials to send with calls. You may provide any of the following types:
685
- # * (`String`) The path to a service account key file in JSON format
686
- # * (`Hash`) A service account key as a Hash
687
685
  # * (`Google::Auth::Credentials`) A googleauth credentials object
688
686
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
689
687
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -692,7 +690,26 @@ module Google
692
690
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
693
691
  # * (`nil`) indicating no credentials
694
692
  #
695
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
693
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
694
+ # is deprecated. Providing an unvalidated credential configuration to
695
+ # Google APIs can compromise the security of your systems and data.
696
+ #
697
+ # @example
698
+ #
699
+ # # The recommended way to provide credentials is to use the `make_creds` method
700
+ # # on the appropriate credentials class for your environment.
701
+ #
702
+ # require "googleauth"
703
+ #
704
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
705
+ # json_key_io: ::File.open("/path/to/keyfile.json")
706
+ # )
707
+ #
708
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::EvaluationService::Client.new do |config|
709
+ # config.credentials = credentials
710
+ # end
711
+ #
712
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
696
713
  # external source for authentication to Google Cloud, you must validate it before
697
714
  # providing it to a Google API client library. Providing an unvalidated credential
698
715
  # 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.
@@ -548,8 +548,6 @@ module Google
548
548
  # @return [::String,nil]
549
549
  # @!attribute [rw] credentials
550
550
  # Credentials to send with calls. You may provide any of the following types:
551
- # * (`String`) The path to a service account key file in JSON format
552
- # * (`Hash`) A service account key as a Hash
553
551
  # * (`Google::Auth::Credentials`) A googleauth credentials object
554
552
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
555
553
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -558,7 +556,26 @@ module Google
558
556
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
559
557
  # * (`nil`) indicating no credentials
560
558
  #
561
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
559
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
560
+ # is deprecated. Providing an unvalidated credential configuration to
561
+ # Google APIs can compromise the security of your systems and data.
562
+ #
563
+ # @example
564
+ #
565
+ # # The recommended way to provide credentials is to use the `make_creds` method
566
+ # # on the appropriate credentials class for your environment.
567
+ #
568
+ # require "googleauth"
569
+ #
570
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
571
+ # json_key_io: ::File.open("/path/to/keyfile.json")
572
+ # )
573
+ #
574
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::GroundedGenerationService::Client.new do |config|
575
+ # config.credentials = credentials
576
+ # end
577
+ #
578
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
562
579
  # external source for authentication to Google Cloud, you must validate it before
563
580
  # providing it to a Google API client library. Providing an unvalidated credential
564
581
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -365,8 +365,6 @@ module Google
365
365
  # @return [::String,nil]
366
366
  # @!attribute [rw] credentials
367
367
  # Credentials to send with calls. You may provide any of the following types:
368
- # * (`String`) The path to a service account key file in JSON format
369
- # * (`Hash`) A service account key as a Hash
370
368
  # * (`Google::Auth::Credentials`) A googleauth credentials object
371
369
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
372
370
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -375,7 +373,26 @@ module Google
375
373
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
376
374
  # * (`nil`) indicating no credentials
377
375
  #
378
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
376
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
377
+ # is deprecated. Providing an unvalidated credential configuration to
378
+ # Google APIs can compromise the security of your systems and data.
379
+ #
380
+ # @example
381
+ #
382
+ # # The recommended way to provide credentials is to use the `make_creds` method
383
+ # # on the appropriate credentials class for your environment.
384
+ #
385
+ # require "googleauth"
386
+ #
387
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
388
+ # json_key_io: ::File.open("/path/to/keyfile.json")
389
+ # )
390
+ #
391
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::ProjectService::Client.new do |config|
392
+ # config.credentials = credentials
393
+ # end
394
+ #
395
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
379
396
  # external source for authentication to Google Cloud, you must validate it before
380
397
  # providing it to a Google API client library. Providing an unvalidated credential
381
398
  # 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.
@@ -360,8 +360,6 @@ module Google
360
360
  # @return [::String,nil]
361
361
  # @!attribute [rw] credentials
362
362
  # Credentials to send with calls. You may provide any of the following types:
363
- # * (`String`) The path to a service account key file in JSON format
364
- # * (`Hash`) A service account key as a Hash
365
363
  # * (`Google::Auth::Credentials`) A googleauth credentials object
366
364
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
367
365
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -370,7 +368,26 @@ module Google
370
368
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
371
369
  # * (`nil`) indicating no credentials
372
370
  #
373
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
371
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
372
+ # is deprecated. Providing an unvalidated credential configuration to
373
+ # Google APIs can compromise the security of your systems and data.
374
+ #
375
+ # @example
376
+ #
377
+ # # The recommended way to provide credentials is to use the `make_creds` method
378
+ # # on the appropriate credentials class for your environment.
379
+ #
380
+ # require "googleauth"
381
+ #
382
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
383
+ # json_key_io: ::File.open("/path/to/keyfile.json")
384
+ # )
385
+ #
386
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::RankService::Client.new do |config|
387
+ # config.credentials = credentials
388
+ # end
389
+ #
390
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
374
391
  # external source for authentication to Google Cloud, you must validate it before
375
392
  # providing it to a Google API client library. Providing an unvalidated credential
376
393
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -438,8 +438,6 @@ module Google
438
438
  # @return [::String,nil]
439
439
  # @!attribute [rw] credentials
440
440
  # Credentials to send with calls. You may provide any of the following types:
441
- # * (`String`) The path to a service account key file in JSON format
442
- # * (`Hash`) A service account key as a Hash
443
441
  # * (`Google::Auth::Credentials`) A googleauth credentials object
444
442
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
445
443
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -448,7 +446,26 @@ module Google
448
446
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
449
447
  # * (`nil`) indicating no credentials
450
448
  #
451
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
449
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
450
+ # is deprecated. Providing an unvalidated credential configuration to
451
+ # Google APIs can compromise the security of your systems and data.
452
+ #
453
+ # @example
454
+ #
455
+ # # The recommended way to provide credentials is to use the `make_creds` method
456
+ # # on the appropriate credentials class for your environment.
457
+ #
458
+ # require "googleauth"
459
+ #
460
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
461
+ # json_key_io: ::File.open("/path/to/keyfile.json")
462
+ # )
463
+ #
464
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::RecommendationService::Client.new do |config|
465
+ # config.credentials = credentials
466
+ # end
467
+ #
468
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
452
469
  # external source for authentication to Google Cloud, you must validate it before
453
470
  # providing it to a Google API client library. Providing an unvalidated credential
454
471
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -882,8 +882,6 @@ module Google
882
882
  # @return [::String,nil]
883
883
  # @!attribute [rw] credentials
884
884
  # Credentials to send with calls. You may provide any of the following types:
885
- # * (`String`) The path to a service account key file in JSON format
886
- # * (`Hash`) A service account key as a Hash
887
885
  # * (`Google::Auth::Credentials`) A googleauth credentials object
888
886
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
889
887
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -892,7 +890,26 @@ module Google
892
890
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
893
891
  # * (`nil`) indicating no credentials
894
892
  #
895
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
893
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
894
+ # is deprecated. Providing an unvalidated credential configuration to
895
+ # Google APIs can compromise the security of your systems and data.
896
+ #
897
+ # @example
898
+ #
899
+ # # The recommended way to provide credentials is to use the `make_creds` method
900
+ # # on the appropriate credentials class for your environment.
901
+ #
902
+ # require "googleauth"
903
+ #
904
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
905
+ # json_key_io: ::File.open("/path/to/keyfile.json")
906
+ # )
907
+ #
908
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::SampleQueryService::Client.new do |config|
909
+ # config.credentials = credentials
910
+ # end
911
+ #
912
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
896
913
  # external source for authentication to Google Cloud, you must validate it before
897
914
  # providing it to a Google API client library. Providing an unvalidated credential
898
915
  # 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.
@@ -759,8 +759,6 @@ module Google
759
759
  # @return [::String,nil]
760
760
  # @!attribute [rw] credentials
761
761
  # Credentials to send with calls. You may provide any of the following types:
762
- # * (`String`) The path to a service account key file in JSON format
763
- # * (`Hash`) A service account key as a Hash
764
762
  # * (`Google::Auth::Credentials`) A googleauth credentials object
765
763
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
766
764
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -769,7 +767,26 @@ module Google
769
767
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
770
768
  # * (`nil`) indicating no credentials
771
769
  #
772
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
770
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
771
+ # is deprecated. Providing an unvalidated credential configuration to
772
+ # Google APIs can compromise the security of your systems and data.
773
+ #
774
+ # @example
775
+ #
776
+ # # The recommended way to provide credentials is to use the `make_creds` method
777
+ # # on the appropriate credentials class for your environment.
778
+ #
779
+ # require "googleauth"
780
+ #
781
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
782
+ # json_key_io: ::File.open("/path/to/keyfile.json")
783
+ # )
784
+ #
785
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::SampleQuerySetService::Client.new do |config|
786
+ # config.credentials = credentials
787
+ # end
788
+ #
789
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
773
790
  # external source for authentication to Google Cloud, you must validate it before
774
791
  # providing it to a Google API client library. Providing an unvalidated credential
775
792
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -749,8 +749,6 @@ module Google
749
749
  # @return [::String,nil]
750
750
  # @!attribute [rw] credentials
751
751
  # Credentials to send with calls. You may provide any of the following types:
752
- # * (`String`) The path to a service account key file in JSON format
753
- # * (`Hash`) A service account key as a Hash
754
752
  # * (`Google::Auth::Credentials`) A googleauth credentials object
755
753
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
756
754
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -759,7 +757,26 @@ module Google
759
757
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
760
758
  # * (`nil`) indicating no credentials
761
759
  #
762
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
760
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
761
+ # is deprecated. Providing an unvalidated credential configuration to
762
+ # Google APIs can compromise the security of your systems and data.
763
+ #
764
+ # @example
765
+ #
766
+ # # The recommended way to provide credentials is to use the `make_creds` method
767
+ # # on the appropriate credentials class for your environment.
768
+ #
769
+ # require "googleauth"
770
+ #
771
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
772
+ # json_key_io: ::File.open("/path/to/keyfile.json")
773
+ # )
774
+ #
775
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::SchemaService::Client.new do |config|
776
+ # config.credentials = credentials
777
+ # end
778
+ #
779
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
763
780
  # external source for authentication to Google Cloud, you must validate it before
764
781
  # providing it to a Google API client library. Providing an unvalidated credential
765
782
  # 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.
@@ -1097,8 +1097,6 @@ module Google
1097
1097
  # @return [::String,nil]
1098
1098
  # @!attribute [rw] credentials
1099
1099
  # Credentials to send with calls. You may provide any of the following types:
1100
- # * (`String`) The path to a service account key file in JSON format
1101
- # * (`Hash`) A service account key as a Hash
1102
1100
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1103
1101
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1104
1102
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1107,7 +1105,26 @@ module Google
1107
1105
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1108
1106
  # * (`nil`) indicating no credentials
1109
1107
  #
1110
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1108
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1109
+ # is deprecated. Providing an unvalidated credential configuration to
1110
+ # Google APIs can compromise the security of your systems and data.
1111
+ #
1112
+ # @example
1113
+ #
1114
+ # # The recommended way to provide credentials is to use the `make_creds` method
1115
+ # # on the appropriate credentials class for your environment.
1116
+ #
1117
+ # require "googleauth"
1118
+ #
1119
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1120
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1121
+ # )
1122
+ #
1123
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::SearchService::Client.new do |config|
1124
+ # config.credentials = credentials
1125
+ # end
1126
+ #
1127
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1111
1128
  # external source for authentication to Google Cloud, you must validate it before
1112
1129
  # providing it to a Google API client library. Providing an unvalidated credential
1113
1130
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -443,8 +443,6 @@ module Google
443
443
  # @return [::String,nil]
444
444
  # @!attribute [rw] credentials
445
445
  # Credentials to send with calls. You may provide any of the following types:
446
- # * (`String`) The path to a service account key file in JSON format
447
- # * (`Hash`) A service account key as a Hash
448
446
  # * (`Google::Auth::Credentials`) A googleauth credentials object
449
447
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
450
448
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -453,7 +451,26 @@ module Google
453
451
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
454
452
  # * (`nil`) indicating no credentials
455
453
  #
456
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
454
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
455
+ # is deprecated. Providing an unvalidated credential configuration to
456
+ # Google APIs can compromise the security of your systems and data.
457
+ #
458
+ # @example
459
+ #
460
+ # # The recommended way to provide credentials is to use the `make_creds` method
461
+ # # on the appropriate credentials class for your environment.
462
+ #
463
+ # require "googleauth"
464
+ #
465
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
466
+ # json_key_io: ::File.open("/path/to/keyfile.json")
467
+ # )
468
+ #
469
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::SearchTuningService::Client.new do |config|
470
+ # config.credentials = credentials
471
+ # end
472
+ #
473
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
457
474
  # external source for authentication to Google Cloud, you must validate it before
458
475
  # providing it to a Google API client library. Providing an unvalidated credential
459
476
  # 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.
@@ -517,8 +517,6 @@ module Google
517
517
  # @return [::String,nil]
518
518
  # @!attribute [rw] credentials
519
519
  # Credentials to send with calls. You may provide any of the following types:
520
- # * (`String`) The path to a service account key file in JSON format
521
- # * (`Hash`) A service account key as a Hash
522
520
  # * (`Google::Auth::Credentials`) A googleauth credentials object
523
521
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
524
522
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -527,7 +525,26 @@ module Google
527
525
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
528
526
  # * (`nil`) indicating no credentials
529
527
  #
530
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
528
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
529
+ # is deprecated. Providing an unvalidated credential configuration to
530
+ # Google APIs can compromise the security of your systems and data.
531
+ #
532
+ # @example
533
+ #
534
+ # # The recommended way to provide credentials is to use the `make_creds` method
535
+ # # on the appropriate credentials class for your environment.
536
+ #
537
+ # require "googleauth"
538
+ #
539
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
540
+ # json_key_io: ::File.open("/path/to/keyfile.json")
541
+ # )
542
+ #
543
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::ServingConfigService::Client.new do |config|
544
+ # config.credentials = credentials
545
+ # end
546
+ #
547
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
531
548
  # external source for authentication to Google Cloud, you must validate it before
532
549
  # providing it to a Google API client library. Providing an unvalidated credential
533
550
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -738,8 +738,6 @@ module Google
738
738
  # @return [::String,nil]
739
739
  # @!attribute [rw] credentials
740
740
  # Credentials to send with calls. You may provide any of the following types:
741
- # * (`String`) The path to a service account key file in JSON format
742
- # * (`Hash`) A service account key as a Hash
743
741
  # * (`Google::Auth::Credentials`) A googleauth credentials object
744
742
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
745
743
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -748,7 +746,26 @@ module Google
748
746
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
749
747
  # * (`nil`) indicating no credentials
750
748
  #
751
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
749
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
750
+ # is deprecated. Providing an unvalidated credential configuration to
751
+ # Google APIs can compromise the security of your systems and data.
752
+ #
753
+ # @example
754
+ #
755
+ # # The recommended way to provide credentials is to use the `make_creds` method
756
+ # # on the appropriate credentials class for your environment.
757
+ #
758
+ # require "googleauth"
759
+ #
760
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
761
+ # json_key_io: ::File.open("/path/to/keyfile.json")
762
+ # )
763
+ #
764
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::SessionService::Client.new do |config|
765
+ # config.credentials = credentials
766
+ # end
767
+ #
768
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
752
769
  # external source for authentication to Google Cloud, you must validate it before
753
770
  # providing it to a Google API client library. Providing an unvalidated credential
754
771
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -1752,8 +1752,6 @@ module Google
1752
1752
  # @return [::String,nil]
1753
1753
  # @!attribute [rw] credentials
1754
1754
  # Credentials to send with calls. You may provide any of the following types:
1755
- # * (`String`) The path to a service account key file in JSON format
1756
- # * (`Hash`) A service account key as a Hash
1757
1755
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1758
1756
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1759
1757
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1762,7 +1760,26 @@ module Google
1762
1760
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1763
1761
  # * (`nil`) indicating no credentials
1764
1762
  #
1765
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1763
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1764
+ # is deprecated. Providing an unvalidated credential configuration to
1765
+ # Google APIs can compromise the security of your systems and data.
1766
+ #
1767
+ # @example
1768
+ #
1769
+ # # The recommended way to provide credentials is to use the `make_creds` method
1770
+ # # on the appropriate credentials class for your environment.
1771
+ #
1772
+ # require "googleauth"
1773
+ #
1774
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1775
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1776
+ # )
1777
+ #
1778
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::SiteSearchEngineService::Client.new do |config|
1779
+ # config.credentials = credentials
1780
+ # end
1781
+ #
1782
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1766
1783
  # external source for authentication to Google Cloud, you must validate it before
1767
1784
  # providing it to a Google API client library. Providing an unvalidated credential
1768
1785
  # 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.
@@ -707,8 +707,6 @@ module Google
707
707
  # @return [::String,nil]
708
708
  # @!attribute [rw] credentials
709
709
  # Credentials to send with calls. You may provide any of the following types:
710
- # * (`String`) The path to a service account key file in JSON format
711
- # * (`Hash`) A service account key as a Hash
712
710
  # * (`Google::Auth::Credentials`) A googleauth credentials object
713
711
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
714
712
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -717,7 +715,26 @@ module Google
717
715
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
718
716
  # * (`nil`) indicating no credentials
719
717
  #
720
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
718
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
719
+ # is deprecated. Providing an unvalidated credential configuration to
720
+ # Google APIs can compromise the security of your systems and data.
721
+ #
722
+ # @example
723
+ #
724
+ # # The recommended way to provide credentials is to use the `make_creds` method
725
+ # # on the appropriate credentials class for your environment.
726
+ #
727
+ # require "googleauth"
728
+ #
729
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
730
+ # json_key_io: ::File.open("/path/to/keyfile.json")
731
+ # )
732
+ #
733
+ # client = ::Google::Cloud::DiscoveryEngine::V1beta::UserEventService::Client.new do |config|
734
+ # config.credentials = credentials
735
+ # end
736
+ #
737
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
721
738
  # external source for authentication to Google Cloud, you must validate it before
722
739
  # providing it to a Google API client library. Providing an unvalidated credential
723
740
  # 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 DiscoveryEngine
23
23
  module V1beta
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-discovery_engine-v1beta
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