google-cloud-dialogflow-v2 1.12.0 → 1.12.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 (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/v2/agents/client.rb +20 -3
  3. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +20 -3
  4. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +20 -3
  5. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +20 -3
  6. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +20 -3
  7. data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +20 -3
  8. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +20 -3
  9. data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +20 -3
  10. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +20 -3
  11. data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +20 -3
  12. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +20 -3
  13. data/lib/google/cloud/dialogflow/v2/documents/client.rb +20 -3
  14. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +20 -3
  15. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/client.rb +20 -3
  16. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/operations.rb +20 -3
  17. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +20 -3
  18. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +20 -3
  19. data/lib/google/cloud/dialogflow/v2/environments/client.rb +20 -3
  20. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +20 -3
  21. data/lib/google/cloud/dialogflow/v2/generators/client.rb +20 -3
  22. data/lib/google/cloud/dialogflow/v2/intents/client.rb +20 -3
  23. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +20 -3
  24. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +20 -3
  25. data/lib/google/cloud/dialogflow/v2/participants/client.rb +20 -3
  26. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +20 -3
  27. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +20 -3
  28. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  29. data/lib/google/cloud/dialogflow/v2/versions/client.rb +20 -3
  30. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 797959e3c53bf45e2c3a62a8d5fef0b0fde83c6991fe7232f9b35d69236441da
4
- data.tar.gz: f96b3925f507ecd69840d8d2ab381382a1e2878c49d71e6cda465217e02b5a32
3
+ metadata.gz: 151d9f7d525fe68088a3253568acdfc36ba54d3ccc93f6a4a46e7d4c422ce795
4
+ data.tar.gz: 27aa1b3cc4abfa520fe098251e958ddd0c0ab3e512586efea8efb6222bc92f48
5
5
  SHA512:
6
- metadata.gz: 9a7b9f54ffe44e5dc65ecd45e0e3f72619acd7bc45a5088453e461a229cf64bcf3687854038b18b92ca358fba38f5b703aa1998c67ac19a7295058d7377c3eeb
7
- data.tar.gz: d64607393685056fe0e117f39bb961b37287fe905f63c219ceaec1be04e7755ddbbb70d71a1f602958199d5d5cca91a68c5ceb88036b2889928c5b282d56593c
6
+ metadata.gz: 793d377e58e641dd985f5f89626f45279850c69279b3dfc74f39042d6c4247f8de737d49cc5cd48a4d176a08ba70be12486111e89fd89b55d39cb2607fb1ff18
7
+ data.tar.gz: a7091855a2703ca6f3afda3e6ff380ed115601becc43a2d59efd840999d9aecdd76248c181d79c47b33f43b6f1446d018b8660e1cbbb69089ec65a0eda6c02de
@@ -1205,8 +1205,6 @@ module Google
1205
1205
  # @return [::String,nil]
1206
1206
  # @!attribute [rw] credentials
1207
1207
  # Credentials to send with calls. You may provide any of the following types:
1208
- # * (`String`) The path to a service account key file in JSON format
1209
- # * (`Hash`) A service account key as a Hash
1210
1208
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1211
1209
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1212
1210
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1215,7 +1213,26 @@ module Google
1215
1213
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1216
1214
  # * (`nil`) indicating no credentials
1217
1215
  #
1218
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1216
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1217
+ # is deprecated. Providing an unvalidated credential configuration to
1218
+ # Google APIs can compromise the security of your systems and data.
1219
+ #
1220
+ # @example
1221
+ #
1222
+ # # The recommended way to provide credentials is to use the `make_creds` method
1223
+ # # on the appropriate credentials class for your environment.
1224
+ #
1225
+ # require "googleauth"
1226
+ #
1227
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1228
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1229
+ # )
1230
+ #
1231
+ # client = ::Google::Cloud::Dialogflow::V2::Agents::Client.new do |config|
1232
+ # config.credentials = credentials
1233
+ # end
1234
+ #
1235
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1219
1236
  # external source for authentication to Google Cloud, you must validate it before
1220
1237
  # providing it to a Google API client library. Providing an unvalidated credential
1221
1238
  # 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.
@@ -447,8 +447,6 @@ module Google
447
447
  # @return [::String,nil]
448
448
  # @!attribute [rw] credentials
449
449
  # Credentials to send with calls. You may provide any of the following types:
450
- # * (`String`) The path to a service account key file in JSON format
451
- # * (`Hash`) A service account key as a Hash
452
450
  # * (`Google::Auth::Credentials`) A googleauth credentials object
453
451
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
454
452
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -457,7 +455,26 @@ module Google
457
455
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
458
456
  # * (`nil`) indicating no credentials
459
457
  #
460
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
458
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
459
+ # is deprecated. Providing an unvalidated credential configuration to
460
+ # Google APIs can compromise the security of your systems and data.
461
+ #
462
+ # @example
463
+ #
464
+ # # The recommended way to provide credentials is to use the `make_creds` method
465
+ # # on the appropriate credentials class for your environment.
466
+ #
467
+ # require "googleauth"
468
+ #
469
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
470
+ # json_key_io: ::File.open("/path/to/keyfile.json")
471
+ # )
472
+ #
473
+ # client = ::Google::Cloud::Dialogflow::V2::AnswerRecords::Client.new do |config|
474
+ # config.credentials = credentials
475
+ # end
476
+ #
477
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
461
478
  # external source for authentication to Google Cloud, you must validate it before
462
479
  # providing it to a Google API client library. Providing an unvalidated credential
463
480
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -791,8 +791,6 @@ module Google
791
791
  # @return [::String,nil]
792
792
  # @!attribute [rw] credentials
793
793
  # Credentials to send with calls. You may provide any of the following types:
794
- # * (`String`) The path to a service account key file in JSON format
795
- # * (`Hash`) A service account key as a Hash
796
794
  # * (`Google::Auth::Credentials`) A googleauth credentials object
797
795
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
798
796
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -801,7 +799,26 @@ module Google
801
799
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
802
800
  # * (`nil`) indicating no credentials
803
801
  #
804
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
802
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
803
+ # is deprecated. Providing an unvalidated credential configuration to
804
+ # Google APIs can compromise the security of your systems and data.
805
+ #
806
+ # @example
807
+ #
808
+ # # The recommended way to provide credentials is to use the `make_creds` method
809
+ # # on the appropriate credentials class for your environment.
810
+ #
811
+ # require "googleauth"
812
+ #
813
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
814
+ # json_key_io: ::File.open("/path/to/keyfile.json")
815
+ # )
816
+ #
817
+ # client = ::Google::Cloud::Dialogflow::V2::Contexts::Client.new do |config|
818
+ # config.credentials = credentials
819
+ # end
820
+ #
821
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
805
822
  # external source for authentication to Google Cloud, you must validate it before
806
823
  # providing it to a Google API client library. Providing an unvalidated credential
807
824
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -761,8 +761,6 @@ module Google
761
761
  # @return [::String,nil]
762
762
  # @!attribute [rw] credentials
763
763
  # Credentials to send with calls. You may provide any of the following types:
764
- # * (`String`) The path to a service account key file in JSON format
765
- # * (`Hash`) A service account key as a Hash
766
764
  # * (`Google::Auth::Credentials`) A googleauth credentials object
767
765
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
768
766
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -771,7 +769,26 @@ module Google
771
769
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
772
770
  # * (`nil`) indicating no credentials
773
771
  #
774
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
772
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
773
+ # is deprecated. Providing an unvalidated credential configuration to
774
+ # Google APIs can compromise the security of your systems and data.
775
+ #
776
+ # @example
777
+ #
778
+ # # The recommended way to provide credentials is to use the `make_creds` method
779
+ # # on the appropriate credentials class for your environment.
780
+ #
781
+ # require "googleauth"
782
+ #
783
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
784
+ # json_key_io: ::File.open("/path/to/keyfile.json")
785
+ # )
786
+ #
787
+ # client = ::Google::Cloud::Dialogflow::V2::ConversationDatasets::Client.new do |config|
788
+ # config.credentials = credentials
789
+ # end
790
+ #
791
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
775
792
  # external source for authentication to Google Cloud, you must validate it before
776
793
  # providing it to a Google API client library. Providing an unvalidated credential
777
794
  # 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.
@@ -1142,8 +1142,6 @@ module Google
1142
1142
  # @return [::String,nil]
1143
1143
  # @!attribute [rw] credentials
1144
1144
  # Credentials to send with calls. You may provide any of the following types:
1145
- # * (`String`) The path to a service account key file in JSON format
1146
- # * (`Hash`) A service account key as a Hash
1147
1145
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1148
1146
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1149
1147
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1152,7 +1150,26 @@ module Google
1152
1150
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1153
1151
  # * (`nil`) indicating no credentials
1154
1152
  #
1155
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1153
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1154
+ # is deprecated. Providing an unvalidated credential configuration to
1155
+ # Google APIs can compromise the security of your systems and data.
1156
+ #
1157
+ # @example
1158
+ #
1159
+ # # The recommended way to provide credentials is to use the `make_creds` method
1160
+ # # on the appropriate credentials class for your environment.
1161
+ #
1162
+ # require "googleauth"
1163
+ #
1164
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1165
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1166
+ # )
1167
+ #
1168
+ # client = ::Google::Cloud::Dialogflow::V2::ConversationModels::Client.new do |config|
1169
+ # config.credentials = credentials
1170
+ # end
1171
+ #
1172
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1156
1173
  # external source for authentication to Google Cloud, you must validate it before
1157
1174
  # providing it to a Google API client library. Providing an unvalidated credential
1158
1175
  # 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.
@@ -943,8 +943,6 @@ module Google
943
943
  # @return [::String,nil]
944
944
  # @!attribute [rw] credentials
945
945
  # Credentials to send with calls. You may provide any of the following types:
946
- # * (`String`) The path to a service account key file in JSON format
947
- # * (`Hash`) A service account key as a Hash
948
946
  # * (`Google::Auth::Credentials`) A googleauth credentials object
949
947
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
950
948
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -953,7 +951,26 @@ module Google
953
951
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
954
952
  # * (`nil`) indicating no credentials
955
953
  #
956
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
954
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
955
+ # is deprecated. Providing an unvalidated credential configuration to
956
+ # Google APIs can compromise the security of your systems and data.
957
+ #
958
+ # @example
959
+ #
960
+ # # The recommended way to provide credentials is to use the `make_creds` method
961
+ # # on the appropriate credentials class for your environment.
962
+ #
963
+ # require "googleauth"
964
+ #
965
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
966
+ # json_key_io: ::File.open("/path/to/keyfile.json")
967
+ # )
968
+ #
969
+ # client = ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.new do |config|
970
+ # config.credentials = credentials
971
+ # end
972
+ #
973
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
957
974
  # external source for authentication to Google Cloud, you must validate it before
958
975
  # providing it to a Google API client library. Providing an unvalidated credential
959
976
  # 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.
@@ -1387,8 +1387,6 @@ module Google
1387
1387
  # @return [::String,nil]
1388
1388
  # @!attribute [rw] credentials
1389
1389
  # Credentials to send with calls. You may provide any of the following types:
1390
- # * (`String`) The path to a service account key file in JSON format
1391
- # * (`Hash`) A service account key as a Hash
1392
1390
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1393
1391
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1394
1392
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1397,7 +1395,26 @@ module Google
1397
1395
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1398
1396
  # * (`nil`) indicating no credentials
1399
1397
  #
1400
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1398
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1399
+ # is deprecated. Providing an unvalidated credential configuration to
1400
+ # Google APIs can compromise the security of your systems and data.
1401
+ #
1402
+ # @example
1403
+ #
1404
+ # # The recommended way to provide credentials is to use the `make_creds` method
1405
+ # # on the appropriate credentials class for your environment.
1406
+ #
1407
+ # require "googleauth"
1408
+ #
1409
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1410
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1411
+ # )
1412
+ #
1413
+ # client = ::Google::Cloud::Dialogflow::V2::Conversations::Client.new do |config|
1414
+ # config.credentials = credentials
1415
+ # end
1416
+ #
1417
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1401
1418
  # external source for authentication to Google Cloud, you must validate it before
1402
1419
  # providing it to a Google API client library. Providing an unvalidated credential
1403
1420
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -1132,8 +1132,6 @@ module Google
1132
1132
  # @return [::String,nil]
1133
1133
  # @!attribute [rw] credentials
1134
1134
  # Credentials to send with calls. You may provide any of the following types:
1135
- # * (`String`) The path to a service account key file in JSON format
1136
- # * (`Hash`) A service account key as a Hash
1137
1135
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1138
1136
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1139
1137
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1142,7 +1140,26 @@ module Google
1142
1140
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1143
1141
  # * (`nil`) indicating no credentials
1144
1142
  #
1145
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1143
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1144
+ # is deprecated. Providing an unvalidated credential configuration to
1145
+ # Google APIs can compromise the security of your systems and data.
1146
+ #
1147
+ # @example
1148
+ #
1149
+ # # The recommended way to provide credentials is to use the `make_creds` method
1150
+ # # on the appropriate credentials class for your environment.
1151
+ #
1152
+ # require "googleauth"
1153
+ #
1154
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1155
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1156
+ # )
1157
+ #
1158
+ # client = ::Google::Cloud::Dialogflow::V2::Documents::Client.new do |config|
1159
+ # config.credentials = credentials
1160
+ # end
1161
+ #
1162
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1146
1163
  # external source for authentication to Google Cloud, you must validate it before
1147
1164
  # providing it to a Google API client library. Providing an unvalidated credential
1148
1165
  # 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.
@@ -439,8 +439,6 @@ module Google
439
439
  # @return [::String,nil]
440
440
  # @!attribute [rw] credentials
441
441
  # Credentials to send with calls. You may provide any of the following types:
442
- # * (`String`) The path to a service account key file in JSON format
443
- # * (`Hash`) A service account key as a Hash
444
442
  # * (`Google::Auth::Credentials`) A googleauth credentials object
445
443
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
446
444
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -449,7 +447,26 @@ module Google
449
447
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
450
448
  # * (`nil`) indicating no credentials
451
449
  #
452
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
450
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
451
+ # is deprecated. Providing an unvalidated credential configuration to
452
+ # Google APIs can compromise the security of your systems and data.
453
+ #
454
+ # @example
455
+ #
456
+ # # The recommended way to provide credentials is to use the `make_creds` method
457
+ # # on the appropriate credentials class for your environment.
458
+ #
459
+ # require "googleauth"
460
+ #
461
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
462
+ # json_key_io: ::File.open("/path/to/keyfile.json")
463
+ # )
464
+ #
465
+ # client = ::Google::Cloud::Dialogflow::V2::EncryptionSpecService::Client.new do |config|
466
+ # config.credentials = credentials
467
+ # end
468
+ #
469
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
453
470
  # external source for authentication to Google Cloud, you must validate it before
454
471
  # providing it to a Google API client library. Providing an unvalidated credential
455
472
  # 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.
@@ -1325,8 +1325,6 @@ module Google
1325
1325
  # @return [::String,nil]
1326
1326
  # @!attribute [rw] credentials
1327
1327
  # Credentials to send with calls. You may provide any of the following types:
1328
- # * (`String`) The path to a service account key file in JSON format
1329
- # * (`Hash`) A service account key as a Hash
1330
1328
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1331
1329
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1332
1330
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1335,7 +1333,26 @@ module Google
1335
1333
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1336
1334
  # * (`nil`) indicating no credentials
1337
1335
  #
1338
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1336
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1337
+ # is deprecated. Providing an unvalidated credential configuration to
1338
+ # Google APIs can compromise the security of your systems and data.
1339
+ #
1340
+ # @example
1341
+ #
1342
+ # # The recommended way to provide credentials is to use the `make_creds` method
1343
+ # # on the appropriate credentials class for your environment.
1344
+ #
1345
+ # require "googleauth"
1346
+ #
1347
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1348
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1349
+ # )
1350
+ #
1351
+ # client = ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.new do |config|
1352
+ # config.credentials = credentials
1353
+ # end
1354
+ #
1355
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1339
1356
  # external source for authentication to Google Cloud, you must validate it before
1340
1357
  # providing it to a Google API client library. Providing an unvalidated credential
1341
1358
  # 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.
@@ -822,8 +822,6 @@ module Google
822
822
  # @return [::String,nil]
823
823
  # @!attribute [rw] credentials
824
824
  # Credentials to send with calls. You may provide any of the following types:
825
- # * (`String`) The path to a service account key file in JSON format
826
- # * (`Hash`) A service account key as a Hash
827
825
  # * (`Google::Auth::Credentials`) A googleauth credentials object
828
826
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
829
827
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -832,7 +830,26 @@ module Google
832
830
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
833
831
  # * (`nil`) indicating no credentials
834
832
  #
835
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
833
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
834
+ # is deprecated. Providing an unvalidated credential configuration to
835
+ # Google APIs can compromise the security of your systems and data.
836
+ #
837
+ # @example
838
+ #
839
+ # # The recommended way to provide credentials is to use the `make_creds` method
840
+ # # on the appropriate credentials class for your environment.
841
+ #
842
+ # require "googleauth"
843
+ #
844
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
845
+ # json_key_io: ::File.open("/path/to/keyfile.json")
846
+ # )
847
+ #
848
+ # client = ::Google::Cloud::Dialogflow::V2::Environments::Client.new do |config|
849
+ # config.credentials = credentials
850
+ # end
851
+ #
852
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
836
853
  # external source for authentication to Google Cloud, you must validate it before
837
854
  # providing it to a Google API client library. Providing an unvalidated credential
838
855
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -413,8 +413,6 @@ module Google
413
413
  # @return [::String,nil]
414
414
  # @!attribute [rw] credentials
415
415
  # Credentials to send with calls. You may provide any of the following types:
416
- # * (`String`) The path to a service account key file in JSON format
417
- # * (`Hash`) A service account key as a Hash
418
416
  # * (`Google::Auth::Credentials`) A googleauth credentials object
419
417
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
420
418
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -423,7 +421,26 @@ module Google
423
421
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
424
422
  # * (`nil`) indicating no credentials
425
423
  #
426
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
424
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
425
+ # is deprecated. Providing an unvalidated credential configuration to
426
+ # Google APIs can compromise the security of your systems and data.
427
+ #
428
+ # @example
429
+ #
430
+ # # The recommended way to provide credentials is to use the `make_creds` method
431
+ # # on the appropriate credentials class for your environment.
432
+ #
433
+ # require "googleauth"
434
+ #
435
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
436
+ # json_key_io: ::File.open("/path/to/keyfile.json")
437
+ # )
438
+ #
439
+ # client = ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.new do |config|
440
+ # config.credentials = credentials
441
+ # end
442
+ #
443
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
427
444
  # external source for authentication to Google Cloud, you must validate it before
428
445
  # providing it to a Google API client library. Providing an unvalidated credential
429
446
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -699,8 +699,6 @@ module Google
699
699
  # @return [::String,nil]
700
700
  # @!attribute [rw] credentials
701
701
  # Credentials to send with calls. You may provide any of the following types:
702
- # * (`String`) The path to a service account key file in JSON format
703
- # * (`Hash`) A service account key as a Hash
704
702
  # * (`Google::Auth::Credentials`) A googleauth credentials object
705
703
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
706
704
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -709,7 +707,26 @@ module Google
709
707
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
710
708
  # * (`nil`) indicating no credentials
711
709
  #
712
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
710
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
711
+ # is deprecated. Providing an unvalidated credential configuration to
712
+ # Google APIs can compromise the security of your systems and data.
713
+ #
714
+ # @example
715
+ #
716
+ # # The recommended way to provide credentials is to use the `make_creds` method
717
+ # # on the appropriate credentials class for your environment.
718
+ #
719
+ # require "googleauth"
720
+ #
721
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
722
+ # json_key_io: ::File.open("/path/to/keyfile.json")
723
+ # )
724
+ #
725
+ # client = ::Google::Cloud::Dialogflow::V2::Generators::Client.new do |config|
726
+ # config.credentials = credentials
727
+ # end
728
+ #
729
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
713
730
  # external source for authentication to Google Cloud, you must validate it before
714
731
  # providing it to a Google API client library. Providing an unvalidated credential
715
732
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -989,8 +989,6 @@ module Google
989
989
  # @return [::String,nil]
990
990
  # @!attribute [rw] credentials
991
991
  # Credentials to send with calls. You may provide any of the following types:
992
- # * (`String`) The path to a service account key file in JSON format
993
- # * (`Hash`) A service account key as a Hash
994
992
  # * (`Google::Auth::Credentials`) A googleauth credentials object
995
993
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
996
994
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -999,7 +997,26 @@ module Google
999
997
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1000
998
  # * (`nil`) indicating no credentials
1001
999
  #
1002
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1000
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1001
+ # is deprecated. Providing an unvalidated credential configuration to
1002
+ # Google APIs can compromise the security of your systems and data.
1003
+ #
1004
+ # @example
1005
+ #
1006
+ # # The recommended way to provide credentials is to use the `make_creds` method
1007
+ # # on the appropriate credentials class for your environment.
1008
+ #
1009
+ # require "googleauth"
1010
+ #
1011
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1012
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1013
+ # )
1014
+ #
1015
+ # client = ::Google::Cloud::Dialogflow::V2::Intents::Client.new do |config|
1016
+ # config.credentials = credentials
1017
+ # end
1018
+ #
1019
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1003
1020
  # external source for authentication to Google Cloud, you must validate it before
1004
1021
  # providing it to a Google API client library. Providing an unvalidated credential
1005
1022
  # 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.
@@ -718,8 +718,6 @@ module Google
718
718
  # @return [::String,nil]
719
719
  # @!attribute [rw] credentials
720
720
  # Credentials to send with calls. You may provide any of the following types:
721
- # * (`String`) The path to a service account key file in JSON format
722
- # * (`Hash`) A service account key as a Hash
723
721
  # * (`Google::Auth::Credentials`) A googleauth credentials object
724
722
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
725
723
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -728,7 +726,26 @@ module Google
728
726
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
729
727
  # * (`nil`) indicating no credentials
730
728
  #
731
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
729
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
730
+ # is deprecated. Providing an unvalidated credential configuration to
731
+ # Google APIs can compromise the security of your systems and data.
732
+ #
733
+ # @example
734
+ #
735
+ # # The recommended way to provide credentials is to use the `make_creds` method
736
+ # # on the appropriate credentials class for your environment.
737
+ #
738
+ # require "googleauth"
739
+ #
740
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
741
+ # json_key_io: ::File.open("/path/to/keyfile.json")
742
+ # )
743
+ #
744
+ # client = ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new do |config|
745
+ # config.credentials = credentials
746
+ # end
747
+ #
748
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
732
749
  # external source for authentication to Google Cloud, you must validate it before
733
750
  # providing it to a Google API client library. Providing an unvalidated credential
734
751
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -1233,8 +1233,6 @@ module Google
1233
1233
  # @return [::String,nil]
1234
1234
  # @!attribute [rw] credentials
1235
1235
  # Credentials to send with calls. You may provide any of the following types:
1236
- # * (`String`) The path to a service account key file in JSON format
1237
- # * (`Hash`) A service account key as a Hash
1238
1236
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1239
1237
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1240
1238
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1243,7 +1241,26 @@ module Google
1243
1241
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1244
1242
  # * (`nil`) indicating no credentials
1245
1243
  #
1246
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1244
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1245
+ # is deprecated. Providing an unvalidated credential configuration to
1246
+ # Google APIs can compromise the security of your systems and data.
1247
+ #
1248
+ # @example
1249
+ #
1250
+ # # The recommended way to provide credentials is to use the `make_creds` method
1251
+ # # on the appropriate credentials class for your environment.
1252
+ #
1253
+ # require "googleauth"
1254
+ #
1255
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1256
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1257
+ # )
1258
+ #
1259
+ # client = ::Google::Cloud::Dialogflow::V2::Participants::Client.new do |config|
1260
+ # config.credentials = credentials
1261
+ # end
1262
+ #
1263
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1247
1264
  # external source for authentication to Google Cloud, you must validate it before
1248
1265
  # providing it to a Google API client library. Providing an unvalidated credential
1249
1266
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -725,8 +725,6 @@ module Google
725
725
  # @return [::String,nil]
726
726
  # @!attribute [rw] credentials
727
727
  # Credentials to send with calls. You may provide any of the following types:
728
- # * (`String`) The path to a service account key file in JSON format
729
- # * (`Hash`) A service account key as a Hash
730
728
  # * (`Google::Auth::Credentials`) A googleauth credentials object
731
729
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
732
730
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -735,7 +733,26 @@ module Google
735
733
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
736
734
  # * (`nil`) indicating no credentials
737
735
  #
738
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
736
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
737
+ # is deprecated. Providing an unvalidated credential configuration to
738
+ # Google APIs can compromise the security of your systems and data.
739
+ #
740
+ # @example
741
+ #
742
+ # # The recommended way to provide credentials is to use the `make_creds` method
743
+ # # on the appropriate credentials class for your environment.
744
+ #
745
+ # require "googleauth"
746
+ #
747
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
748
+ # json_key_io: ::File.open("/path/to/keyfile.json")
749
+ # )
750
+ #
751
+ # client = ::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new do |config|
752
+ # config.credentials = credentials
753
+ # end
754
+ #
755
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
739
756
  # external source for authentication to Google Cloud, you must validate it before
740
757
  # providing it to a Google API client library. Providing an unvalidated credential
741
758
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -483,8 +483,6 @@ module Google
483
483
  # @return [::String,nil]
484
484
  # @!attribute [rw] credentials
485
485
  # Credentials to send with calls. You may provide any of the following types:
486
- # * (`String`) The path to a service account key file in JSON format
487
- # * (`Hash`) A service account key as a Hash
488
486
  # * (`Google::Auth::Credentials`) A googleauth credentials object
489
487
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
490
488
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -493,7 +491,26 @@ module Google
493
491
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
494
492
  # * (`nil`) indicating no credentials
495
493
  #
496
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
494
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
495
+ # is deprecated. Providing an unvalidated credential configuration to
496
+ # Google APIs can compromise the security of your systems and data.
497
+ #
498
+ # @example
499
+ #
500
+ # # The recommended way to provide credentials is to use the `make_creds` method
501
+ # # on the appropriate credentials class for your environment.
502
+ #
503
+ # require "googleauth"
504
+ #
505
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
506
+ # json_key_io: ::File.open("/path/to/keyfile.json")
507
+ # )
508
+ #
509
+ # client = ::Google::Cloud::Dialogflow::V2::Sessions::Client.new do |config|
510
+ # config.credentials = credentials
511
+ # end
512
+ #
513
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
497
514
  # external source for authentication to Google Cloud, you must validate it before
498
515
  # providing it to a Google API client library. Providing an unvalidated credential
499
516
  # 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 Dialogflow
23
23
  module V2
24
- VERSION = "1.12.0"
24
+ VERSION = "1.12.1"
25
25
  end
26
26
  end
27
27
  end
@@ -708,8 +708,6 @@ module Google
708
708
  # @return [::String,nil]
709
709
  # @!attribute [rw] credentials
710
710
  # Credentials to send with calls. You may provide any of the following types:
711
- # * (`String`) The path to a service account key file in JSON format
712
- # * (`Hash`) A service account key as a Hash
713
711
  # * (`Google::Auth::Credentials`) A googleauth credentials object
714
712
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
715
713
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -718,7 +716,26 @@ module Google
718
716
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
719
717
  # * (`nil`) indicating no credentials
720
718
  #
721
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
719
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
720
+ # is deprecated. Providing an unvalidated credential configuration to
721
+ # Google APIs can compromise the security of your systems and data.
722
+ #
723
+ # @example
724
+ #
725
+ # # The recommended way to provide credentials is to use the `make_creds` method
726
+ # # on the appropriate credentials class for your environment.
727
+ #
728
+ # require "googleauth"
729
+ #
730
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
731
+ # json_key_io: ::File.open("/path/to/keyfile.json")
732
+ # )
733
+ #
734
+ # client = ::Google::Cloud::Dialogflow::V2::Versions::Client.new do |config|
735
+ # config.credentials = credentials
736
+ # end
737
+ #
738
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
722
739
  # external source for authentication to Google Cloud, you must validate it before
723
740
  # providing it to a Google API client library. Providing an unvalidated credential
724
741
  # configuration to Google APIs can compromise the security of your systems and data.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC