daytona_api_client 0.126.0.pre.alpha.5 → 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.lock +3 -3
- data/daytona_api_client.gemspec +2 -2
- data/lib/daytona_api_client/api/audit_api.rb +66 -18
- data/lib/daytona_api_client/api/organizations_api.rb +12 -219
- data/lib/daytona_api_client/api/preview_api.rb +5 -7
- data/lib/daytona_api_client/api/runners_api.rb +0 -55
- data/lib/daytona_api_client/api/sandbox_api.rb +222 -309
- 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/create_organization.rb +4 -31
- data/lib/daytona_api_client/models/create_sandbox.rb +1 -11
- 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/port_preview_url.rb +14 -31
- data/lib/daytona_api_client/models/region.rb +4 -96
- data/lib/daytona_api_client/models/sandbox.rb +11 -38
- data/lib/daytona_api_client/models/sandbox_volume.rb +4 -14
- data/lib/daytona_api_client/models/snapshot_state.rb +4 -1
- 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 -14
- data/lib/daytona_api_client/models/workspace.rb +38 -38
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +1 -8
- data/project.json +7 -29
- metadata +1 -16
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -171
- data/.openapi-generator/VERSION +0 -1
- data/.openapi-generator-ignore +0 -33
- data/.rspec +0 -2
- data/.rubocop.yml +0 -148
- data/fix-gemspec.sh +0 -11
- data/lib/daytona_api_client/api/regions_api.rb +0 -83
- 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/region_quota.rb +0 -339
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -391
- 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/workspace_port_preview_url.rb +0 -263
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e3ee10e82eea35019a29ff41af2ba07fec0f69ae719b7dfcee1d58dc7048540e
|
|
4
|
+
data.tar.gz: f013eb05273d6dc7db9a7061add8c2f06a42f86d2d631f2e4a8549651e8f2f1e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 23245385616a577135b9b9f4207cfc4ae5b6ee4af39cdf750ebfa9f60b35a97a130c816747d799dca6eca5fc3b441272ccf69df0d77a0b2d31db5fc9dacdb5be
|
|
7
|
+
data.tar.gz: 6dc8b51f3e79601f20962d2205c483418ca5a82951a75981a9d7b0d0c58265324e3c4836dc77d57911e9566396c18cf00a6459823747516e685ec0c9bfd22daa
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
daytona_api_client (0.
|
|
4
|
+
daytona_api_client (1.0.0)
|
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -24,7 +24,7 @@ GEM
|
|
|
24
24
|
ffi (1.17.2-x86_64-darwin)
|
|
25
25
|
ffi (1.17.2-x86_64-linux-gnu)
|
|
26
26
|
ffi (1.17.2-x86_64-linux-musl)
|
|
27
|
-
json (2.
|
|
27
|
+
json (2.16.0)
|
|
28
28
|
language_server-protocol (3.17.0.5)
|
|
29
29
|
lint_roller (1.1.0)
|
|
30
30
|
method_source (1.1.0)
|
|
@@ -41,7 +41,7 @@ GEM
|
|
|
41
41
|
pry (>= 0.13, < 0.16)
|
|
42
42
|
racc (1.8.1)
|
|
43
43
|
rainbow (3.1.1)
|
|
44
|
-
rake (13.
|
|
44
|
+
rake (13.0.6)
|
|
45
45
|
regexp_parser (2.11.3)
|
|
46
46
|
rspec (3.13.2)
|
|
47
47
|
rspec-core (~> 3.13.0)
|
data/daytona_api_client.gemspec
CHANGED
|
@@ -32,8 +32,8 @@ Gem::Specification.new do |s|
|
|
|
32
32
|
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
|
34
34
|
|
|
35
|
-
s.files = `
|
|
36
|
-
s.test_files = Dir.exist?('spec') ?
|
|
35
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
|
36
|
+
s.test_files = Dir.exist?('spec') ? `find spec/*`.split("\n") : []
|
|
37
37
|
s.executables = []
|
|
38
38
|
s.require_paths = ["lib"]
|
|
39
39
|
end
|
|
@@ -19,13 +19,76 @@ module DaytonaApiClient
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Create audit log entry
|
|
23
|
+
# @param create_audit_log [CreateAuditLog]
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [AuditLog]
|
|
26
|
+
def create_audit_log(create_audit_log, opts = {})
|
|
27
|
+
data, _status_code, _headers = create_audit_log_with_http_info(create_audit_log, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Create audit log entry
|
|
32
|
+
# @param create_audit_log [CreateAuditLog]
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(AuditLog, Integer, Hash)>] AuditLog data, response status code and response headers
|
|
35
|
+
def create_audit_log_with_http_info(create_audit_log, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: AuditApi.create_audit_log ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'create_audit_log' is set
|
|
40
|
+
if @api_client.config.client_side_validation && create_audit_log.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'create_audit_log' when calling AuditApi.create_audit_log"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/audit'
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = opts[:query_params] || {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
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
|
+
# HTTP header 'Content-Type'
|
|
54
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
55
|
+
if !content_type.nil?
|
|
56
|
+
header_params['Content-Type'] = content_type
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# form parameters
|
|
60
|
+
form_params = opts[:form_params] || {}
|
|
61
|
+
|
|
62
|
+
# http body (model)
|
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_audit_log)
|
|
64
|
+
|
|
65
|
+
# return_type
|
|
66
|
+
return_type = opts[:debug_return_type] || 'AuditLog'
|
|
67
|
+
|
|
68
|
+
# auth_names
|
|
69
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
70
|
+
|
|
71
|
+
new_options = opts.merge(
|
|
72
|
+
:operation => :"AuditApi.create_audit_log",
|
|
73
|
+
:header_params => header_params,
|
|
74
|
+
:query_params => query_params,
|
|
75
|
+
:form_params => form_params,
|
|
76
|
+
:body => post_body,
|
|
77
|
+
:auth_names => auth_names,
|
|
78
|
+
:return_type => return_type
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
82
|
+
if @api_client.config.debugging
|
|
83
|
+
@api_client.config.logger.debug "API called: AuditApi#create_audit_log\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
84
|
+
end
|
|
85
|
+
return data, status_code, headers
|
|
86
|
+
end
|
|
87
|
+
|
|
22
88
|
# Get all audit logs
|
|
23
89
|
# @param [Hash] opts the optional parameters
|
|
24
90
|
# @option opts [Float] :page Page number of the results (default to 1)
|
|
25
91
|
# @option opts [Float] :limit Number of results per page (default to 100)
|
|
26
|
-
# @option opts [Time] :from From date (ISO 8601 format)
|
|
27
|
-
# @option opts [Time] :to To date (ISO 8601 format)
|
|
28
|
-
# @option opts [String] :next_token Token for cursor-based pagination. When provided, takes precedence over page parameter.
|
|
29
92
|
# @return [PaginatedAuditLogs]
|
|
30
93
|
def get_all_audit_logs(opts = {})
|
|
31
94
|
data, _status_code, _headers = get_all_audit_logs_with_http_info(opts)
|
|
@@ -36,9 +99,6 @@ module DaytonaApiClient
|
|
|
36
99
|
# @param [Hash] opts the optional parameters
|
|
37
100
|
# @option opts [Float] :page Page number of the results (default to 1)
|
|
38
101
|
# @option opts [Float] :limit Number of results per page (default to 100)
|
|
39
|
-
# @option opts [Time] :from From date (ISO 8601 format)
|
|
40
|
-
# @option opts [Time] :to To date (ISO 8601 format)
|
|
41
|
-
# @option opts [String] :next_token Token for cursor-based pagination. When provided, takes precedence over page parameter.
|
|
42
102
|
# @return [Array<(PaginatedAuditLogs, Integer, Hash)>] PaginatedAuditLogs data, response status code and response headers
|
|
43
103
|
def get_all_audit_logs_with_http_info(opts = {})
|
|
44
104
|
if @api_client.config.debugging
|
|
@@ -63,9 +123,6 @@ module DaytonaApiClient
|
|
|
63
123
|
query_params = opts[:query_params] || {}
|
|
64
124
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
65
125
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
66
|
-
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
|
|
67
|
-
query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
|
|
68
|
-
query_params[:'nextToken'] = opts[:'next_token'] if !opts[:'next_token'].nil?
|
|
69
126
|
|
|
70
127
|
# header parameters
|
|
71
128
|
header_params = opts[:header_params] || {}
|
|
@@ -106,9 +163,6 @@ module DaytonaApiClient
|
|
|
106
163
|
# @param [Hash] opts the optional parameters
|
|
107
164
|
# @option opts [Float] :page Page number of the results (default to 1)
|
|
108
165
|
# @option opts [Float] :limit Number of results per page (default to 100)
|
|
109
|
-
# @option opts [Time] :from From date (ISO 8601 format)
|
|
110
|
-
# @option opts [Time] :to To date (ISO 8601 format)
|
|
111
|
-
# @option opts [String] :next_token Token for cursor-based pagination. When provided, takes precedence over page parameter.
|
|
112
166
|
# @return [PaginatedAuditLogs]
|
|
113
167
|
def get_organization_audit_logs(organization_id, opts = {})
|
|
114
168
|
data, _status_code, _headers = get_organization_audit_logs_with_http_info(organization_id, opts)
|
|
@@ -120,9 +174,6 @@ module DaytonaApiClient
|
|
|
120
174
|
# @param [Hash] opts the optional parameters
|
|
121
175
|
# @option opts [Float] :page Page number of the results (default to 1)
|
|
122
176
|
# @option opts [Float] :limit Number of results per page (default to 100)
|
|
123
|
-
# @option opts [Time] :from From date (ISO 8601 format)
|
|
124
|
-
# @option opts [Time] :to To date (ISO 8601 format)
|
|
125
|
-
# @option opts [String] :next_token Token for cursor-based pagination. When provided, takes precedence over page parameter.
|
|
126
177
|
# @return [Array<(PaginatedAuditLogs, Integer, Hash)>] PaginatedAuditLogs data, response status code and response headers
|
|
127
178
|
def get_organization_audit_logs_with_http_info(organization_id, opts = {})
|
|
128
179
|
if @api_client.config.debugging
|
|
@@ -151,9 +202,6 @@ module DaytonaApiClient
|
|
|
151
202
|
query_params = opts[:query_params] || {}
|
|
152
203
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
153
204
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
154
|
-
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
|
|
155
|
-
query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
|
|
156
|
-
query_params[:'nextToken'] = opts[:'next_token'] if !opts[:'next_token'].nil?
|
|
157
205
|
|
|
158
206
|
# header parameters
|
|
159
207
|
header_params = opts[:header_params] || {}
|
|
@@ -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']
|
|
@@ -841,67 +839,6 @@ module DaytonaApiClient
|
|
|
841
839
|
return data, status_code, headers
|
|
842
840
|
end
|
|
843
841
|
|
|
844
|
-
# Get region quota by sandbox ID
|
|
845
|
-
# @param sandbox_id [String] Sandbox ID
|
|
846
|
-
# @param [Hash] opts the optional parameters
|
|
847
|
-
# @return [RegionQuota]
|
|
848
|
-
def get_region_quota_by_sandbox_id(sandbox_id, opts = {})
|
|
849
|
-
data, _status_code, _headers = get_region_quota_by_sandbox_id_with_http_info(sandbox_id, opts)
|
|
850
|
-
data
|
|
851
|
-
end
|
|
852
|
-
|
|
853
|
-
# Get region quota by sandbox ID
|
|
854
|
-
# @param sandbox_id [String] Sandbox ID
|
|
855
|
-
# @param [Hash] opts the optional parameters
|
|
856
|
-
# @return [Array<(RegionQuota, Integer, Hash)>] RegionQuota data, response status code and response headers
|
|
857
|
-
def get_region_quota_by_sandbox_id_with_http_info(sandbox_id, opts = {})
|
|
858
|
-
if @api_client.config.debugging
|
|
859
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_region_quota_by_sandbox_id ...'
|
|
860
|
-
end
|
|
861
|
-
# verify the required parameter 'sandbox_id' is set
|
|
862
|
-
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
863
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling OrganizationsApi.get_region_quota_by_sandbox_id"
|
|
864
|
-
end
|
|
865
|
-
# resource path
|
|
866
|
-
local_var_path = '/organizations/region-quota/by-sandbox-id/{sandboxId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
867
|
-
|
|
868
|
-
# query parameters
|
|
869
|
-
query_params = opts[:query_params] || {}
|
|
870
|
-
|
|
871
|
-
# header parameters
|
|
872
|
-
header_params = opts[:header_params] || {}
|
|
873
|
-
# HTTP header 'Accept' (if needed)
|
|
874
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
875
|
-
|
|
876
|
-
# form parameters
|
|
877
|
-
form_params = opts[:form_params] || {}
|
|
878
|
-
|
|
879
|
-
# http body (model)
|
|
880
|
-
post_body = opts[:debug_body]
|
|
881
|
-
|
|
882
|
-
# return_type
|
|
883
|
-
return_type = opts[:debug_return_type] || 'RegionQuota'
|
|
884
|
-
|
|
885
|
-
# auth_names
|
|
886
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
887
|
-
|
|
888
|
-
new_options = opts.merge(
|
|
889
|
-
:operation => :"OrganizationsApi.get_region_quota_by_sandbox_id",
|
|
890
|
-
:header_params => header_params,
|
|
891
|
-
:query_params => query_params,
|
|
892
|
-
:form_params => form_params,
|
|
893
|
-
:body => post_body,
|
|
894
|
-
:auth_names => auth_names,
|
|
895
|
-
:return_type => return_type
|
|
896
|
-
)
|
|
897
|
-
|
|
898
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
899
|
-
if @api_client.config.debugging
|
|
900
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#get_region_quota_by_sandbox_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
901
|
-
end
|
|
902
|
-
return data, status_code, headers
|
|
903
|
-
end
|
|
904
|
-
|
|
905
842
|
# Leave organization
|
|
906
843
|
# @param organization_id [String] Organization ID
|
|
907
844
|
# @param [Hash] opts the optional parameters
|
|
@@ -1254,76 +1191,6 @@ module DaytonaApiClient
|
|
|
1254
1191
|
return data, status_code, headers
|
|
1255
1192
|
end
|
|
1256
1193
|
|
|
1257
|
-
# Set default region for organization
|
|
1258
|
-
# @param organization_id [String] Organization ID
|
|
1259
|
-
# @param update_organization_default_region [UpdateOrganizationDefaultRegion]
|
|
1260
|
-
# @param [Hash] opts the optional parameters
|
|
1261
|
-
# @return [nil]
|
|
1262
|
-
def set_organization_default_region(organization_id, update_organization_default_region, opts = {})
|
|
1263
|
-
set_organization_default_region_with_http_info(organization_id, update_organization_default_region, opts)
|
|
1264
|
-
nil
|
|
1265
|
-
end
|
|
1266
|
-
|
|
1267
|
-
# Set default region for organization
|
|
1268
|
-
# @param organization_id [String] Organization ID
|
|
1269
|
-
# @param update_organization_default_region [UpdateOrganizationDefaultRegion]
|
|
1270
|
-
# @param [Hash] opts the optional parameters
|
|
1271
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1272
|
-
def set_organization_default_region_with_http_info(organization_id, update_organization_default_region, opts = {})
|
|
1273
|
-
if @api_client.config.debugging
|
|
1274
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.set_organization_default_region ...'
|
|
1275
|
-
end
|
|
1276
|
-
# verify the required parameter 'organization_id' is set
|
|
1277
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1278
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.set_organization_default_region"
|
|
1279
|
-
end
|
|
1280
|
-
# verify the required parameter 'update_organization_default_region' is set
|
|
1281
|
-
if @api_client.config.client_side_validation && update_organization_default_region.nil?
|
|
1282
|
-
fail ArgumentError, "Missing the required parameter 'update_organization_default_region' when calling OrganizationsApi.set_organization_default_region"
|
|
1283
|
-
end
|
|
1284
|
-
# resource path
|
|
1285
|
-
local_var_path = '/organizations/{organizationId}/default-region'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1286
|
-
|
|
1287
|
-
# query parameters
|
|
1288
|
-
query_params = opts[:query_params] || {}
|
|
1289
|
-
|
|
1290
|
-
# header parameters
|
|
1291
|
-
header_params = opts[:header_params] || {}
|
|
1292
|
-
# HTTP header 'Content-Type'
|
|
1293
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1294
|
-
if !content_type.nil?
|
|
1295
|
-
header_params['Content-Type'] = content_type
|
|
1296
|
-
end
|
|
1297
|
-
|
|
1298
|
-
# form parameters
|
|
1299
|
-
form_params = opts[:form_params] || {}
|
|
1300
|
-
|
|
1301
|
-
# http body (model)
|
|
1302
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_default_region)
|
|
1303
|
-
|
|
1304
|
-
# return_type
|
|
1305
|
-
return_type = opts[:debug_return_type]
|
|
1306
|
-
|
|
1307
|
-
# auth_names
|
|
1308
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1309
|
-
|
|
1310
|
-
new_options = opts.merge(
|
|
1311
|
-
:operation => :"OrganizationsApi.set_organization_default_region",
|
|
1312
|
-
:header_params => header_params,
|
|
1313
|
-
:query_params => query_params,
|
|
1314
|
-
:form_params => form_params,
|
|
1315
|
-
:body => post_body,
|
|
1316
|
-
:auth_names => auth_names,
|
|
1317
|
-
:return_type => return_type
|
|
1318
|
-
)
|
|
1319
|
-
|
|
1320
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1321
|
-
if @api_client.config.debugging
|
|
1322
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#set_organization_default_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1323
|
-
end
|
|
1324
|
-
return data, status_code, headers
|
|
1325
|
-
end
|
|
1326
|
-
|
|
1327
1194
|
# Suspend organization
|
|
1328
1195
|
# @param organization_id [String] Organization ID
|
|
1329
1196
|
# @param [Hash] opts the optional parameters
|
|
@@ -1609,17 +1476,17 @@ module DaytonaApiClient
|
|
|
1609
1476
|
# @param organization_id [String] Organization ID
|
|
1610
1477
|
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
1611
1478
|
# @param [Hash] opts the optional parameters
|
|
1612
|
-
# @return [
|
|
1479
|
+
# @return [Organization]
|
|
1613
1480
|
def update_organization_quota(organization_id, update_organization_quota, opts = {})
|
|
1614
|
-
update_organization_quota_with_http_info(organization_id, update_organization_quota, opts)
|
|
1615
|
-
|
|
1481
|
+
data, _status_code, _headers = update_organization_quota_with_http_info(organization_id, update_organization_quota, opts)
|
|
1482
|
+
data
|
|
1616
1483
|
end
|
|
1617
1484
|
|
|
1618
1485
|
# Update organization quota
|
|
1619
1486
|
# @param organization_id [String] Organization ID
|
|
1620
1487
|
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
1621
1488
|
# @param [Hash] opts the optional parameters
|
|
1622
|
-
# @return [Array<(
|
|
1489
|
+
# @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
|
|
1623
1490
|
def update_organization_quota_with_http_info(organization_id, update_organization_quota, opts = {})
|
|
1624
1491
|
if @api_client.config.debugging
|
|
1625
1492
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_quota ...'
|
|
@@ -1640,6 +1507,8 @@ module DaytonaApiClient
|
|
|
1640
1507
|
|
|
1641
1508
|
# header parameters
|
|
1642
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']
|
|
1643
1512
|
# HTTP header 'Content-Type'
|
|
1644
1513
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1645
1514
|
if !content_type.nil?
|
|
@@ -1653,7 +1522,7 @@ module DaytonaApiClient
|
|
|
1653
1522
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_quota)
|
|
1654
1523
|
|
|
1655
1524
|
# return_type
|
|
1656
|
-
return_type = opts[:debug_return_type]
|
|
1525
|
+
return_type = opts[:debug_return_type] || 'Organization'
|
|
1657
1526
|
|
|
1658
1527
|
# auth_names
|
|
1659
1528
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
@@ -1675,82 +1544,6 @@ module DaytonaApiClient
|
|
|
1675
1544
|
return data, status_code, headers
|
|
1676
1545
|
end
|
|
1677
1546
|
|
|
1678
|
-
# Update organization region quota
|
|
1679
|
-
# @param organization_id [String] Organization ID
|
|
1680
|
-
# @param region_id [String] ID of the region where the updated quota will be applied
|
|
1681
|
-
# @param update_organization_region_quota [UpdateOrganizationRegionQuota]
|
|
1682
|
-
# @param [Hash] opts the optional parameters
|
|
1683
|
-
# @return [nil]
|
|
1684
|
-
def update_organization_region_quota(organization_id, region_id, update_organization_region_quota, opts = {})
|
|
1685
|
-
update_organization_region_quota_with_http_info(organization_id, region_id, update_organization_region_quota, opts)
|
|
1686
|
-
nil
|
|
1687
|
-
end
|
|
1688
|
-
|
|
1689
|
-
# Update organization region quota
|
|
1690
|
-
# @param organization_id [String] Organization ID
|
|
1691
|
-
# @param region_id [String] ID of the region where the updated quota will be applied
|
|
1692
|
-
# @param update_organization_region_quota [UpdateOrganizationRegionQuota]
|
|
1693
|
-
# @param [Hash] opts the optional parameters
|
|
1694
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1695
|
-
def update_organization_region_quota_with_http_info(organization_id, region_id, update_organization_region_quota, opts = {})
|
|
1696
|
-
if @api_client.config.debugging
|
|
1697
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_region_quota ...'
|
|
1698
|
-
end
|
|
1699
|
-
# verify the required parameter 'organization_id' is set
|
|
1700
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1701
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_region_quota"
|
|
1702
|
-
end
|
|
1703
|
-
# verify the required parameter 'region_id' is set
|
|
1704
|
-
if @api_client.config.client_side_validation && region_id.nil?
|
|
1705
|
-
fail ArgumentError, "Missing the required parameter 'region_id' when calling OrganizationsApi.update_organization_region_quota"
|
|
1706
|
-
end
|
|
1707
|
-
# verify the required parameter 'update_organization_region_quota' is set
|
|
1708
|
-
if @api_client.config.client_side_validation && update_organization_region_quota.nil?
|
|
1709
|
-
fail ArgumentError, "Missing the required parameter 'update_organization_region_quota' when calling OrganizationsApi.update_organization_region_quota"
|
|
1710
|
-
end
|
|
1711
|
-
# resource path
|
|
1712
|
-
local_var_path = '/organizations/{organizationId}/quota/{regionId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'regionId' + '}', CGI.escape(region_id.to_s))
|
|
1713
|
-
|
|
1714
|
-
# query parameters
|
|
1715
|
-
query_params = opts[:query_params] || {}
|
|
1716
|
-
|
|
1717
|
-
# header parameters
|
|
1718
|
-
header_params = opts[:header_params] || {}
|
|
1719
|
-
# HTTP header 'Content-Type'
|
|
1720
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1721
|
-
if !content_type.nil?
|
|
1722
|
-
header_params['Content-Type'] = content_type
|
|
1723
|
-
end
|
|
1724
|
-
|
|
1725
|
-
# form parameters
|
|
1726
|
-
form_params = opts[:form_params] || {}
|
|
1727
|
-
|
|
1728
|
-
# http body (model)
|
|
1729
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_region_quota)
|
|
1730
|
-
|
|
1731
|
-
# return_type
|
|
1732
|
-
return_type = opts[:debug_return_type]
|
|
1733
|
-
|
|
1734
|
-
# auth_names
|
|
1735
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1736
|
-
|
|
1737
|
-
new_options = opts.merge(
|
|
1738
|
-
:operation => :"OrganizationsApi.update_organization_region_quota",
|
|
1739
|
-
:header_params => header_params,
|
|
1740
|
-
:query_params => query_params,
|
|
1741
|
-
:form_params => form_params,
|
|
1742
|
-
:body => post_body,
|
|
1743
|
-
:auth_names => auth_names,
|
|
1744
|
-
:return_type => return_type
|
|
1745
|
-
)
|
|
1746
|
-
|
|
1747
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1748
|
-
if @api_client.config.debugging
|
|
1749
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_region_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1750
|
-
end
|
|
1751
|
-
return data, status_code, headers
|
|
1752
|
-
end
|
|
1753
|
-
|
|
1754
1547
|
# Update organization role
|
|
1755
1548
|
# @param organization_id [String] Organization ID
|
|
1756
1549
|
# @param role_id [String] Role ID
|
|
@@ -22,16 +22,16 @@ module DaytonaApiClient
|
|
|
22
22
|
# Check if user has access to the sandbox
|
|
23
23
|
# @param sandbox_id [String]
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
|
-
# @return [
|
|
25
|
+
# @return [nil]
|
|
26
26
|
def has_sandbox_access(sandbox_id, opts = {})
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
has_sandbox_access_with_http_info(sandbox_id, opts)
|
|
28
|
+
nil
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
# Check if user has access to the sandbox
|
|
32
32
|
# @param sandbox_id [String]
|
|
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 has_sandbox_access_with_http_info(sandbox_id, opts = {})
|
|
36
36
|
if @api_client.config.debugging
|
|
37
37
|
@api_client.config.logger.debug 'Calling API: PreviewApi.has_sandbox_access ...'
|
|
@@ -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']
|
|
@@ -83,61 +83,6 @@ module DaytonaApiClient
|
|
|
83
83
|
return data, status_code, headers
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
-
# Get info for authenticated runner
|
|
87
|
-
# @param [Hash] opts the optional parameters
|
|
88
|
-
# @return [Runner]
|
|
89
|
-
def get_info_for_authenticated_runner(opts = {})
|
|
90
|
-
data, _status_code, _headers = get_info_for_authenticated_runner_with_http_info(opts)
|
|
91
|
-
data
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
# Get info for authenticated runner
|
|
95
|
-
# @param [Hash] opts the optional parameters
|
|
96
|
-
# @return [Array<(Runner, Integer, Hash)>] Runner data, response status code and response headers
|
|
97
|
-
def get_info_for_authenticated_runner_with_http_info(opts = {})
|
|
98
|
-
if @api_client.config.debugging
|
|
99
|
-
@api_client.config.logger.debug 'Calling API: RunnersApi.get_info_for_authenticated_runner ...'
|
|
100
|
-
end
|
|
101
|
-
# resource path
|
|
102
|
-
local_var_path = '/runners/me'
|
|
103
|
-
|
|
104
|
-
# query parameters
|
|
105
|
-
query_params = opts[:query_params] || {}
|
|
106
|
-
|
|
107
|
-
# header parameters
|
|
108
|
-
header_params = opts[:header_params] || {}
|
|
109
|
-
# HTTP header 'Accept' (if needed)
|
|
110
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
111
|
-
|
|
112
|
-
# form parameters
|
|
113
|
-
form_params = opts[:form_params] || {}
|
|
114
|
-
|
|
115
|
-
# http body (model)
|
|
116
|
-
post_body = opts[:debug_body]
|
|
117
|
-
|
|
118
|
-
# return_type
|
|
119
|
-
return_type = opts[:debug_return_type] || 'Runner'
|
|
120
|
-
|
|
121
|
-
# auth_names
|
|
122
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
123
|
-
|
|
124
|
-
new_options = opts.merge(
|
|
125
|
-
:operation => :"RunnersApi.get_info_for_authenticated_runner",
|
|
126
|
-
:header_params => header_params,
|
|
127
|
-
:query_params => query_params,
|
|
128
|
-
:form_params => form_params,
|
|
129
|
-
:body => post_body,
|
|
130
|
-
:auth_names => auth_names,
|
|
131
|
-
:return_type => return_type
|
|
132
|
-
)
|
|
133
|
-
|
|
134
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
135
|
-
if @api_client.config.debugging
|
|
136
|
-
@api_client.config.logger.debug "API called: RunnersApi#get_info_for_authenticated_runner\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
137
|
-
end
|
|
138
|
-
return data, status_code, headers
|
|
139
|
-
end
|
|
140
|
-
|
|
141
86
|
# Get runner by sandbox ID
|
|
142
87
|
# @param sandbox_id [String]
|
|
143
88
|
# @param [Hash] opts the optional parameters
|