google-cloud-ai_platform-v1 1.29.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 (66) 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 +126 -3
  44. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +99 -0
  45. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb +62 -0
  46. data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/client.rb +20 -3
  47. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/client.rb +20 -3
  48. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/operations.rb +20 -3
  49. data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +20 -3
  50. data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +20 -3
  51. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +20 -3
  52. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +20 -3
  53. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +20 -3
  54. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +20 -3
  55. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  56. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/client.rb +20 -3
  57. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/operations.rb +20 -3
  58. data/lib/google/cloud/ai_platform/v1/vertex_rag_service/client.rb +20 -3
  59. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +20 -3
  60. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +20 -3
  61. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +7 -1
  62. data/lib/google/cloud/aiplatform/v1/prediction_service_services_pb.rb +2 -0
  63. data/lib/google/cloud/aiplatform/v1/usage_metadata_pb.rb +47 -0
  64. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +84 -0
  65. data/proto_docs/google/cloud/aiplatform/v1/usage_metadata.rb +91 -0
  66. metadata +3 -1
@@ -415,6 +415,46 @@ module Google
415
415
  ::Gapic::Rest::TransportOperation.new response
416
416
  end
417
417
 
418
+ ##
419
+ # Baseline implementation for the embed_content REST call
420
+ #
421
+ # @param request_pb [::Google::Cloud::AIPlatform::V1::EmbedContentRequest]
422
+ # A request object representing the call parameters. Required.
423
+ # @param options [::Gapic::CallOptions]
424
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
425
+ #
426
+ # @yield [result, operation] Access the result along with the TransportOperation object
427
+ # @yieldparam result [::Google::Cloud::AIPlatform::V1::EmbedContentResponse]
428
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
429
+ #
430
+ # @return [::Google::Cloud::AIPlatform::V1::EmbedContentResponse]
431
+ # A result object deserialized from the server's reply
432
+ def embed_content request_pb, options = nil
433
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
434
+
435
+ verb, uri, query_string_params, body = ServiceStub.transcode_embed_content_request request_pb
436
+ query_string_params = if query_string_params.any?
437
+ query_string_params.to_h { |p| p.split "=", 2 }
438
+ else
439
+ {}
440
+ end
441
+
442
+ response = @client_stub.make_http_request(
443
+ verb,
444
+ uri: uri,
445
+ body: body || "",
446
+ params: query_string_params,
447
+ method_name: "embed_content",
448
+ options: options
449
+ )
450
+ operation = ::Gapic::Rest::TransportOperation.new response
451
+ result = ::Google::Cloud::AIPlatform::V1::EmbedContentResponse.decode_json response.body, ignore_unknown_fields: true
452
+ catch :response do
453
+ yield result, operation if block_given?
454
+ result
455
+ end
456
+ end
457
+
418
458
  ##
419
459
  # @private
420
460
  #
@@ -692,6 +732,28 @@ module Google
692
732
  )
693
733
  transcoder.transcode request_pb
694
734
  end
735
+
736
+ ##
737
+ # @private
738
+ #
739
+ # GRPC transcoding helper method for the embed_content REST call
740
+ #
741
+ # @param request_pb [::Google::Cloud::AIPlatform::V1::EmbedContentRequest]
742
+ # A request object representing the call parameters. Required.
743
+ # @return [Array(String, [String, nil], Hash{String => String})]
744
+ # Uri, Body, Query string parameters
745
+ def self.transcode_embed_content_request request_pb
746
+ transcoder = Gapic::Rest::GrpcTranscoder.new
747
+ .with_bindings(
748
+ uri_method: :post,
749
+ uri_template: "/v1/{model}:embedContent",
750
+ body: "*",
751
+ matches: [
752
+ ["model", %r{^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+/?$}, false]
753
+ ]
754
+ )
755
+ transcoder.transcode request_pb
756
+ end
695
757
  end
696
758
  end
697
759
  end
@@ -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::AIPlatform::V1::ReasoningEngineExecutionService::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.
@@ -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::ReasoningEngineService::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.
@@ -977,8 +977,6 @@ module Google
977
977
  # @return [::String,nil]
978
978
  # @!attribute [rw] credentials
979
979
  # Credentials to send with calls. You may provide any of the following types:
980
- # * (`String`) The path to a service account key file in JSON format
981
- # * (`Hash`) A service account key as a Hash
982
980
  # * (`Google::Auth::Credentials`) A googleauth credentials object
983
981
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
984
982
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -987,7 +985,26 @@ module Google
987
985
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
988
986
  # * (`nil`) indicating no credentials
989
987
  #
990
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
988
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
989
+ # is deprecated. Providing an unvalidated credential configuration to
990
+ # Google APIs can compromise the security of your systems and data.
991
+ #
992
+ # @example
993
+ #
994
+ # # The recommended way to provide credentials is to use the `make_creds` method
995
+ # # on the appropriate credentials class for your environment.
996
+ #
997
+ # require "googleauth"
998
+ #
999
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1000
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1001
+ # )
1002
+ #
1003
+ # client = ::Google::Cloud::AIPlatform::V1::ScheduleService::Client.new do |config|
1004
+ # config.credentials = credentials
1005
+ # end
1006
+ #
1007
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
991
1008
  # external source for authentication to Google Cloud, you must validate it before
992
1009
  # providing it to a Google API client library. Providing an unvalidated credential
993
1010
  # 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.
@@ -751,8 +751,6 @@ module Google
751
751
  # @return [::String,nil]
752
752
  # @!attribute [rw] credentials
753
753
  # Credentials to send with calls. You may provide any of the following types:
754
- # * (`String`) The path to a service account key file in JSON format
755
- # * (`Hash`) A service account key as a Hash
756
754
  # * (`Google::Auth::Credentials`) A googleauth credentials object
757
755
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
758
756
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -761,7 +759,26 @@ module Google
761
759
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
762
760
  # * (`nil`) indicating no credentials
763
761
  #
764
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
762
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
763
+ # is deprecated. Providing an unvalidated credential configuration to
764
+ # Google APIs can compromise the security of your systems and data.
765
+ #
766
+ # @example
767
+ #
768
+ # # The recommended way to provide credentials is to use the `make_creds` method
769
+ # # on the appropriate credentials class for your environment.
770
+ #
771
+ # require "googleauth"
772
+ #
773
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
774
+ # json_key_io: ::File.open("/path/to/keyfile.json")
775
+ # )
776
+ #
777
+ # client = ::Google::Cloud::AIPlatform::V1::SpecialistPoolService::Client.new do |config|
778
+ # config.credentials = credentials
779
+ # end
780
+ #
781
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
765
782
  # external source for authentication to Google Cloud, you must validate it before
766
783
  # providing it to a Google API client library. Providing an unvalidated credential
767
784
  # 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.
@@ -3159,8 +3159,6 @@ module Google
3159
3159
  # @return [::String,nil]
3160
3160
  # @!attribute [rw] credentials
3161
3161
  # Credentials to send with calls. You may provide any of the following types:
3162
- # * (`String`) The path to a service account key file in JSON format
3163
- # * (`Hash`) A service account key as a Hash
3164
3162
  # * (`Google::Auth::Credentials`) A googleauth credentials object
3165
3163
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
3166
3164
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -3169,7 +3167,26 @@ module Google
3169
3167
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
3170
3168
  # * (`nil`) indicating no credentials
3171
3169
  #
3172
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
3170
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
3171
+ # is deprecated. Providing an unvalidated credential configuration to
3172
+ # Google APIs can compromise the security of your systems and data.
3173
+ #
3174
+ # @example
3175
+ #
3176
+ # # The recommended way to provide credentials is to use the `make_creds` method
3177
+ # # on the appropriate credentials class for your environment.
3178
+ #
3179
+ # require "googleauth"
3180
+ #
3181
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
3182
+ # json_key_io: ::File.open("/path/to/keyfile.json")
3183
+ # )
3184
+ #
3185
+ # client = ::Google::Cloud::AIPlatform::V1::TensorboardService::Client.new do |config|
3186
+ # config.credentials = credentials
3187
+ # end
3188
+ #
3189
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
3173
3190
  # external source for authentication to Google Cloud, you must validate it before
3174
3191
  # providing it to a Google API client library. Providing an unvalidated credential
3175
3192
  # 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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AIPlatform
23
23
  module V1
24
- VERSION = "1.29.0"
24
+ VERSION = "1.30.1"
25
25
  end
26
26
  end
27
27
  end
@@ -1404,8 +1404,6 @@ module Google
1404
1404
  # @return [::String,nil]
1405
1405
  # @!attribute [rw] credentials
1406
1406
  # Credentials to send with calls. You may provide any of the following types:
1407
- # * (`String`) The path to a service account key file in JSON format
1408
- # * (`Hash`) A service account key as a Hash
1409
1407
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1410
1408
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1411
1409
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1414,7 +1412,26 @@ module Google
1414
1412
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1415
1413
  # * (`nil`) indicating no credentials
1416
1414
  #
1417
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1415
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1416
+ # is deprecated. Providing an unvalidated credential configuration to
1417
+ # Google APIs can compromise the security of your systems and data.
1418
+ #
1419
+ # @example
1420
+ #
1421
+ # # The recommended way to provide credentials is to use the `make_creds` method
1422
+ # # on the appropriate credentials class for your environment.
1423
+ #
1424
+ # require "googleauth"
1425
+ #
1426
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1427
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1428
+ # )
1429
+ #
1430
+ # client = ::Google::Cloud::AIPlatform::V1::VertexRagDataService::Client.new do |config|
1431
+ # config.credentials = credentials
1432
+ # end
1433
+ #
1434
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1418
1435
  # external source for authentication to Google Cloud, you must validate it before
1419
1436
  # providing it to a Google API client library. Providing an unvalidated credential
1420
1437
  # 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.
@@ -536,8 +536,6 @@ module Google
536
536
  # @return [::String,nil]
537
537
  # @!attribute [rw] credentials
538
538
  # Credentials to send with calls. You may provide any of the following types:
539
- # * (`String`) The path to a service account key file in JSON format
540
- # * (`Hash`) A service account key as a Hash
541
539
  # * (`Google::Auth::Credentials`) A googleauth credentials object
542
540
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
543
541
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -546,7 +544,26 @@ module Google
546
544
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
547
545
  # * (`nil`) indicating no credentials
548
546
  #
549
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
547
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
548
+ # is deprecated. Providing an unvalidated credential configuration to
549
+ # Google APIs can compromise the security of your systems and data.
550
+ #
551
+ # @example
552
+ #
553
+ # # The recommended way to provide credentials is to use the `make_creds` method
554
+ # # on the appropriate credentials class for your environment.
555
+ #
556
+ # require "googleauth"
557
+ #
558
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
559
+ # json_key_io: ::File.open("/path/to/keyfile.json")
560
+ # )
561
+ #
562
+ # client = ::Google::Cloud::AIPlatform::V1::VertexRagService::Client.new do |config|
563
+ # config.credentials = credentials
564
+ # end
565
+ #
566
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
550
567
  # external source for authentication to Google Cloud, you must validate it before
551
568
  # providing it to a Google API client library. Providing an unvalidated credential
552
569
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -1682,8 +1682,6 @@ module Google
1682
1682
  # @return [::String,nil]
1683
1683
  # @!attribute [rw] credentials
1684
1684
  # Credentials to send with calls. You may provide any of the following types:
1685
- # * (`String`) The path to a service account key file in JSON format
1686
- # * (`Hash`) A service account key as a Hash
1687
1685
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1688
1686
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1689
1687
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1692,7 +1690,26 @@ module Google
1692
1690
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1693
1691
  # * (`nil`) indicating no credentials
1694
1692
  #
1695
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1693
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1694
+ # is deprecated. Providing an unvalidated credential configuration to
1695
+ # Google APIs can compromise the security of your systems and data.
1696
+ #
1697
+ # @example
1698
+ #
1699
+ # # The recommended way to provide credentials is to use the `make_creds` method
1700
+ # # on the appropriate credentials class for your environment.
1701
+ #
1702
+ # require "googleauth"
1703
+ #
1704
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1705
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1706
+ # )
1707
+ #
1708
+ # client = ::Google::Cloud::AIPlatform::V1::VizierService::Client.new do |config|
1709
+ # config.credentials = credentials
1710
+ # end
1711
+ #
1712
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1696
1713
  # external source for authentication to Google Cloud, you must validate it before
1697
1714
  # providing it to a Google API client library. Providing an unvalidated credential
1698
1715
  # 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.