google-cloud-automl-v1 1.5.0 → 1.5.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e6ccd6e40989e9699dac44b60205ec2c36bdf751b1d6572d0a4667ead0f7281
4
- data.tar.gz: 65a670274e04db870606c2a64882632675e99e373e33de4e93dbe58df192f69f
3
+ metadata.gz: 677deacf966518166ad7ee5dc926a4e0e203bd4d35d4ad0463c6ef7f0a85a4a6
4
+ data.tar.gz: 3549b6163c6ecb049bf46265dc253042278402a28fd8f5b3174039520b8d0677
5
5
  SHA512:
6
- metadata.gz: 362e1e4be0c38839808e4457e64019d9ffa59a2aa6ba0856bf5201952fa3e88a8bf5e0f8a890c17a3ffc7d332d65d9919b7246a211e3ba9f3e319ae80600836e
7
- data.tar.gz: a6d70b4da579891f21398cc004987122430c0d69205e8da8760712abb95fed1965e8c82cd6132e8f0fe5b07247d001b5b6435c258cfac190838dbdda53563aad
6
+ metadata.gz: 7170eabc91226b079d013206516835f669f54503af3ef6f99f12fc520f4aae88827f29677056186c3a88e745cd8098e65dca40f934433f6f2ece5cecebcf4cf3
7
+ data.tar.gz: 233f1227c35df027aaafdcae9b8d7b80d7c20db94bdb0261bc1c9008ff63fa87b0776aa9c59bf23a5c930dc718a26597e37d4aab75c470bb089a849c5ab2eb2e
@@ -2059,8 +2059,6 @@ module Google
2059
2059
  # @return [::String,nil]
2060
2060
  # @!attribute [rw] credentials
2061
2061
  # Credentials to send with calls. You may provide any of the following types:
2062
- # * (`String`) The path to a service account key file in JSON format
2063
- # * (`Hash`) A service account key as a Hash
2064
2062
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2065
2063
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2066
2064
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -2069,7 +2067,26 @@ module Google
2069
2067
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2070
2068
  # * (`nil`) indicating no credentials
2071
2069
  #
2072
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
2070
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
2071
+ # is deprecated. Providing an unvalidated credential configuration to
2072
+ # Google APIs can compromise the security of your systems and data.
2073
+ #
2074
+ # @example
2075
+ #
2076
+ # # The recommended way to provide credentials is to use the `make_creds` method
2077
+ # # on the appropriate credentials class for your environment.
2078
+ #
2079
+ # require "googleauth"
2080
+ #
2081
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
2082
+ # json_key_io: ::File.open("/path/to/keyfile.json")
2083
+ # )
2084
+ #
2085
+ # client = ::Google::Cloud::AutoML::V1::AutoML::Client.new do |config|
2086
+ # config.credentials = credentials
2087
+ # end
2088
+ #
2089
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
2073
2090
  # external source for authentication to Google Cloud, you must validate it before
2074
2091
  # providing it to a Google API client library. Providing an unvalidated credential
2075
2092
  # 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.
@@ -590,8 +590,6 @@ module Google
590
590
  # @return [::String,nil]
591
591
  # @!attribute [rw] credentials
592
592
  # Credentials to send with calls. You may provide any of the following types:
593
- # * (`String`) The path to a service account key file in JSON format
594
- # * (`Hash`) A service account key as a Hash
595
593
  # * (`Google::Auth::Credentials`) A googleauth credentials object
596
594
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
597
595
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -600,7 +598,26 @@ module Google
600
598
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
601
599
  # * (`nil`) indicating no credentials
602
600
  #
603
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
601
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
602
+ # is deprecated. Providing an unvalidated credential configuration to
603
+ # Google APIs can compromise the security of your systems and data.
604
+ #
605
+ # @example
606
+ #
607
+ # # The recommended way to provide credentials is to use the `make_creds` method
608
+ # # on the appropriate credentials class for your environment.
609
+ #
610
+ # require "googleauth"
611
+ #
612
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
613
+ # json_key_io: ::File.open("/path/to/keyfile.json")
614
+ # )
615
+ #
616
+ # client = ::Google::Cloud::AutoML::V1::PredictionService::Client.new do |config|
617
+ # config.credentials = credentials
618
+ # end
619
+ #
620
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
604
621
  # external source for authentication to Google Cloud, you must validate it before
605
622
  # providing it to a Google API client library. Providing an unvalidated credential
606
623
  # 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 AutoML
23
23
  module V1
24
- VERSION = "1.5.0"
24
+ VERSION = "1.5.1"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-automl-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC