google-cloud-ai_platform-v1 1.30.0 → 1.30.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 (59) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/ai_platform/v1/data_foundry_service/client.rb +20 -3
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +20 -3
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +20 -3
  5. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +20 -3
  6. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +20 -3
  7. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +20 -3
  8. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +20 -3
  9. data/lib/google/cloud/ai_platform/v1/evaluation_service/client.rb +20 -3
  10. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +20 -3
  11. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +20 -3
  12. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +20 -3
  13. data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +20 -3
  14. data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +20 -3
  15. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +20 -3
  16. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +20 -3
  17. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +20 -3
  18. data/lib/google/cloud/ai_platform/v1/gen_ai_cache_service/client.rb +20 -3
  19. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +20 -3
  20. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/operations.rb +20 -3
  21. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +20 -3
  22. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +20 -3
  23. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +20 -3
  24. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +20 -3
  25. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +20 -3
  26. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +20 -3
  27. data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +20 -3
  28. data/lib/google/cloud/ai_platform/v1/match_service/client.rb +20 -3
  29. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +20 -3
  30. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +20 -3
  31. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +20 -3
  32. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +20 -3
  33. data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +20 -3
  34. data/lib/google/cloud/ai_platform/v1/model_garden_service/operations.rb +20 -3
  35. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +20 -3
  36. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +20 -3
  37. data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +20 -3
  38. data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +20 -3
  39. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/client.rb +20 -3
  40. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +20 -3
  41. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +20 -3
  42. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +20 -3
  43. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +20 -3
  44. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/client.rb +20 -3
  45. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/client.rb +20 -3
  46. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/operations.rb +20 -3
  47. data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +20 -3
  48. data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +20 -3
  49. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +20 -3
  50. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +20 -3
  51. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +20 -3
  52. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +20 -3
  53. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  54. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/client.rb +20 -3
  55. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/operations.rb +20 -3
  56. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/client.rb +20 -3
  57. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +20 -3
  58. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +20 -3
  59. metadata +1 -1
@@ -697,8 +697,6 @@ module Google
697
697
  # @return [::String,nil]
698
698
  # @!attribute [rw] credentials
699
699
  # Credentials to send with calls. You may provide any of the following types:
700
- # * (`String`) The path to a service account key file in JSON format
701
- # * (`Hash`) A service account key as a Hash
702
700
  # * (`Google::Auth::Credentials`) A googleauth credentials object
703
701
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
704
702
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -707,7 +705,26 @@ module Google
707
705
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
708
706
  # * (`nil`) indicating no credentials
709
707
  #
710
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
708
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
709
+ # is deprecated. Providing an unvalidated credential configuration to
710
+ # Google APIs can compromise the security of your systems and data.
711
+ #
712
+ # @example
713
+ #
714
+ # # The recommended way to provide credentials is to use the `make_creds` method
715
+ # # on the appropriate credentials class for your environment.
716
+ #
717
+ # require "googleauth"
718
+ #
719
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
720
+ # json_key_io: ::File.open("/path/to/keyfile.json")
721
+ # )
722
+ #
723
+ # client = ::Google::Cloud::AIPlatform::V1::GenAiCacheService::Client.new do |config|
724
+ # config.credentials = credentials
725
+ # end
726
+ #
727
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
711
728
  # external source for authentication to Google Cloud, you must validate it before
712
729
  # providing it to a Google API client library. Providing an unvalidated credential
713
730
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -743,8 +743,6 @@ module Google
743
743
  # @return [::String,nil]
744
744
  # @!attribute [rw] credentials
745
745
  # Credentials to send with calls. You may provide any of the following types:
746
- # * (`String`) The path to a service account key file in JSON format
747
- # * (`Hash`) A service account key as a Hash
748
746
  # * (`Google::Auth::Credentials`) A googleauth credentials object
749
747
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
750
748
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -753,7 +751,26 @@ module Google
753
751
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
754
752
  # * (`nil`) indicating no credentials
755
753
  #
756
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
754
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
755
+ # is deprecated. Providing an unvalidated credential configuration to
756
+ # Google APIs can compromise the security of your systems and data.
757
+ #
758
+ # @example
759
+ #
760
+ # # The recommended way to provide credentials is to use the `make_creds` method
761
+ # # on the appropriate credentials class for your environment.
762
+ #
763
+ # require "googleauth"
764
+ #
765
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
766
+ # json_key_io: ::File.open("/path/to/keyfile.json")
767
+ # )
768
+ #
769
+ # client = ::Google::Cloud::AIPlatform::V1::GenAiTuningService::Client.new do |config|
770
+ # config.credentials = credentials
771
+ # end
772
+ #
773
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
757
774
  # external source for authentication to Google Cloud, you must validate it before
758
775
  # providing it to a Google API client library. Providing an unvalidated credential
759
776
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -650,8 +650,6 @@ module Google
650
650
  # @return [::String,nil]
651
651
  # @!attribute [rw] credentials
652
652
  # Credentials to send with calls. You may provide any of the following types:
653
- # * (`String`) The path to a service account key file in JSON format
654
- # * (`Hash`) A service account key as a Hash
655
653
  # * (`Google::Auth::Credentials`) A googleauth credentials object
656
654
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
657
655
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -660,7 +658,26 @@ module Google
660
658
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
661
659
  # * (`nil`) indicating no credentials
662
660
  #
663
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
661
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
662
+ # is deprecated. Providing an unvalidated credential configuration to
663
+ # Google APIs can compromise the security of your systems and data.
664
+ #
665
+ # @example
666
+ #
667
+ # # The recommended way to provide credentials is to use the `make_creds` method
668
+ # # on the appropriate credentials class for your environment.
669
+ #
670
+ # require "googleauth"
671
+ #
672
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
673
+ # json_key_io: ::File.open("/path/to/keyfile.json")
674
+ # )
675
+ #
676
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
677
+ # config.credentials = credentials
678
+ # end
679
+ #
680
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
664
681
  # external source for authentication to Google Cloud, you must validate it before
665
682
  # providing it to a Google API client library. Providing an unvalidated credential
666
683
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -1056,8 +1056,6 @@ module Google
1056
1056
  # @return [::String,nil]
1057
1057
  # @!attribute [rw] credentials
1058
1058
  # Credentials to send with calls. You may provide any of the following types:
1059
- # * (`String`) The path to a service account key file in JSON format
1060
- # * (`Hash`) A service account key as a Hash
1061
1059
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1062
1060
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1063
1061
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1066,7 +1064,26 @@ module Google
1066
1064
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1067
1065
  # * (`nil`) indicating no credentials
1068
1066
  #
1069
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1067
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1068
+ # is deprecated. Providing an unvalidated credential configuration to
1069
+ # Google APIs can compromise the security of your systems and data.
1070
+ #
1071
+ # @example
1072
+ #
1073
+ # # The recommended way to provide credentials is to use the `make_creds` method
1074
+ # # on the appropriate credentials class for your environment.
1075
+ #
1076
+ # require "googleauth"
1077
+ #
1078
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1079
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1080
+ # )
1081
+ #
1082
+ # client = ::Google::Cloud::AIPlatform::V1::IndexEndpointService::Client.new do |config|
1083
+ # config.credentials = credentials
1084
+ # end
1085
+ #
1086
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1070
1087
  # external source for authentication to Google Cloud, you must validate it before
1071
1088
  # providing it to a Google API client library. Providing an unvalidated credential
1072
1089
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -650,8 +650,6 @@ module Google
650
650
  # @return [::String,nil]
651
651
  # @!attribute [rw] credentials
652
652
  # Credentials to send with calls. You may provide any of the following types:
653
- # * (`String`) The path to a service account key file in JSON format
654
- # * (`Hash`) A service account key as a Hash
655
653
  # * (`Google::Auth::Credentials`) A googleauth credentials object
656
654
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
657
655
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -660,7 +658,26 @@ module Google
660
658
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
661
659
  # * (`nil`) indicating no credentials
662
660
  #
663
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
661
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
662
+ # is deprecated. Providing an unvalidated credential configuration to
663
+ # Google APIs can compromise the security of your systems and data.
664
+ #
665
+ # @example
666
+ #
667
+ # # The recommended way to provide credentials is to use the `make_creds` method
668
+ # # on the appropriate credentials class for your environment.
669
+ #
670
+ # require "googleauth"
671
+ #
672
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
673
+ # json_key_io: ::File.open("/path/to/keyfile.json")
674
+ # )
675
+ #
676
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
677
+ # config.credentials = credentials
678
+ # end
679
+ #
680
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
664
681
  # external source for authentication to Google Cloud, you must validate it before
665
682
  # providing it to a Google API client library. Providing an unvalidated credential
666
683
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -936,8 +936,6 @@ module Google
936
936
  # @return [::String,nil]
937
937
  # @!attribute [rw] credentials
938
938
  # Credentials to send with calls. You may provide any of the following types:
939
- # * (`String`) The path to a service account key file in JSON format
940
- # * (`Hash`) A service account key as a Hash
941
939
  # * (`Google::Auth::Credentials`) A googleauth credentials object
942
940
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
943
941
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -946,7 +944,26 @@ module Google
946
944
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
947
945
  # * (`nil`) indicating no credentials
948
946
  #
949
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
947
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
948
+ # is deprecated. Providing an unvalidated credential configuration to
949
+ # Google APIs can compromise the security of your systems and data.
950
+ #
951
+ # @example
952
+ #
953
+ # # The recommended way to provide credentials is to use the `make_creds` method
954
+ # # on the appropriate credentials class for your environment.
955
+ #
956
+ # require "googleauth"
957
+ #
958
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
959
+ # json_key_io: ::File.open("/path/to/keyfile.json")
960
+ # )
961
+ #
962
+ # client = ::Google::Cloud::AIPlatform::V1::IndexService::Client.new do |config|
963
+ # config.credentials = credentials
964
+ # end
965
+ #
966
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
950
967
  # external source for authentication to Google Cloud, you must validate it before
951
968
  # providing it to a Google API client library. Providing an unvalidated credential
952
969
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -650,8 +650,6 @@ module Google
650
650
  # @return [::String,nil]
651
651
  # @!attribute [rw] credentials
652
652
  # Credentials to send with calls. You may provide any of the following types:
653
- # * (`String`) The path to a service account key file in JSON format
654
- # * (`Hash`) A service account key as a Hash
655
653
  # * (`Google::Auth::Credentials`) A googleauth credentials object
656
654
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
657
655
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -660,7 +658,26 @@ module Google
660
658
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
661
659
  # * (`nil`) indicating no credentials
662
660
  #
663
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
661
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
662
+ # is deprecated. Providing an unvalidated credential configuration to
663
+ # Google APIs can compromise the security of your systems and data.
664
+ #
665
+ # @example
666
+ #
667
+ # # The recommended way to provide credentials is to use the `make_creds` method
668
+ # # on the appropriate credentials class for your environment.
669
+ #
670
+ # require "googleauth"
671
+ #
672
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
673
+ # json_key_io: ::File.open("/path/to/keyfile.json")
674
+ # )
675
+ #
676
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
677
+ # config.credentials = credentials
678
+ # end
679
+ #
680
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
664
681
  # external source for authentication to Google Cloud, you must validate it before
665
682
  # providing it to a Google API client library. Providing an unvalidated credential
666
683
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -3726,8 +3726,6 @@ module Google
3726
3726
  # @return [::String,nil]
3727
3727
  # @!attribute [rw] credentials
3728
3728
  # Credentials to send with calls. You may provide any of the following types:
3729
- # * (`String`) The path to a service account key file in JSON format
3730
- # * (`Hash`) A service account key as a Hash
3731
3729
  # * (`Google::Auth::Credentials`) A googleauth credentials object
3732
3730
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
3733
3731
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -3736,7 +3734,26 @@ module Google
3736
3734
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
3737
3735
  # * (`nil`) indicating no credentials
3738
3736
  #
3739
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
3737
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
3738
+ # is deprecated. Providing an unvalidated credential configuration to
3739
+ # Google APIs can compromise the security of your systems and data.
3740
+ #
3741
+ # @example
3742
+ #
3743
+ # # The recommended way to provide credentials is to use the `make_creds` method
3744
+ # # on the appropriate credentials class for your environment.
3745
+ #
3746
+ # require "googleauth"
3747
+ #
3748
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
3749
+ # json_key_io: ::File.open("/path/to/keyfile.json")
3750
+ # )
3751
+ #
3752
+ # client = ::Google::Cloud::AIPlatform::V1::JobService::Client.new do |config|
3753
+ # config.credentials = credentials
3754
+ # end
3755
+ #
3756
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
3740
3757
  # external source for authentication to Google Cloud, you must validate it before
3741
3758
  # providing it to a Google API client library. Providing an unvalidated credential
3742
3759
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -650,8 +650,6 @@ module Google
650
650
  # @return [::String,nil]
651
651
  # @!attribute [rw] credentials
652
652
  # Credentials to send with calls. You may provide any of the following types:
653
- # * (`String`) The path to a service account key file in JSON format
654
- # * (`Hash`) A service account key as a Hash
655
653
  # * (`Google::Auth::Credentials`) A googleauth credentials object
656
654
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
657
655
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -660,7 +658,26 @@ module Google
660
658
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
661
659
  # * (`nil`) indicating no credentials
662
660
  #
663
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
661
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
662
+ # is deprecated. Providing an unvalidated credential configuration to
663
+ # Google APIs can compromise the security of your systems and data.
664
+ #
665
+ # @example
666
+ #
667
+ # # The recommended way to provide credentials is to use the `make_creds` method
668
+ # # on the appropriate credentials class for your environment.
669
+ #
670
+ # require "googleauth"
671
+ #
672
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
673
+ # json_key_io: ::File.open("/path/to/keyfile.json")
674
+ # )
675
+ #
676
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
677
+ # config.credentials = credentials
678
+ # end
679
+ #
680
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
664
681
  # external source for authentication to Google Cloud, you must validate it before
665
682
  # providing it to a Google API client library. Providing an unvalidated credential
666
683
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -456,8 +456,6 @@ module Google
456
456
  # @return [::String,nil]
457
457
  # @!attribute [rw] credentials
458
458
  # Credentials to send with calls. You may provide any of the following types:
459
- # * (`String`) The path to a service account key file in JSON format
460
- # * (`Hash`) A service account key as a Hash
461
459
  # * (`Google::Auth::Credentials`) A googleauth credentials object
462
460
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
463
461
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -466,7 +464,26 @@ module Google
466
464
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
467
465
  # * (`nil`) indicating no credentials
468
466
  #
469
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
467
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
468
+ # is deprecated. Providing an unvalidated credential configuration to
469
+ # Google APIs can compromise the security of your systems and data.
470
+ #
471
+ # @example
472
+ #
473
+ # # The recommended way to provide credentials is to use the `make_creds` method
474
+ # # on the appropriate credentials class for your environment.
475
+ #
476
+ # require "googleauth"
477
+ #
478
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
479
+ # json_key_io: ::File.open("/path/to/keyfile.json")
480
+ # )
481
+ #
482
+ # client = ::Google::Cloud::AIPlatform::V1::LlmUtilityService::Client.new do |config|
483
+ # config.credentials = credentials
484
+ # end
485
+ #
486
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
470
487
  # external source for authentication to Google Cloud, you must validate it before
471
488
  # providing it to a Google API client library. Providing an unvalidated credential
472
489
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -444,8 +444,6 @@ module Google
444
444
  # @return [::String,nil]
445
445
  # @!attribute [rw] credentials
446
446
  # Credentials to send with calls. You may provide any of the following types:
447
- # * (`String`) The path to a service account key file in JSON format
448
- # * (`Hash`) A service account key as a Hash
449
447
  # * (`Google::Auth::Credentials`) A googleauth credentials object
450
448
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
451
449
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -454,7 +452,26 @@ module Google
454
452
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
455
453
  # * (`nil`) indicating no credentials
456
454
  #
457
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
455
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
456
+ # is deprecated. Providing an unvalidated credential configuration to
457
+ # Google APIs can compromise the security of your systems and data.
458
+ #
459
+ # @example
460
+ #
461
+ # # The recommended way to provide credentials is to use the `make_creds` method
462
+ # # on the appropriate credentials class for your environment.
463
+ #
464
+ # require "googleauth"
465
+ #
466
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
467
+ # json_key_io: ::File.open("/path/to/keyfile.json")
468
+ # )
469
+ #
470
+ # client = ::Google::Cloud::AIPlatform::V1::MatchService::Client.new do |config|
471
+ # config.credentials = credentials
472
+ # end
473
+ #
474
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
458
475
  # external source for authentication to Google Cloud, you must validate it before
459
476
  # providing it to a Google API client library. Providing an unvalidated credential
460
477
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -3520,8 +3520,6 @@ module Google
3520
3520
  # @return [::String,nil]
3521
3521
  # @!attribute [rw] credentials
3522
3522
  # Credentials to send with calls. You may provide any of the following types:
3523
- # * (`String`) The path to a service account key file in JSON format
3524
- # * (`Hash`) A service account key as a Hash
3525
3523
  # * (`Google::Auth::Credentials`) A googleauth credentials object
3526
3524
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
3527
3525
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -3530,7 +3528,26 @@ module Google
3530
3528
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
3531
3529
  # * (`nil`) indicating no credentials
3532
3530
  #
3533
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
3531
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
3532
+ # is deprecated. Providing an unvalidated credential configuration to
3533
+ # Google APIs can compromise the security of your systems and data.
3534
+ #
3535
+ # @example
3536
+ #
3537
+ # # The recommended way to provide credentials is to use the `make_creds` method
3538
+ # # on the appropriate credentials class for your environment.
3539
+ #
3540
+ # require "googleauth"
3541
+ #
3542
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
3543
+ # json_key_io: ::File.open("/path/to/keyfile.json")
3544
+ # )
3545
+ #
3546
+ # client = ::Google::Cloud::AIPlatform::V1::MetadataService::Client.new do |config|
3547
+ # config.credentials = credentials
3548
+ # end
3549
+ #
3550
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
3534
3551
  # external source for authentication to Google Cloud, you must validate it before
3535
3552
  # providing it to a Google API client library. Providing an unvalidated credential
3536
3553
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -650,8 +650,6 @@ module Google
650
650
  # @return [::String,nil]
651
651
  # @!attribute [rw] credentials
652
652
  # Credentials to send with calls. You may provide any of the following types:
653
- # * (`String`) The path to a service account key file in JSON format
654
- # * (`Hash`) A service account key as a Hash
655
653
  # * (`Google::Auth::Credentials`) A googleauth credentials object
656
654
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
657
655
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -660,7 +658,26 @@ module Google
660
658
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
661
659
  # * (`nil`) indicating no credentials
662
660
  #
663
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
661
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
662
+ # is deprecated. Providing an unvalidated credential configuration to
663
+ # Google APIs can compromise the security of your systems and data.
664
+ #
665
+ # @example
666
+ #
667
+ # # The recommended way to provide credentials is to use the `make_creds` method
668
+ # # on the appropriate credentials class for your environment.
669
+ #
670
+ # require "googleauth"
671
+ #
672
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
673
+ # json_key_io: ::File.open("/path/to/keyfile.json")
674
+ # )
675
+ #
676
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
677
+ # config.credentials = credentials
678
+ # end
679
+ #
680
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
664
681
  # external source for authentication to Google Cloud, you must validate it before
665
682
  # providing it to a Google API client library. Providing an unvalidated credential
666
683
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -479,8 +479,6 @@ module Google
479
479
  # @return [::String,nil]
480
480
  # @!attribute [rw] credentials
481
481
  # Credentials to send with calls. You may provide any of the following types:
482
- # * (`String`) The path to a service account key file in JSON format
483
- # * (`Hash`) A service account key as a Hash
484
482
  # * (`Google::Auth::Credentials`) A googleauth credentials object
485
483
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
486
484
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -489,7 +487,26 @@ module Google
489
487
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
490
488
  # * (`nil`) indicating no credentials
491
489
  #
492
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
490
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
491
+ # is deprecated. Providing an unvalidated credential configuration to
492
+ # Google APIs can compromise the security of your systems and data.
493
+ #
494
+ # @example
495
+ #
496
+ # # The recommended way to provide credentials is to use the `make_creds` method
497
+ # # on the appropriate credentials class for your environment.
498
+ #
499
+ # require "googleauth"
500
+ #
501
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
502
+ # json_key_io: ::File.open("/path/to/keyfile.json")
503
+ # )
504
+ #
505
+ # client = ::Google::Cloud::AIPlatform::V1::MigrationService::Client.new do |config|
506
+ # config.credentials = credentials
507
+ # end
508
+ #
509
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
493
510
  # external source for authentication to Google Cloud, you must validate it before
494
511
  # providing it to a Google API client library. Providing an unvalidated credential
495
512
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -650,8 +650,6 @@ module Google
650
650
  # @return [::String,nil]
651
651
  # @!attribute [rw] credentials
652
652
  # Credentials to send with calls. You may provide any of the following types:
653
- # * (`String`) The path to a service account key file in JSON format
654
- # * (`Hash`) A service account key as a Hash
655
653
  # * (`Google::Auth::Credentials`) A googleauth credentials object
656
654
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
657
655
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -660,7 +658,26 @@ module Google
660
658
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
661
659
  # * (`nil`) indicating no credentials
662
660
  #
663
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
661
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
662
+ # is deprecated. Providing an unvalidated credential configuration to
663
+ # Google APIs can compromise the security of your systems and data.
664
+ #
665
+ # @example
666
+ #
667
+ # # The recommended way to provide credentials is to use the `make_creds` method
668
+ # # on the appropriate credentials class for your environment.
669
+ #
670
+ # require "googleauth"
671
+ #
672
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
673
+ # json_key_io: ::File.open("/path/to/keyfile.json")
674
+ # )
675
+ #
676
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
677
+ # config.credentials = credentials
678
+ # end
679
+ #
680
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
664
681
  # external source for authentication to Google Cloud, you must validate it before
665
682
  # providing it to a Google API client library. Providing an unvalidated credential
666
683
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -477,8 +477,6 @@ module Google
477
477
  # @return [::String,nil]
478
478
  # @!attribute [rw] credentials
479
479
  # Credentials to send with calls. You may provide any of the following types:
480
- # * (`String`) The path to a service account key file in JSON format
481
- # * (`Hash`) A service account key as a Hash
482
480
  # * (`Google::Auth::Credentials`) A googleauth credentials object
483
481
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
484
482
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -487,7 +485,26 @@ module Google
487
485
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
488
486
  # * (`nil`) indicating no credentials
489
487
  #
490
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
488
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
489
+ # is deprecated. Providing an unvalidated credential configuration to
490
+ # Google APIs can compromise the security of your systems and data.
491
+ #
492
+ # @example
493
+ #
494
+ # # The recommended way to provide credentials is to use the `make_creds` method
495
+ # # on the appropriate credentials class for your environment.
496
+ #
497
+ # require "googleauth"
498
+ #
499
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
500
+ # json_key_io: ::File.open("/path/to/keyfile.json")
501
+ # )
502
+ #
503
+ # client = ::Google::Cloud::AIPlatform::V1::ModelGardenService::Client.new do |config|
504
+ # config.credentials = credentials
505
+ # end
506
+ #
507
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
491
508
  # external source for authentication to Google Cloud, you must validate it before
492
509
  # providing it to a Google API client library. Providing an unvalidated credential
493
510
  # configuration to Google APIs can compromise the security of your systems and data.