daytona_api_client 0.216.0 → 0.217.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 +15 -16
- data/lib/daytona_api_client/api/organizations_api.rb +260 -484
- data/lib/daytona_api_client/api/sandbox_api.rb +14 -163
- data/lib/daytona_api_client/api/users_api.rb +82 -90
- data/lib/daytona_api_client/models/account_provider.rb +48 -19
- data/lib/daytona_api_client/models/api_key_list.rb +14 -4
- data/lib/daytona_api_client/models/create_runner.rb +37 -4
- data/lib/daytona_api_client/models/create_runner_sandbox_class.rb +42 -0
- data/lib/daytona_api_client/models/daytona_configuration.rb +45 -1
- data/lib/daytona_api_client/models/{organization_preview_warning.rb → generate_workos_admin_portal_link.rb} +42 -20
- data/lib/daytona_api_client/models/{send_webhook_dto.rb → gpu_capacity.rb} +77 -43
- data/lib/daytona_api_client/models/{organization_sso_enabled.rb → gpu_capacity_response.rb} +48 -20
- data/lib/daytona_api_client/models/gpu_type.rb +2 -1
- data/lib/daytona_api_client/models/oidc_config.rb +65 -4
- data/lib/daytona_api_client/models/organization.rb +38 -1
- data/lib/daytona_api_client/models/sandbox_created_webhook.rb +349 -0
- data/lib/daytona_api_client/models/{organization_sandbox_default_limited_network_egress.rb → sandbox_identity.rb} +47 -20
- data/lib/daytona_api_client/models/sandbox_state_updated_webhook.rb +349 -0
- data/lib/daytona_api_client/models/snapshot_created_webhook.rb +349 -0
- data/lib/daytona_api_client/models/{create_user.rb → snapshot_removed_webhook.rb} +119 -71
- data/lib/daytona_api_client/models/snapshot_state_updated_webhook.rb +376 -0
- data/lib/daytona_api_client/models/user.rb +11 -1
- data/lib/daytona_api_client/models/volume_created_webhook.rb +349 -0
- data/lib/daytona_api_client/models/volume_state_updated_webhook.rb +376 -0
- data/lib/daytona_api_client/models/workos_admin_portal_intent.rb +41 -0
- data/lib/daytona_api_client/models/{set_snapshot_general_status_dto.rb → workos_admin_portal_link.rb} +20 -20
- data/lib/daytona_api_client/models/{admin_create_runner.rb → workos_sso_connection.rb} +123 -120
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +15 -16
- metadata +16 -17
- data/lib/daytona_api_client/api/admin_api.rb +0 -1618
- data/lib/daytona_api_client/models/admin_create_organization.rb +0 -219
- data/lib/daytona_api_client/models/admin_get_webhook_status200_response.rb +0 -147
- data/lib/daytona_api_client/models/create_organization_quota.rb +0 -238
- data/lib/daytona_api_client/models/create_organization_region_quota.rb +0 -386
- data/lib/daytona_api_client/models/organization_suspension.rb +0 -221
- data/lib/daytona_api_client/models/paginated_sandboxes_deprecated.rb +0 -244
- data/lib/daytona_api_client/models/update_organization_quota.rb +0 -333
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -313
|
@@ -15,15 +15,21 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
17
|
class AccountProvider < ApiModelBase
|
|
18
|
-
|
|
18
|
+
# WorkOS identity provider, e.g. GoogleOAuth or GitHubOAuth
|
|
19
|
+
attr_accessor :provider
|
|
19
20
|
|
|
21
|
+
# Human-readable provider name
|
|
20
22
|
attr_accessor :display_name
|
|
21
23
|
|
|
24
|
+
# Whether the authenticated user has an identity from this provider
|
|
25
|
+
attr_accessor :linked
|
|
26
|
+
|
|
22
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
28
|
def self.attribute_map
|
|
24
29
|
{
|
|
25
|
-
:'
|
|
26
|
-
:'display_name' => :'displayName'
|
|
30
|
+
:'provider' => :'provider',
|
|
31
|
+
:'display_name' => :'displayName',
|
|
32
|
+
:'linked' => :'linked'
|
|
27
33
|
}
|
|
28
34
|
end
|
|
29
35
|
|
|
@@ -40,8 +46,9 @@ module DaytonaApiClient
|
|
|
40
46
|
# Attribute type mapping.
|
|
41
47
|
def self.openapi_types
|
|
42
48
|
{
|
|
43
|
-
:'
|
|
44
|
-
:'display_name' => :'String'
|
|
49
|
+
:'provider' => :'String',
|
|
50
|
+
:'display_name' => :'String',
|
|
51
|
+
:'linked' => :'Boolean'
|
|
45
52
|
}
|
|
46
53
|
end
|
|
47
54
|
|
|
@@ -67,10 +74,10 @@ module DaytonaApiClient
|
|
|
67
74
|
h[k.to_sym] = v
|
|
68
75
|
}
|
|
69
76
|
|
|
70
|
-
if attributes.key?(:'
|
|
71
|
-
self.
|
|
77
|
+
if attributes.key?(:'provider')
|
|
78
|
+
self.provider = attributes[:'provider']
|
|
72
79
|
else
|
|
73
|
-
self.
|
|
80
|
+
self.provider = nil
|
|
74
81
|
end
|
|
75
82
|
|
|
76
83
|
if attributes.key?(:'display_name')
|
|
@@ -78,6 +85,12 @@ module DaytonaApiClient
|
|
|
78
85
|
else
|
|
79
86
|
self.display_name = nil
|
|
80
87
|
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'linked')
|
|
90
|
+
self.linked = attributes[:'linked']
|
|
91
|
+
else
|
|
92
|
+
self.linked = nil
|
|
93
|
+
end
|
|
81
94
|
end
|
|
82
95
|
|
|
83
96
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -85,14 +98,18 @@ module DaytonaApiClient
|
|
|
85
98
|
def list_invalid_properties
|
|
86
99
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
87
100
|
invalid_properties = Array.new
|
|
88
|
-
if @
|
|
89
|
-
invalid_properties.push('invalid value for "
|
|
101
|
+
if @provider.nil?
|
|
102
|
+
invalid_properties.push('invalid value for "provider", provider cannot be nil.')
|
|
90
103
|
end
|
|
91
104
|
|
|
92
105
|
if @display_name.nil?
|
|
93
106
|
invalid_properties.push('invalid value for "display_name", display_name cannot be nil.')
|
|
94
107
|
end
|
|
95
108
|
|
|
109
|
+
if @linked.nil?
|
|
110
|
+
invalid_properties.push('invalid value for "linked", linked cannot be nil.')
|
|
111
|
+
end
|
|
112
|
+
|
|
96
113
|
invalid_properties
|
|
97
114
|
end
|
|
98
115
|
|
|
@@ -100,19 +117,20 @@ module DaytonaApiClient
|
|
|
100
117
|
# @return true if the model is valid
|
|
101
118
|
def valid?
|
|
102
119
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
103
|
-
return false if @
|
|
120
|
+
return false if @provider.nil?
|
|
104
121
|
return false if @display_name.nil?
|
|
122
|
+
return false if @linked.nil?
|
|
105
123
|
true
|
|
106
124
|
end
|
|
107
125
|
|
|
108
126
|
# Custom attribute writer method with validation
|
|
109
|
-
# @param [Object]
|
|
110
|
-
def
|
|
111
|
-
if
|
|
112
|
-
fail ArgumentError, '
|
|
127
|
+
# @param [Object] provider Value to be assigned
|
|
128
|
+
def provider=(provider)
|
|
129
|
+
if provider.nil?
|
|
130
|
+
fail ArgumentError, 'provider cannot be nil'
|
|
113
131
|
end
|
|
114
132
|
|
|
115
|
-
@
|
|
133
|
+
@provider = provider
|
|
116
134
|
end
|
|
117
135
|
|
|
118
136
|
# Custom attribute writer method with validation
|
|
@@ -125,13 +143,24 @@ module DaytonaApiClient
|
|
|
125
143
|
@display_name = display_name
|
|
126
144
|
end
|
|
127
145
|
|
|
146
|
+
# Custom attribute writer method with validation
|
|
147
|
+
# @param [Object] linked Value to be assigned
|
|
148
|
+
def linked=(linked)
|
|
149
|
+
if linked.nil?
|
|
150
|
+
fail ArgumentError, 'linked cannot be nil'
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
@linked = linked
|
|
154
|
+
end
|
|
155
|
+
|
|
128
156
|
# Checks equality by comparing each attribute.
|
|
129
157
|
# @param [Object] Object to be compared
|
|
130
158
|
def ==(o)
|
|
131
159
|
return true if self.equal?(o)
|
|
132
160
|
self.class == o.class &&
|
|
133
|
-
|
|
134
|
-
display_name == o.display_name
|
|
161
|
+
provider == o.provider &&
|
|
162
|
+
display_name == o.display_name &&
|
|
163
|
+
linked == o.linked
|
|
135
164
|
end
|
|
136
165
|
|
|
137
166
|
# @see the `==` method
|
|
@@ -143,7 +172,7 @@ module DaytonaApiClient
|
|
|
143
172
|
# Calculates hash code according to all attributes.
|
|
144
173
|
# @return [Integer] Hash code
|
|
145
174
|
def hash
|
|
146
|
-
[
|
|
175
|
+
[provider, display_name, linked].hash
|
|
147
176
|
end
|
|
148
177
|
|
|
149
178
|
# Builds the object from hash
|
|
@@ -36,6 +36,9 @@ module DaytonaApiClient
|
|
|
36
36
|
# The user ID of the user who created the API key
|
|
37
37
|
attr_accessor :user_id
|
|
38
38
|
|
|
39
|
+
# The organization ID associated with the API key
|
|
40
|
+
attr_accessor :organization_id
|
|
41
|
+
|
|
39
42
|
class EnumAttributeValidator
|
|
40
43
|
attr_reader :datatype
|
|
41
44
|
attr_reader :allowable_values
|
|
@@ -67,7 +70,8 @@ module DaytonaApiClient
|
|
|
67
70
|
:'permissions' => :'permissions',
|
|
68
71
|
:'last_used_at' => :'lastUsedAt',
|
|
69
72
|
:'expires_at' => :'expiresAt',
|
|
70
|
-
:'user_id' => :'userId'
|
|
73
|
+
:'user_id' => :'userId',
|
|
74
|
+
:'organization_id' => :'organizationId'
|
|
71
75
|
}
|
|
72
76
|
end
|
|
73
77
|
|
|
@@ -90,7 +94,8 @@ module DaytonaApiClient
|
|
|
90
94
|
:'permissions' => :'Array<String>',
|
|
91
95
|
:'last_used_at' => :'Time',
|
|
92
96
|
:'expires_at' => :'Time',
|
|
93
|
-
:'user_id' => :'String'
|
|
97
|
+
:'user_id' => :'String',
|
|
98
|
+
:'organization_id' => :'String'
|
|
94
99
|
}
|
|
95
100
|
end
|
|
96
101
|
|
|
@@ -161,6 +166,10 @@ module DaytonaApiClient
|
|
|
161
166
|
else
|
|
162
167
|
self.user_id = nil
|
|
163
168
|
end
|
|
169
|
+
|
|
170
|
+
if attributes.key?(:'organization_id')
|
|
171
|
+
self.organization_id = attributes[:'organization_id']
|
|
172
|
+
end
|
|
164
173
|
end
|
|
165
174
|
|
|
166
175
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -254,7 +263,8 @@ module DaytonaApiClient
|
|
|
254
263
|
permissions == o.permissions &&
|
|
255
264
|
last_used_at == o.last_used_at &&
|
|
256
265
|
expires_at == o.expires_at &&
|
|
257
|
-
user_id == o.user_id
|
|
266
|
+
user_id == o.user_id &&
|
|
267
|
+
organization_id == o.organization_id
|
|
258
268
|
end
|
|
259
269
|
|
|
260
270
|
# @see the `==` method
|
|
@@ -266,7 +276,7 @@ module DaytonaApiClient
|
|
|
266
276
|
# Calculates hash code according to all attributes.
|
|
267
277
|
# @return [Integer] Hash code
|
|
268
278
|
def hash
|
|
269
|
-
[name, value, created_at, permissions, last_used_at, expires_at, user_id].hash
|
|
279
|
+
[name, value, created_at, permissions, last_used_at, expires_at, user_id, organization_id].hash
|
|
270
280
|
end
|
|
271
281
|
|
|
272
282
|
# Builds the object from hash
|
|
@@ -22,12 +22,38 @@ module DaytonaApiClient
|
|
|
22
22
|
# Tags to associate with the runner
|
|
23
23
|
attr_accessor :tags
|
|
24
24
|
|
|
25
|
+
# The sandbox class supported by the runner. Defaults to container when omitted or null.
|
|
26
|
+
attr_accessor :sandbox_class
|
|
27
|
+
|
|
28
|
+
class EnumAttributeValidator
|
|
29
|
+
attr_reader :datatype
|
|
30
|
+
attr_reader :allowable_values
|
|
31
|
+
|
|
32
|
+
def initialize(datatype, allowable_values)
|
|
33
|
+
@allowable_values = allowable_values.map do |value|
|
|
34
|
+
case datatype.to_s
|
|
35
|
+
when /Integer/i
|
|
36
|
+
value.to_i
|
|
37
|
+
when /Float/i
|
|
38
|
+
value.to_f
|
|
39
|
+
else
|
|
40
|
+
value
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def valid?(value)
|
|
46
|
+
!value || allowable_values.include?(value)
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
25
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
51
|
def self.attribute_map
|
|
27
52
|
{
|
|
28
53
|
:'region_id' => :'regionId',
|
|
29
54
|
:'name' => :'name',
|
|
30
|
-
:'tags' => :'tags'
|
|
55
|
+
:'tags' => :'tags',
|
|
56
|
+
:'sandbox_class' => :'sandboxClass'
|
|
31
57
|
}
|
|
32
58
|
end
|
|
33
59
|
|
|
@@ -46,13 +72,15 @@ module DaytonaApiClient
|
|
|
46
72
|
{
|
|
47
73
|
:'region_id' => :'String',
|
|
48
74
|
:'name' => :'String',
|
|
49
|
-
:'tags' => :'Array<String>'
|
|
75
|
+
:'tags' => :'Array<String>',
|
|
76
|
+
:'sandbox_class' => :'CreateRunnerSandboxClass'
|
|
50
77
|
}
|
|
51
78
|
end
|
|
52
79
|
|
|
53
80
|
# List of attributes with nullable: true
|
|
54
81
|
def self.openapi_nullable
|
|
55
82
|
Set.new([
|
|
83
|
+
:'sandbox_class'
|
|
56
84
|
])
|
|
57
85
|
end
|
|
58
86
|
|
|
@@ -89,6 +117,10 @@ module DaytonaApiClient
|
|
|
89
117
|
self.tags = value
|
|
90
118
|
end
|
|
91
119
|
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'sandbox_class')
|
|
122
|
+
self.sandbox_class = attributes[:'sandbox_class']
|
|
123
|
+
end
|
|
92
124
|
end
|
|
93
125
|
|
|
94
126
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -143,7 +175,8 @@ module DaytonaApiClient
|
|
|
143
175
|
self.class == o.class &&
|
|
144
176
|
region_id == o.region_id &&
|
|
145
177
|
name == o.name &&
|
|
146
|
-
tags == o.tags
|
|
178
|
+
tags == o.tags &&
|
|
179
|
+
sandbox_class == o.sandbox_class
|
|
147
180
|
end
|
|
148
181
|
|
|
149
182
|
# @see the `==` method
|
|
@@ -155,7 +188,7 @@ module DaytonaApiClient
|
|
|
155
188
|
# Calculates hash code according to all attributes.
|
|
156
189
|
# @return [Integer] Hash code
|
|
157
190
|
def hash
|
|
158
|
-
[region_id, name, tags].hash
|
|
191
|
+
[region_id, name, tags, sandbox_class].hash
|
|
159
192
|
end
|
|
160
193
|
|
|
161
194
|
# Builds the object from hash
|
|
@@ -0,0 +1,42 @@
|
|
|
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 CreateRunnerSandboxClass
|
|
18
|
+
CONTAINER = "container".freeze
|
|
19
|
+
LINUX_VM = "linux-vm".freeze
|
|
20
|
+
WINDOWS = "windows".freeze
|
|
21
|
+
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
22
|
+
|
|
23
|
+
def self.all_vars
|
|
24
|
+
@all_vars ||= [CONTAINER, LINUX_VM, WINDOWS, UNKNOWN_DEFAULT_OPEN_API].freeze
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Builds the enum from string
|
|
28
|
+
# @param [String] The enum value in the form of the string
|
|
29
|
+
# @return [String] The enum value
|
|
30
|
+
def self.build_from_hash(value)
|
|
31
|
+
new.build_from_hash(value)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Builds the enum from string
|
|
35
|
+
# @param [String] The enum value in the form of the string
|
|
36
|
+
# @return [String] The enum value
|
|
37
|
+
def build_from_hash(value)
|
|
38
|
+
return value if CreateRunnerSandboxClass.all_vars.include?(value)
|
|
39
|
+
UNKNOWN_DEFAULT_OPEN_API
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -78,6 +78,18 @@ module DaytonaApiClient
|
|
|
78
78
|
# Base64 encoded SSH Gateway public key
|
|
79
79
|
attr_accessor :ssh_gateway_public_key
|
|
80
80
|
|
|
81
|
+
# Hostname of the SSH Gateway that sandbox SSH connections terminate at
|
|
82
|
+
attr_accessor :ssh_gateway_host
|
|
83
|
+
|
|
84
|
+
# TCP port of the SSH Gateway
|
|
85
|
+
attr_accessor :ssh_gateway_port
|
|
86
|
+
|
|
87
|
+
# SSH host public keys presented by the SSH Gateway, as OpenSSH public key lines (`<type> <base64>`). To build a known_hosts entry, prefix each with `sshGatewayHost` when `sshGatewayPort` is 22, or with `[sshGatewayHost]:sshGatewayPort` otherwise.
|
|
88
|
+
attr_accessor :ssh_gateway_host_keys
|
|
89
|
+
|
|
90
|
+
# SHA256 fingerprints of sshGatewayHostKeys, in the same order, in `ssh-keygen -lf` format. Compare against the fingerprint published at https://github.com/daytona/.github/blob/main/SECURITY.md#ssh-host-key-verification
|
|
91
|
+
attr_accessor :ssh_gateway_host_key_fingerprints
|
|
92
|
+
|
|
81
93
|
# Rate limit configuration
|
|
82
94
|
attr_accessor :rate_limit
|
|
83
95
|
|
|
@@ -105,6 +117,10 @@ module DaytonaApiClient
|
|
|
105
117
|
:'stripe_publishable_key' => :'stripePublishableKey',
|
|
106
118
|
:'ssh_gateway_command' => :'sshGatewayCommand',
|
|
107
119
|
:'ssh_gateway_public_key' => :'sshGatewayPublicKey',
|
|
120
|
+
:'ssh_gateway_host' => :'sshGatewayHost',
|
|
121
|
+
:'ssh_gateway_port' => :'sshGatewayPort',
|
|
122
|
+
:'ssh_gateway_host_keys' => :'sshGatewayHostKeys',
|
|
123
|
+
:'ssh_gateway_host_key_fingerprints' => :'sshGatewayHostKeyFingerprints',
|
|
108
124
|
:'rate_limit' => :'rateLimit'
|
|
109
125
|
}
|
|
110
126
|
end
|
|
@@ -143,6 +159,10 @@ module DaytonaApiClient
|
|
|
143
159
|
:'stripe_publishable_key' => :'String',
|
|
144
160
|
:'ssh_gateway_command' => :'String',
|
|
145
161
|
:'ssh_gateway_public_key' => :'String',
|
|
162
|
+
:'ssh_gateway_host' => :'String',
|
|
163
|
+
:'ssh_gateway_port' => :'Float',
|
|
164
|
+
:'ssh_gateway_host_keys' => :'Array<String>',
|
|
165
|
+
:'ssh_gateway_host_key_fingerprints' => :'Array<String>',
|
|
146
166
|
:'rate_limit' => :'RateLimitConfig'
|
|
147
167
|
}
|
|
148
168
|
end
|
|
@@ -279,6 +299,26 @@ module DaytonaApiClient
|
|
|
279
299
|
self.ssh_gateway_public_key = attributes[:'ssh_gateway_public_key']
|
|
280
300
|
end
|
|
281
301
|
|
|
302
|
+
if attributes.key?(:'ssh_gateway_host')
|
|
303
|
+
self.ssh_gateway_host = attributes[:'ssh_gateway_host']
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
if attributes.key?(:'ssh_gateway_port')
|
|
307
|
+
self.ssh_gateway_port = attributes[:'ssh_gateway_port']
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
if attributes.key?(:'ssh_gateway_host_keys')
|
|
311
|
+
if (value = attributes[:'ssh_gateway_host_keys']).is_a?(Array)
|
|
312
|
+
self.ssh_gateway_host_keys = value
|
|
313
|
+
end
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
if attributes.key?(:'ssh_gateway_host_key_fingerprints')
|
|
317
|
+
if (value = attributes[:'ssh_gateway_host_key_fingerprints']).is_a?(Array)
|
|
318
|
+
self.ssh_gateway_host_key_fingerprints = value
|
|
319
|
+
end
|
|
320
|
+
end
|
|
321
|
+
|
|
282
322
|
if attributes.key?(:'rate_limit')
|
|
283
323
|
self.rate_limit = attributes[:'rate_limit']
|
|
284
324
|
end
|
|
@@ -490,6 +530,10 @@ module DaytonaApiClient
|
|
|
490
530
|
stripe_publishable_key == o.stripe_publishable_key &&
|
|
491
531
|
ssh_gateway_command == o.ssh_gateway_command &&
|
|
492
532
|
ssh_gateway_public_key == o.ssh_gateway_public_key &&
|
|
533
|
+
ssh_gateway_host == o.ssh_gateway_host &&
|
|
534
|
+
ssh_gateway_port == o.ssh_gateway_port &&
|
|
535
|
+
ssh_gateway_host_keys == o.ssh_gateway_host_keys &&
|
|
536
|
+
ssh_gateway_host_key_fingerprints == o.ssh_gateway_host_key_fingerprints &&
|
|
493
537
|
rate_limit == o.rate_limit
|
|
494
538
|
end
|
|
495
539
|
|
|
@@ -502,7 +546,7 @@ module DaytonaApiClient
|
|
|
502
546
|
# Calculates hash code according to all attributes.
|
|
503
547
|
# @return [Integer] Hash code
|
|
504
548
|
def hash
|
|
505
|
-
[version, build_sha, posthog, oidc, sso_oidc, forced_feature_flags, linked_accounts_enabled, announcements, pylon_app_id, proxy_template_url, proxy_toolbox_url, default_snapshot, dashboard_url, max_auto_archive_interval, maintanance_mode, environment, billing_api_url, analytics_api_url, stripe_publishable_key, ssh_gateway_command, ssh_gateway_public_key, rate_limit].hash
|
|
549
|
+
[version, build_sha, posthog, oidc, sso_oidc, forced_feature_flags, linked_accounts_enabled, announcements, pylon_app_id, proxy_template_url, proxy_toolbox_url, default_snapshot, dashboard_url, max_auto_archive_interval, maintanance_mode, environment, billing_api_url, analytics_api_url, stripe_publishable_key, ssh_gateway_command, ssh_gateway_public_key, ssh_gateway_host, ssh_gateway_port, ssh_gateway_host_keys, ssh_gateway_host_key_fingerprints, rate_limit].hash
|
|
506
550
|
end
|
|
507
551
|
|
|
508
552
|
# Builds the object from hash
|
|
@@ -14,14 +14,36 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
17
|
+
class GenerateWorkosAdminPortalLink < ApiModelBase
|
|
18
|
+
# Which setup flow to open: sso for a single sign-on connection, dsync for SCIM directory sync
|
|
19
|
+
attr_accessor :intent
|
|
20
|
+
|
|
21
|
+
class EnumAttributeValidator
|
|
22
|
+
attr_reader :datatype
|
|
23
|
+
attr_reader :allowable_values
|
|
24
|
+
|
|
25
|
+
def initialize(datatype, allowable_values)
|
|
26
|
+
@allowable_values = allowable_values.map do |value|
|
|
27
|
+
case datatype.to_s
|
|
28
|
+
when /Integer/i
|
|
29
|
+
value.to_i
|
|
30
|
+
when /Float/i
|
|
31
|
+
value.to_f
|
|
32
|
+
else
|
|
33
|
+
value
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def valid?(value)
|
|
39
|
+
!value || allowable_values.include?(value)
|
|
40
|
+
end
|
|
41
|
+
end
|
|
20
42
|
|
|
21
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
44
|
def self.attribute_map
|
|
23
45
|
{
|
|
24
|
-
:'
|
|
46
|
+
:'intent' => :'intent'
|
|
25
47
|
}
|
|
26
48
|
end
|
|
27
49
|
|
|
@@ -38,7 +60,7 @@ module DaytonaApiClient
|
|
|
38
60
|
# Attribute type mapping.
|
|
39
61
|
def self.openapi_types
|
|
40
62
|
{
|
|
41
|
-
:'
|
|
63
|
+
:'intent' => :'WorkosAdminPortalIntent'
|
|
42
64
|
}
|
|
43
65
|
end
|
|
44
66
|
|
|
@@ -52,22 +74,22 @@ module DaytonaApiClient
|
|
|
52
74
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
75
|
def initialize(attributes = {})
|
|
54
76
|
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::
|
|
77
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::GenerateWorkosAdminPortalLink` initialize method"
|
|
56
78
|
end
|
|
57
79
|
|
|
58
80
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
81
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
82
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
83
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::
|
|
84
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::GenerateWorkosAdminPortalLink`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
63
85
|
end
|
|
64
86
|
h[k.to_sym] = v
|
|
65
87
|
}
|
|
66
88
|
|
|
67
|
-
if attributes.key?(:'
|
|
68
|
-
self.
|
|
89
|
+
if attributes.key?(:'intent')
|
|
90
|
+
self.intent = attributes[:'intent']
|
|
69
91
|
else
|
|
70
|
-
self.
|
|
92
|
+
self.intent = nil
|
|
71
93
|
end
|
|
72
94
|
end
|
|
73
95
|
|
|
@@ -76,8 +98,8 @@ module DaytonaApiClient
|
|
|
76
98
|
def list_invalid_properties
|
|
77
99
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
78
100
|
invalid_properties = Array.new
|
|
79
|
-
if @
|
|
80
|
-
invalid_properties.push('invalid value for "
|
|
101
|
+
if @intent.nil?
|
|
102
|
+
invalid_properties.push('invalid value for "intent", intent cannot be nil.')
|
|
81
103
|
end
|
|
82
104
|
|
|
83
105
|
invalid_properties
|
|
@@ -87,18 +109,18 @@ module DaytonaApiClient
|
|
|
87
109
|
# @return true if the model is valid
|
|
88
110
|
def valid?
|
|
89
111
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
90
|
-
return false if @
|
|
112
|
+
return false if @intent.nil?
|
|
91
113
|
true
|
|
92
114
|
end
|
|
93
115
|
|
|
94
116
|
# Custom attribute writer method with validation
|
|
95
|
-
# @param [Object]
|
|
96
|
-
def
|
|
97
|
-
if
|
|
98
|
-
fail ArgumentError, '
|
|
117
|
+
# @param [Object] intent Value to be assigned
|
|
118
|
+
def intent=(intent)
|
|
119
|
+
if intent.nil?
|
|
120
|
+
fail ArgumentError, 'intent cannot be nil'
|
|
99
121
|
end
|
|
100
122
|
|
|
101
|
-
@
|
|
123
|
+
@intent = intent
|
|
102
124
|
end
|
|
103
125
|
|
|
104
126
|
# Checks equality by comparing each attribute.
|
|
@@ -106,7 +128,7 @@ module DaytonaApiClient
|
|
|
106
128
|
def ==(o)
|
|
107
129
|
return true if self.equal?(o)
|
|
108
130
|
self.class == o.class &&
|
|
109
|
-
|
|
131
|
+
intent == o.intent
|
|
110
132
|
end
|
|
111
133
|
|
|
112
134
|
# @see the `==` method
|
|
@@ -118,7 +140,7 @@ module DaytonaApiClient
|
|
|
118
140
|
# Calculates hash code according to all attributes.
|
|
119
141
|
# @return [Integer] Hash code
|
|
120
142
|
def hash
|
|
121
|
-
[
|
|
143
|
+
[intent].hash
|
|
122
144
|
end
|
|
123
145
|
|
|
124
146
|
# Builds the object from hash
|