gapic-common 0.16.0 → 0.17.1

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: 1e75598e117f5f4e8829498d534e4a9106ad28d60b49537e556c094bb73aec6d
4
- data.tar.gz: cdbc7ea9f2135123e54cd65eaa964da0bac013a380a5517266666cb780fe272b
3
+ metadata.gz: 508b67fe556c18e32cab88da23a0097e425df549e288b72fec7d4a891b6c06f5
4
+ data.tar.gz: 29bbc436a310b93f2f043502344783835ba25ed91d5ac8523c190da0ecd019b4
5
5
  SHA512:
6
- metadata.gz: 29a7d283e612f3b63771a00c4b9ef6dbfeed924fd49acde80296df0868af30e4dfa28644db6af5b79eb9a55466d6d583d583e4fd390b19c0fbcb4bf8241db795
7
- data.tar.gz: e930d32eae8b3fd68ffc4452a2d9462c6f3ad762abc769a8eaef0df7a8f554d2a0c4b2e8b5c476dc82ee795382c869cba0e0ab765fe614558f945d8e938790c3
6
+ metadata.gz: 34e4be1fc16714c9afc6bd0d9ca832ae7409521d0ec9f10c41860e817c8ee28599d6853a0c84a780dc3e3fc19d33882068d613f2691d6ee99392b68f2c5dbe04
7
+ data.tar.gz: 6f130dd5c05535efc27e67f51a6b593082519a04601d69111db010d097e7c150501e9cee2845d4937c175fce79451f413b5e125e9f74d01f66634d74d6b9604a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release History
2
2
 
3
+ ### 0.17.1 (2023-02-09)
4
+
5
+ #### Bug Fixes
6
+
7
+ * add new class to the rest imports ([#913](https://github.com/googleapis/gapic-generator-ruby/issues/913))
8
+
9
+ ### 0.17.0 (2023-02-09)
10
+
11
+ #### Features
12
+
13
+ * add a transport operation class in Rest ([#911](https://github.com/googleapis/gapic-generator-ruby/issues/911))
14
+
3
15
  ### 0.16.0 (2022-12-12)
4
16
 
5
17
  #### Features
@@ -14,6 +14,6 @@
14
14
 
15
15
  module Gapic
16
16
  module Common
17
- VERSION = "0.16.0".freeze
17
+ VERSION = "0.17.1".freeze
18
18
  end
19
19
  end
@@ -50,7 +50,7 @@ module Gapic
50
50
  return enum_for :each unless block_given?
51
51
 
52
52
  loop do
53
- while @ready_objs.length.zero?
53
+ while @ready_objs.empty?
54
54
  begin
55
55
  chunk = @json_enumerator.next
56
56
  next unless chunk
@@ -0,0 +1,38 @@
1
+ # Copyright 2023 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Gapic
16
+ module Rest
17
+ ##
18
+ # Surfaces information about the active call
19
+ # from the underlying transport library.
20
+ #
21
+ class TransportOperation
22
+ ##
23
+ # @private
24
+ # The underlying transport's library object that describes the active call, if any.
25
+ # It is not guaranteed to be any specific type, and its value is not guarateed to be stable.
26
+ # @return [::Object, nil, ::Faraday::Response]
27
+ attr_reader :underlying_op
28
+
29
+ ##
30
+ # @private
31
+ # @param request [::Object, nil, ::Faraday::Response]
32
+ # The underlying transport's library object that describes the active call, if any.
33
+ def initialize underlying_op
34
+ @underlying_op = underlying_op
35
+ end
36
+ end
37
+ end
38
+ end
data/lib/gapic/rest.rb CHANGED
@@ -29,4 +29,5 @@ require "gapic/rest/operation"
29
29
  require "gapic/rest/paged_enumerable"
30
30
  require "gapic/rest/server_stream"
31
31
  require "gapic/rest/threaded_enumerator"
32
+ require "gapic/rest/transport_operation"
32
33
  require "json"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gapic-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google API Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-12 00:00:00.000000000 Z
11
+ date: 2023-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -317,6 +317,7 @@ files:
317
317
  - lib/gapic/rest/paged_enumerable.rb
318
318
  - lib/gapic/rest/server_stream.rb
319
319
  - lib/gapic/rest/threaded_enumerator.rb
320
+ - lib/gapic/rest/transport_operation.rb
320
321
  - lib/gapic/stream_input.rb
321
322
  homepage: https://github.com/googleapis/gapic-generator-ruby
322
323
  licenses:
@@ -337,7 +338,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
337
338
  - !ruby/object:Gem::Version
338
339
  version: '0'
339
340
  requirements: []
340
- rubygems_version: 3.3.14
341
+ rubygems_version: 3.4.2
341
342
  signing_key:
342
343
  specification_version: 4
343
344
  summary: Common code for GAPIC-generated API clients