google-cloud-location 0.3.beta.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 024b4e76ec465464831b0d0a7bf112f073af6b876f1b018f943affda9fb968e4
4
- data.tar.gz: 4018f03d8ca6d9d47b5bb679543a797e2028064a9af0be6d04c1191bd5d46969
3
+ metadata.gz: 4b51c8c3c2f29e8eb76b9226050de544a88eb4402fede2db79aebe4a7bd9d982
4
+ data.tar.gz: f33fddcf244d7501d3b1a9e7bfad69036989808c5bf54bb0cadc39066a6757e6
5
5
  SHA512:
6
- metadata.gz: a5b67aabc4189ac9715875a454c20db1f6d2303cd5afe83ad565b9cba0efd9695d14f9245e2ee7c671001778dcfe92c104cbb7542a070d60872671e5df8a11f7
7
- data.tar.gz: b249ed3ea3c938a3a769de8cdf24dd6feea216babeb33c77400218507cf6fbb09f57d47a721ed3754cf1c188ca03317854344cfcac3e90a26d2a0fde28b3d3c3
6
+ metadata.gz: cb2f8eb46e52a7e1e49a45539c061c743dca6e76c45a4103e4ae08e28e114767f594b2da6948b4d3676aeae5eeaf260a6341aff657cc139b6f2cf5d2250ab14e
7
+ data.tar.gz: cd0ddf5188a5789eed83b26c3c7204490a84183b643b169ba30aabebb69b408932c3a9b8d2edbf842902951da9458fdef14ab42f0b30cc102e722f39adcded8f
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2021 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2023 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -201,12 +201,8 @@ module Google
201
201
  yield result, response if block_given?
202
202
  return result
203
203
  end
204
- rescue ::Faraday::Error => e
205
- begin
206
- raise ::Gapic::Rest::Error.wrap_faraday_error e
207
- rescue ::Gapic::Rest::Error => gapic_error
208
- raise ::Google::Cloud::Error.from_error gapic_error
209
- end
204
+ rescue ::Gapic::Rest::Error => e
205
+ raise ::Google::Cloud::Error.from_error(e)
210
206
  end
211
207
 
212
208
  ##
@@ -269,12 +265,8 @@ module Google
269
265
  yield result, response if block_given?
270
266
  return result
271
267
  end
272
- rescue ::Faraday::Error => e
273
- begin
274
- raise ::Gapic::Rest::Error.wrap_faraday_error e
275
- rescue ::Gapic::Rest::Error => gapic_error
276
- raise ::Google::Cloud::Error.from_error gapic_error
277
- end
268
+ rescue ::Gapic::Rest::Error => e
269
+ raise ::Google::Cloud::Error.from_error(e)
278
270
  end
279
271
 
280
272
  ##
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2023 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -34,7 +34,9 @@ module Google
34
34
  # the REST modules only when it's required.
35
35
  require "gapic/rest"
36
36
 
37
- @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: true
37
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
38
+ numeric_enums: true,
39
+ raise_faraday_errors: false
38
40
  end
39
41
 
40
42
  ##
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2023 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -34,12 +34,12 @@ module Google
34
34
  # a service. Service-specific metadata is provided through the
35
35
  # {::Google::Cloud::Location::Location#metadata Location.metadata} field.
36
36
  #
37
- # To load this service and instantiate a GRPC client:
37
+ # @example Load this service and instantiate a gRPC client
38
38
  #
39
39
  # require "google/cloud/location/locations"
40
40
  # client = ::Google::Cloud::Location::Locations::Client.new
41
41
  #
42
- # To load this service and instantiate a REST client:
42
+ # @example Load this service and instantiate a REST client
43
43
  #
44
44
  # require "google/cloud/location/locations/rest"
45
45
  # client = ::Google::Cloud::Location::Locations::Rest::Client.new
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2023 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Location
23
- VERSION = "0.3.beta.2"
23
+ VERSION = "0.3.0"
24
24
  end
25
25
  end
26
26
  end
@@ -22,17 +22,14 @@ require "google/cloud/location/version"
22
22
  module Google
23
23
  module Cloud
24
24
  ##
25
- # To load this package, including all its services, and instantiate a GRPC client:
25
+ # API client module.
26
26
  #
27
- # @example
27
+ # @example Load this package, including all its services, and instantiate a gRPC client
28
28
  #
29
29
  # require "google/cloud/location"
30
30
  # client = ::Google::Cloud::Location::Locations::Client.new
31
31
  #
32
- ##
33
- # To load this package, including all its services, and instantiate a REST client:
34
- #
35
- # @example
32
+ # @example Load this package, including all its services, and instantiate a REST client
36
33
  #
37
34
  # require "google/cloud/location"
38
35
  # client = ::Google::Cloud::Location::Locations::Rest::Client.new
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-location
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.beta.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-09 00:00:00.000000000 Z
11
+ date: 2023-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.12'
19
+ version: 0.16.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.12'
29
+ version: 0.16.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -190,7 +190,7 @@ homepage: https://github.com/googleapis/google-cloud-ruby
190
190
  licenses:
191
191
  - Apache-2.0
192
192
  metadata: {}
193
- post_install_message:
193
+ post_install_message:
194
194
  rdoc_options: []
195
195
  require_paths:
196
196
  - lib
@@ -201,12 +201,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
201
201
  version: '2.6'
202
202
  required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  requirements:
204
- - - ">"
204
+ - - ">="
205
205
  - !ruby/object:Gem::Version
206
- version: 1.3.1
206
+ version: '0'
207
207
  requirements: []
208
- rubygems_version: 3.3.7
209
- signing_key:
208
+ rubygems_version: 3.4.2
209
+ signing_key:
210
210
  specification_version: 4
211
211
  summary: API Client library for the Locations API
212
212
  test_files: []