google-cloud-speech-v1 1.4.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: c2e41e19a95363b6d16b395e91d7ff4eb7b055441064fc8db56da7e2f2f96b41
4
- data.tar.gz: 04bf320f4470abff8539e39bc30646c7059d96def74c735f0afbdfd918ed0b25
3
+ metadata.gz: 1b246379028c209901631e6254fcc251f07ff616c4a40d066e210ecf60bfc83f
4
+ data.tar.gz: cd4e955eb3e0e31611a9f059384c89c0e128413d6fee6cf975f327f232fc1f4a
5
5
  SHA512:
6
- metadata.gz: fac3d25dec59821f860e2ca23bf81d8e86eacf1809e159a8dafec6b6731410e80ff7481a73397995ff3013436aad6d5da764d78278e362ca5db1889da77a5c0e
7
- data.tar.gz: fc419d0e6af66bbd375c6bba96d536989a9ef7211395c623dd0ef8bbf26fa9933f43f5201351bee95e1c8faf9a309f8ac7296daf1ba16265a51852ae94fb37be
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.
@@ -134,7 +134,7 @@ module Google
134
134
  # @param options [::Gapic::CallOptions, ::Hash]
135
135
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
136
136
  #
137
- # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
137
+ # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil)
138
138
  # Pass arguments to `list_operations` via keyword arguments. Note that at
139
139
  # least one keyword argument is required. To specify no parameters, or to keep all
140
140
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -147,6 +147,17 @@ module Google
147
147
  # The standard list page size.
148
148
  # @param page_token [::String]
149
149
  # The standard list page token.
150
+ # @param return_partial_success [::Boolean]
151
+ # When set to `true`, operations that are reachable are returned as normal,
152
+ # and those that are unreachable are returned in the
153
+ # [ListOperationsResponse.unreachable] field.
154
+ #
155
+ # This can only be `true` when reading across collections e.g. when `parent`
156
+ # is set to `"projects/example/locations/-"`.
157
+ #
158
+ # This field is not by default supported and will result in an
159
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
160
+ # service or product specific documentation.
150
161
  #
151
162
  # @yield [response, operation] Access the result along with the RPC operation
152
163
  # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>]
@@ -623,8 +634,6 @@ module Google
623
634
  # @return [::String,nil]
624
635
  # @!attribute [rw] credentials
625
636
  # Credentials to send with calls. You may provide any of the following types:
626
- # * (`String`) The path to a service account key file in JSON format
627
- # * (`Hash`) A service account key as a Hash
628
637
  # * (`Google::Auth::Credentials`) A googleauth credentials object
629
638
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
630
639
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -633,7 +642,26 @@ module Google
633
642
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
634
643
  # * (`nil`) indicating no credentials
635
644
  #
636
- # 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
637
665
  # external source for authentication to Google Cloud, you must validate it before
638
666
  # providing it to a Google API client library. Providing an unvalidated credential
639
667
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -125,7 +125,7 @@ module Google
125
125
  # @param options [::Gapic::CallOptions, ::Hash]
126
126
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
127
127
  #
128
- # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
128
+ # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil)
129
129
  # Pass arguments to `list_operations` via keyword arguments. Note that at
130
130
  # least one keyword argument is required. To specify no parameters, or to keep all
131
131
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -138,6 +138,17 @@ module Google
138
138
  # The standard list page size.
139
139
  # @param page_token [::String]
140
140
  # The standard list page token.
141
+ # @param return_partial_success [::Boolean]
142
+ # When set to `true`, operations that are reachable are returned as normal,
143
+ # and those that are unreachable are returned in the
144
+ # [ListOperationsResponse.unreachable] field.
145
+ #
146
+ # This can only be `true` when reading across collections e.g. when `parent`
147
+ # is set to `"projects/example/locations/-"`.
148
+ #
149
+ # This field is not by default supported and will result in an
150
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
151
+ # service or product specific documentation.
141
152
  # @yield [result, operation] Access the result along with the TransportOperation object
142
153
  # @yieldparam result [::Gapic::Operation]
143
154
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Speech
23
23
  module V1
24
- VERSION = "1.4.0"
24
+ VERSION = "1.5.1"
25
25
  end
26
26
  end
27
27
  end
@@ -83,6 +83,18 @@ module Google
83
83
  # @!attribute [rw] page_token
84
84
  # @return [::String]
85
85
  # The standard list page token.
86
+ # @!attribute [rw] return_partial_success
87
+ # @return [::Boolean]
88
+ # When set to `true`, operations that are reachable are returned as normal,
89
+ # and those that are unreachable are returned in the
90
+ # [ListOperationsResponse.unreachable] field.
91
+ #
92
+ # This can only be `true` when reading across collections e.g. when `parent`
93
+ # is set to `"projects/example/locations/-"`.
94
+ #
95
+ # This field is not by default supported and will result in an
96
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
97
+ # service or product specific documentation.
86
98
  class ListOperationsRequest
87
99
  include ::Google::Protobuf::MessageExts
88
100
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -96,6 +108,12 @@ module Google
96
108
  # @!attribute [rw] next_page_token
97
109
  # @return [::String]
98
110
  # The standard List next-page token.
111
+ # @!attribute [rw] unreachable
112
+ # @return [::Array<::String>]
113
+ # Unordered list. Unreachable resources. Populated when the request sets
114
+ # `ListOperationsRequest.return_partial_success` and reads across
115
+ # collections e.g. when attempting to list all resources across all supported
116
+ # locations.
99
117
  class ListOperationsResponse
100
118
  include ::Google::Protobuf::MessageExts
101
119
  extend ::Google::Protobuf::MessageExts::ClassMethods
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.4.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC