google-cloud-speech-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: d30b2c0545ed2bf4b91aed47c477a3e250dcfa16216b5ce36334960021e43033
4
- data.tar.gz: 7d7194523cd5ee8a75079ecfb3dc9ebfbb2d93399037e9c243a411445c0594cd
3
+ metadata.gz: 1b246379028c209901631e6254fcc251f07ff616c4a40d066e210ecf60bfc83f
4
+ data.tar.gz: cd4e955eb3e0e31611a9f059384c89c0e128413d6fee6cf975f327f232fc1f4a
5
5
  SHA512:
6
- metadata.gz: 3e24b18ddb9e6ca9c261daa1dacf325f6be536a0550834272552ca82abe1f5bfedc1033b9b13f2b65a51cc6f609def3394631a387fa249a8dec0707c04da7b2e
7
- data.tar.gz: a9cb424f6fa56a438fc04113a40de6a1216aaf037c12a8e01ac923ced5e4e9a2361f37e354ed8bd6c6332fc8ba7fca6f66a69cbaecc0814c6ef64fd0623790c7
6
+ metadata.gz: c5d5e96b73d3013c8294e6d95b03242f3927f4b4547552a25620be9ef7337cd870b51f98e5b1bc9dab0db5ff976b0909a0de6c5109faa340c1568a2db036779c
7
+ data.tar.gz: 4f04261768634195cd0ecee08146ca110ce132c29f1693f8ad6458f83dac0ce7389973ebb37a249808b9e0a89cb17e68968ec72abf4dd3e0ff15663624c9c7cc
@@ -1200,8 +1200,6 @@ module Google
1200
1200
  # @return [::String,nil]
1201
1201
  # @!attribute [rw] credentials
1202
1202
  # Credentials to send with calls. You may provide any of the following types:
1203
- # * (`String`) The path to a service account key file in JSON format
1204
- # * (`Hash`) A service account key as a Hash
1205
1203
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1206
1204
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1207
1205
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1210,7 +1208,26 @@ module Google
1210
1208
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1211
1209
  # * (`nil`) indicating no credentials
1212
1210
  #
1213
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1211
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1212
+ # is deprecated. Providing an unvalidated credential configuration to
1213
+ # Google APIs can compromise the security of your systems and data.
1214
+ #
1215
+ # @example
1216
+ #
1217
+ # # The recommended way to provide credentials is to use the `make_creds` method
1218
+ # # on the appropriate credentials class for your environment.
1219
+ #
1220
+ # require "googleauth"
1221
+ #
1222
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1223
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1224
+ # )
1225
+ #
1226
+ # client = ::Google::Cloud::Speech::V1::Adaptation::Client.new do |config|
1227
+ # config.credentials = credentials
1228
+ # end
1229
+ #
1230
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1214
1231
  # external source for authentication to Google Cloud, you must validate it before
1215
1232
  # providing it to a Google API client library. Providing an unvalidated credential
1216
1233
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -500,8 +500,6 @@ module Google
500
500
  # @return [::String,nil]
501
501
  # @!attribute [rw] credentials
502
502
  # Credentials to send with calls. You may provide any of the following types:
503
- # * (`String`) The path to a service account key file in JSON format
504
- # * (`Hash`) A service account key as a Hash
505
503
  # * (`Google::Auth::Credentials`) A googleauth credentials object
506
504
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
507
505
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -510,7 +508,26 @@ module Google
510
508
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
511
509
  # * (`nil`) indicating no credentials
512
510
  #
513
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
511
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
512
+ # is deprecated. Providing an unvalidated credential configuration to
513
+ # Google APIs can compromise the security of your systems and data.
514
+ #
515
+ # @example
516
+ #
517
+ # # The recommended way to provide credentials is to use the `make_creds` method
518
+ # # on the appropriate credentials class for your environment.
519
+ #
520
+ # require "googleauth"
521
+ #
522
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
523
+ # json_key_io: ::File.open("/path/to/keyfile.json")
524
+ # )
525
+ #
526
+ # client = ::Google::Cloud::Speech::V1::Speech::Client.new do |config|
527
+ # config.credentials = credentials
528
+ # end
529
+ #
530
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
514
531
  # external source for authentication to Google Cloud, you must validate it before
515
532
  # providing it to a Google API client library. Providing an unvalidated credential
516
533
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -634,8 +634,6 @@ module Google
634
634
  # @return [::String,nil]
635
635
  # @!attribute [rw] credentials
636
636
  # Credentials to send with calls. You may provide any of the following types:
637
- # * (`String`) The path to a service account key file in JSON format
638
- # * (`Hash`) A service account key as a Hash
639
637
  # * (`Google::Auth::Credentials`) A googleauth credentials object
640
638
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
641
639
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -644,7 +642,26 @@ module Google
644
642
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
645
643
  # * (`nil`) indicating no credentials
646
644
  #
647
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
645
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
646
+ # is deprecated. Providing an unvalidated credential configuration to
647
+ # Google APIs can compromise the security of your systems and data.
648
+ #
649
+ # @example
650
+ #
651
+ # # The recommended way to provide credentials is to use the `make_creds` method
652
+ # # on the appropriate credentials class for your environment.
653
+ #
654
+ # require "googleauth"
655
+ #
656
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
657
+ # json_key_io: ::File.open("/path/to/keyfile.json")
658
+ # )
659
+ #
660
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
661
+ # config.credentials = credentials
662
+ # end
663
+ #
664
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
648
665
  # external source for authentication to Google Cloud, you must validate it before
649
666
  # providing it to a Google API client library. Providing an unvalidated credential
650
667
  # 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 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-speech-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