diff --git a/Gemfile.lock b/Gemfile.lock index e454d02..87fa999 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -13,6 +13,7 @@ GEM public_suffix (>= 2.0.2, < 7.0) ast (2.4.2) base64 (0.2.0) + benchmark (0.4.0) erubi (1.13.1) faraday (2.12.2) faraday-net_http (>= 2.0, < 3.5) @@ -27,8 +28,8 @@ GEM json (2.9.1) jwt (2.10.1) base64 - language_server-protocol (3.17.0.3) - logger (1.6.4) + language_server-protocol (3.17.0.4) + logger (1.6.5) multipart-post (2.4.1) mustermann (3.0.3) ruby2_keywords (~> 0.0.1) @@ -40,15 +41,15 @@ GEM faraday (>= 1, < 3) sawyer (~> 0.9) parallel (1.26.3) - parser (3.3.6.0) + parser (3.3.7.0) ast (~> 2.4.1) racc prism (1.3.0) public_suffix (6.0.1) - puma (6.5.0) + puma (6.6.0) nio4r (~> 2.0) racc (1.8.1) - rack (3.1.8) + rack (3.1.9) rack-protection (4.1.1) base64 (>= 0.1.0) logger (>= 1.6.0) @@ -59,21 +60,21 @@ GEM rackup (2.2.1) rack (>= 3) rainbow (3.1.1) - rbi (0.2.2) + rbi (0.2.4) prism (~> 1.0) sorbet-runtime (>= 0.5.9204) regexp_parser (2.10.0) - rubocop (1.69.2) + rubocop (1.71.1) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 2.9.3, < 3.0) - rubocop-ast (>= 1.36.2, < 2.0) + rubocop-ast (>= 1.38.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.37.0) + rubocop-ast (1.38.0) parser (>= 3.3.1.0) rubocop-performance (1.23.1) rubocop (>= 1.48.1, < 2.0) @@ -92,21 +93,23 @@ GEM rack-protection (= 4.1.1) rack-session (>= 2.0.0, < 3) tilt (~> 2.0) - sorbet (0.5.11742) - sorbet-static (= 0.5.11742) - sorbet-runtime (0.5.11742) - sorbet-static (0.5.11742-aarch64-linux) - sorbet-static (0.5.11742-universal-darwin) - sorbet-static (0.5.11742-x86_64-linux) - sorbet-static-and-runtime (0.5.11742) - sorbet (= 0.5.11742) - sorbet-runtime (= 0.5.11742) - spoom (1.5.0) + sorbet (0.5.11796) + sorbet-static (= 0.5.11796) + sorbet-runtime (0.5.11796) + sorbet-static (0.5.11796-aarch64-linux) + sorbet-static (0.5.11796-universal-darwin) + sorbet-static (0.5.11796-x86_64-linux) + sorbet-static-and-runtime (0.5.11796) + sorbet (= 0.5.11796) + sorbet-runtime (= 0.5.11796) + spoom (1.5.3) erubi (>= 1.10.0) prism (>= 0.28.0) + rbi (>= 0.2.3) sorbet-static-and-runtime (>= 0.5.10187) thor (>= 0.19.2) - tapioca (0.16.6) + tapioca (0.16.8) + benchmark bundler (>= 2.2.25) netrc (>= 0.11.0) parallel (>= 1.21.0) @@ -116,8 +119,8 @@ GEM thor (>= 1.2.0) yard-sorbet thor (1.3.2) - tilt (2.5.0) - unicode-display_width (3.1.3) + tilt (2.6.0) + unicode-display_width (3.1.4) unicode-emoji (~> 4.0, >= 4.0.4) unicode-emoji (4.0.4) uri (1.0.2) diff --git a/sorbet/rbi/orka_api_client.rbi b/sorbet/rbi/orka_api_client.rbi index d401da0..da45bbd 100644 --- a/sorbet/rbi/orka_api_client.rbi +++ b/sorbet/rbi/orka_api_client.rbi @@ -486,11 +486,11 @@ module OrkaAPI # _@return_ — True if the tokeb is valid for authentication. sig { returns(T::Boolean) } - attr_reader :authenticated? + def authenticated?; end # _@return_ — True if the token has been revoked. sig { returns(T::Boolean) } - attr_reader :token_revoked? + def token_revoked?; end # _@return_ — The user associated with the token. sig { returns(User) } @@ -740,15 +740,15 @@ module OrkaAPI # _@return_ — True if IO boost is enabled for this VM. sig { returns(T::Boolean) } - attr_reader :io_boost? + def io_boost?; end # _@return_ — True if network boost is enabled for this VM. sig { returns(T::Boolean) } - attr_reader :net_boost? + def net_boost?; end # _@return_ — True if this VM is using a prior saved state rather than a clean base image. sig { returns(T::Boolean) } - attr_reader :use_saved_state? + def use_saved_state?; end # _@return_ — The port mappings established for this VM. sig { returns(T::Array[ProtocolPortMapping]) } @@ -764,7 +764,7 @@ module OrkaAPI # _@return_ — Whether it was mandatory that this VM was deployed to the requested tag. sig { returns(T::Boolean) } - attr_reader :tag_required? + def tag_required?; end end # A general representation of {VMConfiguration VM configurations} and the {VMInstance VMs} deployed from those @@ -964,7 +964,7 @@ module OrkaAPI # _@return_ — True if there are associated deployed VM instances. sig { returns(T::Boolean) } - attr_reader :deployed? + def deployed?; end # _@return_ — The list of deployed VM instances. sig { returns(T::Array[VMInstance]) } @@ -996,22 +996,22 @@ module OrkaAPI # _@return_ — True if IO boost is enabled, specified by the associated VM configuration. This is # +nil+ if {#deployed?} is +true+. sig { returns(T.nilable(T::Boolean)) } - attr_reader :io_boost? + def io_boost?; end # _@return_ — True if network boost is enabled, specified by the associated VM configuration. This is # +nil+ if {#deployed?} is +true+. sig { returns(T.nilable(T::Boolean)) } - attr_reader :net_boost? + def net_boost?; end # _@return_ — True if the saved state should be used rather than cleanly from the base image, # specified by the associated VM configuration. This is +nil+ if {#deployed?} is +true+. sig { returns(T.nilable(T::Boolean)) } - attr_reader :use_saved_state? + def use_saved_state?; end # _@return_ — True if GPU passthrough is enabled, specified by the associated VM configuration. This # is +nil+ if {#deployed?} is +true+. sig { returns(T.nilable(T::Boolean)) } - attr_reader :gpu_passthrough? + def gpu_passthrough?; end sig { returns(T.nilable(String)) } attr_reader :configuration_template @@ -1221,24 +1221,24 @@ module OrkaAPI # _@return_ — True if the VNC console should be enabled for deployed VMs of this configuration. sig { returns(T::Boolean) } - attr_reader :vnc_console? + def vnc_console?; end # _@return_ — True if IO boost should be enabled for deployed VMs of this configuration. sig { returns(T::Boolean) } - attr_reader :io_boost? + def io_boost?; end # _@return_ — True if network boost should be enabled for deployed VMs of this configuration. sig { returns(T::Boolean) } - attr_reader :net_boost? + def net_boost?; end # _@return_ — True if deployed VMs of this configuration should use a prior saved state (created via # {VMInstance#save_state}) rather than a clean base image. sig { returns(T::Boolean) } - attr_reader :use_saved_state? + def use_saved_state?; end # _@return_ — True if GPU passthrough should be enabled for deployed VMs of this configuration. sig { returns(T::Boolean) } - attr_reader :gpu_passthrough? + def gpu_passthrough?; end # _@return_ — The custom system serial number, if set. sig { returns(T.nilable(String)) } @@ -1250,7 +1250,7 @@ module OrkaAPI # _@return_ — Whether it is mandatory that VMs are deployed to the requested tag. sig { returns(T::Boolean) } - attr_reader :tag_required? + def tag_required?; end # _@return_ — The scheduler mode chosen for VM deployment. Can be either +:default+ or +:most_allocated+. sig { returns(Symbol) } @@ -1304,15 +1304,15 @@ module OrkaAPI # _@return_ — True if network boost is enabled for this VM. sig { returns(T::Boolean) } - attr_reader :io_boost? + def io_boost?; end # _@return_ — True if this VM is using a prior saved state rather than a clean base image. sig { returns(T::Boolean) } - attr_reader :use_saved_state? + def use_saved_state?; end # _@return_ — True if GPU passthrough is enabled for this VM. sig { returns(T::Boolean) } - attr_reader :gpu_passthrough? + def gpu_passthrough?; end # _@return_ — The port used to connect to the VM via VNC, if enabled. sig { returns(T.nilable(Integer)) } diff --git a/sorbet/tapioca/config.yml b/sorbet/tapioca/config.yml index ad30c79..c3485d6 100644 --- a/sorbet/tapioca/config.yml +++ b/sorbet/tapioca/config.yml @@ -2,6 +2,7 @@ gem: exclude: - ast - base64 + - benchmark - erubi - faraday-multipart - faraday-net_http