daytona 0.181.0 → 0.183.0

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: e05a5b76b6b0c7c445ad788cfb7e5c33c3565451b4b858921bf625ad350119ff
4
- data.tar.gz: 5cbf29c535d2474a318f18be5383ff367da91c19f7c1c39516acb8fba4c06953
3
+ metadata.gz: 51463fb06ed000a42bcafc015486dbfafebc974025e32b9c74afc75f0ef9739b
4
+ data.tar.gz: b72af32227068c19b3141e89b8186bc03a18d6f4358de5768aa3647534d53e58
5
5
  SHA512:
6
- metadata.gz: b6915680aef1f75abcc3433704270e667bd9756f4e68165df5dea89e98d610194ba39ad12fba068fb1bfdd99d57b3513ed4efdde86f7f4fce23009b0671ba402
7
- data.tar.gz: '08f887c277c318cb27e27d3b2212ab272db0610a7584bf64ecba0074fb2a32d1f852f1fe024f478e3a04b72f7a9b22ed24421d3e95100a41fcfd658b4c5451bb'
6
+ metadata.gz: 2bb1c248705cc3421ad0e6747c327e6ab6865feb2f57d33aa87857d606fe70de3b11dd9b5f88a3eb50e7688405a69f7f13dacca225644f9bab74853d48a0c84b
7
+ data.tar.gz: f9ecbba0b91db01dc6e39350275d521a10dfc4ebf6704e7028a664c09b0beec47b23cf3940d5771152810b690404985d88109052b151c2face6f973980808336
@@ -46,6 +46,12 @@ module Daytona
46
46
  # @return [Boolean, nil] Whether the Sandbox should be ephemeral
47
47
  attr_accessor :ephemeral
48
48
 
49
+ # @return [String, nil] ID or name of an existing Sandbox to link the new Sandbox to. The new
50
+ # Sandbox will be scheduled on the same runner as the linked Sandbox so a local network can be
51
+ # established between them. Linked Sandboxes must be
52
+ # ephemeral (auto_delete_interval=0) and cannot themselves be linked to another Sandbox.
53
+ attr_accessor :linked_sandbox
54
+
49
55
  # Initialize CreateSandboxBaseParams
50
56
  #
51
57
  # @param language [Symbol, nil] Programming language for the Sandbox
@@ -61,6 +67,7 @@ module Daytona
61
67
  # @param network_block_all [Boolean, nil] Whether to block all network access for the Sandbox
62
68
  # @param network_allow_list [String, nil] Comma-separated list of allowed CIDR network addresses for the Sandbox
63
69
  # @param ephemeral [Boolean, nil] Whether the Sandbox should be ephemeral
70
+ # @param linked_sandbox [String, nil] ID or name of an existing Sandbox to link the new Sandbox to
64
71
  def initialize( # rubocop:disable Metrics/MethodLength, Metrics/ParameterLists
65
72
  language: nil,
66
73
  os_user: nil,
@@ -74,7 +81,8 @@ module Daytona
74
81
  volumes: nil,
75
82
  network_block_all: nil,
76
83
  network_allow_list: nil,
77
- ephemeral: nil
84
+ ephemeral: nil,
85
+ linked_sandbox: nil
78
86
  )
79
87
  @language = language
80
88
  @os_user = os_user
@@ -89,6 +97,7 @@ module Daytona
89
97
  @network_block_all = network_block_all
90
98
  @network_allow_list = network_allow_list
91
99
  @ephemeral = ephemeral
100
+ @linked_sandbox = linked_sandbox
92
101
 
93
102
  # Handle ephemeral and auto_delete_interval conflict
94
103
  handle_ephemeral_auto_delete_conflict
@@ -111,7 +120,8 @@ module Daytona
111
120
  volumes:,
112
121
  network_block_all:,
113
122
  network_allow_list:,
114
- ephemeral:
123
+ ephemeral:,
124
+ linked_sandbox:
115
125
  }.compact
116
126
  end
117
127
 
@@ -214,7 +214,8 @@ module Daytona
214
214
  auto_delete_interval: params.auto_delete_interval,
215
215
  volumes: params.volumes,
216
216
  network_block_all: params.network_block_all,
217
- network_allow_list: params.network_allow_list
217
+ network_allow_list: params.network_allow_list,
218
+ linked_sandbox: params.linked_sandbox
218
219
  )
219
220
 
220
221
  create_sandbox.snapshot = params.snapshot if params.respond_to?(:snapshot)
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Daytona
7
7
  module Sdk
8
- VERSION = '0.181.0'
8
+ VERSION = '0.183.0'
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daytona
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.181.0
4
+ version: 0.183.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daytona Platforms Inc.
@@ -85,28 +85,28 @@ dependencies:
85
85
  requirements:
86
86
  - - '='
87
87
  - !ruby/object:Gem::Version
88
- version: 0.181.0
88
+ version: 0.183.0
89
89
  type: :runtime
90
90
  prerelease: false
91
91
  version_requirements: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - '='
94
94
  - !ruby/object:Gem::Version
95
- version: 0.181.0
95
+ version: 0.183.0
96
96
  - !ruby/object:Gem::Dependency
97
97
  name: daytona_toolbox_api_client
98
98
  requirement: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - '='
101
101
  - !ruby/object:Gem::Version
102
- version: 0.181.0
102
+ version: 0.183.0
103
103
  type: :runtime
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - '='
108
108
  - !ruby/object:Gem::Version
109
- version: 0.181.0
109
+ version: 0.183.0
110
110
  - !ruby/object:Gem::Dependency
111
111
  name: dotenv
112
112
  requirement: !ruby/object:Gem::Requirement