google-cloud-speech-v2 1.4.0 → 1.4.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: dec7a6e34dfbc672078c9408a913a9a4bede2435bb8db289382d07eca87e35ef
4
- data.tar.gz: d8c801fbabc663b22b7f9ab821f9900c63e70acdca66376a2d8c78e45d17c5d6
3
+ metadata.gz: 7ddaf536effac95a3f693562ffc0aaea68c7cc7c7759e65347748ac4c2fb1b9e
4
+ data.tar.gz: 6b085b99b813caa3f7955542c5f2bb2283ad3e3670c61f4c9ba5696a6d7dc515
5
5
  SHA512:
6
- metadata.gz: eb9303883574ed8f8b6d56670f88d2a74e272ce12200d9767b69b9c2ef9a588603099f50d451cc1b82382d6dc2ae64a72b05780d02a18afdf0b5bfef49bab35f
7
- data.tar.gz: 56838664c695a140df89fcea7c0f0c291d8184958dd97544549c698b4829d405dbef7687d97fe001d2e6fda1b24e1e517b44fe82c344979b4ece447da2a20d48
6
+ metadata.gz: e3f56d6fbf58554dcbd9d5f87fecbf2c4d617768101eb6f2d6d65312f56ec013ad8395ad414bd0664f07fa8b401e96f18ee24da48117233ffdcdefc81a33b32e
7
+ data.tar.gz: 3e621ea3c1ed93d68f8b8131b68255be16559f5642e4ed88e568a6b48fb4f39b8d21a64353c091165e4d17e03b4a04c794c4ec7169c725770e2b38998b45e794
@@ -2597,8 +2597,6 @@ module Google
2597
2597
  # @return [::String,nil]
2598
2598
  # @!attribute [rw] credentials
2599
2599
  # Credentials to send with calls. You may provide any of the following types:
2600
- # * (`String`) The path to a service account key file in JSON format
2601
- # * (`Hash`) A service account key as a Hash
2602
2600
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2603
2601
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2604
2602
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -2607,7 +2605,26 @@ module Google
2607
2605
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2608
2606
  # * (`nil`) indicating no credentials
2609
2607
  #
2610
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
2608
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
2609
+ # is deprecated. Providing an unvalidated credential configuration to
2610
+ # Google APIs can compromise the security of your systems and data.
2611
+ #
2612
+ # @example
2613
+ #
2614
+ # # The recommended way to provide credentials is to use the `make_creds` method
2615
+ # # on the appropriate credentials class for your environment.
2616
+ #
2617
+ # require "googleauth"
2618
+ #
2619
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
2620
+ # json_key_io: ::File.open("/path/to/keyfile.json")
2621
+ # )
2622
+ #
2623
+ # client = ::Google::Cloud::Speech::V2::Speech::Client.new do |config|
2624
+ # config.credentials = credentials
2625
+ # end
2626
+ #
2627
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
2611
2628
  # external source for authentication to Google Cloud, you must validate it before
2612
2629
  # providing it to a Google API client library. Providing an unvalidated credential
2613
2630
  # 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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Speech
23
23
  module V2
24
- VERSION = "1.4.0"
24
+ VERSION = "1.4.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-speech-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC