daytona_api_client 0.191.0 → 0.192.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 +4 -4
- data/.openapi-generator/FILES +8 -0
- data/lib/daytona_api_client/api/admin_api.rb +34 -4
- data/lib/daytona_api_client/api/audit_api.rb +34 -4
- data/lib/daytona_api_client/api/sandbox_api.rb +64 -0
- data/lib/daytona_api_client/api/secret_api.rb +350 -0
- data/lib/daytona_api_client/models/create_sandbox.rb +16 -4
- data/lib/daytona_api_client/models/create_secret.rb +214 -0
- data/lib/daytona_api_client/models/date_filter.rb +178 -0
- data/lib/daytona_api_client/models/int_filter.rb +222 -0
- data/lib/daytona_api_client/models/resolve_sandbox_secrets200_response_inner.rb +176 -0
- data/lib/daytona_api_client/models/secret.rb +312 -0
- data/lib/daytona_api_client/models/string_filter.rb +182 -0
- data/lib/daytona_api_client/models/update_secret.rb +170 -0
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +8 -0
- metadata +9 -1
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Daytona
|
|
3
|
+
|
|
4
|
+
#Daytona AI platform API Docs
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@daytona.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.21.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module DaytonaApiClient
|
|
17
|
+
class UpdateSecret < ApiModelBase
|
|
18
|
+
# New secret value
|
|
19
|
+
attr_accessor :value
|
|
20
|
+
|
|
21
|
+
# Optional description of the secret
|
|
22
|
+
attr_accessor :description
|
|
23
|
+
|
|
24
|
+
# Allowed hosts this secret may be sent to
|
|
25
|
+
attr_accessor :hosts
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
def self.attribute_map
|
|
29
|
+
{
|
|
30
|
+
:'value' => :'value',
|
|
31
|
+
:'description' => :'description',
|
|
32
|
+
:'hosts' => :'hosts'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns attribute mapping this model knows about
|
|
37
|
+
def self.acceptable_attribute_map
|
|
38
|
+
attribute_map
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
|
42
|
+
def self.acceptable_attributes
|
|
43
|
+
acceptable_attribute_map.values
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Attribute type mapping.
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'value' => :'String',
|
|
50
|
+
:'description' => :'String',
|
|
51
|
+
:'hosts' => :'Array<String>'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# List of attributes with nullable: true
|
|
56
|
+
def self.openapi_nullable
|
|
57
|
+
Set.new([
|
|
58
|
+
])
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Initializes the object
|
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
|
+
def initialize(attributes = {})
|
|
64
|
+
if (!attributes.is_a?(Hash))
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::UpdateSecret` initialize method"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
69
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::UpdateSecret`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
73
|
+
end
|
|
74
|
+
h[k.to_sym] = v
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'value')
|
|
78
|
+
self.value = attributes[:'value']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'description')
|
|
82
|
+
self.description = attributes[:'description']
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'hosts')
|
|
86
|
+
if (value = attributes[:'hosts']).is_a?(Array)
|
|
87
|
+
self.hosts = value
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
93
|
+
# @return Array for valid properties with the reasons
|
|
94
|
+
def list_invalid_properties
|
|
95
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
96
|
+
invalid_properties = Array.new
|
|
97
|
+
invalid_properties
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Check to see if the all the properties in the model are valid
|
|
101
|
+
# @return true if the model is valid
|
|
102
|
+
def valid?
|
|
103
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
104
|
+
true
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Checks equality by comparing each attribute.
|
|
108
|
+
# @param [Object] Object to be compared
|
|
109
|
+
def ==(o)
|
|
110
|
+
return true if self.equal?(o)
|
|
111
|
+
self.class == o.class &&
|
|
112
|
+
value == o.value &&
|
|
113
|
+
description == o.description &&
|
|
114
|
+
hosts == o.hosts
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# @see the `==` method
|
|
118
|
+
# @param [Object] Object to be compared
|
|
119
|
+
def eql?(o)
|
|
120
|
+
self == o
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Calculates hash code according to all attributes.
|
|
124
|
+
# @return [Integer] Hash code
|
|
125
|
+
def hash
|
|
126
|
+
[value, description, hosts].hash
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Builds the object from hash
|
|
130
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
131
|
+
# @return [Object] Returns the model itself
|
|
132
|
+
def self.build_from_hash(attributes)
|
|
133
|
+
return nil unless attributes.is_a?(Hash)
|
|
134
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
135
|
+
transformed_hash = {}
|
|
136
|
+
openapi_types.each_pair do |key, type|
|
|
137
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
138
|
+
transformed_hash["#{key}"] = nil
|
|
139
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
140
|
+
# check to ensure the input is an array given that the attribute
|
|
141
|
+
# is documented as an array but the input is not
|
|
142
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
143
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
144
|
+
end
|
|
145
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
146
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
new(transformed_hash)
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Returns the object in the form of hash
|
|
153
|
+
# @return [Hash] Returns the object in the form of hash
|
|
154
|
+
def to_hash
|
|
155
|
+
hash = {}
|
|
156
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
157
|
+
value = self.send(attr)
|
|
158
|
+
if value.nil?
|
|
159
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
160
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
hash[param] = _to_hash(value)
|
|
164
|
+
end
|
|
165
|
+
hash
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
end
|
data/lib/daytona_api_client.rb
CHANGED
|
@@ -49,10 +49,12 @@ require 'daytona_api_client/models/create_runner'
|
|
|
49
49
|
require 'daytona_api_client/models/create_runner_response'
|
|
50
50
|
require 'daytona_api_client/models/create_sandbox'
|
|
51
51
|
require 'daytona_api_client/models/create_sandbox_snapshot'
|
|
52
|
+
require 'daytona_api_client/models/create_secret'
|
|
52
53
|
require 'daytona_api_client/models/create_session_request'
|
|
53
54
|
require 'daytona_api_client/models/create_snapshot'
|
|
54
55
|
require 'daytona_api_client/models/create_user'
|
|
55
56
|
require 'daytona_api_client/models/create_volume'
|
|
57
|
+
require 'daytona_api_client/models/date_filter'
|
|
56
58
|
require 'daytona_api_client/models/daytona_configuration'
|
|
57
59
|
require 'daytona_api_client/models/display_info_response'
|
|
58
60
|
require 'daytona_api_client/models/docker_registry'
|
|
@@ -76,6 +78,7 @@ require 'daytona_api_client/models/gpu_type'
|
|
|
76
78
|
require 'daytona_api_client/models/health_controller_check200_response'
|
|
77
79
|
require 'daytona_api_client/models/health_controller_check200_response_info_value'
|
|
78
80
|
require 'daytona_api_client/models/health_controller_check503_response'
|
|
81
|
+
require 'daytona_api_client/models/int_filter'
|
|
79
82
|
require 'daytona_api_client/models/job'
|
|
80
83
|
require 'daytona_api_client/models/job_status'
|
|
81
84
|
require 'daytona_api_client/models/job_type'
|
|
@@ -145,6 +148,7 @@ require 'daytona_api_client/models/registry_push_access_dto'
|
|
|
145
148
|
require 'daytona_api_client/models/replace_request'
|
|
146
149
|
require 'daytona_api_client/models/replace_result'
|
|
147
150
|
require 'daytona_api_client/models/resize_sandbox'
|
|
151
|
+
require 'daytona_api_client/models/resolve_sandbox_secrets200_response_inner'
|
|
148
152
|
require 'daytona_api_client/models/runner'
|
|
149
153
|
require 'daytona_api_client/models/runner_class'
|
|
150
154
|
require 'daytona_api_client/models/runner_full'
|
|
@@ -164,6 +168,7 @@ require 'daytona_api_client/models/sandbox_state'
|
|
|
164
168
|
require 'daytona_api_client/models/sandbox_volume'
|
|
165
169
|
require 'daytona_api_client/models/screenshot_response'
|
|
166
170
|
require 'daytona_api_client/models/search_files_response'
|
|
171
|
+
require 'daytona_api_client/models/secret'
|
|
167
172
|
require 'daytona_api_client/models/send_webhook_dto'
|
|
168
173
|
require 'daytona_api_client/models/session'
|
|
169
174
|
require 'daytona_api_client/models/session_execute_request'
|
|
@@ -176,6 +181,7 @@ require 'daytona_api_client/models/snapshot_state'
|
|
|
176
181
|
require 'daytona_api_client/models/ssh_access_dto'
|
|
177
182
|
require 'daytona_api_client/models/ssh_access_validation_dto'
|
|
178
183
|
require 'daytona_api_client/models/storage_access_dto'
|
|
184
|
+
require 'daytona_api_client/models/string_filter'
|
|
179
185
|
require 'daytona_api_client/models/toolbox_proxy_url'
|
|
180
186
|
require 'daytona_api_client/models/trace_span'
|
|
181
187
|
require 'daytona_api_client/models/trace_summary'
|
|
@@ -190,6 +196,7 @@ require 'daytona_api_client/models/update_organization_role'
|
|
|
190
196
|
require 'daytona_api_client/models/update_region'
|
|
191
197
|
require 'daytona_api_client/models/update_sandbox_network_settings'
|
|
192
198
|
require 'daytona_api_client/models/update_sandbox_state_dto'
|
|
199
|
+
require 'daytona_api_client/models/update_secret'
|
|
193
200
|
require 'daytona_api_client/models/url'
|
|
194
201
|
require 'daytona_api_client/models/user'
|
|
195
202
|
require 'daytona_api_client/models/user_home_dir_response'
|
|
@@ -216,6 +223,7 @@ require 'daytona_api_client/api/preview_api'
|
|
|
216
223
|
require 'daytona_api_client/api/regions_api'
|
|
217
224
|
require 'daytona_api_client/api/runners_api'
|
|
218
225
|
require 'daytona_api_client/api/sandbox_api'
|
|
226
|
+
require 'daytona_api_client/api/secret_api'
|
|
219
227
|
require 'daytona_api_client/api/snapshots_api'
|
|
220
228
|
require 'daytona_api_client/api/toolbox_api'
|
|
221
229
|
require 'daytona_api_client/api/users_api'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: daytona_api_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.192.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- daytona
|
|
@@ -79,6 +79,7 @@ files:
|
|
|
79
79
|
- lib/daytona_api_client/api/regions_api.rb
|
|
80
80
|
- lib/daytona_api_client/api/runners_api.rb
|
|
81
81
|
- lib/daytona_api_client/api/sandbox_api.rb
|
|
82
|
+
- lib/daytona_api_client/api/secret_api.rb
|
|
82
83
|
- lib/daytona_api_client/api/snapshots_api.rb
|
|
83
84
|
- lib/daytona_api_client/api/toolbox_api.rb
|
|
84
85
|
- lib/daytona_api_client/api/users_api.rb
|
|
@@ -119,10 +120,12 @@ files:
|
|
|
119
120
|
- lib/daytona_api_client/models/create_runner_response.rb
|
|
120
121
|
- lib/daytona_api_client/models/create_sandbox.rb
|
|
121
122
|
- lib/daytona_api_client/models/create_sandbox_snapshot.rb
|
|
123
|
+
- lib/daytona_api_client/models/create_secret.rb
|
|
122
124
|
- lib/daytona_api_client/models/create_session_request.rb
|
|
123
125
|
- lib/daytona_api_client/models/create_snapshot.rb
|
|
124
126
|
- lib/daytona_api_client/models/create_user.rb
|
|
125
127
|
- lib/daytona_api_client/models/create_volume.rb
|
|
128
|
+
- lib/daytona_api_client/models/date_filter.rb
|
|
126
129
|
- lib/daytona_api_client/models/daytona_configuration.rb
|
|
127
130
|
- lib/daytona_api_client/models/display_info_response.rb
|
|
128
131
|
- lib/daytona_api_client/models/docker_registry.rb
|
|
@@ -146,6 +149,7 @@ files:
|
|
|
146
149
|
- lib/daytona_api_client/models/health_controller_check200_response.rb
|
|
147
150
|
- lib/daytona_api_client/models/health_controller_check200_response_info_value.rb
|
|
148
151
|
- lib/daytona_api_client/models/health_controller_check503_response.rb
|
|
152
|
+
- lib/daytona_api_client/models/int_filter.rb
|
|
149
153
|
- lib/daytona_api_client/models/job.rb
|
|
150
154
|
- lib/daytona_api_client/models/job_status.rb
|
|
151
155
|
- lib/daytona_api_client/models/job_type.rb
|
|
@@ -215,6 +219,7 @@ files:
|
|
|
215
219
|
- lib/daytona_api_client/models/replace_request.rb
|
|
216
220
|
- lib/daytona_api_client/models/replace_result.rb
|
|
217
221
|
- lib/daytona_api_client/models/resize_sandbox.rb
|
|
222
|
+
- lib/daytona_api_client/models/resolve_sandbox_secrets200_response_inner.rb
|
|
218
223
|
- lib/daytona_api_client/models/runner.rb
|
|
219
224
|
- lib/daytona_api_client/models/runner_class.rb
|
|
220
225
|
- lib/daytona_api_client/models/runner_full.rb
|
|
@@ -234,6 +239,7 @@ files:
|
|
|
234
239
|
- lib/daytona_api_client/models/sandbox_volume.rb
|
|
235
240
|
- lib/daytona_api_client/models/screenshot_response.rb
|
|
236
241
|
- lib/daytona_api_client/models/search_files_response.rb
|
|
242
|
+
- lib/daytona_api_client/models/secret.rb
|
|
237
243
|
- lib/daytona_api_client/models/send_webhook_dto.rb
|
|
238
244
|
- lib/daytona_api_client/models/session.rb
|
|
239
245
|
- lib/daytona_api_client/models/session_execute_request.rb
|
|
@@ -246,6 +252,7 @@ files:
|
|
|
246
252
|
- lib/daytona_api_client/models/ssh_access_dto.rb
|
|
247
253
|
- lib/daytona_api_client/models/ssh_access_validation_dto.rb
|
|
248
254
|
- lib/daytona_api_client/models/storage_access_dto.rb
|
|
255
|
+
- lib/daytona_api_client/models/string_filter.rb
|
|
249
256
|
- lib/daytona_api_client/models/toolbox_proxy_url.rb
|
|
250
257
|
- lib/daytona_api_client/models/trace_span.rb
|
|
251
258
|
- lib/daytona_api_client/models/trace_summary.rb
|
|
@@ -260,6 +267,7 @@ files:
|
|
|
260
267
|
- lib/daytona_api_client/models/update_region.rb
|
|
261
268
|
- lib/daytona_api_client/models/update_sandbox_network_settings.rb
|
|
262
269
|
- lib/daytona_api_client/models/update_sandbox_state_dto.rb
|
|
270
|
+
- lib/daytona_api_client/models/update_secret.rb
|
|
263
271
|
- lib/daytona_api_client/models/url.rb
|
|
264
272
|
- lib/daytona_api_client/models/user.rb
|
|
265
273
|
- lib/daytona_api_client/models/user_home_dir_response.rb
|