google-cloud-discovery_engine-v1beta 0.23.0 → 0.24.0
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 +4 -4
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/control_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/document_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/project_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/project_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/session_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/operations.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +2 -25
- data/lib/google/cloud/discoveryengine/v1beta/chunk_pb.rb +2 -24
- data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +2 -23
- data/lib/google/cloud/discoveryengine/v1beta/completion_pb.rb +2 -23
- data/lib/google/cloud/discoveryengine/v1beta/completion_service_pb.rb +2 -26
- data/lib/google/cloud/discoveryengine/v1beta/control_pb.rb +2 -24
- data/lib/google/cloud/discoveryengine/v1beta/control_service_pb.rb +2 -25
- data/lib/google/cloud/discoveryengine/v1beta/conversation_pb.rb +2 -25
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +2 -28
- data/lib/google/cloud/discoveryengine/v1beta/custom_tuning_model_pb.rb +2 -24
- data/lib/google/cloud/discoveryengine/v1beta/data_store_pb.rb +2 -26
- data/lib/google/cloud/discoveryengine/v1beta/data_store_service_pb.rb +2 -26
- data/lib/google/cloud/discoveryengine/v1beta/document_pb.rb +2 -26
- data/lib/google/cloud/discoveryengine/v1beta/document_processing_config_pb.rb +2 -23
- data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +2 -26
- data/lib/google/cloud/discoveryengine/v1beta/engine_pb.rb +2 -24
- data/lib/google/cloud/discoveryengine/v1beta/engine_service_pb.rb +2 -26
- data/lib/google/cloud/discoveryengine/v1beta/evaluation_pb.rb +2 -26
- data/lib/google/cloud/discoveryengine/v1beta/evaluation_service_pb.rb +2 -25
- data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +2 -24
- data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +2 -23
- data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +2 -31
- data/lib/google/cloud/discoveryengine/v1beta/project_pb.rb +2 -24
- data/lib/google/cloud/discoveryengine/v1beta/project_service_pb.rb +2 -23
- data/lib/google/cloud/discoveryengine/v1beta/purge_config_pb.rb +2 -26
- data/lib/google/cloud/discoveryengine/v1beta/rank_service_pb.rb +2 -23
- data/lib/google/cloud/discoveryengine/v1beta/recommendation_service_pb.rb +2 -26
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_pb.rb +2 -24
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_service_pb.rb +2 -25
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_pb.rb +2 -24
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_service_pb.rb +2 -25
- data/lib/google/cloud/discoveryengine/v1beta/schema_pb.rb +2 -24
- data/lib/google/cloud/discoveryengine/v1beta/schema_service_pb.rb +2 -25
- data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +2 -27
- data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_pb.rb +2 -27
- data/lib/google/cloud/discoveryengine/v1beta/serving_config_pb.rb +2 -26
- data/lib/google/cloud/discoveryengine/v1beta/serving_config_service_pb.rb +2 -25
- data/lib/google/cloud/discoveryengine/v1beta/session_pb.rb +2 -25
- data/lib/google/cloud/discoveryengine/v1beta/session_service_pb.rb +2 -23
- data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_pb.rb +2 -24
- data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_service_pb.rb +2 -25
- data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +2 -26
- data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +2 -24
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a6baa27ddda27ad6e1f8a194aeaf7a53f4cbdab3aa3378a361705a87b21e9b36
|
|
4
|
+
data.tar.gz: 9e6bb5940a2c2a3ee504a470b509e7235ecbd83d1ef7df73451292510fe7cbe3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f45900a13ef0911c590c568325ebdf3e5ba1944ed17fad39eca3c94d1bdc6f0e4b5a7a834faff67d8f7efc4e1336dbe2e5908df90593066a16229a9fad0f071
|
|
7
|
+
data.tar.gz: 28d82a457b06ab5399edf03289ed99b63853f64782f10abec6834ff48339184969766ca43f49c20253f90b7be8c14473190f4667b629d1b65b3a3acd49e558c8
|
|
@@ -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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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.
|