google-cloud-location 0.3.beta.3 → 0.4.0

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: 5f528e84a74ea32718bdaa049325d1b88651bb6f35e2d07c87c4c585ef873f02
4
- data.tar.gz: 7bcdb13de741dd61b024ed5903dde686d5bdfaa725747fa4fd4142888d62952a
3
+ metadata.gz: ed78c960f7659c73efc175194152bd5d618441aebb9a315ba4158225c346470f
4
+ data.tar.gz: d278218b9b719e6ec6814bb052a3ee4cf748092007946ccc268c3fd5090dca84
5
5
  SHA512:
6
- metadata.gz: 708d3b675e987eb2909b88f65c054968baa04710f5f34a764d65cec3196381e706060d40747a1d281213026d4cb23b4ddeda89a65de9fb7eb71f39a84b6b7703
7
- data.tar.gz: 51524d30d9e86a69b0425db4e8f3c364f9dd8a56bbf89980ac93625649585bad5a2c59962053a3d2f6dc988fe943ad3aeb427ed8df4946386043b0566eddc9ab
6
+ metadata.gz: cb69bc2e2b497bcefd641adf648e2340aa3405e21a296c99ea496dd66e50462057a5f39ea5282f14b9b59a1e44f5aaca957d7879512b1ea395c65810f32b0682
7
+ data.tar.gz: f827bf1a13ce3c3735ec10a091703b491189b6de670358b49135fc81dd00642741dc6439b1562c25b8f549ff8654bca4fd13a0633de12079757d77316e203bfe
@@ -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.
@@ -190,13 +190,11 @@ module Google
190
190
  # # Call the list_locations method.
191
191
  # result = client.list_locations request
192
192
  #
193
- # # The returned object is of type Gapic::PagedEnumerable. You can
194
- # # iterate over all elements by calling #each, and the enumerable
195
- # # will lazily make API calls to fetch subsequent pages. Other
196
- # # methods are also available for managing paging directly.
197
- # result.each do |response|
193
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
194
+ # # over elements, and API calls will be issued to fetch pages as needed.
195
+ # result.each do |item|
198
196
  # # Each element is of type ::Google::Cloud::Location::Location.
199
- # p response
197
+ # p item
200
198
  # end
201
199
  #
202
200
  def list_locations request, options = nil
@@ -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.
@@ -160,9 +160,9 @@ module Google
160
160
  # The standard list page size.
161
161
  # @param page_token [::String]
162
162
  # The standard list page token.
163
- # @yield [result, response] Access the result along with the Faraday response object
163
+ # @yield [result, operation] Access the result along with the TransportOperation object
164
164
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Location::Location>]
165
- # @yieldparam response [::Faraday::Response]
165
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
166
166
  #
167
167
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Location::Location>]
168
168
  #
@@ -196,9 +196,9 @@ module Google
196
196
 
197
197
  bindings_override = @config.bindings_override["google.cloud.location.Locations.ListLocations"]
198
198
 
199
- @locations_stub.list_locations request, options, bindings_override: bindings_override do |result, response|
199
+ @locations_stub.list_locations request, options, bindings_override: bindings_override do |result, operation|
200
200
  result = ::Gapic::Rest::PagedEnumerable.new @locations_stub, :list_locations, "locations", request, result, options
201
- yield result, response if block_given?
201
+ yield result, operation if block_given?
202
202
  return result
203
203
  end
204
204
  rescue ::Gapic::Rest::Error => e
@@ -225,9 +225,9 @@ module Google
225
225
  #
226
226
  # @param name [::String]
227
227
  # Resource name for the location.
228
- # @yield [result, response] Access the result along with the Faraday response object
228
+ # @yield [result, operation] Access the result along with the TransportOperation object
229
229
  # @yieldparam result [::Google::Cloud::Location::Location]
230
- # @yieldparam response [::Faraday::Response]
230
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
231
231
  #
232
232
  # @return [::Google::Cloud::Location::Location]
233
233
  #
@@ -261,8 +261,8 @@ module Google
261
261
 
262
262
  bindings_override = @config.bindings_override["google.cloud.location.Locations.GetLocation"]
263
263
 
264
- @locations_stub.get_location request, options, bindings_override: bindings_override do |result, response|
265
- yield result, response if block_given?
264
+ @locations_stub.get_location request, options, bindings_override: bindings_override do |result, operation|
265
+ yield result, operation if block_given?
266
266
  return result
267
267
  end
268
268
  rescue ::Gapic::Rest::Error => e
@@ -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.
@@ -49,9 +49,9 @@ module Google
49
49
  # @param bindings_override [::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>, nil]
50
50
  # Binding overrides for the transcoding. Only used internally.
51
51
  #
52
- # @yield [result, response] Access the result along with the Faraday response object
52
+ # @yield [result, operation] Access the result along with the TransportOperation object
53
53
  # @yieldparam result [::Google::Cloud::Location::ListLocationsResponse]
54
- # @yieldparam response [::Faraday::Response]
54
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
55
55
  #
56
56
  # @return [::Google::Cloud::Location::ListLocationsResponse]
57
57
  # A result object deserialized from the server's reply
@@ -72,9 +72,10 @@ module Google
72
72
  params: query_string_params,
73
73
  options: options
74
74
  )
75
+ operation = ::Gapic::Rest::TransportOperation.new response
75
76
  result = ::Google::Cloud::Location::ListLocationsResponse.decode_json response.body, ignore_unknown_fields: true
76
77
 
77
- yield result, response if block_given?
78
+ yield result, operation if block_given?
78
79
  result
79
80
  end
80
81
 
@@ -88,9 +89,9 @@ module Google
88
89
  # @param bindings_override [::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>, nil]
89
90
  # Binding overrides for the transcoding. Only used internally.
90
91
  #
91
- # @yield [result, response] Access the result along with the Faraday response object
92
+ # @yield [result, operation] Access the result along with the TransportOperation object
92
93
  # @yieldparam result [::Google::Cloud::Location::Location]
93
- # @yieldparam response [::Faraday::Response]
94
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
94
95
  #
95
96
  # @return [::Google::Cloud::Location::Location]
96
97
  # A result object deserialized from the server's reply
@@ -111,9 +112,10 @@ module Google
111
112
  params: query_string_params,
112
113
  options: options
113
114
  )
115
+ operation = ::Gapic::Rest::TransportOperation.new response
114
116
  result = ::Google::Cloud::Location::Location.decode_json response.body, ignore_unknown_fields: true
115
117
 
116
- yield result, response if block_given?
118
+ yield result, operation if block_given?
117
119
  result
118
120
  end
119
121
 
@@ -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.
@@ -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.3"
23
+ VERSION = "0.4.0"
24
24
  end
25
25
  end
26
26
  end
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.3
4
+ version: 0.4.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-14 00:00:00.000000000 Z
11
+ date: 2023-02-14 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.16.0
19
+ version: 0.17.1
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.16.0
29
+ version: 0.17.1
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: []