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
|
@@ -211,6 +211,78 @@ module DaytonaApiClient
|
|
|
211
211
|
return data, status_code, headers
|
|
212
212
|
end
|
|
213
213
|
|
|
214
|
+
# Create organization identity provider
|
|
215
|
+
# @param organization_id [String] Organization ID
|
|
216
|
+
# @param create_identity_provider [CreateIdentityProvider]
|
|
217
|
+
# @param [Hash] opts the optional parameters
|
|
218
|
+
# @return [IdentityProvider]
|
|
219
|
+
def create_organization_identity_provider(organization_id, create_identity_provider, opts = {})
|
|
220
|
+
data, _status_code, _headers = create_organization_identity_provider_with_http_info(organization_id, create_identity_provider, opts)
|
|
221
|
+
data
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Create organization identity provider
|
|
225
|
+
# @param organization_id [String] Organization ID
|
|
226
|
+
# @param create_identity_provider [CreateIdentityProvider]
|
|
227
|
+
# @param [Hash] opts the optional parameters
|
|
228
|
+
# @return [Array<(IdentityProvider, Integer, Hash)>] IdentityProvider data, response status code and response headers
|
|
229
|
+
def create_organization_identity_provider_with_http_info(organization_id, create_identity_provider, opts = {})
|
|
230
|
+
if @api_client.config.debugging
|
|
231
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization_identity_provider ...'
|
|
232
|
+
end
|
|
233
|
+
# verify the required parameter 'organization_id' is set
|
|
234
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
235
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.create_organization_identity_provider"
|
|
236
|
+
end
|
|
237
|
+
# verify the required parameter 'create_identity_provider' is set
|
|
238
|
+
if @api_client.config.client_side_validation && create_identity_provider.nil?
|
|
239
|
+
fail ArgumentError, "Missing the required parameter 'create_identity_provider' when calling OrganizationsApi.create_organization_identity_provider"
|
|
240
|
+
end
|
|
241
|
+
# resource path
|
|
242
|
+
local_var_path = '/organizations/{organizationId}/identity-providers'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
243
|
+
|
|
244
|
+
# query parameters
|
|
245
|
+
query_params = opts[:query_params] || {}
|
|
246
|
+
|
|
247
|
+
# header parameters
|
|
248
|
+
header_params = opts[:header_params] || {}
|
|
249
|
+
# HTTP header 'Accept' (if needed)
|
|
250
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
251
|
+
# HTTP header 'Content-Type'
|
|
252
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
253
|
+
if !content_type.nil?
|
|
254
|
+
header_params['Content-Type'] = content_type
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# form parameters
|
|
258
|
+
form_params = opts[:form_params] || {}
|
|
259
|
+
|
|
260
|
+
# http body (model)
|
|
261
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_identity_provider)
|
|
262
|
+
|
|
263
|
+
# return_type
|
|
264
|
+
return_type = opts[:debug_return_type] || 'IdentityProvider'
|
|
265
|
+
|
|
266
|
+
# auth_names
|
|
267
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
268
|
+
|
|
269
|
+
new_options = opts.merge(
|
|
270
|
+
:operation => :"OrganizationsApi.create_organization_identity_provider",
|
|
271
|
+
:header_params => header_params,
|
|
272
|
+
:query_params => query_params,
|
|
273
|
+
:form_params => form_params,
|
|
274
|
+
:body => post_body,
|
|
275
|
+
:auth_names => auth_names,
|
|
276
|
+
:return_type => return_type
|
|
277
|
+
)
|
|
278
|
+
|
|
279
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
280
|
+
if @api_client.config.debugging
|
|
281
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization_identity_provider\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
282
|
+
end
|
|
283
|
+
return data, status_code, headers
|
|
284
|
+
end
|
|
285
|
+
|
|
214
286
|
# Create organization invitation
|
|
215
287
|
# @param organization_id [String] Organization ID
|
|
216
288
|
# @param create_organization_invitation [CreateOrganizationInvitation]
|
|
@@ -542,6 +614,71 @@ module DaytonaApiClient
|
|
|
542
614
|
return data, status_code, headers
|
|
543
615
|
end
|
|
544
616
|
|
|
617
|
+
# Delete organization identity provider
|
|
618
|
+
# @param organization_id [String] Organization ID
|
|
619
|
+
# @param id [String] Identity provider ID
|
|
620
|
+
# @param [Hash] opts the optional parameters
|
|
621
|
+
# @return [nil]
|
|
622
|
+
def delete_organization_identity_provider(organization_id, id, opts = {})
|
|
623
|
+
delete_organization_identity_provider_with_http_info(organization_id, id, opts)
|
|
624
|
+
nil
|
|
625
|
+
end
|
|
626
|
+
|
|
627
|
+
# Delete organization identity provider
|
|
628
|
+
# @param organization_id [String] Organization ID
|
|
629
|
+
# @param id [String] Identity provider ID
|
|
630
|
+
# @param [Hash] opts the optional parameters
|
|
631
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
632
|
+
def delete_organization_identity_provider_with_http_info(organization_id, id, opts = {})
|
|
633
|
+
if @api_client.config.debugging
|
|
634
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_identity_provider ...'
|
|
635
|
+
end
|
|
636
|
+
# verify the required parameter 'organization_id' is set
|
|
637
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
638
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.delete_organization_identity_provider"
|
|
639
|
+
end
|
|
640
|
+
# verify the required parameter 'id' is set
|
|
641
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
642
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.delete_organization_identity_provider"
|
|
643
|
+
end
|
|
644
|
+
# resource path
|
|
645
|
+
local_var_path = '/organizations/{organizationId}/identity-providers/{id}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
646
|
+
|
|
647
|
+
# query parameters
|
|
648
|
+
query_params = opts[:query_params] || {}
|
|
649
|
+
|
|
650
|
+
# header parameters
|
|
651
|
+
header_params = opts[:header_params] || {}
|
|
652
|
+
|
|
653
|
+
# form parameters
|
|
654
|
+
form_params = opts[:form_params] || {}
|
|
655
|
+
|
|
656
|
+
# http body (model)
|
|
657
|
+
post_body = opts[:debug_body]
|
|
658
|
+
|
|
659
|
+
# return_type
|
|
660
|
+
return_type = opts[:debug_return_type]
|
|
661
|
+
|
|
662
|
+
# auth_names
|
|
663
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
664
|
+
|
|
665
|
+
new_options = opts.merge(
|
|
666
|
+
:operation => :"OrganizationsApi.delete_organization_identity_provider",
|
|
667
|
+
:header_params => header_params,
|
|
668
|
+
:query_params => query_params,
|
|
669
|
+
:form_params => form_params,
|
|
670
|
+
:body => post_body,
|
|
671
|
+
:auth_names => auth_names,
|
|
672
|
+
:return_type => return_type
|
|
673
|
+
)
|
|
674
|
+
|
|
675
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
676
|
+
if @api_client.config.debugging
|
|
677
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_identity_provider\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
678
|
+
end
|
|
679
|
+
return data, status_code, headers
|
|
680
|
+
end
|
|
681
|
+
|
|
545
682
|
# Delete organization member
|
|
546
683
|
# @param organization_id [String] Organization ID
|
|
547
684
|
# @param user_id [String] User ID
|
|
@@ -854,6 +991,73 @@ module DaytonaApiClient
|
|
|
854
991
|
return data, status_code, headers
|
|
855
992
|
end
|
|
856
993
|
|
|
994
|
+
# Get organization identity provider
|
|
995
|
+
# @param organization_id [String] Organization ID
|
|
996
|
+
# @param id [String] Identity provider ID
|
|
997
|
+
# @param [Hash] opts the optional parameters
|
|
998
|
+
# @return [IdentityProvider]
|
|
999
|
+
def get_organization_identity_provider(organization_id, id, opts = {})
|
|
1000
|
+
data, _status_code, _headers = get_organization_identity_provider_with_http_info(organization_id, id, opts)
|
|
1001
|
+
data
|
|
1002
|
+
end
|
|
1003
|
+
|
|
1004
|
+
# Get organization identity provider
|
|
1005
|
+
# @param organization_id [String] Organization ID
|
|
1006
|
+
# @param id [String] Identity provider ID
|
|
1007
|
+
# @param [Hash] opts the optional parameters
|
|
1008
|
+
# @return [Array<(IdentityProvider, Integer, Hash)>] IdentityProvider data, response status code and response headers
|
|
1009
|
+
def get_organization_identity_provider_with_http_info(organization_id, id, opts = {})
|
|
1010
|
+
if @api_client.config.debugging
|
|
1011
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_identity_provider ...'
|
|
1012
|
+
end
|
|
1013
|
+
# verify the required parameter 'organization_id' is set
|
|
1014
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1015
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization_identity_provider"
|
|
1016
|
+
end
|
|
1017
|
+
# verify the required parameter 'id' is set
|
|
1018
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1019
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.get_organization_identity_provider"
|
|
1020
|
+
end
|
|
1021
|
+
# resource path
|
|
1022
|
+
local_var_path = '/organizations/{organizationId}/identity-providers/{id}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1023
|
+
|
|
1024
|
+
# query parameters
|
|
1025
|
+
query_params = opts[:query_params] || {}
|
|
1026
|
+
|
|
1027
|
+
# header parameters
|
|
1028
|
+
header_params = opts[:header_params] || {}
|
|
1029
|
+
# HTTP header 'Accept' (if needed)
|
|
1030
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1031
|
+
|
|
1032
|
+
# form parameters
|
|
1033
|
+
form_params = opts[:form_params] || {}
|
|
1034
|
+
|
|
1035
|
+
# http body (model)
|
|
1036
|
+
post_body = opts[:debug_body]
|
|
1037
|
+
|
|
1038
|
+
# return_type
|
|
1039
|
+
return_type = opts[:debug_return_type] || 'IdentityProvider'
|
|
1040
|
+
|
|
1041
|
+
# auth_names
|
|
1042
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1043
|
+
|
|
1044
|
+
new_options = opts.merge(
|
|
1045
|
+
:operation => :"OrganizationsApi.get_organization_identity_provider",
|
|
1046
|
+
:header_params => header_params,
|
|
1047
|
+
:query_params => query_params,
|
|
1048
|
+
:form_params => form_params,
|
|
1049
|
+
:body => post_body,
|
|
1050
|
+
:auth_names => auth_names,
|
|
1051
|
+
:return_type => return_type
|
|
1052
|
+
)
|
|
1053
|
+
|
|
1054
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1055
|
+
if @api_client.config.debugging
|
|
1056
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_identity_provider\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1057
|
+
end
|
|
1058
|
+
return data, status_code, headers
|
|
1059
|
+
end
|
|
1060
|
+
|
|
857
1061
|
# Get count of organization invitations for authenticated user
|
|
858
1062
|
# @param [Hash] opts the optional parameters
|
|
859
1063
|
# @return [Float]
|
|
@@ -1334,6 +1538,67 @@ module DaytonaApiClient
|
|
|
1334
1538
|
return data, status_code, headers
|
|
1335
1539
|
end
|
|
1336
1540
|
|
|
1541
|
+
# List organization identity providers
|
|
1542
|
+
# @param organization_id [String] Organization ID
|
|
1543
|
+
# @param [Hash] opts the optional parameters
|
|
1544
|
+
# @return [Array<IdentityProvider>]
|
|
1545
|
+
def list_organization_identity_providers(organization_id, opts = {})
|
|
1546
|
+
data, _status_code, _headers = list_organization_identity_providers_with_http_info(organization_id, opts)
|
|
1547
|
+
data
|
|
1548
|
+
end
|
|
1549
|
+
|
|
1550
|
+
# List organization identity providers
|
|
1551
|
+
# @param organization_id [String] Organization ID
|
|
1552
|
+
# @param [Hash] opts the optional parameters
|
|
1553
|
+
# @return [Array<(Array<IdentityProvider>, Integer, Hash)>] Array<IdentityProvider> data, response status code and response headers
|
|
1554
|
+
def list_organization_identity_providers_with_http_info(organization_id, opts = {})
|
|
1555
|
+
if @api_client.config.debugging
|
|
1556
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_identity_providers ...'
|
|
1557
|
+
end
|
|
1558
|
+
# verify the required parameter 'organization_id' is set
|
|
1559
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1560
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_identity_providers"
|
|
1561
|
+
end
|
|
1562
|
+
# resource path
|
|
1563
|
+
local_var_path = '/organizations/{organizationId}/identity-providers'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1564
|
+
|
|
1565
|
+
# query parameters
|
|
1566
|
+
query_params = opts[:query_params] || {}
|
|
1567
|
+
|
|
1568
|
+
# header parameters
|
|
1569
|
+
header_params = opts[:header_params] || {}
|
|
1570
|
+
# HTTP header 'Accept' (if needed)
|
|
1571
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1572
|
+
|
|
1573
|
+
# form parameters
|
|
1574
|
+
form_params = opts[:form_params] || {}
|
|
1575
|
+
|
|
1576
|
+
# http body (model)
|
|
1577
|
+
post_body = opts[:debug_body]
|
|
1578
|
+
|
|
1579
|
+
# return_type
|
|
1580
|
+
return_type = opts[:debug_return_type] || 'Array<IdentityProvider>'
|
|
1581
|
+
|
|
1582
|
+
# auth_names
|
|
1583
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1584
|
+
|
|
1585
|
+
new_options = opts.merge(
|
|
1586
|
+
:operation => :"OrganizationsApi.list_organization_identity_providers",
|
|
1587
|
+
:header_params => header_params,
|
|
1588
|
+
:query_params => query_params,
|
|
1589
|
+
:form_params => form_params,
|
|
1590
|
+
:body => post_body,
|
|
1591
|
+
:auth_names => auth_names,
|
|
1592
|
+
:return_type => return_type
|
|
1593
|
+
)
|
|
1594
|
+
|
|
1595
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1596
|
+
if @api_client.config.debugging
|
|
1597
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_identity_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1598
|
+
end
|
|
1599
|
+
return data, status_code, headers
|
|
1600
|
+
end
|
|
1601
|
+
|
|
1337
1602
|
# List pending organization invitations
|
|
1338
1603
|
# @param organization_id [String] Organization ID
|
|
1339
1604
|
# @param [Hash] opts the optional parameters
|
|
@@ -1955,6 +2220,78 @@ module DaytonaApiClient
|
|
|
1955
2220
|
return data, status_code, headers
|
|
1956
2221
|
end
|
|
1957
2222
|
|
|
2223
|
+
# Test OIDC identity provider connection
|
|
2224
|
+
# @param organization_id [String] Organization ID
|
|
2225
|
+
# @param test_identity_provider_connection [TestIdentityProviderConnection]
|
|
2226
|
+
# @param [Hash] opts the optional parameters
|
|
2227
|
+
# @return [TestIdentityProviderConnectionResponse]
|
|
2228
|
+
def test_organization_identity_provider_connection(organization_id, test_identity_provider_connection, opts = {})
|
|
2229
|
+
data, _status_code, _headers = test_organization_identity_provider_connection_with_http_info(organization_id, test_identity_provider_connection, opts)
|
|
2230
|
+
data
|
|
2231
|
+
end
|
|
2232
|
+
|
|
2233
|
+
# Test OIDC identity provider connection
|
|
2234
|
+
# @param organization_id [String] Organization ID
|
|
2235
|
+
# @param test_identity_provider_connection [TestIdentityProviderConnection]
|
|
2236
|
+
# @param [Hash] opts the optional parameters
|
|
2237
|
+
# @return [Array<(TestIdentityProviderConnectionResponse, Integer, Hash)>] TestIdentityProviderConnectionResponse data, response status code and response headers
|
|
2238
|
+
def test_organization_identity_provider_connection_with_http_info(organization_id, test_identity_provider_connection, opts = {})
|
|
2239
|
+
if @api_client.config.debugging
|
|
2240
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.test_organization_identity_provider_connection ...'
|
|
2241
|
+
end
|
|
2242
|
+
# verify the required parameter 'organization_id' is set
|
|
2243
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2244
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.test_organization_identity_provider_connection"
|
|
2245
|
+
end
|
|
2246
|
+
# verify the required parameter 'test_identity_provider_connection' is set
|
|
2247
|
+
if @api_client.config.client_side_validation && test_identity_provider_connection.nil?
|
|
2248
|
+
fail ArgumentError, "Missing the required parameter 'test_identity_provider_connection' when calling OrganizationsApi.test_organization_identity_provider_connection"
|
|
2249
|
+
end
|
|
2250
|
+
# resource path
|
|
2251
|
+
local_var_path = '/organizations/{organizationId}/identity-providers/test-connection'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2252
|
+
|
|
2253
|
+
# query parameters
|
|
2254
|
+
query_params = opts[:query_params] || {}
|
|
2255
|
+
|
|
2256
|
+
# header parameters
|
|
2257
|
+
header_params = opts[:header_params] || {}
|
|
2258
|
+
# HTTP header 'Accept' (if needed)
|
|
2259
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2260
|
+
# HTTP header 'Content-Type'
|
|
2261
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2262
|
+
if !content_type.nil?
|
|
2263
|
+
header_params['Content-Type'] = content_type
|
|
2264
|
+
end
|
|
2265
|
+
|
|
2266
|
+
# form parameters
|
|
2267
|
+
form_params = opts[:form_params] || {}
|
|
2268
|
+
|
|
2269
|
+
# http body (model)
|
|
2270
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(test_identity_provider_connection)
|
|
2271
|
+
|
|
2272
|
+
# return_type
|
|
2273
|
+
return_type = opts[:debug_return_type] || 'TestIdentityProviderConnectionResponse'
|
|
2274
|
+
|
|
2275
|
+
# auth_names
|
|
2276
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2277
|
+
|
|
2278
|
+
new_options = opts.merge(
|
|
2279
|
+
:operation => :"OrganizationsApi.test_organization_identity_provider_connection",
|
|
2280
|
+
:header_params => header_params,
|
|
2281
|
+
:query_params => query_params,
|
|
2282
|
+
:form_params => form_params,
|
|
2283
|
+
:body => post_body,
|
|
2284
|
+
:auth_names => auth_names,
|
|
2285
|
+
:return_type => return_type
|
|
2286
|
+
)
|
|
2287
|
+
|
|
2288
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2289
|
+
if @api_client.config.debugging
|
|
2290
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#test_organization_identity_provider_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2291
|
+
end
|
|
2292
|
+
return data, status_code, headers
|
|
2293
|
+
end
|
|
2294
|
+
|
|
1958
2295
|
# Unsuspend organization
|
|
1959
2296
|
# @param organization_id [String] Organization ID
|
|
1960
2297
|
# @param [Hash] opts the optional parameters
|
|
@@ -2158,6 +2495,84 @@ module DaytonaApiClient
|
|
|
2158
2495
|
return data, status_code, headers
|
|
2159
2496
|
end
|
|
2160
2497
|
|
|
2498
|
+
# Update organization identity provider
|
|
2499
|
+
# @param organization_id [String] Organization ID
|
|
2500
|
+
# @param id [String] Identity provider ID
|
|
2501
|
+
# @param update_identity_provider [UpdateIdentityProvider]
|
|
2502
|
+
# @param [Hash] opts the optional parameters
|
|
2503
|
+
# @return [IdentityProvider]
|
|
2504
|
+
def update_organization_identity_provider(organization_id, id, update_identity_provider, opts = {})
|
|
2505
|
+
data, _status_code, _headers = update_organization_identity_provider_with_http_info(organization_id, id, update_identity_provider, opts)
|
|
2506
|
+
data
|
|
2507
|
+
end
|
|
2508
|
+
|
|
2509
|
+
# Update organization identity provider
|
|
2510
|
+
# @param organization_id [String] Organization ID
|
|
2511
|
+
# @param id [String] Identity provider ID
|
|
2512
|
+
# @param update_identity_provider [UpdateIdentityProvider]
|
|
2513
|
+
# @param [Hash] opts the optional parameters
|
|
2514
|
+
# @return [Array<(IdentityProvider, Integer, Hash)>] IdentityProvider data, response status code and response headers
|
|
2515
|
+
def update_organization_identity_provider_with_http_info(organization_id, id, update_identity_provider, opts = {})
|
|
2516
|
+
if @api_client.config.debugging
|
|
2517
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_identity_provider ...'
|
|
2518
|
+
end
|
|
2519
|
+
# verify the required parameter 'organization_id' is set
|
|
2520
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2521
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_identity_provider"
|
|
2522
|
+
end
|
|
2523
|
+
# verify the required parameter 'id' is set
|
|
2524
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2525
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.update_organization_identity_provider"
|
|
2526
|
+
end
|
|
2527
|
+
# verify the required parameter 'update_identity_provider' is set
|
|
2528
|
+
if @api_client.config.client_side_validation && update_identity_provider.nil?
|
|
2529
|
+
fail ArgumentError, "Missing the required parameter 'update_identity_provider' when calling OrganizationsApi.update_organization_identity_provider"
|
|
2530
|
+
end
|
|
2531
|
+
# resource path
|
|
2532
|
+
local_var_path = '/organizations/{organizationId}/identity-providers/{id}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2533
|
+
|
|
2534
|
+
# query parameters
|
|
2535
|
+
query_params = opts[:query_params] || {}
|
|
2536
|
+
|
|
2537
|
+
# header parameters
|
|
2538
|
+
header_params = opts[:header_params] || {}
|
|
2539
|
+
# HTTP header 'Accept' (if needed)
|
|
2540
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2541
|
+
# HTTP header 'Content-Type'
|
|
2542
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2543
|
+
if !content_type.nil?
|
|
2544
|
+
header_params['Content-Type'] = content_type
|
|
2545
|
+
end
|
|
2546
|
+
|
|
2547
|
+
# form parameters
|
|
2548
|
+
form_params = opts[:form_params] || {}
|
|
2549
|
+
|
|
2550
|
+
# http body (model)
|
|
2551
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_identity_provider)
|
|
2552
|
+
|
|
2553
|
+
# return_type
|
|
2554
|
+
return_type = opts[:debug_return_type] || 'IdentityProvider'
|
|
2555
|
+
|
|
2556
|
+
# auth_names
|
|
2557
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2558
|
+
|
|
2559
|
+
new_options = opts.merge(
|
|
2560
|
+
:operation => :"OrganizationsApi.update_organization_identity_provider",
|
|
2561
|
+
:header_params => header_params,
|
|
2562
|
+
:query_params => query_params,
|
|
2563
|
+
:form_params => form_params,
|
|
2564
|
+
:body => post_body,
|
|
2565
|
+
:auth_names => auth_names,
|
|
2566
|
+
:return_type => return_type
|
|
2567
|
+
)
|
|
2568
|
+
|
|
2569
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2570
|
+
if @api_client.config.debugging
|
|
2571
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_identity_provider\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2572
|
+
end
|
|
2573
|
+
return data, status_code, headers
|
|
2574
|
+
end
|
|
2575
|
+
|
|
2161
2576
|
# Update organization invitation
|
|
2162
2577
|
# @param organization_id [String] Organization ID
|
|
2163
2578
|
# @param invitation_id [String] Invitation ID
|
|
@@ -2600,6 +3015,76 @@ module DaytonaApiClient
|
|
|
2600
3015
|
return data, status_code, headers
|
|
2601
3016
|
end
|
|
2602
3017
|
|
|
3018
|
+
# Update organization SSO entitlement
|
|
3019
|
+
# @param organization_id [String] Organization ID
|
|
3020
|
+
# @param organization_sso_enabled [OrganizationSsoEnabled]
|
|
3021
|
+
# @param [Hash] opts the optional parameters
|
|
3022
|
+
# @return [nil]
|
|
3023
|
+
def update_organization_sso_enabled(organization_id, organization_sso_enabled, opts = {})
|
|
3024
|
+
update_organization_sso_enabled_with_http_info(organization_id, organization_sso_enabled, opts)
|
|
3025
|
+
nil
|
|
3026
|
+
end
|
|
3027
|
+
|
|
3028
|
+
# Update organization SSO entitlement
|
|
3029
|
+
# @param organization_id [String] Organization ID
|
|
3030
|
+
# @param organization_sso_enabled [OrganizationSsoEnabled]
|
|
3031
|
+
# @param [Hash] opts the optional parameters
|
|
3032
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
3033
|
+
def update_organization_sso_enabled_with_http_info(organization_id, organization_sso_enabled, opts = {})
|
|
3034
|
+
if @api_client.config.debugging
|
|
3035
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_sso_enabled ...'
|
|
3036
|
+
end
|
|
3037
|
+
# verify the required parameter 'organization_id' is set
|
|
3038
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
3039
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_sso_enabled"
|
|
3040
|
+
end
|
|
3041
|
+
# verify the required parameter 'organization_sso_enabled' is set
|
|
3042
|
+
if @api_client.config.client_side_validation && organization_sso_enabled.nil?
|
|
3043
|
+
fail ArgumentError, "Missing the required parameter 'organization_sso_enabled' when calling OrganizationsApi.update_organization_sso_enabled"
|
|
3044
|
+
end
|
|
3045
|
+
# resource path
|
|
3046
|
+
local_var_path = '/organizations/{organizationId}/sso-enabled'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
3047
|
+
|
|
3048
|
+
# query parameters
|
|
3049
|
+
query_params = opts[:query_params] || {}
|
|
3050
|
+
|
|
3051
|
+
# header parameters
|
|
3052
|
+
header_params = opts[:header_params] || {}
|
|
3053
|
+
# HTTP header 'Content-Type'
|
|
3054
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
3055
|
+
if !content_type.nil?
|
|
3056
|
+
header_params['Content-Type'] = content_type
|
|
3057
|
+
end
|
|
3058
|
+
|
|
3059
|
+
# form parameters
|
|
3060
|
+
form_params = opts[:form_params] || {}
|
|
3061
|
+
|
|
3062
|
+
# http body (model)
|
|
3063
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(organization_sso_enabled)
|
|
3064
|
+
|
|
3065
|
+
# return_type
|
|
3066
|
+
return_type = opts[:debug_return_type]
|
|
3067
|
+
|
|
3068
|
+
# auth_names
|
|
3069
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
3070
|
+
|
|
3071
|
+
new_options = opts.merge(
|
|
3072
|
+
:operation => :"OrganizationsApi.update_organization_sso_enabled",
|
|
3073
|
+
:header_params => header_params,
|
|
3074
|
+
:query_params => query_params,
|
|
3075
|
+
:form_params => form_params,
|
|
3076
|
+
:body => post_body,
|
|
3077
|
+
:auth_names => auth_names,
|
|
3078
|
+
:return_type => return_type
|
|
3079
|
+
)
|
|
3080
|
+
|
|
3081
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
3082
|
+
if @api_client.config.debugging
|
|
3083
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_sso_enabled\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3084
|
+
end
|
|
3085
|
+
return data, status_code, headers
|
|
3086
|
+
end
|
|
3087
|
+
|
|
2603
3088
|
# Update region configuration
|
|
2604
3089
|
# @param id [String] Region ID
|
|
2605
3090
|
# @param update_region [UpdateRegion]
|
|
@@ -91,6 +91,7 @@ module DaytonaApiClient
|
|
|
91
91
|
# Delete runner
|
|
92
92
|
# @param id [String] Runner ID
|
|
93
93
|
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @option opts [Boolean] :force Delete the runner without waiting for sandboxes already marked for destruction. Requires the runner to have stopped reporting as ready.
|
|
94
95
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
95
96
|
# @return [nil]
|
|
96
97
|
def delete_runner(id, opts = {})
|
|
@@ -101,6 +102,7 @@ module DaytonaApiClient
|
|
|
101
102
|
# Delete runner
|
|
102
103
|
# @param id [String] Runner ID
|
|
103
104
|
# @param [Hash] opts the optional parameters
|
|
105
|
+
# @option opts [Boolean] :force Delete the runner without waiting for sandboxes already marked for destruction. Requires the runner to have stopped reporting as ready.
|
|
104
106
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
105
107
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
106
108
|
def delete_runner_with_http_info(id, opts = {})
|
|
@@ -116,6 +118,7 @@ module DaytonaApiClient
|
|
|
116
118
|
|
|
117
119
|
# query parameters
|
|
118
120
|
query_params = opts[:query_params] || {}
|
|
121
|
+
query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
|
|
119
122
|
|
|
120
123
|
# header parameters
|
|
121
124
|
header_params = opts[:header_params] || {}
|
|
@@ -453,6 +456,61 @@ module DaytonaApiClient
|
|
|
453
456
|
return data, status_code, headers
|
|
454
457
|
end
|
|
455
458
|
|
|
459
|
+
# Get snapshot refs for authenticated runner
|
|
460
|
+
# @param [Hash] opts the optional parameters
|
|
461
|
+
# @return [Array<String>]
|
|
462
|
+
def get_snapshot_refs_for_authenticated_runner(opts = {})
|
|
463
|
+
data, _status_code, _headers = get_snapshot_refs_for_authenticated_runner_with_http_info(opts)
|
|
464
|
+
data
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
# Get snapshot refs for authenticated runner
|
|
468
|
+
# @param [Hash] opts the optional parameters
|
|
469
|
+
# @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
|
|
470
|
+
def get_snapshot_refs_for_authenticated_runner_with_http_info(opts = {})
|
|
471
|
+
if @api_client.config.debugging
|
|
472
|
+
@api_client.config.logger.debug 'Calling API: RunnersApi.get_snapshot_refs_for_authenticated_runner ...'
|
|
473
|
+
end
|
|
474
|
+
# resource path
|
|
475
|
+
local_var_path = '/runners/me/snapshots'
|
|
476
|
+
|
|
477
|
+
# query parameters
|
|
478
|
+
query_params = opts[:query_params] || {}
|
|
479
|
+
|
|
480
|
+
# header parameters
|
|
481
|
+
header_params = opts[:header_params] || {}
|
|
482
|
+
# HTTP header 'Accept' (if needed)
|
|
483
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
484
|
+
|
|
485
|
+
# form parameters
|
|
486
|
+
form_params = opts[:form_params] || {}
|
|
487
|
+
|
|
488
|
+
# http body (model)
|
|
489
|
+
post_body = opts[:debug_body]
|
|
490
|
+
|
|
491
|
+
# return_type
|
|
492
|
+
return_type = opts[:debug_return_type] || 'Array<String>'
|
|
493
|
+
|
|
494
|
+
# auth_names
|
|
495
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
496
|
+
|
|
497
|
+
new_options = opts.merge(
|
|
498
|
+
:operation => :"RunnersApi.get_snapshot_refs_for_authenticated_runner",
|
|
499
|
+
:header_params => header_params,
|
|
500
|
+
:query_params => query_params,
|
|
501
|
+
:form_params => form_params,
|
|
502
|
+
:body => post_body,
|
|
503
|
+
:auth_names => auth_names,
|
|
504
|
+
:return_type => return_type
|
|
505
|
+
)
|
|
506
|
+
|
|
507
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
508
|
+
if @api_client.config.debugging
|
|
509
|
+
@api_client.config.logger.debug "API called: RunnersApi#get_snapshot_refs_for_authenticated_runner\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
510
|
+
end
|
|
511
|
+
return data, status_code, headers
|
|
512
|
+
end
|
|
513
|
+
|
|
456
514
|
# List all runners
|
|
457
515
|
# @param [Hash] opts the optional parameters
|
|
458
516
|
# @option opts [String] :region_id Filter runners by region ID
|
|
@@ -903,6 +903,7 @@ module DaytonaApiClient
|
|
|
903
903
|
end
|
|
904
904
|
|
|
905
905
|
# Get sandbox details
|
|
906
|
+
# Sandboxes destroyed by spot preemption remain retrievable for 24 hours so `spotEvictedAt` can be read.
|
|
906
907
|
# @param sandbox_id_or_name [String] ID or name of the sandbox
|
|
907
908
|
# @param [Hash] opts the optional parameters
|
|
908
909
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
@@ -914,6 +915,7 @@ module DaytonaApiClient
|
|
|
914
915
|
end
|
|
915
916
|
|
|
916
917
|
# Get sandbox details
|
|
918
|
+
# Sandboxes destroyed by spot preemption remain retrievable for 24 hours so `spotEvictedAt` can be read.
|
|
917
919
|
# @param sandbox_id_or_name [String] ID or name of the sandbox
|
|
918
920
|
# @param [Hash] opts the optional parameters
|
|
919
921
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
@@ -220,6 +220,7 @@ module DaytonaApiClient
|
|
|
220
220
|
# @option opts [Float] :page Page number of the results (default to 1)
|
|
221
221
|
# @option opts [Float] :limit Number of results per page (default to 100)
|
|
222
222
|
# @option opts [String] :name Filter by partial name match
|
|
223
|
+
# @option opts [String] :source_sandbox_id Filter by the ID of the sandbox the snapshot was created from
|
|
223
224
|
# @option opts [String] :sort Field to sort by (default to 'lastUsedAt')
|
|
224
225
|
# @option opts [String] :order Direction to sort by (default to 'desc')
|
|
225
226
|
# @return [PaginatedSnapshots]
|
|
@@ -234,6 +235,7 @@ module DaytonaApiClient
|
|
|
234
235
|
# @option opts [Float] :page Page number of the results (default to 1)
|
|
235
236
|
# @option opts [Float] :limit Number of results per page (default to 100)
|
|
236
237
|
# @option opts [String] :name Filter by partial name match
|
|
238
|
+
# @option opts [String] :source_sandbox_id Filter by the ID of the sandbox the snapshot was created from
|
|
237
239
|
# @option opts [String] :sort Field to sort by (default to 'lastUsedAt')
|
|
238
240
|
# @option opts [String] :order Direction to sort by (default to 'desc')
|
|
239
241
|
# @return [Array<(PaginatedSnapshots, Integer, Hash)>] PaginatedSnapshots data, response status code and response headers
|
|
@@ -269,6 +271,7 @@ module DaytonaApiClient
|
|
|
269
271
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
270
272
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
271
273
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
274
|
+
query_params[:'sourceSandboxId'] = opts[:'source_sandbox_id'] if !opts[:'source_sandbox_id'].nil?
|
|
272
275
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
273
276
|
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
|
274
277
|
|