daytona_api_client 0.134.0.alpha.1 → 1.0.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/Gemfile +9 -0
- data/Gemfile.lock +101 -0
- data/daytona_api_client.gemspec +2 -2
- data/lib/daytona_api_client/api/audit_api.rb +66 -18
- data/lib/daytona_api_client/api/docker_registry_api.rb +0 -3
- data/lib/daytona_api_client/api/organizations_api.rb +29 -754
- data/lib/daytona_api_client/api/preview_api.rb +5 -74
- data/lib/daytona_api_client/api/runners_api.rb +20 -343
- data/lib/daytona_api_client/api/sandbox_api.rb +194 -558
- data/lib/daytona_api_client/api/snapshots_api.rb +0 -66
- data/lib/daytona_api_client/api/toolbox_api.rb +711 -711
- data/lib/daytona_api_client/api/workspace_api.rb +3 -3
- data/lib/daytona_api_client/models/build_info.rb +4 -31
- data/lib/daytona_api_client/models/{job.rb → create_audit_log.rb} +79 -166
- data/lib/daytona_api_client/models/create_organization.rb +4 -31
- data/lib/daytona_api_client/models/create_runner.rb +315 -31
- data/lib/daytona_api_client/models/create_sandbox.rb +1 -11
- data/lib/daytona_api_client/models/create_snapshot.rb +4 -14
- data/lib/daytona_api_client/models/create_user.rb +1 -10
- data/lib/daytona_api_client/models/daytona_configuration.rb +4 -41
- data/lib/daytona_api_client/models/organization.rb +85 -53
- data/lib/daytona_api_client/models/organization_usage_overview.rb +146 -18
- data/lib/daytona_api_client/models/paginated_audit_logs.rb +4 -14
- data/lib/daytona_api_client/models/{paginated_jobs.rb → paginated_snapshots_dto.rb} +4 -4
- data/lib/daytona_api_client/models/port_preview_url.rb +14 -31
- data/lib/daytona_api_client/models/region.rb +4 -178
- data/lib/daytona_api_client/models/runner.rb +117 -79
- data/lib/daytona_api_client/models/runner_snapshot_dto.rb +17 -0
- data/lib/daytona_api_client/models/sandbox.rb +14 -51
- data/lib/daytona_api_client/models/sandbox_volume.rb +4 -14
- data/lib/daytona_api_client/models/snapshot_dto.rb +4 -36
- data/lib/daytona_api_client/models/snapshot_state.rb +4 -1
- data/lib/daytona_api_client/models/ssh_access_dto.rb +4 -31
- data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +24 -4
- data/lib/daytona_api_client/models/update_organization_quota.rb +41 -41
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +4 -24
- data/lib/daytona_api_client/models/workspace.rb +35 -45
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +1 -30
- data/project.json +6 -34
- metadata +5 -38
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -194
- data/.openapi-generator/VERSION +0 -1
- data/.openapi-generator-ignore +0 -31
- data/.rspec +0 -2
- data/.rubocop.yml +0 -148
- data/fix-gemspec.sh +0 -11
- data/lib/daytona_api_client/api/admin_api.rb +0 -325
- data/lib/daytona_api_client/api/jobs_api.rb +0 -299
- data/lib/daytona_api_client/api/regions_api.rb +0 -77
- data/lib/daytona_api_client/models/admin_create_runner.rb +0 -385
- data/lib/daytona_api_client/models/create_region.rb +0 -269
- data/lib/daytona_api_client/models/create_region_response.rb +0 -280
- data/lib/daytona_api_client/models/create_runner_response.rb +0 -263
- data/lib/daytona_api_client/models/job_status.rb +0 -42
- data/lib/daytona_api_client/models/job_type.rb +0 -49
- data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -238
- data/lib/daytona_api_client/models/rate_limit_config.rb +0 -249
- data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -229
- data/lib/daytona_api_client/models/regenerate_api_key_response.rb +0 -236
- data/lib/daytona_api_client/models/region_quota.rb +0 -339
- data/lib/daytona_api_client/models/region_type.rb +0 -41
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -391
- data/lib/daytona_api_client/models/runner_full.rb +0 -779
- data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -533
- data/lib/daytona_api_client/models/runner_healthcheck.rb +0 -276
- data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -317
- data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -263
- data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -236
- data/lib/daytona_api_client/models/update_job_status.rb +0 -278
- data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -236
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -245
- data/lib/daytona_api_client/models/update_region.rb +0 -242
- data/lib/daytona_api_client/models/url.rb +0 -236
- data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -263
|
@@ -353,7 +353,7 @@ module DaytonaApiClient
|
|
|
353
353
|
# @param port [Float] Port number to get preview URL for
|
|
354
354
|
# @param [Hash] opts the optional parameters
|
|
355
355
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
356
|
-
# @return [
|
|
356
|
+
# @return [PortPreviewUrl]
|
|
357
357
|
def get_port_preview_url_workspace_deprecated(workspace_id, port, opts = {})
|
|
358
358
|
data, _status_code, _headers = get_port_preview_url_workspace_deprecated_with_http_info(workspace_id, port, opts)
|
|
359
359
|
data
|
|
@@ -364,7 +364,7 @@ module DaytonaApiClient
|
|
|
364
364
|
# @param port [Float] Port number to get preview URL for
|
|
365
365
|
# @param [Hash] opts the optional parameters
|
|
366
366
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
367
|
-
# @return [Array<(
|
|
367
|
+
# @return [Array<(PortPreviewUrl, Integer, Hash)>] PortPreviewUrl data, response status code and response headers
|
|
368
368
|
def get_port_preview_url_workspace_deprecated_with_http_info(workspace_id, port, opts = {})
|
|
369
369
|
if @api_client.config.debugging
|
|
370
370
|
@api_client.config.logger.debug 'Calling API: WorkspaceApi.get_port_preview_url_workspace_deprecated ...'
|
|
@@ -396,7 +396,7 @@ module DaytonaApiClient
|
|
|
396
396
|
post_body = opts[:debug_body]
|
|
397
397
|
|
|
398
398
|
# return_type
|
|
399
|
-
return_type = opts[:debug_return_type] || '
|
|
399
|
+
return_type = opts[:debug_return_type] || 'PortPreviewUrl'
|
|
400
400
|
|
|
401
401
|
# auth_names
|
|
402
402
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
@@ -27,17 +27,13 @@ module DaytonaApiClient
|
|
|
27
27
|
# The last update timestamp
|
|
28
28
|
attr_accessor :updated_at
|
|
29
29
|
|
|
30
|
-
# The snapshot reference
|
|
31
|
-
attr_accessor :snapshot_ref
|
|
32
|
-
|
|
33
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
31
|
def self.attribute_map
|
|
35
32
|
{
|
|
36
33
|
:'dockerfile_content' => :'dockerfileContent',
|
|
37
34
|
:'context_hashes' => :'contextHashes',
|
|
38
35
|
:'created_at' => :'createdAt',
|
|
39
|
-
:'updated_at' => :'updatedAt'
|
|
40
|
-
:'snapshot_ref' => :'snapshotRef'
|
|
36
|
+
:'updated_at' => :'updatedAt'
|
|
41
37
|
}
|
|
42
38
|
end
|
|
43
39
|
|
|
@@ -57,8 +53,7 @@ module DaytonaApiClient
|
|
|
57
53
|
:'dockerfile_content' => :'String',
|
|
58
54
|
:'context_hashes' => :'Array<String>',
|
|
59
55
|
:'created_at' => :'Time',
|
|
60
|
-
:'updated_at' => :'Time'
|
|
61
|
-
:'snapshot_ref' => :'String'
|
|
56
|
+
:'updated_at' => :'Time'
|
|
62
57
|
}
|
|
63
58
|
end
|
|
64
59
|
|
|
@@ -105,12 +100,6 @@ module DaytonaApiClient
|
|
|
105
100
|
else
|
|
106
101
|
self.updated_at = nil
|
|
107
102
|
end
|
|
108
|
-
|
|
109
|
-
if attributes.key?(:'snapshot_ref')
|
|
110
|
-
self.snapshot_ref = attributes[:'snapshot_ref']
|
|
111
|
-
else
|
|
112
|
-
self.snapshot_ref = nil
|
|
113
|
-
end
|
|
114
103
|
end
|
|
115
104
|
|
|
116
105
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -126,10 +115,6 @@ module DaytonaApiClient
|
|
|
126
115
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
127
116
|
end
|
|
128
117
|
|
|
129
|
-
if @snapshot_ref.nil?
|
|
130
|
-
invalid_properties.push('invalid value for "snapshot_ref", snapshot_ref cannot be nil.')
|
|
131
|
-
end
|
|
132
|
-
|
|
133
118
|
invalid_properties
|
|
134
119
|
end
|
|
135
120
|
|
|
@@ -139,7 +124,6 @@ module DaytonaApiClient
|
|
|
139
124
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
140
125
|
return false if @created_at.nil?
|
|
141
126
|
return false if @updated_at.nil?
|
|
142
|
-
return false if @snapshot_ref.nil?
|
|
143
127
|
true
|
|
144
128
|
end
|
|
145
129
|
|
|
@@ -163,16 +147,6 @@ module DaytonaApiClient
|
|
|
163
147
|
@updated_at = updated_at
|
|
164
148
|
end
|
|
165
149
|
|
|
166
|
-
# Custom attribute writer method with validation
|
|
167
|
-
# @param [Object] snapshot_ref Value to be assigned
|
|
168
|
-
def snapshot_ref=(snapshot_ref)
|
|
169
|
-
if snapshot_ref.nil?
|
|
170
|
-
fail ArgumentError, 'snapshot_ref cannot be nil'
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
@snapshot_ref = snapshot_ref
|
|
174
|
-
end
|
|
175
|
-
|
|
176
150
|
# Checks equality by comparing each attribute.
|
|
177
151
|
# @param [Object] Object to be compared
|
|
178
152
|
def ==(o)
|
|
@@ -181,8 +155,7 @@ module DaytonaApiClient
|
|
|
181
155
|
dockerfile_content == o.dockerfile_content &&
|
|
182
156
|
context_hashes == o.context_hashes &&
|
|
183
157
|
created_at == o.created_at &&
|
|
184
|
-
updated_at == o.updated_at
|
|
185
|
-
snapshot_ref == o.snapshot_ref
|
|
158
|
+
updated_at == o.updated_at
|
|
186
159
|
end
|
|
187
160
|
|
|
188
161
|
# @see the `==` method
|
|
@@ -194,7 +167,7 @@ module DaytonaApiClient
|
|
|
194
167
|
# Calculates hash code according to all attributes.
|
|
195
168
|
# @return [Integer] Hash code
|
|
196
169
|
def hash
|
|
197
|
-
[dockerfile_content, context_hashes, created_at, updated_at
|
|
170
|
+
[dockerfile_content, context_hashes, created_at, updated_at].hash
|
|
198
171
|
end
|
|
199
172
|
|
|
200
173
|
# Builds the object from hash
|
|
@@ -14,36 +14,18 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class
|
|
18
|
-
|
|
19
|
-
attr_accessor :id
|
|
17
|
+
class CreateAuditLog
|
|
18
|
+
attr_accessor :actor_id
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
attr_accessor :type
|
|
20
|
+
attr_accessor :actor_email
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
attr_accessor :status
|
|
22
|
+
attr_accessor :organization_id
|
|
26
23
|
|
|
27
|
-
|
|
28
|
-
attr_accessor :resource_type
|
|
24
|
+
attr_accessor :action
|
|
29
25
|
|
|
30
|
-
|
|
31
|
-
attr_accessor :resource_id
|
|
26
|
+
attr_accessor :target_type
|
|
32
27
|
|
|
33
|
-
|
|
34
|
-
attr_accessor :payload
|
|
35
|
-
|
|
36
|
-
# OpenTelemetry trace context for distributed tracing (W3C Trace Context format)
|
|
37
|
-
attr_accessor :trace_context
|
|
38
|
-
|
|
39
|
-
# Error message if the job failed
|
|
40
|
-
attr_accessor :error_message
|
|
41
|
-
|
|
42
|
-
# The creation timestamp of the job
|
|
43
|
-
attr_accessor :created_at
|
|
44
|
-
|
|
45
|
-
# The last update timestamp of the job
|
|
46
|
-
attr_accessor :updated_at
|
|
28
|
+
attr_accessor :target_id
|
|
47
29
|
|
|
48
30
|
class EnumAttributeValidator
|
|
49
31
|
attr_reader :datatype
|
|
@@ -70,16 +52,12 @@ module DaytonaApiClient
|
|
|
70
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
71
53
|
def self.attribute_map
|
|
72
54
|
{
|
|
73
|
-
:'
|
|
74
|
-
:'
|
|
75
|
-
:'
|
|
76
|
-
:'
|
|
77
|
-
:'
|
|
78
|
-
:'
|
|
79
|
-
:'trace_context' => :'traceContext',
|
|
80
|
-
:'error_message' => :'errorMessage',
|
|
81
|
-
:'created_at' => :'createdAt',
|
|
82
|
-
:'updated_at' => :'updatedAt'
|
|
55
|
+
:'actor_id' => :'actorId',
|
|
56
|
+
:'actor_email' => :'actorEmail',
|
|
57
|
+
:'organization_id' => :'organizationId',
|
|
58
|
+
:'action' => :'action',
|
|
59
|
+
:'target_type' => :'targetType',
|
|
60
|
+
:'target_id' => :'targetId'
|
|
83
61
|
}
|
|
84
62
|
end
|
|
85
63
|
|
|
@@ -96,16 +74,12 @@ module DaytonaApiClient
|
|
|
96
74
|
# Attribute type mapping.
|
|
97
75
|
def self.openapi_types
|
|
98
76
|
{
|
|
99
|
-
:'
|
|
100
|
-
:'
|
|
101
|
-
:'
|
|
102
|
-
:'
|
|
103
|
-
:'
|
|
104
|
-
:'
|
|
105
|
-
:'trace_context' => :'Hash<String, Object>',
|
|
106
|
-
:'error_message' => :'String',
|
|
107
|
-
:'created_at' => :'String',
|
|
108
|
-
:'updated_at' => :'String'
|
|
77
|
+
:'actor_id' => :'String',
|
|
78
|
+
:'actor_email' => :'String',
|
|
79
|
+
:'organization_id' => :'String',
|
|
80
|
+
:'action' => :'String',
|
|
81
|
+
:'target_type' => :'String',
|
|
82
|
+
:'target_id' => :'String'
|
|
109
83
|
}
|
|
110
84
|
end
|
|
111
85
|
|
|
@@ -119,70 +93,46 @@ module DaytonaApiClient
|
|
|
119
93
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
120
94
|
def initialize(attributes = {})
|
|
121
95
|
if (!attributes.is_a?(Hash))
|
|
122
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::
|
|
96
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::CreateAuditLog` initialize method"
|
|
123
97
|
end
|
|
124
98
|
|
|
125
99
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
126
100
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
127
101
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
128
102
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
129
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::
|
|
103
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::CreateAuditLog`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
130
104
|
end
|
|
131
105
|
h[k.to_sym] = v
|
|
132
106
|
}
|
|
133
107
|
|
|
134
|
-
if attributes.key?(:'
|
|
135
|
-
self.
|
|
108
|
+
if attributes.key?(:'actor_id')
|
|
109
|
+
self.actor_id = attributes[:'actor_id']
|
|
136
110
|
else
|
|
137
|
-
self.
|
|
111
|
+
self.actor_id = nil
|
|
138
112
|
end
|
|
139
113
|
|
|
140
|
-
if attributes.key?(:'
|
|
141
|
-
self.
|
|
114
|
+
if attributes.key?(:'actor_email')
|
|
115
|
+
self.actor_email = attributes[:'actor_email']
|
|
142
116
|
else
|
|
143
|
-
self.
|
|
117
|
+
self.actor_email = nil
|
|
144
118
|
end
|
|
145
119
|
|
|
146
|
-
if attributes.key?(:'
|
|
147
|
-
self.
|
|
148
|
-
else
|
|
149
|
-
self.status = nil
|
|
120
|
+
if attributes.key?(:'organization_id')
|
|
121
|
+
self.organization_id = attributes[:'organization_id']
|
|
150
122
|
end
|
|
151
123
|
|
|
152
|
-
if attributes.key?(:'
|
|
153
|
-
self.
|
|
124
|
+
if attributes.key?(:'action')
|
|
125
|
+
self.action = attributes[:'action']
|
|
154
126
|
else
|
|
155
|
-
self.
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
if attributes.key?(:'resource_id')
|
|
159
|
-
self.resource_id = attributes[:'resource_id']
|
|
160
|
-
else
|
|
161
|
-
self.resource_id = nil
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
if attributes.key?(:'payload')
|
|
165
|
-
self.payload = attributes[:'payload']
|
|
127
|
+
self.action = nil
|
|
166
128
|
end
|
|
167
129
|
|
|
168
|
-
if attributes.key?(:'
|
|
169
|
-
|
|
170
|
-
self.trace_context = value
|
|
171
|
-
end
|
|
130
|
+
if attributes.key?(:'target_type')
|
|
131
|
+
self.target_type = attributes[:'target_type']
|
|
172
132
|
end
|
|
173
133
|
|
|
174
|
-
if attributes.key?(:'
|
|
175
|
-
self.
|
|
176
|
-
end
|
|
177
|
-
|
|
178
|
-
if attributes.key?(:'created_at')
|
|
179
|
-
self.created_at = attributes[:'created_at']
|
|
180
|
-
else
|
|
181
|
-
self.created_at = nil
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
if attributes.key?(:'updated_at')
|
|
185
|
-
self.updated_at = attributes[:'updated_at']
|
|
134
|
+
if attributes.key?(:'target_id')
|
|
135
|
+
self.target_id = attributes[:'target_id']
|
|
186
136
|
end
|
|
187
137
|
end
|
|
188
138
|
|
|
@@ -191,28 +141,16 @@ module DaytonaApiClient
|
|
|
191
141
|
def list_invalid_properties
|
|
192
142
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
193
143
|
invalid_properties = Array.new
|
|
194
|
-
if @
|
|
195
|
-
invalid_properties.push('invalid value for "
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
if @type.nil?
|
|
199
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
144
|
+
if @actor_id.nil?
|
|
145
|
+
invalid_properties.push('invalid value for "actor_id", actor_id cannot be nil.')
|
|
200
146
|
end
|
|
201
147
|
|
|
202
|
-
if @
|
|
203
|
-
invalid_properties.push('invalid value for "
|
|
148
|
+
if @actor_email.nil?
|
|
149
|
+
invalid_properties.push('invalid value for "actor_email", actor_email cannot be nil.')
|
|
204
150
|
end
|
|
205
151
|
|
|
206
|
-
if @
|
|
207
|
-
invalid_properties.push('invalid value for "
|
|
208
|
-
end
|
|
209
|
-
|
|
210
|
-
if @resource_id.nil?
|
|
211
|
-
invalid_properties.push('invalid value for "resource_id", resource_id cannot be nil.')
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
if @created_at.nil?
|
|
215
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
152
|
+
if @action.nil?
|
|
153
|
+
invalid_properties.push('invalid value for "action", action cannot be nil.')
|
|
216
154
|
end
|
|
217
155
|
|
|
218
156
|
invalid_properties
|
|
@@ -222,75 +160,54 @@ module DaytonaApiClient
|
|
|
222
160
|
# @return true if the model is valid
|
|
223
161
|
def valid?
|
|
224
162
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
225
|
-
return false if @
|
|
226
|
-
return false if @
|
|
227
|
-
return false if @
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
return false
|
|
232
|
-
return false if @created_at.nil?
|
|
163
|
+
return false if @actor_id.nil?
|
|
164
|
+
return false if @actor_email.nil?
|
|
165
|
+
return false if @action.nil?
|
|
166
|
+
action_validator = EnumAttributeValidator.new('String', ["create", "read", "update", "delete", "login", "set_default", "update_access", "update_quota", "suspend", "unsuspend", "accept", "decline", "link_account", "unlink_account", "leave_organization", "regenerate_key_pair", "update_scheduling", "start", "stop", "replace_labels", "create_backup", "update_public_status", "set_auto_stop_interval", "set_auto_archive_interval", "set_auto_delete_interval", "archive", "get_port_preview_url", "set_general_status", "activate", "deactivate", "update_network_settings", "get_webhook_app_portal_access", "send_webhook_message", "initialize_webhooks", "update_sandbox_default_limited_network_egress", "toolbox_delete_file", "toolbox_download_file", "toolbox_create_folder", "toolbox_move_file", "toolbox_set_file_permissions", "toolbox_replace_in_files", "toolbox_upload_file", "toolbox_bulk_upload_files", "toolbox_git_add_files", "toolbox_git_create_branch", "toolbox_git_delete_branch", "toolbox_git_clone_repository", "toolbox_git_commit_changes", "toolbox_git_pull_changes", "toolbox_git_push_changes", "toolbox_git_checkout_branch", "toolbox_execute_command", "toolbox_create_session", "toolbox_session_execute_command", "toolbox_delete_session", "toolbox_computer_use_start", "toolbox_computer_use_stop", "toolbox_computer_use_restart_process"])
|
|
167
|
+
return false unless action_validator.valid?(@action)
|
|
168
|
+
target_type_validator = EnumAttributeValidator.new('String', ["api_key", "organization", "organization_invitation", "organization_role", "organization_user", "docker_registry", "runner", "sandbox", "snapshot", "user", "volume"])
|
|
169
|
+
return false unless target_type_validator.valid?(@target_type)
|
|
233
170
|
true
|
|
234
171
|
end
|
|
235
172
|
|
|
236
173
|
# Custom attribute writer method with validation
|
|
237
|
-
# @param [Object]
|
|
238
|
-
def
|
|
239
|
-
if
|
|
240
|
-
fail ArgumentError, '
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
@id = id
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
# Custom attribute writer method with validation
|
|
247
|
-
# @param [Object] type Value to be assigned
|
|
248
|
-
def type=(type)
|
|
249
|
-
if type.nil?
|
|
250
|
-
fail ArgumentError, 'type cannot be nil'
|
|
174
|
+
# @param [Object] actor_id Value to be assigned
|
|
175
|
+
def actor_id=(actor_id)
|
|
176
|
+
if actor_id.nil?
|
|
177
|
+
fail ArgumentError, 'actor_id cannot be nil'
|
|
251
178
|
end
|
|
252
179
|
|
|
253
|
-
@
|
|
180
|
+
@actor_id = actor_id
|
|
254
181
|
end
|
|
255
182
|
|
|
256
183
|
# Custom attribute writer method with validation
|
|
257
|
-
# @param [Object]
|
|
258
|
-
def
|
|
259
|
-
if
|
|
260
|
-
fail ArgumentError, '
|
|
184
|
+
# @param [Object] actor_email Value to be assigned
|
|
185
|
+
def actor_email=(actor_email)
|
|
186
|
+
if actor_email.nil?
|
|
187
|
+
fail ArgumentError, 'actor_email cannot be nil'
|
|
261
188
|
end
|
|
262
189
|
|
|
263
|
-
@
|
|
190
|
+
@actor_email = actor_email
|
|
264
191
|
end
|
|
265
192
|
|
|
266
193
|
# Custom attribute writer method checking allowed values (enum).
|
|
267
|
-
# @param [Object]
|
|
268
|
-
def
|
|
269
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
270
|
-
unless validator.valid?(
|
|
271
|
-
fail ArgumentError, "invalid value for \"
|
|
194
|
+
# @param [Object] action Object to be assigned
|
|
195
|
+
def action=(action)
|
|
196
|
+
validator = EnumAttributeValidator.new('String', ["create", "read", "update", "delete", "login", "set_default", "update_access", "update_quota", "suspend", "unsuspend", "accept", "decline", "link_account", "unlink_account", "leave_organization", "regenerate_key_pair", "update_scheduling", "start", "stop", "replace_labels", "create_backup", "update_public_status", "set_auto_stop_interval", "set_auto_archive_interval", "set_auto_delete_interval", "archive", "get_port_preview_url", "set_general_status", "activate", "deactivate", "update_network_settings", "get_webhook_app_portal_access", "send_webhook_message", "initialize_webhooks", "update_sandbox_default_limited_network_egress", "toolbox_delete_file", "toolbox_download_file", "toolbox_create_folder", "toolbox_move_file", "toolbox_set_file_permissions", "toolbox_replace_in_files", "toolbox_upload_file", "toolbox_bulk_upload_files", "toolbox_git_add_files", "toolbox_git_create_branch", "toolbox_git_delete_branch", "toolbox_git_clone_repository", "toolbox_git_commit_changes", "toolbox_git_pull_changes", "toolbox_git_push_changes", "toolbox_git_checkout_branch", "toolbox_execute_command", "toolbox_create_session", "toolbox_session_execute_command", "toolbox_delete_session", "toolbox_computer_use_start", "toolbox_computer_use_stop", "toolbox_computer_use_restart_process"])
|
|
197
|
+
unless validator.valid?(action)
|
|
198
|
+
fail ArgumentError, "invalid value for \"action\", must be one of #{validator.allowable_values}."
|
|
272
199
|
end
|
|
273
|
-
@
|
|
200
|
+
@action = action
|
|
274
201
|
end
|
|
275
202
|
|
|
276
|
-
# Custom attribute writer method
|
|
277
|
-
# @param [Object]
|
|
278
|
-
def
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
@resource_id = resource_id
|
|
284
|
-
end
|
|
285
|
-
|
|
286
|
-
# Custom attribute writer method with validation
|
|
287
|
-
# @param [Object] created_at Value to be assigned
|
|
288
|
-
def created_at=(created_at)
|
|
289
|
-
if created_at.nil?
|
|
290
|
-
fail ArgumentError, 'created_at cannot be nil'
|
|
203
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
204
|
+
# @param [Object] target_type Object to be assigned
|
|
205
|
+
def target_type=(target_type)
|
|
206
|
+
validator = EnumAttributeValidator.new('String', ["api_key", "organization", "organization_invitation", "organization_role", "organization_user", "docker_registry", "runner", "sandbox", "snapshot", "user", "volume"])
|
|
207
|
+
unless validator.valid?(target_type)
|
|
208
|
+
fail ArgumentError, "invalid value for \"target_type\", must be one of #{validator.allowable_values}."
|
|
291
209
|
end
|
|
292
|
-
|
|
293
|
-
@created_at = created_at
|
|
210
|
+
@target_type = target_type
|
|
294
211
|
end
|
|
295
212
|
|
|
296
213
|
# Checks equality by comparing each attribute.
|
|
@@ -298,16 +215,12 @@ module DaytonaApiClient
|
|
|
298
215
|
def ==(o)
|
|
299
216
|
return true if self.equal?(o)
|
|
300
217
|
self.class == o.class &&
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
trace_context == o.trace_context &&
|
|
308
|
-
error_message == o.error_message &&
|
|
309
|
-
created_at == o.created_at &&
|
|
310
|
-
updated_at == o.updated_at
|
|
218
|
+
actor_id == o.actor_id &&
|
|
219
|
+
actor_email == o.actor_email &&
|
|
220
|
+
organization_id == o.organization_id &&
|
|
221
|
+
action == o.action &&
|
|
222
|
+
target_type == o.target_type &&
|
|
223
|
+
target_id == o.target_id
|
|
311
224
|
end
|
|
312
225
|
|
|
313
226
|
# @see the `==` method
|
|
@@ -319,7 +232,7 @@ module DaytonaApiClient
|
|
|
319
232
|
# Calculates hash code according to all attributes.
|
|
320
233
|
# @return [Integer] Hash code
|
|
321
234
|
def hash
|
|
322
|
-
[
|
|
235
|
+
[actor_id, actor_email, organization_id, action, target_type, target_id].hash
|
|
323
236
|
end
|
|
324
237
|
|
|
325
238
|
# Builds the object from hash
|
|
@@ -18,14 +18,10 @@ module DaytonaApiClient
|
|
|
18
18
|
# The name of organization
|
|
19
19
|
attr_accessor :name
|
|
20
20
|
|
|
21
|
-
# The ID of the default region for the organization
|
|
22
|
-
attr_accessor :default_region_id
|
|
23
|
-
|
|
24
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
22
|
def self.attribute_map
|
|
26
23
|
{
|
|
27
|
-
:'name' => :'name'
|
|
28
|
-
:'default_region_id' => :'defaultRegionId'
|
|
24
|
+
:'name' => :'name'
|
|
29
25
|
}
|
|
30
26
|
end
|
|
31
27
|
|
|
@@ -42,8 +38,7 @@ module DaytonaApiClient
|
|
|
42
38
|
# Attribute type mapping.
|
|
43
39
|
def self.openapi_types
|
|
44
40
|
{
|
|
45
|
-
:'name' => :'String'
|
|
46
|
-
:'default_region_id' => :'String'
|
|
41
|
+
:'name' => :'String'
|
|
47
42
|
}
|
|
48
43
|
end
|
|
49
44
|
|
|
@@ -74,12 +69,6 @@ module DaytonaApiClient
|
|
|
74
69
|
else
|
|
75
70
|
self.name = nil
|
|
76
71
|
end
|
|
77
|
-
|
|
78
|
-
if attributes.key?(:'default_region_id')
|
|
79
|
-
self.default_region_id = attributes[:'default_region_id']
|
|
80
|
-
else
|
|
81
|
-
self.default_region_id = nil
|
|
82
|
-
end
|
|
83
72
|
end
|
|
84
73
|
|
|
85
74
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -91,10 +80,6 @@ module DaytonaApiClient
|
|
|
91
80
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
92
81
|
end
|
|
93
82
|
|
|
94
|
-
if @default_region_id.nil?
|
|
95
|
-
invalid_properties.push('invalid value for "default_region_id", default_region_id cannot be nil.')
|
|
96
|
-
end
|
|
97
|
-
|
|
98
83
|
invalid_properties
|
|
99
84
|
end
|
|
100
85
|
|
|
@@ -103,7 +88,6 @@ module DaytonaApiClient
|
|
|
103
88
|
def valid?
|
|
104
89
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
105
90
|
return false if @name.nil?
|
|
106
|
-
return false if @default_region_id.nil?
|
|
107
91
|
true
|
|
108
92
|
end
|
|
109
93
|
|
|
@@ -117,23 +101,12 @@ module DaytonaApiClient
|
|
|
117
101
|
@name = name
|
|
118
102
|
end
|
|
119
103
|
|
|
120
|
-
# Custom attribute writer method with validation
|
|
121
|
-
# @param [Object] default_region_id Value to be assigned
|
|
122
|
-
def default_region_id=(default_region_id)
|
|
123
|
-
if default_region_id.nil?
|
|
124
|
-
fail ArgumentError, 'default_region_id cannot be nil'
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
@default_region_id = default_region_id
|
|
128
|
-
end
|
|
129
|
-
|
|
130
104
|
# Checks equality by comparing each attribute.
|
|
131
105
|
# @param [Object] Object to be compared
|
|
132
106
|
def ==(o)
|
|
133
107
|
return true if self.equal?(o)
|
|
134
108
|
self.class == o.class &&
|
|
135
|
-
name == o.name
|
|
136
|
-
default_region_id == o.default_region_id
|
|
109
|
+
name == o.name
|
|
137
110
|
end
|
|
138
111
|
|
|
139
112
|
# @see the `==` method
|
|
@@ -145,7 +118,7 @@ module DaytonaApiClient
|
|
|
145
118
|
# Calculates hash code according to all attributes.
|
|
146
119
|
# @return [Integer] Hash code
|
|
147
120
|
def hash
|
|
148
|
-
[name
|
|
121
|
+
[name].hash
|
|
149
122
|
end
|
|
150
123
|
|
|
151
124
|
# Builds the object from hash
|