moov_ruby 0.2.1 → 0.2.2

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: 235dbe6b7eb1283ccec6454cb0dec9ae28e5034cfc3acb669ebfe599bca26d56
4
- data.tar.gz: ed1651406c6353dab7a92a2cc4cd5f4c9f834e869f002c048973947839a9ac28
3
+ metadata.gz: 0b150a9118a35e497a051ad5fa60fdc34f75c916c82c827e679c84abf13565b8
4
+ data.tar.gz: d63602cca315ce382567c62ffdb35936bfa6eec454f8cd7c0a12bf2ebde3dc2a
5
5
  SHA512:
6
- metadata.gz: cadc4f4b0caf80baf08c3fd4d25e0f10aefccd6b25049a8202e3b757926591aa9b8d94f230569fd67799365cdad89e804939b529aa13e77ac8df04d3cfbc9cdd
7
- data.tar.gz: 89955adb43ba1b2ea39b9d1221854e36a0133bf2d4815ef7f71e628bdcae1875f1493f7335045a2b200db837889754cd1ed80a2b06e588123bf57b3de501f3e4
6
+ metadata.gz: 31be84e2bb7f4377c1759aed7afad67a4f475a837b15edc3b596ba960ac824c22c24bf56aa69c6bec97e66441fae580bde1c285ac7fc6e896353f755cddddc23
7
+ data.tar.gz: fa5313c9ee36b82b3127d46b0a3993a9ea433c9cc93380482b876f60f333d2360ea7f73570a31beaee3e9febf10955e692d7f2709b3a0365e543fefa6b7fb96d
data/lib/moov/images.rb CHANGED
@@ -39,12 +39,14 @@ module Moov
39
39
  end
40
40
 
41
41
 
42
- sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListImageMetadataResponse) }
43
- def list(account_id:, x_moov_version: nil, timeout_ms: nil)
42
+ sig { params(account_id: ::String, x_moov_version: T.nilable(::String), skip: T.nilable(::Integer), count: T.nilable(::Integer), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListImageMetadataResponse) }
43
+ def list(account_id:, x_moov_version: nil, skip: nil, count: nil, timeout_ms: nil)
44
44
  # list - List metadata for all images in the specified account.
45
45
  request = Models::Operations::ListImageMetadataRequest.new(
46
46
  account_id: account_id,
47
- x_moov_version: x_moov_version
47
+ x_moov_version: x_moov_version,
48
+ skip: skip,
49
+ count: count
48
50
  )
49
51
  url, params = @sdk_configuration.get_server_details
50
52
  base_url = Utils.template_url(url, params)
@@ -57,6 +59,7 @@ module Moov
57
59
  )
58
60
  headers = Utils.get_headers(request, @sdk_configuration.globals)
59
61
  headers = T.cast(headers, T::Hash[String, String])
62
+ query_params = Utils.get_query_params(Models::Operations::ListImageMetadataRequest, request, nil, @sdk_configuration.globals)
60
63
  headers['Accept'] = 'application/json'
61
64
  headers['user-agent'] = @sdk_configuration.user_agent
62
65
 
@@ -84,6 +87,7 @@ module Moov
84
87
  http_response = T.must(connection).get(url) do |req|
85
88
  req.headers.merge!(headers)
86
89
  req.options.timeout = timeout unless timeout.nil?
90
+ req.params = query_params
87
91
  Utils.configure_request_security(req, security)
88
92
 
89
93
  @sdk_configuration.hooks.before_request(
@@ -880,7 +884,7 @@ module Moov
880
884
  )
881
885
  elsif Utils.match_status_code(http_response.status, ['404', '429'])
882
886
  raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
883
- elsif Utils.match_status_code(http_response.status, ['500', '502', '504'])
887
+ elsif Utils.match_status_code(http_response.status, ['500', '502', '503', '504'])
884
888
  raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
885
889
  elsif Utils.match_status_code(http_response.status, ['4XX'])
886
890
  raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
@@ -15,6 +15,10 @@ module Moov
15
15
 
16
16
 
17
17
  field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
18
+
19
+ field :skip, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'skip', 'style': 'form', 'explode': false } }
20
+
21
+ field :count, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'count', 'style': 'form', 'explode': false } }
18
22
  # Specify an API version.
19
23
  #
20
24
  # API versioning follows the format `vYYYY.QQ.BB`, where
@@ -26,9 +30,11 @@ module Moov
26
30
  # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
27
31
  field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-moov-version', 'style': 'simple', 'explode': false } }
28
32
 
29
- sig { params(account_id: ::String, x_moov_version: T.nilable(::String)).void }
30
- def initialize(account_id:, x_moov_version: 'v2024.01.00')
33
+ sig { params(account_id: ::String, skip: T.nilable(::Integer), count: T.nilable(::Integer), x_moov_version: T.nilable(::String)).void }
34
+ def initialize(account_id:, skip: nil, count: nil, x_moov_version: 'v2024.01.00')
31
35
  @account_id = account_id
36
+ @skip = skip
37
+ @count = count
32
38
  @x_moov_version = x_moov_version
33
39
  end
34
40
 
@@ -36,6 +42,8 @@ module Moov
36
42
  def ==(other)
37
43
  return false unless other.is_a? self.class
38
44
  return false unless @account_id == other.account_id
45
+ return false unless @skip == other.skip
46
+ return false unless @count == other.count
39
47
  return false unless @x_moov_version == other.x_moov_version
40
48
  true
41
49
  end
@@ -10,6 +10,10 @@ end
10
10
  class Moov::Models::Operations::ListImageMetadataRequest
11
11
  def account_id(); end
12
12
  def account_id=(str_); end
13
+ def skip(); end
14
+ def skip=(str_); end
15
+ def count(); end
16
+ def count=(str_); end
13
17
  def x_moov_version(); end
14
18
  def x_moov_version=(str_); end
15
19
  end
@@ -95,9 +95,9 @@ module Moov
95
95
  @globals = globals.nil? ? {} : globals
96
96
  @language = 'ruby'
97
97
  @openapi_doc_version = 'latest'
98
- @sdk_version = '0.2.1'
99
- @gen_version = '2.727.9'
100
- @user_agent = 'speakeasy-sdk/ruby 0.2.1 2.727.9 latest moov_ruby'
98
+ @sdk_version = '0.2.2'
99
+ @gen_version = '2.728.0'
100
+ @user_agent = 'speakeasy-sdk/ruby 0.2.2 2.728.0 latest moov_ruby'
101
101
  end
102
102
 
103
103
  sig { returns([String, T::Hash[Symbol, String]]) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moov_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Speakeasy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-21 00:00:00.000000000 Z
11
+ date: 2025-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64