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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed78c960f7659c73efc175194152bd5d618441aebb9a315ba4158225c346470f
|
4
|
+
data.tar.gz: d278218b9b719e6ec6814bb052a3ee4cf748092007946ccc268c3fd5090dca84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
# #
|
195
|
-
#
|
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
|
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,
|
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
|
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,
|
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,
|
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,
|
228
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
229
229
|
# @yieldparam result [::Google::Cloud::Location::Location]
|
230
|
-
# @yieldparam
|
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,
|
265
|
-
yield result,
|
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,
|
52
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
53
53
|
# @yieldparam result [::Google::Cloud::Location::ListLocationsResponse]
|
54
|
-
# @yieldparam
|
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,
|
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,
|
92
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
92
93
|
# @yieldparam result [::Google::Cloud::Location::Location]
|
93
|
-
# @yieldparam
|
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,
|
118
|
+
yield result, operation if block_given?
|
117
119
|
result
|
118
120
|
end
|
119
121
|
|
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.
|
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-
|
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.
|
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.
|
29
|
+
version: 0.17.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|