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
|
@@ -22,16 +22,16 @@ module DaytonaApiClient
|
|
|
22
22
|
# Accept organization invitation
|
|
23
23
|
# @param invitation_id [String] Invitation ID
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
|
-
# @return [
|
|
25
|
+
# @return [nil]
|
|
26
26
|
def accept_organization_invitation(invitation_id, opts = {})
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
accept_organization_invitation_with_http_info(invitation_id, opts)
|
|
28
|
+
nil
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
# Accept organization invitation
|
|
32
32
|
# @param invitation_id [String] Invitation ID
|
|
33
33
|
# @param [Hash] opts the optional parameters
|
|
34
|
-
# @return [Array<(
|
|
34
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
35
35
|
def accept_organization_invitation_with_http_info(invitation_id, opts = {})
|
|
36
36
|
if @api_client.config.debugging
|
|
37
37
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.accept_organization_invitation ...'
|
|
@@ -48,8 +48,6 @@ module DaytonaApiClient
|
|
|
48
48
|
|
|
49
49
|
# header parameters
|
|
50
50
|
header_params = opts[:header_params] || {}
|
|
51
|
-
# HTTP header 'Accept' (if needed)
|
|
52
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
53
51
|
|
|
54
52
|
# form parameters
|
|
55
53
|
form_params = opts[:form_params] || {}
|
|
@@ -58,7 +56,7 @@ module DaytonaApiClient
|
|
|
58
56
|
post_body = opts[:debug_body]
|
|
59
57
|
|
|
60
58
|
# return_type
|
|
61
|
-
return_type = opts[:debug_return_type]
|
|
59
|
+
return_type = opts[:debug_return_type]
|
|
62
60
|
|
|
63
61
|
# auth_names
|
|
64
62
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
@@ -355,75 +353,6 @@ module DaytonaApiClient
|
|
|
355
353
|
return data, status_code, headers
|
|
356
354
|
end
|
|
357
355
|
|
|
358
|
-
# Create a new region
|
|
359
|
-
# @param create_region [CreateRegion]
|
|
360
|
-
# @param [Hash] opts the optional parameters
|
|
361
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
362
|
-
# @return [CreateRegionResponse]
|
|
363
|
-
def create_region(create_region, opts = {})
|
|
364
|
-
data, _status_code, _headers = create_region_with_http_info(create_region, opts)
|
|
365
|
-
data
|
|
366
|
-
end
|
|
367
|
-
|
|
368
|
-
# Create a new region
|
|
369
|
-
# @param create_region [CreateRegion]
|
|
370
|
-
# @param [Hash] opts the optional parameters
|
|
371
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
372
|
-
# @return [Array<(CreateRegionResponse, Integer, Hash)>] CreateRegionResponse data, response status code and response headers
|
|
373
|
-
def create_region_with_http_info(create_region, opts = {})
|
|
374
|
-
if @api_client.config.debugging
|
|
375
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_region ...'
|
|
376
|
-
end
|
|
377
|
-
# verify the required parameter 'create_region' is set
|
|
378
|
-
if @api_client.config.client_side_validation && create_region.nil?
|
|
379
|
-
fail ArgumentError, "Missing the required parameter 'create_region' when calling OrganizationsApi.create_region"
|
|
380
|
-
end
|
|
381
|
-
# resource path
|
|
382
|
-
local_var_path = '/regions'
|
|
383
|
-
|
|
384
|
-
# query parameters
|
|
385
|
-
query_params = opts[:query_params] || {}
|
|
386
|
-
|
|
387
|
-
# header parameters
|
|
388
|
-
header_params = opts[:header_params] || {}
|
|
389
|
-
# HTTP header 'Accept' (if needed)
|
|
390
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
391
|
-
# HTTP header 'Content-Type'
|
|
392
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
393
|
-
if !content_type.nil?
|
|
394
|
-
header_params['Content-Type'] = content_type
|
|
395
|
-
end
|
|
396
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
397
|
-
|
|
398
|
-
# form parameters
|
|
399
|
-
form_params = opts[:form_params] || {}
|
|
400
|
-
|
|
401
|
-
# http body (model)
|
|
402
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_region)
|
|
403
|
-
|
|
404
|
-
# return_type
|
|
405
|
-
return_type = opts[:debug_return_type] || 'CreateRegionResponse'
|
|
406
|
-
|
|
407
|
-
# auth_names
|
|
408
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
409
|
-
|
|
410
|
-
new_options = opts.merge(
|
|
411
|
-
:operation => :"OrganizationsApi.create_region",
|
|
412
|
-
:header_params => header_params,
|
|
413
|
-
:query_params => query_params,
|
|
414
|
-
:form_params => form_params,
|
|
415
|
-
:body => post_body,
|
|
416
|
-
:auth_names => auth_names,
|
|
417
|
-
:return_type => return_type
|
|
418
|
-
)
|
|
419
|
-
|
|
420
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
421
|
-
if @api_client.config.debugging
|
|
422
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#create_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
423
|
-
end
|
|
424
|
-
return data, status_code, headers
|
|
425
|
-
end
|
|
426
|
-
|
|
427
356
|
# Decline organization invitation
|
|
428
357
|
# @param invitation_id [String] Invitation ID
|
|
429
358
|
# @param [Hash] opts the optional parameters
|
|
@@ -672,68 +601,6 @@ module DaytonaApiClient
|
|
|
672
601
|
return data, status_code, headers
|
|
673
602
|
end
|
|
674
603
|
|
|
675
|
-
# Delete a region
|
|
676
|
-
# @param id [String] Region ID
|
|
677
|
-
# @param [Hash] opts the optional parameters
|
|
678
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
679
|
-
# @return [nil]
|
|
680
|
-
def delete_region(id, opts = {})
|
|
681
|
-
delete_region_with_http_info(id, opts)
|
|
682
|
-
nil
|
|
683
|
-
end
|
|
684
|
-
|
|
685
|
-
# Delete a region
|
|
686
|
-
# @param id [String] Region ID
|
|
687
|
-
# @param [Hash] opts the optional parameters
|
|
688
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
689
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
690
|
-
def delete_region_with_http_info(id, opts = {})
|
|
691
|
-
if @api_client.config.debugging
|
|
692
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_region ...'
|
|
693
|
-
end
|
|
694
|
-
# verify the required parameter 'id' is set
|
|
695
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
696
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.delete_region"
|
|
697
|
-
end
|
|
698
|
-
# resource path
|
|
699
|
-
local_var_path = '/regions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
700
|
-
|
|
701
|
-
# query parameters
|
|
702
|
-
query_params = opts[:query_params] || {}
|
|
703
|
-
|
|
704
|
-
# header parameters
|
|
705
|
-
header_params = opts[:header_params] || {}
|
|
706
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
707
|
-
|
|
708
|
-
# form parameters
|
|
709
|
-
form_params = opts[:form_params] || {}
|
|
710
|
-
|
|
711
|
-
# http body (model)
|
|
712
|
-
post_body = opts[:debug_body]
|
|
713
|
-
|
|
714
|
-
# return_type
|
|
715
|
-
return_type = opts[:debug_return_type]
|
|
716
|
-
|
|
717
|
-
# auth_names
|
|
718
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
719
|
-
|
|
720
|
-
new_options = opts.merge(
|
|
721
|
-
:operation => :"OrganizationsApi.delete_region",
|
|
722
|
-
:header_params => header_params,
|
|
723
|
-
:query_params => query_params,
|
|
724
|
-
:form_params => form_params,
|
|
725
|
-
:body => post_body,
|
|
726
|
-
:auth_names => auth_names,
|
|
727
|
-
:return_type => return_type
|
|
728
|
-
)
|
|
729
|
-
|
|
730
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
731
|
-
if @api_client.config.debugging
|
|
732
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#delete_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
733
|
-
end
|
|
734
|
-
return data, status_code, headers
|
|
735
|
-
end
|
|
736
|
-
|
|
737
604
|
# Get organization by ID
|
|
738
605
|
# @param organization_id [String] Organization ID
|
|
739
606
|
# @param [Hash] opts the optional parameters
|
|
@@ -972,131 +839,6 @@ module DaytonaApiClient
|
|
|
972
839
|
return data, status_code, headers
|
|
973
840
|
end
|
|
974
841
|
|
|
975
|
-
# Get region by ID
|
|
976
|
-
# @param id [String] Region ID
|
|
977
|
-
# @param [Hash] opts the optional parameters
|
|
978
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
979
|
-
# @return [Region]
|
|
980
|
-
def get_region_by_id(id, opts = {})
|
|
981
|
-
data, _status_code, _headers = get_region_by_id_with_http_info(id, opts)
|
|
982
|
-
data
|
|
983
|
-
end
|
|
984
|
-
|
|
985
|
-
# Get region by ID
|
|
986
|
-
# @param id [String] Region ID
|
|
987
|
-
# @param [Hash] opts the optional parameters
|
|
988
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
989
|
-
# @return [Array<(Region, Integer, Hash)>] Region data, response status code and response headers
|
|
990
|
-
def get_region_by_id_with_http_info(id, opts = {})
|
|
991
|
-
if @api_client.config.debugging
|
|
992
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_region_by_id ...'
|
|
993
|
-
end
|
|
994
|
-
# verify the required parameter 'id' is set
|
|
995
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
996
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.get_region_by_id"
|
|
997
|
-
end
|
|
998
|
-
# resource path
|
|
999
|
-
local_var_path = '/regions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1000
|
-
|
|
1001
|
-
# query parameters
|
|
1002
|
-
query_params = opts[:query_params] || {}
|
|
1003
|
-
|
|
1004
|
-
# header parameters
|
|
1005
|
-
header_params = opts[:header_params] || {}
|
|
1006
|
-
# HTTP header 'Accept' (if needed)
|
|
1007
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1008
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1009
|
-
|
|
1010
|
-
# form parameters
|
|
1011
|
-
form_params = opts[:form_params] || {}
|
|
1012
|
-
|
|
1013
|
-
# http body (model)
|
|
1014
|
-
post_body = opts[:debug_body]
|
|
1015
|
-
|
|
1016
|
-
# return_type
|
|
1017
|
-
return_type = opts[:debug_return_type] || 'Region'
|
|
1018
|
-
|
|
1019
|
-
# auth_names
|
|
1020
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1021
|
-
|
|
1022
|
-
new_options = opts.merge(
|
|
1023
|
-
:operation => :"OrganizationsApi.get_region_by_id",
|
|
1024
|
-
:header_params => header_params,
|
|
1025
|
-
:query_params => query_params,
|
|
1026
|
-
:form_params => form_params,
|
|
1027
|
-
:body => post_body,
|
|
1028
|
-
:auth_names => auth_names,
|
|
1029
|
-
:return_type => return_type
|
|
1030
|
-
)
|
|
1031
|
-
|
|
1032
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1033
|
-
if @api_client.config.debugging
|
|
1034
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#get_region_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1035
|
-
end
|
|
1036
|
-
return data, status_code, headers
|
|
1037
|
-
end
|
|
1038
|
-
|
|
1039
|
-
# Get region quota by sandbox ID
|
|
1040
|
-
# @param sandbox_id [String] Sandbox ID
|
|
1041
|
-
# @param [Hash] opts the optional parameters
|
|
1042
|
-
# @return [RegionQuota]
|
|
1043
|
-
def get_region_quota_by_sandbox_id(sandbox_id, opts = {})
|
|
1044
|
-
data, _status_code, _headers = get_region_quota_by_sandbox_id_with_http_info(sandbox_id, opts)
|
|
1045
|
-
data
|
|
1046
|
-
end
|
|
1047
|
-
|
|
1048
|
-
# Get region quota by sandbox ID
|
|
1049
|
-
# @param sandbox_id [String] Sandbox ID
|
|
1050
|
-
# @param [Hash] opts the optional parameters
|
|
1051
|
-
# @return [Array<(RegionQuota, Integer, Hash)>] RegionQuota data, response status code and response headers
|
|
1052
|
-
def get_region_quota_by_sandbox_id_with_http_info(sandbox_id, opts = {})
|
|
1053
|
-
if @api_client.config.debugging
|
|
1054
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_region_quota_by_sandbox_id ...'
|
|
1055
|
-
end
|
|
1056
|
-
# verify the required parameter 'sandbox_id' is set
|
|
1057
|
-
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
1058
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling OrganizationsApi.get_region_quota_by_sandbox_id"
|
|
1059
|
-
end
|
|
1060
|
-
# resource path
|
|
1061
|
-
local_var_path = '/organizations/region-quota/by-sandbox-id/{sandboxId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
1062
|
-
|
|
1063
|
-
# query parameters
|
|
1064
|
-
query_params = opts[:query_params] || {}
|
|
1065
|
-
|
|
1066
|
-
# header parameters
|
|
1067
|
-
header_params = opts[:header_params] || {}
|
|
1068
|
-
# HTTP header 'Accept' (if needed)
|
|
1069
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1070
|
-
|
|
1071
|
-
# form parameters
|
|
1072
|
-
form_params = opts[:form_params] || {}
|
|
1073
|
-
|
|
1074
|
-
# http body (model)
|
|
1075
|
-
post_body = opts[:debug_body]
|
|
1076
|
-
|
|
1077
|
-
# return_type
|
|
1078
|
-
return_type = opts[:debug_return_type] || 'RegionQuota'
|
|
1079
|
-
|
|
1080
|
-
# auth_names
|
|
1081
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1082
|
-
|
|
1083
|
-
new_options = opts.merge(
|
|
1084
|
-
:operation => :"OrganizationsApi.get_region_quota_by_sandbox_id",
|
|
1085
|
-
:header_params => header_params,
|
|
1086
|
-
:query_params => query_params,
|
|
1087
|
-
:form_params => form_params,
|
|
1088
|
-
:body => post_body,
|
|
1089
|
-
:auth_names => auth_names,
|
|
1090
|
-
:return_type => return_type
|
|
1091
|
-
)
|
|
1092
|
-
|
|
1093
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1094
|
-
if @api_client.config.debugging
|
|
1095
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#get_region_quota_by_sandbox_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1096
|
-
end
|
|
1097
|
-
return data, status_code, headers
|
|
1098
|
-
end
|
|
1099
|
-
|
|
1100
842
|
# Leave organization
|
|
1101
843
|
# @param organization_id [String] Organization ID
|
|
1102
844
|
# @param [Hash] opts the optional parameters
|
|
@@ -1156,64 +898,6 @@ module DaytonaApiClient
|
|
|
1156
898
|
return data, status_code, headers
|
|
1157
899
|
end
|
|
1158
900
|
|
|
1159
|
-
# List all available regions for the organization
|
|
1160
|
-
# @param [Hash] opts the optional parameters
|
|
1161
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1162
|
-
# @return [Array<Region>]
|
|
1163
|
-
def list_available_regions(opts = {})
|
|
1164
|
-
data, _status_code, _headers = list_available_regions_with_http_info(opts)
|
|
1165
|
-
data
|
|
1166
|
-
end
|
|
1167
|
-
|
|
1168
|
-
# List all available regions for the organization
|
|
1169
|
-
# @param [Hash] opts the optional parameters
|
|
1170
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1171
|
-
# @return [Array<(Array<Region>, Integer, Hash)>] Array<Region> data, response status code and response headers
|
|
1172
|
-
def list_available_regions_with_http_info(opts = {})
|
|
1173
|
-
if @api_client.config.debugging
|
|
1174
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_available_regions ...'
|
|
1175
|
-
end
|
|
1176
|
-
# resource path
|
|
1177
|
-
local_var_path = '/regions'
|
|
1178
|
-
|
|
1179
|
-
# query parameters
|
|
1180
|
-
query_params = opts[:query_params] || {}
|
|
1181
|
-
|
|
1182
|
-
# header parameters
|
|
1183
|
-
header_params = opts[:header_params] || {}
|
|
1184
|
-
# HTTP header 'Accept' (if needed)
|
|
1185
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1186
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1187
|
-
|
|
1188
|
-
# form parameters
|
|
1189
|
-
form_params = opts[:form_params] || {}
|
|
1190
|
-
|
|
1191
|
-
# http body (model)
|
|
1192
|
-
post_body = opts[:debug_body]
|
|
1193
|
-
|
|
1194
|
-
# return_type
|
|
1195
|
-
return_type = opts[:debug_return_type] || 'Array<Region>'
|
|
1196
|
-
|
|
1197
|
-
# auth_names
|
|
1198
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1199
|
-
|
|
1200
|
-
new_options = opts.merge(
|
|
1201
|
-
:operation => :"OrganizationsApi.list_available_regions",
|
|
1202
|
-
:header_params => header_params,
|
|
1203
|
-
:query_params => query_params,
|
|
1204
|
-
:form_params => form_params,
|
|
1205
|
-
:body => post_body,
|
|
1206
|
-
:auth_names => auth_names,
|
|
1207
|
-
:return_type => return_type
|
|
1208
|
-
)
|
|
1209
|
-
|
|
1210
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1211
|
-
if @api_client.config.debugging
|
|
1212
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_available_regions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1213
|
-
end
|
|
1214
|
-
return data, status_code, headers
|
|
1215
|
-
end
|
|
1216
|
-
|
|
1217
901
|
# List pending organization invitations
|
|
1218
902
|
# @param organization_id [String] Organization ID
|
|
1219
903
|
# @param [Hash] opts the optional parameters
|
|
@@ -1507,293 +1191,31 @@ module DaytonaApiClient
|
|
|
1507
1191
|
return data, status_code, headers
|
|
1508
1192
|
end
|
|
1509
1193
|
|
|
1510
|
-
#
|
|
1511
|
-
# @param
|
|
1194
|
+
# Suspend organization
|
|
1195
|
+
# @param organization_id [String] Organization ID
|
|
1512
1196
|
# @param [Hash] opts the optional parameters
|
|
1513
|
-
# @option opts [
|
|
1514
|
-
# @return [
|
|
1515
|
-
def
|
|
1516
|
-
|
|
1517
|
-
|
|
1197
|
+
# @option opts [OrganizationSuspension] :organization_suspension
|
|
1198
|
+
# @return [nil]
|
|
1199
|
+
def suspend_organization(organization_id, opts = {})
|
|
1200
|
+
suspend_organization_with_http_info(organization_id, opts)
|
|
1201
|
+
nil
|
|
1518
1202
|
end
|
|
1519
1203
|
|
|
1520
|
-
#
|
|
1521
|
-
# @param
|
|
1204
|
+
# Suspend organization
|
|
1205
|
+
# @param organization_id [String] Organization ID
|
|
1522
1206
|
# @param [Hash] opts the optional parameters
|
|
1523
|
-
# @option opts [
|
|
1524
|
-
# @return [Array<(
|
|
1525
|
-
def
|
|
1207
|
+
# @option opts [OrganizationSuspension] :organization_suspension
|
|
1208
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1209
|
+
def suspend_organization_with_http_info(organization_id, opts = {})
|
|
1526
1210
|
if @api_client.config.debugging
|
|
1527
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1211
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.suspend_organization ...'
|
|
1528
1212
|
end
|
|
1529
|
-
# verify the required parameter '
|
|
1530
|
-
if @api_client.config.client_side_validation &&
|
|
1531
|
-
fail ArgumentError, "Missing the required parameter '
|
|
1213
|
+
# verify the required parameter 'organization_id' is set
|
|
1214
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1215
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.suspend_organization"
|
|
1532
1216
|
end
|
|
1533
1217
|
# resource path
|
|
1534
|
-
local_var_path = '/
|
|
1535
|
-
|
|
1536
|
-
# query parameters
|
|
1537
|
-
query_params = opts[:query_params] || {}
|
|
1538
|
-
|
|
1539
|
-
# header parameters
|
|
1540
|
-
header_params = opts[:header_params] || {}
|
|
1541
|
-
# HTTP header 'Accept' (if needed)
|
|
1542
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1543
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1544
|
-
|
|
1545
|
-
# form parameters
|
|
1546
|
-
form_params = opts[:form_params] || {}
|
|
1547
|
-
|
|
1548
|
-
# http body (model)
|
|
1549
|
-
post_body = opts[:debug_body]
|
|
1550
|
-
|
|
1551
|
-
# return_type
|
|
1552
|
-
return_type = opts[:debug_return_type] || 'RegenerateApiKeyResponse'
|
|
1553
|
-
|
|
1554
|
-
# auth_names
|
|
1555
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1556
|
-
|
|
1557
|
-
new_options = opts.merge(
|
|
1558
|
-
:operation => :"OrganizationsApi.regenerate_proxy_api_key",
|
|
1559
|
-
:header_params => header_params,
|
|
1560
|
-
:query_params => query_params,
|
|
1561
|
-
:form_params => form_params,
|
|
1562
|
-
:body => post_body,
|
|
1563
|
-
:auth_names => auth_names,
|
|
1564
|
-
:return_type => return_type
|
|
1565
|
-
)
|
|
1566
|
-
|
|
1567
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1568
|
-
if @api_client.config.debugging
|
|
1569
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#regenerate_proxy_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1570
|
-
end
|
|
1571
|
-
return data, status_code, headers
|
|
1572
|
-
end
|
|
1573
|
-
|
|
1574
|
-
# Regenerate snapshot manager credentials for a region
|
|
1575
|
-
# @param id [String] Region ID
|
|
1576
|
-
# @param [Hash] opts the optional parameters
|
|
1577
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1578
|
-
# @return [SnapshotManagerCredentials]
|
|
1579
|
-
def regenerate_snapshot_manager_credentials(id, opts = {})
|
|
1580
|
-
data, _status_code, _headers = regenerate_snapshot_manager_credentials_with_http_info(id, opts)
|
|
1581
|
-
data
|
|
1582
|
-
end
|
|
1583
|
-
|
|
1584
|
-
# Regenerate snapshot manager credentials for a region
|
|
1585
|
-
# @param id [String] Region ID
|
|
1586
|
-
# @param [Hash] opts the optional parameters
|
|
1587
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1588
|
-
# @return [Array<(SnapshotManagerCredentials, Integer, Hash)>] SnapshotManagerCredentials data, response status code and response headers
|
|
1589
|
-
def regenerate_snapshot_manager_credentials_with_http_info(id, opts = {})
|
|
1590
|
-
if @api_client.config.debugging
|
|
1591
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.regenerate_snapshot_manager_credentials ...'
|
|
1592
|
-
end
|
|
1593
|
-
# verify the required parameter 'id' is set
|
|
1594
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
1595
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.regenerate_snapshot_manager_credentials"
|
|
1596
|
-
end
|
|
1597
|
-
# resource path
|
|
1598
|
-
local_var_path = '/regions/{id}/regenerate-snapshot-manager-credentials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1599
|
-
|
|
1600
|
-
# query parameters
|
|
1601
|
-
query_params = opts[:query_params] || {}
|
|
1602
|
-
|
|
1603
|
-
# header parameters
|
|
1604
|
-
header_params = opts[:header_params] || {}
|
|
1605
|
-
# HTTP header 'Accept' (if needed)
|
|
1606
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1607
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1608
|
-
|
|
1609
|
-
# form parameters
|
|
1610
|
-
form_params = opts[:form_params] || {}
|
|
1611
|
-
|
|
1612
|
-
# http body (model)
|
|
1613
|
-
post_body = opts[:debug_body]
|
|
1614
|
-
|
|
1615
|
-
# return_type
|
|
1616
|
-
return_type = opts[:debug_return_type] || 'SnapshotManagerCredentials'
|
|
1617
|
-
|
|
1618
|
-
# auth_names
|
|
1619
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1620
|
-
|
|
1621
|
-
new_options = opts.merge(
|
|
1622
|
-
:operation => :"OrganizationsApi.regenerate_snapshot_manager_credentials",
|
|
1623
|
-
:header_params => header_params,
|
|
1624
|
-
:query_params => query_params,
|
|
1625
|
-
:form_params => form_params,
|
|
1626
|
-
:body => post_body,
|
|
1627
|
-
:auth_names => auth_names,
|
|
1628
|
-
:return_type => return_type
|
|
1629
|
-
)
|
|
1630
|
-
|
|
1631
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1632
|
-
if @api_client.config.debugging
|
|
1633
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#regenerate_snapshot_manager_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1634
|
-
end
|
|
1635
|
-
return data, status_code, headers
|
|
1636
|
-
end
|
|
1637
|
-
|
|
1638
|
-
# Regenerate SSH gateway API key for a region
|
|
1639
|
-
# @param id [String] Region ID
|
|
1640
|
-
# @param [Hash] opts the optional parameters
|
|
1641
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1642
|
-
# @return [RegenerateApiKeyResponse]
|
|
1643
|
-
def regenerate_ssh_gateway_api_key(id, opts = {})
|
|
1644
|
-
data, _status_code, _headers = regenerate_ssh_gateway_api_key_with_http_info(id, opts)
|
|
1645
|
-
data
|
|
1646
|
-
end
|
|
1647
|
-
|
|
1648
|
-
# Regenerate SSH gateway API key for a region
|
|
1649
|
-
# @param id [String] Region ID
|
|
1650
|
-
# @param [Hash] opts the optional parameters
|
|
1651
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1652
|
-
# @return [Array<(RegenerateApiKeyResponse, Integer, Hash)>] RegenerateApiKeyResponse data, response status code and response headers
|
|
1653
|
-
def regenerate_ssh_gateway_api_key_with_http_info(id, opts = {})
|
|
1654
|
-
if @api_client.config.debugging
|
|
1655
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.regenerate_ssh_gateway_api_key ...'
|
|
1656
|
-
end
|
|
1657
|
-
# verify the required parameter 'id' is set
|
|
1658
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
1659
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.regenerate_ssh_gateway_api_key"
|
|
1660
|
-
end
|
|
1661
|
-
# resource path
|
|
1662
|
-
local_var_path = '/regions/{id}/regenerate-ssh-gateway-api-key'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1663
|
-
|
|
1664
|
-
# query parameters
|
|
1665
|
-
query_params = opts[:query_params] || {}
|
|
1666
|
-
|
|
1667
|
-
# header parameters
|
|
1668
|
-
header_params = opts[:header_params] || {}
|
|
1669
|
-
# HTTP header 'Accept' (if needed)
|
|
1670
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1671
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1672
|
-
|
|
1673
|
-
# form parameters
|
|
1674
|
-
form_params = opts[:form_params] || {}
|
|
1675
|
-
|
|
1676
|
-
# http body (model)
|
|
1677
|
-
post_body = opts[:debug_body]
|
|
1678
|
-
|
|
1679
|
-
# return_type
|
|
1680
|
-
return_type = opts[:debug_return_type] || 'RegenerateApiKeyResponse'
|
|
1681
|
-
|
|
1682
|
-
# auth_names
|
|
1683
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1684
|
-
|
|
1685
|
-
new_options = opts.merge(
|
|
1686
|
-
:operation => :"OrganizationsApi.regenerate_ssh_gateway_api_key",
|
|
1687
|
-
:header_params => header_params,
|
|
1688
|
-
:query_params => query_params,
|
|
1689
|
-
:form_params => form_params,
|
|
1690
|
-
:body => post_body,
|
|
1691
|
-
:auth_names => auth_names,
|
|
1692
|
-
:return_type => return_type
|
|
1693
|
-
)
|
|
1694
|
-
|
|
1695
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1696
|
-
if @api_client.config.debugging
|
|
1697
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#regenerate_ssh_gateway_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1698
|
-
end
|
|
1699
|
-
return data, status_code, headers
|
|
1700
|
-
end
|
|
1701
|
-
|
|
1702
|
-
# Set default region for organization
|
|
1703
|
-
# @param organization_id [String] Organization ID
|
|
1704
|
-
# @param update_organization_default_region [UpdateOrganizationDefaultRegion]
|
|
1705
|
-
# @param [Hash] opts the optional parameters
|
|
1706
|
-
# @return [nil]
|
|
1707
|
-
def set_organization_default_region(organization_id, update_organization_default_region, opts = {})
|
|
1708
|
-
set_organization_default_region_with_http_info(organization_id, update_organization_default_region, opts)
|
|
1709
|
-
nil
|
|
1710
|
-
end
|
|
1711
|
-
|
|
1712
|
-
# Set default region for organization
|
|
1713
|
-
# @param organization_id [String] Organization ID
|
|
1714
|
-
# @param update_organization_default_region [UpdateOrganizationDefaultRegion]
|
|
1715
|
-
# @param [Hash] opts the optional parameters
|
|
1716
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1717
|
-
def set_organization_default_region_with_http_info(organization_id, update_organization_default_region, opts = {})
|
|
1718
|
-
if @api_client.config.debugging
|
|
1719
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.set_organization_default_region ...'
|
|
1720
|
-
end
|
|
1721
|
-
# verify the required parameter 'organization_id' is set
|
|
1722
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1723
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.set_organization_default_region"
|
|
1724
|
-
end
|
|
1725
|
-
# verify the required parameter 'update_organization_default_region' is set
|
|
1726
|
-
if @api_client.config.client_side_validation && update_organization_default_region.nil?
|
|
1727
|
-
fail ArgumentError, "Missing the required parameter 'update_organization_default_region' when calling OrganizationsApi.set_organization_default_region"
|
|
1728
|
-
end
|
|
1729
|
-
# resource path
|
|
1730
|
-
local_var_path = '/organizations/{organizationId}/default-region'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1731
|
-
|
|
1732
|
-
# query parameters
|
|
1733
|
-
query_params = opts[:query_params] || {}
|
|
1734
|
-
|
|
1735
|
-
# header parameters
|
|
1736
|
-
header_params = opts[:header_params] || {}
|
|
1737
|
-
# HTTP header 'Content-Type'
|
|
1738
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1739
|
-
if !content_type.nil?
|
|
1740
|
-
header_params['Content-Type'] = content_type
|
|
1741
|
-
end
|
|
1742
|
-
|
|
1743
|
-
# form parameters
|
|
1744
|
-
form_params = opts[:form_params] || {}
|
|
1745
|
-
|
|
1746
|
-
# http body (model)
|
|
1747
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_default_region)
|
|
1748
|
-
|
|
1749
|
-
# return_type
|
|
1750
|
-
return_type = opts[:debug_return_type]
|
|
1751
|
-
|
|
1752
|
-
# auth_names
|
|
1753
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1754
|
-
|
|
1755
|
-
new_options = opts.merge(
|
|
1756
|
-
:operation => :"OrganizationsApi.set_organization_default_region",
|
|
1757
|
-
:header_params => header_params,
|
|
1758
|
-
:query_params => query_params,
|
|
1759
|
-
:form_params => form_params,
|
|
1760
|
-
:body => post_body,
|
|
1761
|
-
:auth_names => auth_names,
|
|
1762
|
-
:return_type => return_type
|
|
1763
|
-
)
|
|
1764
|
-
|
|
1765
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1766
|
-
if @api_client.config.debugging
|
|
1767
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#set_organization_default_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1768
|
-
end
|
|
1769
|
-
return data, status_code, headers
|
|
1770
|
-
end
|
|
1771
|
-
|
|
1772
|
-
# Suspend organization
|
|
1773
|
-
# @param organization_id [String] Organization ID
|
|
1774
|
-
# @param [Hash] opts the optional parameters
|
|
1775
|
-
# @option opts [OrganizationSuspension] :organization_suspension
|
|
1776
|
-
# @return [nil]
|
|
1777
|
-
def suspend_organization(organization_id, opts = {})
|
|
1778
|
-
suspend_organization_with_http_info(organization_id, opts)
|
|
1779
|
-
nil
|
|
1780
|
-
end
|
|
1781
|
-
|
|
1782
|
-
# Suspend organization
|
|
1783
|
-
# @param organization_id [String] Organization ID
|
|
1784
|
-
# @param [Hash] opts the optional parameters
|
|
1785
|
-
# @option opts [OrganizationSuspension] :organization_suspension
|
|
1786
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1787
|
-
def suspend_organization_with_http_info(organization_id, opts = {})
|
|
1788
|
-
if @api_client.config.debugging
|
|
1789
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.suspend_organization ...'
|
|
1790
|
-
end
|
|
1791
|
-
# verify the required parameter 'organization_id' is set
|
|
1792
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1793
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.suspend_organization"
|
|
1794
|
-
end
|
|
1795
|
-
# resource path
|
|
1796
|
-
local_var_path = '/organizations/{organizationId}/suspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1218
|
+
local_var_path = '/organizations/{organizationId}/suspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1797
1219
|
|
|
1798
1220
|
# query parameters
|
|
1799
1221
|
query_params = opts[:query_params] || {}
|
|
@@ -2054,17 +1476,17 @@ module DaytonaApiClient
|
|
|
2054
1476
|
# @param organization_id [String] Organization ID
|
|
2055
1477
|
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
2056
1478
|
# @param [Hash] opts the optional parameters
|
|
2057
|
-
# @return [
|
|
1479
|
+
# @return [Organization]
|
|
2058
1480
|
def update_organization_quota(organization_id, update_organization_quota, opts = {})
|
|
2059
|
-
update_organization_quota_with_http_info(organization_id, update_organization_quota, opts)
|
|
2060
|
-
|
|
1481
|
+
data, _status_code, _headers = update_organization_quota_with_http_info(organization_id, update_organization_quota, opts)
|
|
1482
|
+
data
|
|
2061
1483
|
end
|
|
2062
1484
|
|
|
2063
1485
|
# Update organization quota
|
|
2064
1486
|
# @param organization_id [String] Organization ID
|
|
2065
1487
|
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
2066
1488
|
# @param [Hash] opts the optional parameters
|
|
2067
|
-
# @return [Array<(
|
|
1489
|
+
# @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
|
|
2068
1490
|
def update_organization_quota_with_http_info(organization_id, update_organization_quota, opts = {})
|
|
2069
1491
|
if @api_client.config.debugging
|
|
2070
1492
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_quota ...'
|
|
@@ -2085,6 +1507,8 @@ module DaytonaApiClient
|
|
|
2085
1507
|
|
|
2086
1508
|
# header parameters
|
|
2087
1509
|
header_params = opts[:header_params] || {}
|
|
1510
|
+
# HTTP header 'Accept' (if needed)
|
|
1511
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2088
1512
|
# HTTP header 'Content-Type'
|
|
2089
1513
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2090
1514
|
if !content_type.nil?
|
|
@@ -2098,7 +1522,7 @@ module DaytonaApiClient
|
|
|
2098
1522
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_quota)
|
|
2099
1523
|
|
|
2100
1524
|
# return_type
|
|
2101
|
-
return_type = opts[:debug_return_type]
|
|
1525
|
+
return_type = opts[:debug_return_type] || 'Organization'
|
|
2102
1526
|
|
|
2103
1527
|
# auth_names
|
|
2104
1528
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
@@ -2120,82 +1544,6 @@ module DaytonaApiClient
|
|
|
2120
1544
|
return data, status_code, headers
|
|
2121
1545
|
end
|
|
2122
1546
|
|
|
2123
|
-
# Update organization region quota
|
|
2124
|
-
# @param organization_id [String] Organization ID
|
|
2125
|
-
# @param region_id [String] ID of the region where the updated quota will be applied
|
|
2126
|
-
# @param update_organization_region_quota [UpdateOrganizationRegionQuota]
|
|
2127
|
-
# @param [Hash] opts the optional parameters
|
|
2128
|
-
# @return [nil]
|
|
2129
|
-
def update_organization_region_quota(organization_id, region_id, update_organization_region_quota, opts = {})
|
|
2130
|
-
update_organization_region_quota_with_http_info(organization_id, region_id, update_organization_region_quota, opts)
|
|
2131
|
-
nil
|
|
2132
|
-
end
|
|
2133
|
-
|
|
2134
|
-
# Update organization region quota
|
|
2135
|
-
# @param organization_id [String] Organization ID
|
|
2136
|
-
# @param region_id [String] ID of the region where the updated quota will be applied
|
|
2137
|
-
# @param update_organization_region_quota [UpdateOrganizationRegionQuota]
|
|
2138
|
-
# @param [Hash] opts the optional parameters
|
|
2139
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2140
|
-
def update_organization_region_quota_with_http_info(organization_id, region_id, update_organization_region_quota, opts = {})
|
|
2141
|
-
if @api_client.config.debugging
|
|
2142
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_region_quota ...'
|
|
2143
|
-
end
|
|
2144
|
-
# verify the required parameter 'organization_id' is set
|
|
2145
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2146
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_region_quota"
|
|
2147
|
-
end
|
|
2148
|
-
# verify the required parameter 'region_id' is set
|
|
2149
|
-
if @api_client.config.client_side_validation && region_id.nil?
|
|
2150
|
-
fail ArgumentError, "Missing the required parameter 'region_id' when calling OrganizationsApi.update_organization_region_quota"
|
|
2151
|
-
end
|
|
2152
|
-
# verify the required parameter 'update_organization_region_quota' is set
|
|
2153
|
-
if @api_client.config.client_side_validation && update_organization_region_quota.nil?
|
|
2154
|
-
fail ArgumentError, "Missing the required parameter 'update_organization_region_quota' when calling OrganizationsApi.update_organization_region_quota"
|
|
2155
|
-
end
|
|
2156
|
-
# resource path
|
|
2157
|
-
local_var_path = '/organizations/{organizationId}/quota/{regionId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'regionId' + '}', CGI.escape(region_id.to_s))
|
|
2158
|
-
|
|
2159
|
-
# query parameters
|
|
2160
|
-
query_params = opts[:query_params] || {}
|
|
2161
|
-
|
|
2162
|
-
# header parameters
|
|
2163
|
-
header_params = opts[:header_params] || {}
|
|
2164
|
-
# HTTP header 'Content-Type'
|
|
2165
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2166
|
-
if !content_type.nil?
|
|
2167
|
-
header_params['Content-Type'] = content_type
|
|
2168
|
-
end
|
|
2169
|
-
|
|
2170
|
-
# form parameters
|
|
2171
|
-
form_params = opts[:form_params] || {}
|
|
2172
|
-
|
|
2173
|
-
# http body (model)
|
|
2174
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_region_quota)
|
|
2175
|
-
|
|
2176
|
-
# return_type
|
|
2177
|
-
return_type = opts[:debug_return_type]
|
|
2178
|
-
|
|
2179
|
-
# auth_names
|
|
2180
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2181
|
-
|
|
2182
|
-
new_options = opts.merge(
|
|
2183
|
-
:operation => :"OrganizationsApi.update_organization_region_quota",
|
|
2184
|
-
:header_params => header_params,
|
|
2185
|
-
:query_params => query_params,
|
|
2186
|
-
:form_params => form_params,
|
|
2187
|
-
:body => post_body,
|
|
2188
|
-
:auth_names => auth_names,
|
|
2189
|
-
:return_type => return_type
|
|
2190
|
-
)
|
|
2191
|
-
|
|
2192
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2193
|
-
if @api_client.config.debugging
|
|
2194
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_region_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2195
|
-
end
|
|
2196
|
-
return data, status_code, headers
|
|
2197
|
-
end
|
|
2198
|
-
|
|
2199
1547
|
# Update organization role
|
|
2200
1548
|
# @param organization_id [String] Organization ID
|
|
2201
1549
|
# @param role_id [String] Role ID
|
|
@@ -2274,79 +1622,6 @@ module DaytonaApiClient
|
|
|
2274
1622
|
return data, status_code, headers
|
|
2275
1623
|
end
|
|
2276
1624
|
|
|
2277
|
-
# Update region configuration
|
|
2278
|
-
# @param id [String] Region ID
|
|
2279
|
-
# @param update_region [UpdateRegion]
|
|
2280
|
-
# @param [Hash] opts the optional parameters
|
|
2281
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2282
|
-
# @return [nil]
|
|
2283
|
-
def update_region(id, update_region, opts = {})
|
|
2284
|
-
update_region_with_http_info(id, update_region, opts)
|
|
2285
|
-
nil
|
|
2286
|
-
end
|
|
2287
|
-
|
|
2288
|
-
# Update region configuration
|
|
2289
|
-
# @param id [String] Region ID
|
|
2290
|
-
# @param update_region [UpdateRegion]
|
|
2291
|
-
# @param [Hash] opts the optional parameters
|
|
2292
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2293
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2294
|
-
def update_region_with_http_info(id, update_region, opts = {})
|
|
2295
|
-
if @api_client.config.debugging
|
|
2296
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_region ...'
|
|
2297
|
-
end
|
|
2298
|
-
# verify the required parameter 'id' is set
|
|
2299
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
2300
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.update_region"
|
|
2301
|
-
end
|
|
2302
|
-
# verify the required parameter 'update_region' is set
|
|
2303
|
-
if @api_client.config.client_side_validation && update_region.nil?
|
|
2304
|
-
fail ArgumentError, "Missing the required parameter 'update_region' when calling OrganizationsApi.update_region"
|
|
2305
|
-
end
|
|
2306
|
-
# resource path
|
|
2307
|
-
local_var_path = '/regions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2308
|
-
|
|
2309
|
-
# query parameters
|
|
2310
|
-
query_params = opts[:query_params] || {}
|
|
2311
|
-
|
|
2312
|
-
# header parameters
|
|
2313
|
-
header_params = opts[:header_params] || {}
|
|
2314
|
-
# HTTP header 'Content-Type'
|
|
2315
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2316
|
-
if !content_type.nil?
|
|
2317
|
-
header_params['Content-Type'] = content_type
|
|
2318
|
-
end
|
|
2319
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
2320
|
-
|
|
2321
|
-
# form parameters
|
|
2322
|
-
form_params = opts[:form_params] || {}
|
|
2323
|
-
|
|
2324
|
-
# http body (model)
|
|
2325
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_region)
|
|
2326
|
-
|
|
2327
|
-
# return_type
|
|
2328
|
-
return_type = opts[:debug_return_type]
|
|
2329
|
-
|
|
2330
|
-
# auth_names
|
|
2331
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2332
|
-
|
|
2333
|
-
new_options = opts.merge(
|
|
2334
|
-
:operation => :"OrganizationsApi.update_region",
|
|
2335
|
-
:header_params => header_params,
|
|
2336
|
-
:query_params => query_params,
|
|
2337
|
-
:form_params => form_params,
|
|
2338
|
-
:body => post_body,
|
|
2339
|
-
:auth_names => auth_names,
|
|
2340
|
-
:return_type => return_type
|
|
2341
|
-
)
|
|
2342
|
-
|
|
2343
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2344
|
-
if @api_client.config.debugging
|
|
2345
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#update_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2346
|
-
end
|
|
2347
|
-
return data, status_code, headers
|
|
2348
|
-
end
|
|
2349
|
-
|
|
2350
1625
|
# Update sandbox default limited network egress
|
|
2351
1626
|
# @param organization_id [String] Organization ID
|
|
2352
1627
|
# @param organization_sandbox_default_limited_network_egress [OrganizationSandboxDefaultLimitedNetworkEgress]
|