daytona_api_client 0.203.0 → 0.205.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 +13 -0
- data/lib/daytona_api_client/api/admin_api.rb +3 -0
- data/lib/daytona_api_client/api/audit_api.rb +57 -0
- data/lib/daytona_api_client/api/organizations_api.rb +485 -0
- data/lib/daytona_api_client/api/runners_api.rb +58 -0
- data/lib/daytona_api_client/api/sandbox_api.rb +2 -0
- data/lib/daytona_api_client/api/snapshots_api.rb +3 -0
- data/lib/daytona_api_client/api/users_api.rb +173 -0
- data/lib/daytona_api_client/models/audit_scenarios.rb +167 -0
- data/lib/daytona_api_client/models/audit_target_scenario.rb +208 -0
- data/lib/daytona_api_client/models/create_identity_provider.rb +269 -0
- data/lib/daytona_api_client/models/create_organization_region_quota.rb +16 -5
- data/lib/daytona_api_client/models/create_region.rb +16 -5
- data/lib/daytona_api_client/models/create_sandbox.rb +34 -2
- data/lib/daytona_api_client/models/create_user.rb +26 -21
- data/lib/daytona_api_client/models/daytona_configuration.rb +33 -1
- data/lib/daytona_api_client/models/identity_provider.rb +439 -0
- data/lib/daytona_api_client/models/oidc_id_p_config.rb +229 -0
- data/lib/daytona_api_client/models/oidc_id_p_config_response.rb +202 -0
- data/lib/daytona_api_client/models/organization.rb +28 -1
- data/lib/daytona_api_client/models/organization_sso_enabled.rb +165 -0
- data/lib/daytona_api_client/models/pending_sso_link.rb +283 -0
- data/lib/daytona_api_client/models/region.rb +16 -5
- data/lib/daytona_api_client/models/region_quota.rb +18 -5
- data/lib/daytona_api_client/models/sandbox.rb +43 -1
- data/lib/daytona_api_client/models/sandbox_list_item.rb +70 -1
- data/lib/daytona_api_client/models/snapshot_dto.rb +14 -1
- data/lib/daytona_api_client/models/sso_oidc_config.rb +192 -0
- data/lib/daytona_api_client/models/test_identity_provider_connection.rb +165 -0
- data/lib/daytona_api_client/models/test_identity_provider_connection_response.rb +185 -0
- data/lib/daytona_api_client/models/update_identity_provider.rb +212 -0
- data/lib/daytona_api_client/models/update_oidc_id_p_config.rb +178 -0
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +16 -5
- data/lib/daytona_api_client/models/update_region.rb +16 -5
- data/lib/daytona_api_client/models/user.rb +38 -1
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +13 -0
- metadata +16 -3
|
@@ -18,12 +18,21 @@ module DaytonaApiClient
|
|
|
18
18
|
# Daytona version
|
|
19
19
|
attr_accessor :version
|
|
20
20
|
|
|
21
|
+
# Commit sha of the source the app was built from
|
|
22
|
+
attr_accessor :build_sha
|
|
23
|
+
|
|
21
24
|
# PostHog configuration
|
|
22
25
|
attr_accessor :posthog
|
|
23
26
|
|
|
24
27
|
# OIDC configuration
|
|
25
28
|
attr_accessor :oidc
|
|
26
29
|
|
|
30
|
+
# OIDC configuration for org-SSO logins (Daytona Auth issuer). Present only when the secondary (org-SSO) issuer is configured; the dashboard uses it as its authority when entered via an organization SSO link.
|
|
31
|
+
attr_accessor :sso_oidc
|
|
32
|
+
|
|
33
|
+
# Feature flags forced on for this deployment regardless of PostHog targeting. Lets environments without PostHog (previews, local dev) enable flag-gated dashboard features.
|
|
34
|
+
attr_accessor :forced_feature_flags
|
|
35
|
+
|
|
27
36
|
# Whether linked accounts are enabled
|
|
28
37
|
attr_accessor :linked_accounts_enabled
|
|
29
38
|
|
|
@@ -76,8 +85,11 @@ module DaytonaApiClient
|
|
|
76
85
|
def self.attribute_map
|
|
77
86
|
{
|
|
78
87
|
:'version' => :'version',
|
|
88
|
+
:'build_sha' => :'buildSha',
|
|
79
89
|
:'posthog' => :'posthog',
|
|
80
90
|
:'oidc' => :'oidc',
|
|
91
|
+
:'sso_oidc' => :'ssoOidc',
|
|
92
|
+
:'forced_feature_flags' => :'forcedFeatureFlags',
|
|
81
93
|
:'linked_accounts_enabled' => :'linkedAccountsEnabled',
|
|
82
94
|
:'announcements' => :'announcements',
|
|
83
95
|
:'pylon_app_id' => :'pylonAppId',
|
|
@@ -111,8 +123,11 @@ module DaytonaApiClient
|
|
|
111
123
|
def self.openapi_types
|
|
112
124
|
{
|
|
113
125
|
:'version' => :'String',
|
|
126
|
+
:'build_sha' => :'String',
|
|
114
127
|
:'posthog' => :'PosthogConfig',
|
|
115
128
|
:'oidc' => :'OidcConfig',
|
|
129
|
+
:'sso_oidc' => :'SsoOidcConfig',
|
|
130
|
+
:'forced_feature_flags' => :'Array<String>',
|
|
116
131
|
:'linked_accounts_enabled' => :'Boolean',
|
|
117
132
|
:'announcements' => :'Hash<String, Announcement>',
|
|
118
133
|
:'pylon_app_id' => :'String',
|
|
@@ -160,6 +175,10 @@ module DaytonaApiClient
|
|
|
160
175
|
self.version = nil
|
|
161
176
|
end
|
|
162
177
|
|
|
178
|
+
if attributes.key?(:'build_sha')
|
|
179
|
+
self.build_sha = attributes[:'build_sha']
|
|
180
|
+
end
|
|
181
|
+
|
|
163
182
|
if attributes.key?(:'posthog')
|
|
164
183
|
self.posthog = attributes[:'posthog']
|
|
165
184
|
end
|
|
@@ -170,6 +189,16 @@ module DaytonaApiClient
|
|
|
170
189
|
self.oidc = nil
|
|
171
190
|
end
|
|
172
191
|
|
|
192
|
+
if attributes.key?(:'sso_oidc')
|
|
193
|
+
self.sso_oidc = attributes[:'sso_oidc']
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if attributes.key?(:'forced_feature_flags')
|
|
197
|
+
if (value = attributes[:'forced_feature_flags']).is_a?(Array)
|
|
198
|
+
self.forced_feature_flags = value
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
173
202
|
if attributes.key?(:'linked_accounts_enabled')
|
|
174
203
|
self.linked_accounts_enabled = attributes[:'linked_accounts_enabled']
|
|
175
204
|
else
|
|
@@ -441,8 +470,11 @@ module DaytonaApiClient
|
|
|
441
470
|
return true if self.equal?(o)
|
|
442
471
|
self.class == o.class &&
|
|
443
472
|
version == o.version &&
|
|
473
|
+
build_sha == o.build_sha &&
|
|
444
474
|
posthog == o.posthog &&
|
|
445
475
|
oidc == o.oidc &&
|
|
476
|
+
sso_oidc == o.sso_oidc &&
|
|
477
|
+
forced_feature_flags == o.forced_feature_flags &&
|
|
446
478
|
linked_accounts_enabled == o.linked_accounts_enabled &&
|
|
447
479
|
announcements == o.announcements &&
|
|
448
480
|
pylon_app_id == o.pylon_app_id &&
|
|
@@ -470,7 +502,7 @@ module DaytonaApiClient
|
|
|
470
502
|
# Calculates hash code according to all attributes.
|
|
471
503
|
# @return [Integer] Hash code
|
|
472
504
|
def hash
|
|
473
|
-
[version, posthog, oidc, 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
|
|
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
|
|
474
506
|
end
|
|
475
507
|
|
|
476
508
|
# Builds the object from hash
|
|
@@ -0,0 +1,439 @@
|
|
|
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 IdentityProvider < ApiModelBase
|
|
18
|
+
# Unique identifier
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
# Organization ID
|
|
22
|
+
attr_accessor :organization_id
|
|
23
|
+
|
|
24
|
+
# Display name for the identity provider
|
|
25
|
+
attr_accessor :name
|
|
26
|
+
|
|
27
|
+
# OIDC configuration (secret redacted)
|
|
28
|
+
attr_accessor :oidc_config
|
|
29
|
+
|
|
30
|
+
# Email domains used for IdP discovery on the login form. May be empty when `allowAnyDomain` is true.
|
|
31
|
+
attr_accessor :email_domains
|
|
32
|
+
|
|
33
|
+
# Whether the IdP accepts any email domain returned by the external provider
|
|
34
|
+
attr_accessor :allow_any_domain
|
|
35
|
+
|
|
36
|
+
# Whether the `email_verified` claim check is skipped on SSO logins through this identity provider
|
|
37
|
+
attr_accessor :trust_email_verified
|
|
38
|
+
|
|
39
|
+
# Organization role IDs assigned to users who join via SSO through this identity provider
|
|
40
|
+
attr_accessor :default_assigned_role_ids
|
|
41
|
+
|
|
42
|
+
# Whether the identity provider is enabled
|
|
43
|
+
attr_accessor :enabled
|
|
44
|
+
|
|
45
|
+
# Creation timestamp
|
|
46
|
+
attr_accessor :created_at
|
|
47
|
+
|
|
48
|
+
# Last update timestamp
|
|
49
|
+
attr_accessor :updated_at
|
|
50
|
+
|
|
51
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
|
+
def self.attribute_map
|
|
53
|
+
{
|
|
54
|
+
:'id' => :'id',
|
|
55
|
+
:'organization_id' => :'organizationId',
|
|
56
|
+
:'name' => :'name',
|
|
57
|
+
:'oidc_config' => :'oidcConfig',
|
|
58
|
+
:'email_domains' => :'emailDomains',
|
|
59
|
+
:'allow_any_domain' => :'allowAnyDomain',
|
|
60
|
+
:'trust_email_verified' => :'trustEmailVerified',
|
|
61
|
+
:'default_assigned_role_ids' => :'defaultAssignedRoleIds',
|
|
62
|
+
:'enabled' => :'enabled',
|
|
63
|
+
:'created_at' => :'createdAt',
|
|
64
|
+
:'updated_at' => :'updatedAt'
|
|
65
|
+
}
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Returns attribute mapping this model knows about
|
|
69
|
+
def self.acceptable_attribute_map
|
|
70
|
+
attribute_map
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Returns all the JSON keys this model knows about
|
|
74
|
+
def self.acceptable_attributes
|
|
75
|
+
acceptable_attribute_map.values
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Attribute type mapping.
|
|
79
|
+
def self.openapi_types
|
|
80
|
+
{
|
|
81
|
+
:'id' => :'String',
|
|
82
|
+
:'organization_id' => :'String',
|
|
83
|
+
:'name' => :'String',
|
|
84
|
+
:'oidc_config' => :'OidcIdPConfigResponse',
|
|
85
|
+
:'email_domains' => :'Array<String>',
|
|
86
|
+
:'allow_any_domain' => :'Boolean',
|
|
87
|
+
:'trust_email_verified' => :'Boolean',
|
|
88
|
+
:'default_assigned_role_ids' => :'Array<String>',
|
|
89
|
+
:'enabled' => :'Boolean',
|
|
90
|
+
:'created_at' => :'Time',
|
|
91
|
+
:'updated_at' => :'Time'
|
|
92
|
+
}
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# List of attributes with nullable: true
|
|
96
|
+
def self.openapi_nullable
|
|
97
|
+
Set.new([
|
|
98
|
+
])
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Initializes the object
|
|
102
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
103
|
+
def initialize(attributes = {})
|
|
104
|
+
if (!attributes.is_a?(Hash))
|
|
105
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::IdentityProvider` initialize method"
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
109
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
110
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
111
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
112
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::IdentityProvider`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
113
|
+
end
|
|
114
|
+
h[k.to_sym] = v
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if attributes.key?(:'id')
|
|
118
|
+
self.id = attributes[:'id']
|
|
119
|
+
else
|
|
120
|
+
self.id = nil
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if attributes.key?(:'organization_id')
|
|
124
|
+
self.organization_id = attributes[:'organization_id']
|
|
125
|
+
else
|
|
126
|
+
self.organization_id = nil
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'name')
|
|
130
|
+
self.name = attributes[:'name']
|
|
131
|
+
else
|
|
132
|
+
self.name = nil
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'oidc_config')
|
|
136
|
+
self.oidc_config = attributes[:'oidc_config']
|
|
137
|
+
else
|
|
138
|
+
self.oidc_config = nil
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'email_domains')
|
|
142
|
+
if (value = attributes[:'email_domains']).is_a?(Array)
|
|
143
|
+
self.email_domains = value
|
|
144
|
+
end
|
|
145
|
+
else
|
|
146
|
+
self.email_domains = nil
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if attributes.key?(:'allow_any_domain')
|
|
150
|
+
self.allow_any_domain = attributes[:'allow_any_domain']
|
|
151
|
+
else
|
|
152
|
+
self.allow_any_domain = nil
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
if attributes.key?(:'trust_email_verified')
|
|
156
|
+
self.trust_email_verified = attributes[:'trust_email_verified']
|
|
157
|
+
else
|
|
158
|
+
self.trust_email_verified = nil
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'default_assigned_role_ids')
|
|
162
|
+
if (value = attributes[:'default_assigned_role_ids']).is_a?(Array)
|
|
163
|
+
self.default_assigned_role_ids = value
|
|
164
|
+
end
|
|
165
|
+
else
|
|
166
|
+
self.default_assigned_role_ids = nil
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
if attributes.key?(:'enabled')
|
|
170
|
+
self.enabled = attributes[:'enabled']
|
|
171
|
+
else
|
|
172
|
+
self.enabled = nil
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
if attributes.key?(:'created_at')
|
|
176
|
+
self.created_at = attributes[:'created_at']
|
|
177
|
+
else
|
|
178
|
+
self.created_at = nil
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
if attributes.key?(:'updated_at')
|
|
182
|
+
self.updated_at = attributes[:'updated_at']
|
|
183
|
+
else
|
|
184
|
+
self.updated_at = nil
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
189
|
+
# @return Array for valid properties with the reasons
|
|
190
|
+
def list_invalid_properties
|
|
191
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
192
|
+
invalid_properties = Array.new
|
|
193
|
+
if @id.nil?
|
|
194
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
if @organization_id.nil?
|
|
198
|
+
invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.')
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
if @name.nil?
|
|
202
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
if @oidc_config.nil?
|
|
206
|
+
invalid_properties.push('invalid value for "oidc_config", oidc_config cannot be nil.')
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
if @email_domains.nil?
|
|
210
|
+
invalid_properties.push('invalid value for "email_domains", email_domains cannot be nil.')
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if @allow_any_domain.nil?
|
|
214
|
+
invalid_properties.push('invalid value for "allow_any_domain", allow_any_domain cannot be nil.')
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
if @trust_email_verified.nil?
|
|
218
|
+
invalid_properties.push('invalid value for "trust_email_verified", trust_email_verified cannot be nil.')
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
if @default_assigned_role_ids.nil?
|
|
222
|
+
invalid_properties.push('invalid value for "default_assigned_role_ids", default_assigned_role_ids cannot be nil.')
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
if @enabled.nil?
|
|
226
|
+
invalid_properties.push('invalid value for "enabled", enabled cannot be nil.')
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
if @created_at.nil?
|
|
230
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
if @updated_at.nil?
|
|
234
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
invalid_properties
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Check to see if the all the properties in the model are valid
|
|
241
|
+
# @return true if the model is valid
|
|
242
|
+
def valid?
|
|
243
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
244
|
+
return false if @id.nil?
|
|
245
|
+
return false if @organization_id.nil?
|
|
246
|
+
return false if @name.nil?
|
|
247
|
+
return false if @oidc_config.nil?
|
|
248
|
+
return false if @email_domains.nil?
|
|
249
|
+
return false if @allow_any_domain.nil?
|
|
250
|
+
return false if @trust_email_verified.nil?
|
|
251
|
+
return false if @default_assigned_role_ids.nil?
|
|
252
|
+
return false if @enabled.nil?
|
|
253
|
+
return false if @created_at.nil?
|
|
254
|
+
return false if @updated_at.nil?
|
|
255
|
+
true
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# Custom attribute writer method with validation
|
|
259
|
+
# @param [Object] id Value to be assigned
|
|
260
|
+
def id=(id)
|
|
261
|
+
if id.nil?
|
|
262
|
+
fail ArgumentError, 'id cannot be nil'
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
@id = id
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# Custom attribute writer method with validation
|
|
269
|
+
# @param [Object] organization_id Value to be assigned
|
|
270
|
+
def organization_id=(organization_id)
|
|
271
|
+
if organization_id.nil?
|
|
272
|
+
fail ArgumentError, 'organization_id cannot be nil'
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
@organization_id = organization_id
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# Custom attribute writer method with validation
|
|
279
|
+
# @param [Object] name Value to be assigned
|
|
280
|
+
def name=(name)
|
|
281
|
+
if name.nil?
|
|
282
|
+
fail ArgumentError, 'name cannot be nil'
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
@name = name
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# Custom attribute writer method with validation
|
|
289
|
+
# @param [Object] oidc_config Value to be assigned
|
|
290
|
+
def oidc_config=(oidc_config)
|
|
291
|
+
if oidc_config.nil?
|
|
292
|
+
fail ArgumentError, 'oidc_config cannot be nil'
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
@oidc_config = oidc_config
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# Custom attribute writer method with validation
|
|
299
|
+
# @param [Object] email_domains Value to be assigned
|
|
300
|
+
def email_domains=(email_domains)
|
|
301
|
+
if email_domains.nil?
|
|
302
|
+
fail ArgumentError, 'email_domains cannot be nil'
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
@email_domains = email_domains
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
# Custom attribute writer method with validation
|
|
309
|
+
# @param [Object] allow_any_domain Value to be assigned
|
|
310
|
+
def allow_any_domain=(allow_any_domain)
|
|
311
|
+
if allow_any_domain.nil?
|
|
312
|
+
fail ArgumentError, 'allow_any_domain cannot be nil'
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
@allow_any_domain = allow_any_domain
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# Custom attribute writer method with validation
|
|
319
|
+
# @param [Object] trust_email_verified Value to be assigned
|
|
320
|
+
def trust_email_verified=(trust_email_verified)
|
|
321
|
+
if trust_email_verified.nil?
|
|
322
|
+
fail ArgumentError, 'trust_email_verified cannot be nil'
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
@trust_email_verified = trust_email_verified
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
# Custom attribute writer method with validation
|
|
329
|
+
# @param [Object] default_assigned_role_ids Value to be assigned
|
|
330
|
+
def default_assigned_role_ids=(default_assigned_role_ids)
|
|
331
|
+
if default_assigned_role_ids.nil?
|
|
332
|
+
fail ArgumentError, 'default_assigned_role_ids cannot be nil'
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
@default_assigned_role_ids = default_assigned_role_ids
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
# Custom attribute writer method with validation
|
|
339
|
+
# @param [Object] enabled Value to be assigned
|
|
340
|
+
def enabled=(enabled)
|
|
341
|
+
if enabled.nil?
|
|
342
|
+
fail ArgumentError, 'enabled cannot be nil'
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
@enabled = enabled
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
# Custom attribute writer method with validation
|
|
349
|
+
# @param [Object] created_at Value to be assigned
|
|
350
|
+
def created_at=(created_at)
|
|
351
|
+
if created_at.nil?
|
|
352
|
+
fail ArgumentError, 'created_at cannot be nil'
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
@created_at = created_at
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# Custom attribute writer method with validation
|
|
359
|
+
# @param [Object] updated_at Value to be assigned
|
|
360
|
+
def updated_at=(updated_at)
|
|
361
|
+
if updated_at.nil?
|
|
362
|
+
fail ArgumentError, 'updated_at cannot be nil'
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
@updated_at = updated_at
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
# Checks equality by comparing each attribute.
|
|
369
|
+
# @param [Object] Object to be compared
|
|
370
|
+
def ==(o)
|
|
371
|
+
return true if self.equal?(o)
|
|
372
|
+
self.class == o.class &&
|
|
373
|
+
id == o.id &&
|
|
374
|
+
organization_id == o.organization_id &&
|
|
375
|
+
name == o.name &&
|
|
376
|
+
oidc_config == o.oidc_config &&
|
|
377
|
+
email_domains == o.email_domains &&
|
|
378
|
+
allow_any_domain == o.allow_any_domain &&
|
|
379
|
+
trust_email_verified == o.trust_email_verified &&
|
|
380
|
+
default_assigned_role_ids == o.default_assigned_role_ids &&
|
|
381
|
+
enabled == o.enabled &&
|
|
382
|
+
created_at == o.created_at &&
|
|
383
|
+
updated_at == o.updated_at
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
# @see the `==` method
|
|
387
|
+
# @param [Object] Object to be compared
|
|
388
|
+
def eql?(o)
|
|
389
|
+
self == o
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
# Calculates hash code according to all attributes.
|
|
393
|
+
# @return [Integer] Hash code
|
|
394
|
+
def hash
|
|
395
|
+
[id, organization_id, name, oidc_config, email_domains, allow_any_domain, trust_email_verified, default_assigned_role_ids, enabled, created_at, updated_at].hash
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
# Builds the object from hash
|
|
399
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
400
|
+
# @return [Object] Returns the model itself
|
|
401
|
+
def self.build_from_hash(attributes)
|
|
402
|
+
return nil unless attributes.is_a?(Hash)
|
|
403
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
404
|
+
transformed_hash = {}
|
|
405
|
+
openapi_types.each_pair do |key, type|
|
|
406
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
407
|
+
transformed_hash["#{key}"] = nil
|
|
408
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
409
|
+
# check to ensure the input is an array given that the attribute
|
|
410
|
+
# is documented as an array but the input is not
|
|
411
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
412
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
413
|
+
end
|
|
414
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
415
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
416
|
+
end
|
|
417
|
+
end
|
|
418
|
+
new(transformed_hash)
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
# Returns the object in the form of hash
|
|
422
|
+
# @return [Hash] Returns the object in the form of hash
|
|
423
|
+
def to_hash
|
|
424
|
+
hash = {}
|
|
425
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
426
|
+
value = self.send(attr)
|
|
427
|
+
if value.nil?
|
|
428
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
429
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
hash[param] = _to_hash(value)
|
|
433
|
+
end
|
|
434
|
+
hash
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
end
|