google-cloud-location 0.3.0 → 0.4.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: 4b51c8c3c2f29e8eb76b9226050de544a88eb4402fede2db79aebe4a7bd9d982
4
- data.tar.gz: f33fddcf244d7501d3b1a9e7bfad69036989808c5bf54bb0cadc39066a6757e6
3
+ metadata.gz: ed78c960f7659c73efc175194152bd5d618441aebb9a315ba4158225c346470f
4
+ data.tar.gz: d278218b9b719e6ec6814bb052a3ee4cf748092007946ccc268c3fd5090dca84
5
5
  SHA512:
6
- metadata.gz: cb2f8eb46e52a7e1e49a45539c061c743dca6e76c45a4103e4ae08e28e114767f594b2da6948b4d3676aeae5eeaf260a6341aff657cc139b6f2cf5d2250ab14e
7
- data.tar.gz: cd0ddf5188a5789eed83b26c3c7204490a84183b643b169ba30aabebb69b408932c3a9b8d2edbf842902951da9458fdef14ab42f0b30cc102e722f39adcded8f
6
+ metadata.gz: cb69bc2e2b497bcefd641adf648e2340aa3405e21a296c99ea496dd66e50462057a5f39ea5282f14b9b59a1e44f5aaca957d7879512b1ea395c65810f32b0682
7
+ data.tar.gz: f827bf1a13ce3c3735ec10a091703b491189b6de670358b49135fc81dd00642741dc6439b1562c25b8f549ff8654bca4fd13a0633de12079757d77316e203bfe
@@ -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
@@ -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
@@ -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
 
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Location
23
- VERSION = "0.3.0"
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.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-17 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