daytona_api_client 0.216.0 → 0.216.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.openapi-generator/FILES +15 -16
- data/lib/daytona_api_client/api/organizations_api.rb +260 -484
- data/lib/daytona_api_client/api/sandbox_api.rb +14 -163
- data/lib/daytona_api_client/api/users_api.rb +82 -90
- data/lib/daytona_api_client/models/account_provider.rb +48 -19
- data/lib/daytona_api_client/models/api_key_list.rb +14 -4
- data/lib/daytona_api_client/models/create_runner.rb +37 -4
- data/lib/daytona_api_client/models/create_runner_sandbox_class.rb +42 -0
- data/lib/daytona_api_client/models/daytona_configuration.rb +45 -1
- data/lib/daytona_api_client/models/{organization_preview_warning.rb → generate_workos_admin_portal_link.rb} +42 -20
- data/lib/daytona_api_client/models/{send_webhook_dto.rb → gpu_capacity.rb} +77 -43
- data/lib/daytona_api_client/models/{organization_sso_enabled.rb → gpu_capacity_response.rb} +48 -20
- data/lib/daytona_api_client/models/oidc_config.rb +65 -4
- data/lib/daytona_api_client/models/organization.rb +38 -1
- data/lib/daytona_api_client/models/sandbox_created_webhook.rb +349 -0
- data/lib/daytona_api_client/models/{organization_sandbox_default_limited_network_egress.rb → sandbox_identity.rb} +47 -20
- data/lib/daytona_api_client/models/sandbox_state_updated_webhook.rb +349 -0
- data/lib/daytona_api_client/models/snapshot_created_webhook.rb +349 -0
- data/lib/daytona_api_client/models/{create_user.rb → snapshot_removed_webhook.rb} +119 -71
- data/lib/daytona_api_client/models/snapshot_state_updated_webhook.rb +376 -0
- data/lib/daytona_api_client/models/user.rb +11 -1
- data/lib/daytona_api_client/models/volume_created_webhook.rb +349 -0
- data/lib/daytona_api_client/models/volume_state_updated_webhook.rb +376 -0
- data/lib/daytona_api_client/models/workos_admin_portal_intent.rb +41 -0
- data/lib/daytona_api_client/models/{set_snapshot_general_status_dto.rb → workos_admin_portal_link.rb} +20 -20
- data/lib/daytona_api_client/models/{admin_create_runner.rb → workos_sso_connection.rb} +123 -120
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +15 -16
- metadata +16 -17
- data/lib/daytona_api_client/api/admin_api.rb +0 -1618
- data/lib/daytona_api_client/models/admin_create_organization.rb +0 -219
- data/lib/daytona_api_client/models/admin_get_webhook_status200_response.rb +0 -147
- data/lib/daytona_api_client/models/create_organization_quota.rb +0 -238
- data/lib/daytona_api_client/models/create_organization_region_quota.rb +0 -386
- data/lib/daytona_api_client/models/organization_suspension.rb +0 -221
- data/lib/daytona_api_client/models/paginated_sandboxes_deprecated.rb +0 -244
- data/lib/daytona_api_client/models/update_organization_quota.rb +0 -333
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -313
|
@@ -930,6 +930,141 @@ module DaytonaApiClient
|
|
|
930
930
|
return data, status_code, headers
|
|
931
931
|
end
|
|
932
932
|
|
|
933
|
+
# Generate a WorkOS Admin Portal link for configuring SSO or SCIM directory sync
|
|
934
|
+
# @param organization_id [String] Organization ID
|
|
935
|
+
# @param generate_workos_admin_portal_link [GenerateWorkosAdminPortalLink]
|
|
936
|
+
# @param [Hash] opts the optional parameters
|
|
937
|
+
# @return [WorkosAdminPortalLink]
|
|
938
|
+
def generate_workos_admin_portal_link(organization_id, generate_workos_admin_portal_link, opts = {})
|
|
939
|
+
data, _status_code, _headers = generate_workos_admin_portal_link_with_http_info(organization_id, generate_workos_admin_portal_link, opts)
|
|
940
|
+
data
|
|
941
|
+
end
|
|
942
|
+
|
|
943
|
+
# Generate a WorkOS Admin Portal link for configuring SSO or SCIM directory sync
|
|
944
|
+
# @param organization_id [String] Organization ID
|
|
945
|
+
# @param generate_workos_admin_portal_link [GenerateWorkosAdminPortalLink]
|
|
946
|
+
# @param [Hash] opts the optional parameters
|
|
947
|
+
# @return [Array<(WorkosAdminPortalLink, Integer, Hash)>] WorkosAdminPortalLink data, response status code and response headers
|
|
948
|
+
def generate_workos_admin_portal_link_with_http_info(organization_id, generate_workos_admin_portal_link, opts = {})
|
|
949
|
+
if @api_client.config.debugging
|
|
950
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.generate_workos_admin_portal_link ...'
|
|
951
|
+
end
|
|
952
|
+
# verify the required parameter 'organization_id' is set
|
|
953
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
954
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.generate_workos_admin_portal_link"
|
|
955
|
+
end
|
|
956
|
+
# verify the required parameter 'generate_workos_admin_portal_link' is set
|
|
957
|
+
if @api_client.config.client_side_validation && generate_workos_admin_portal_link.nil?
|
|
958
|
+
fail ArgumentError, "Missing the required parameter 'generate_workos_admin_portal_link' when calling OrganizationsApi.generate_workos_admin_portal_link"
|
|
959
|
+
end
|
|
960
|
+
# resource path
|
|
961
|
+
local_var_path = '/organizations/{organizationId}/identity-providers/workos-admin-portal-link'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
962
|
+
|
|
963
|
+
# query parameters
|
|
964
|
+
query_params = opts[:query_params] || {}
|
|
965
|
+
|
|
966
|
+
# header parameters
|
|
967
|
+
header_params = opts[:header_params] || {}
|
|
968
|
+
# HTTP header 'Accept' (if needed)
|
|
969
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
970
|
+
# HTTP header 'Content-Type'
|
|
971
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
972
|
+
if !content_type.nil?
|
|
973
|
+
header_params['Content-Type'] = content_type
|
|
974
|
+
end
|
|
975
|
+
|
|
976
|
+
# form parameters
|
|
977
|
+
form_params = opts[:form_params] || {}
|
|
978
|
+
|
|
979
|
+
# http body (model)
|
|
980
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(generate_workos_admin_portal_link)
|
|
981
|
+
|
|
982
|
+
# return_type
|
|
983
|
+
return_type = opts[:debug_return_type] || 'WorkosAdminPortalLink'
|
|
984
|
+
|
|
985
|
+
# auth_names
|
|
986
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
987
|
+
|
|
988
|
+
new_options = opts.merge(
|
|
989
|
+
:operation => :"OrganizationsApi.generate_workos_admin_portal_link",
|
|
990
|
+
:header_params => header_params,
|
|
991
|
+
:query_params => query_params,
|
|
992
|
+
:form_params => form_params,
|
|
993
|
+
:body => post_body,
|
|
994
|
+
:auth_names => auth_names,
|
|
995
|
+
:return_type => return_type
|
|
996
|
+
)
|
|
997
|
+
|
|
998
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
999
|
+
if @api_client.config.debugging
|
|
1000
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#generate_workos_admin_portal_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1001
|
+
end
|
|
1002
|
+
return data, status_code, headers
|
|
1003
|
+
end
|
|
1004
|
+
|
|
1005
|
+
# Get shared GPU capacity
|
|
1006
|
+
# Returns a short-lived observation of the shared GPU fleet. Organization quotas and entitlements are not applied. Capacity can change immediately and sandbox creation remains authoritative.
|
|
1007
|
+
# @param organization_id [String] Organization ID
|
|
1008
|
+
# @param [Hash] opts the optional parameters
|
|
1009
|
+
# @return [GpuCapacityResponse]
|
|
1010
|
+
def get_gpu_capacity(organization_id, opts = {})
|
|
1011
|
+
data, _status_code, _headers = get_gpu_capacity_with_http_info(organization_id, opts)
|
|
1012
|
+
data
|
|
1013
|
+
end
|
|
1014
|
+
|
|
1015
|
+
# Get shared GPU capacity
|
|
1016
|
+
# Returns a short-lived observation of the shared GPU fleet. Organization quotas and entitlements are not applied. Capacity can change immediately and sandbox creation remains authoritative.
|
|
1017
|
+
# @param organization_id [String] Organization ID
|
|
1018
|
+
# @param [Hash] opts the optional parameters
|
|
1019
|
+
# @return [Array<(GpuCapacityResponse, Integer, Hash)>] GpuCapacityResponse data, response status code and response headers
|
|
1020
|
+
def get_gpu_capacity_with_http_info(organization_id, opts = {})
|
|
1021
|
+
if @api_client.config.debugging
|
|
1022
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_gpu_capacity ...'
|
|
1023
|
+
end
|
|
1024
|
+
# verify the required parameter 'organization_id' is set
|
|
1025
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1026
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_gpu_capacity"
|
|
1027
|
+
end
|
|
1028
|
+
# resource path
|
|
1029
|
+
local_var_path = '/organizations/{organizationId}/gpu-capacity'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1030
|
+
|
|
1031
|
+
# query parameters
|
|
1032
|
+
query_params = opts[:query_params] || {}
|
|
1033
|
+
|
|
1034
|
+
# header parameters
|
|
1035
|
+
header_params = opts[:header_params] || {}
|
|
1036
|
+
# HTTP header 'Accept' (if needed)
|
|
1037
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1038
|
+
|
|
1039
|
+
# form parameters
|
|
1040
|
+
form_params = opts[:form_params] || {}
|
|
1041
|
+
|
|
1042
|
+
# http body (model)
|
|
1043
|
+
post_body = opts[:debug_body]
|
|
1044
|
+
|
|
1045
|
+
# return_type
|
|
1046
|
+
return_type = opts[:debug_return_type] || 'GpuCapacityResponse'
|
|
1047
|
+
|
|
1048
|
+
# auth_names
|
|
1049
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1050
|
+
|
|
1051
|
+
new_options = opts.merge(
|
|
1052
|
+
:operation => :"OrganizationsApi.get_gpu_capacity",
|
|
1053
|
+
:header_params => header_params,
|
|
1054
|
+
:query_params => query_params,
|
|
1055
|
+
:form_params => form_params,
|
|
1056
|
+
:body => post_body,
|
|
1057
|
+
:auth_names => auth_names,
|
|
1058
|
+
:return_type => return_type
|
|
1059
|
+
)
|
|
1060
|
+
|
|
1061
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1062
|
+
if @api_client.config.debugging
|
|
1063
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_gpu_capacity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1064
|
+
end
|
|
1065
|
+
return data, status_code, headers
|
|
1066
|
+
end
|
|
1067
|
+
|
|
933
1068
|
# Get organization by ID
|
|
934
1069
|
# @param organization_id [String] Organization ID
|
|
935
1070
|
# @param [Hash] opts the optional parameters
|
|
@@ -1360,6 +1495,67 @@ module DaytonaApiClient
|
|
|
1360
1495
|
return data, status_code, headers
|
|
1361
1496
|
end
|
|
1362
1497
|
|
|
1498
|
+
# Get sandbox identity by sandbox auth token
|
|
1499
|
+
# @param auth_token [String] Sandbox Auth Token
|
|
1500
|
+
# @param [Hash] opts the optional parameters
|
|
1501
|
+
# @return [SandboxIdentity]
|
|
1502
|
+
def get_sandbox_identity_by_sandbox_auth_token(auth_token, opts = {})
|
|
1503
|
+
data, _status_code, _headers = get_sandbox_identity_by_sandbox_auth_token_with_http_info(auth_token, opts)
|
|
1504
|
+
data
|
|
1505
|
+
end
|
|
1506
|
+
|
|
1507
|
+
# Get sandbox identity by sandbox auth token
|
|
1508
|
+
# @param auth_token [String] Sandbox Auth Token
|
|
1509
|
+
# @param [Hash] opts the optional parameters
|
|
1510
|
+
# @return [Array<(SandboxIdentity, Integer, Hash)>] SandboxIdentity data, response status code and response headers
|
|
1511
|
+
def get_sandbox_identity_by_sandbox_auth_token_with_http_info(auth_token, opts = {})
|
|
1512
|
+
if @api_client.config.debugging
|
|
1513
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_sandbox_identity_by_sandbox_auth_token ...'
|
|
1514
|
+
end
|
|
1515
|
+
# verify the required parameter 'auth_token' is set
|
|
1516
|
+
if @api_client.config.client_side_validation && auth_token.nil?
|
|
1517
|
+
fail ArgumentError, "Missing the required parameter 'auth_token' when calling OrganizationsApi.get_sandbox_identity_by_sandbox_auth_token"
|
|
1518
|
+
end
|
|
1519
|
+
# resource path
|
|
1520
|
+
local_var_path = '/organizations/sandbox-identity/by-sandbox-auth-token/{authToken}'.sub('{' + 'authToken' + '}', CGI.escape(auth_token.to_s))
|
|
1521
|
+
|
|
1522
|
+
# query parameters
|
|
1523
|
+
query_params = opts[:query_params] || {}
|
|
1524
|
+
|
|
1525
|
+
# header parameters
|
|
1526
|
+
header_params = opts[:header_params] || {}
|
|
1527
|
+
# HTTP header 'Accept' (if needed)
|
|
1528
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1529
|
+
|
|
1530
|
+
# form parameters
|
|
1531
|
+
form_params = opts[:form_params] || {}
|
|
1532
|
+
|
|
1533
|
+
# http body (model)
|
|
1534
|
+
post_body = opts[:debug_body]
|
|
1535
|
+
|
|
1536
|
+
# return_type
|
|
1537
|
+
return_type = opts[:debug_return_type] || 'SandboxIdentity'
|
|
1538
|
+
|
|
1539
|
+
# auth_names
|
|
1540
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1541
|
+
|
|
1542
|
+
new_options = opts.merge(
|
|
1543
|
+
:operation => :"OrganizationsApi.get_sandbox_identity_by_sandbox_auth_token",
|
|
1544
|
+
:header_params => header_params,
|
|
1545
|
+
:query_params => query_params,
|
|
1546
|
+
:form_params => form_params,
|
|
1547
|
+
:body => post_body,
|
|
1548
|
+
:auth_names => auth_names,
|
|
1549
|
+
:return_type => return_type
|
|
1550
|
+
)
|
|
1551
|
+
|
|
1552
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1553
|
+
if @api_client.config.debugging
|
|
1554
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_sandbox_identity_by_sandbox_auth_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1555
|
+
end
|
|
1556
|
+
return data, status_code, headers
|
|
1557
|
+
end
|
|
1558
|
+
|
|
1363
1559
|
# Leave organization
|
|
1364
1560
|
# @param organization_id [String] Organization ID
|
|
1365
1561
|
# @param [Hash] opts the optional parameters
|
|
@@ -1892,6 +2088,67 @@ module DaytonaApiClient
|
|
|
1892
2088
|
return data, status_code, headers
|
|
1893
2089
|
end
|
|
1894
2090
|
|
|
2091
|
+
# List the SSO connections configured for the organization in WorkOS
|
|
2092
|
+
# @param organization_id [String] Organization ID
|
|
2093
|
+
# @param [Hash] opts the optional parameters
|
|
2094
|
+
# @return [Array<WorkosSsoConnection>]
|
|
2095
|
+
def list_workos_sso_connections(organization_id, opts = {})
|
|
2096
|
+
data, _status_code, _headers = list_workos_sso_connections_with_http_info(organization_id, opts)
|
|
2097
|
+
data
|
|
2098
|
+
end
|
|
2099
|
+
|
|
2100
|
+
# List the SSO connections configured for the organization in WorkOS
|
|
2101
|
+
# @param organization_id [String] Organization ID
|
|
2102
|
+
# @param [Hash] opts the optional parameters
|
|
2103
|
+
# @return [Array<(Array<WorkosSsoConnection>, Integer, Hash)>] Array<WorkosSsoConnection> data, response status code and response headers
|
|
2104
|
+
def list_workos_sso_connections_with_http_info(organization_id, opts = {})
|
|
2105
|
+
if @api_client.config.debugging
|
|
2106
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_workos_sso_connections ...'
|
|
2107
|
+
end
|
|
2108
|
+
# verify the required parameter 'organization_id' is set
|
|
2109
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2110
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_workos_sso_connections"
|
|
2111
|
+
end
|
|
2112
|
+
# resource path
|
|
2113
|
+
local_var_path = '/organizations/{organizationId}/identity-providers/workos-sso-connections'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2114
|
+
|
|
2115
|
+
# query parameters
|
|
2116
|
+
query_params = opts[:query_params] || {}
|
|
2117
|
+
|
|
2118
|
+
# header parameters
|
|
2119
|
+
header_params = opts[:header_params] || {}
|
|
2120
|
+
# HTTP header 'Accept' (if needed)
|
|
2121
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2122
|
+
|
|
2123
|
+
# form parameters
|
|
2124
|
+
form_params = opts[:form_params] || {}
|
|
2125
|
+
|
|
2126
|
+
# http body (model)
|
|
2127
|
+
post_body = opts[:debug_body]
|
|
2128
|
+
|
|
2129
|
+
# return_type
|
|
2130
|
+
return_type = opts[:debug_return_type] || 'Array<WorkosSsoConnection>'
|
|
2131
|
+
|
|
2132
|
+
# auth_names
|
|
2133
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2134
|
+
|
|
2135
|
+
new_options = opts.merge(
|
|
2136
|
+
:operation => :"OrganizationsApi.list_workos_sso_connections",
|
|
2137
|
+
:header_params => header_params,
|
|
2138
|
+
:query_params => query_params,
|
|
2139
|
+
:form_params => form_params,
|
|
2140
|
+
:body => post_body,
|
|
2141
|
+
:auth_names => auth_names,
|
|
2142
|
+
:return_type => return_type
|
|
2143
|
+
)
|
|
2144
|
+
|
|
2145
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2146
|
+
if @api_client.config.debugging
|
|
2147
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_workos_sso_connections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2148
|
+
end
|
|
2149
|
+
return data, status_code, headers
|
|
2150
|
+
end
|
|
2151
|
+
|
|
1895
2152
|
# Regenerate proxy API key for a region
|
|
1896
2153
|
# @param id [String] Region ID
|
|
1897
2154
|
# @param [Hash] opts the optional parameters
|
|
@@ -2154,72 +2411,6 @@ module DaytonaApiClient
|
|
|
2154
2411
|
return data, status_code, headers
|
|
2155
2412
|
end
|
|
2156
2413
|
|
|
2157
|
-
# Suspend organization
|
|
2158
|
-
# @param organization_id [String] Organization ID
|
|
2159
|
-
# @param [Hash] opts the optional parameters
|
|
2160
|
-
# @option opts [OrganizationSuspension] :organization_suspension
|
|
2161
|
-
# @return [nil]
|
|
2162
|
-
def suspend_organization(organization_id, opts = {})
|
|
2163
|
-
suspend_organization_with_http_info(organization_id, opts)
|
|
2164
|
-
nil
|
|
2165
|
-
end
|
|
2166
|
-
|
|
2167
|
-
# Suspend organization
|
|
2168
|
-
# @param organization_id [String] Organization ID
|
|
2169
|
-
# @param [Hash] opts the optional parameters
|
|
2170
|
-
# @option opts [OrganizationSuspension] :organization_suspension
|
|
2171
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2172
|
-
def suspend_organization_with_http_info(organization_id, opts = {})
|
|
2173
|
-
if @api_client.config.debugging
|
|
2174
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.suspend_organization ...'
|
|
2175
|
-
end
|
|
2176
|
-
# verify the required parameter 'organization_id' is set
|
|
2177
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2178
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.suspend_organization"
|
|
2179
|
-
end
|
|
2180
|
-
# resource path
|
|
2181
|
-
local_var_path = '/organizations/{organizationId}/suspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2182
|
-
|
|
2183
|
-
# query parameters
|
|
2184
|
-
query_params = opts[:query_params] || {}
|
|
2185
|
-
|
|
2186
|
-
# header parameters
|
|
2187
|
-
header_params = opts[:header_params] || {}
|
|
2188
|
-
# HTTP header 'Content-Type'
|
|
2189
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2190
|
-
if !content_type.nil?
|
|
2191
|
-
header_params['Content-Type'] = content_type
|
|
2192
|
-
end
|
|
2193
|
-
|
|
2194
|
-
# form parameters
|
|
2195
|
-
form_params = opts[:form_params] || {}
|
|
2196
|
-
|
|
2197
|
-
# http body (model)
|
|
2198
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'organization_suspension'])
|
|
2199
|
-
|
|
2200
|
-
# return_type
|
|
2201
|
-
return_type = opts[:debug_return_type]
|
|
2202
|
-
|
|
2203
|
-
# auth_names
|
|
2204
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2205
|
-
|
|
2206
|
-
new_options = opts.merge(
|
|
2207
|
-
:operation => :"OrganizationsApi.suspend_organization",
|
|
2208
|
-
:header_params => header_params,
|
|
2209
|
-
:query_params => query_params,
|
|
2210
|
-
:form_params => form_params,
|
|
2211
|
-
:body => post_body,
|
|
2212
|
-
:auth_names => auth_names,
|
|
2213
|
-
:return_type => return_type
|
|
2214
|
-
)
|
|
2215
|
-
|
|
2216
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2217
|
-
if @api_client.config.debugging
|
|
2218
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#suspend_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2219
|
-
end
|
|
2220
|
-
return data, status_code, headers
|
|
2221
|
-
end
|
|
2222
|
-
|
|
2223
2414
|
# Test OIDC identity provider connection
|
|
2224
2415
|
# @param organization_id [String] Organization ID
|
|
2225
2416
|
# @param test_identity_provider_connection [TestIdentityProviderConnection]
|
|
@@ -2292,69 +2483,10 @@ module DaytonaApiClient
|
|
|
2292
2483
|
return data, status_code, headers
|
|
2293
2484
|
end
|
|
2294
2485
|
|
|
2295
|
-
#
|
|
2486
|
+
# Update access for organization member
|
|
2296
2487
|
# @param organization_id [String] Organization ID
|
|
2297
|
-
# @param [
|
|
2298
|
-
# @
|
|
2299
|
-
def unsuspend_organization(organization_id, opts = {})
|
|
2300
|
-
unsuspend_organization_with_http_info(organization_id, opts)
|
|
2301
|
-
nil
|
|
2302
|
-
end
|
|
2303
|
-
|
|
2304
|
-
# Unsuspend organization
|
|
2305
|
-
# @param organization_id [String] Organization ID
|
|
2306
|
-
# @param [Hash] opts the optional parameters
|
|
2307
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2308
|
-
def unsuspend_organization_with_http_info(organization_id, opts = {})
|
|
2309
|
-
if @api_client.config.debugging
|
|
2310
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.unsuspend_organization ...'
|
|
2311
|
-
end
|
|
2312
|
-
# verify the required parameter 'organization_id' is set
|
|
2313
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2314
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.unsuspend_organization"
|
|
2315
|
-
end
|
|
2316
|
-
# resource path
|
|
2317
|
-
local_var_path = '/organizations/{organizationId}/unsuspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2318
|
-
|
|
2319
|
-
# query parameters
|
|
2320
|
-
query_params = opts[:query_params] || {}
|
|
2321
|
-
|
|
2322
|
-
# header parameters
|
|
2323
|
-
header_params = opts[:header_params] || {}
|
|
2324
|
-
|
|
2325
|
-
# form parameters
|
|
2326
|
-
form_params = opts[:form_params] || {}
|
|
2327
|
-
|
|
2328
|
-
# http body (model)
|
|
2329
|
-
post_body = opts[:debug_body]
|
|
2330
|
-
|
|
2331
|
-
# return_type
|
|
2332
|
-
return_type = opts[:debug_return_type]
|
|
2333
|
-
|
|
2334
|
-
# auth_names
|
|
2335
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2336
|
-
|
|
2337
|
-
new_options = opts.merge(
|
|
2338
|
-
:operation => :"OrganizationsApi.unsuspend_organization",
|
|
2339
|
-
:header_params => header_params,
|
|
2340
|
-
:query_params => query_params,
|
|
2341
|
-
:form_params => form_params,
|
|
2342
|
-
:body => post_body,
|
|
2343
|
-
:auth_names => auth_names,
|
|
2344
|
-
:return_type => return_type
|
|
2345
|
-
)
|
|
2346
|
-
|
|
2347
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2348
|
-
if @api_client.config.debugging
|
|
2349
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#unsuspend_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2350
|
-
end
|
|
2351
|
-
return data, status_code, headers
|
|
2352
|
-
end
|
|
2353
|
-
|
|
2354
|
-
# Update access for organization member
|
|
2355
|
-
# @param organization_id [String] Organization ID
|
|
2356
|
-
# @param user_id [String] User ID
|
|
2357
|
-
# @param update_organization_member_access [UpdateOrganizationMemberAccess]
|
|
2488
|
+
# @param user_id [String] User ID
|
|
2489
|
+
# @param update_organization_member_access [UpdateOrganizationMemberAccess]
|
|
2358
2490
|
# @param [Hash] opts the optional parameters
|
|
2359
2491
|
# @return [OrganizationUser]
|
|
2360
2492
|
def update_access_for_organization_member(organization_id, user_id, update_organization_member_access, opts = {})
|
|
@@ -2721,222 +2853,6 @@ module DaytonaApiClient
|
|
|
2721
2853
|
return data, status_code, headers
|
|
2722
2854
|
end
|
|
2723
2855
|
|
|
2724
|
-
# Update organization preview warning
|
|
2725
|
-
# @param organization_id [String] Organization ID
|
|
2726
|
-
# @param organization_preview_warning [OrganizationPreviewWarning]
|
|
2727
|
-
# @param [Hash] opts the optional parameters
|
|
2728
|
-
# @return [nil]
|
|
2729
|
-
def update_organization_preview_warning(organization_id, organization_preview_warning, opts = {})
|
|
2730
|
-
update_organization_preview_warning_with_http_info(organization_id, organization_preview_warning, opts)
|
|
2731
|
-
nil
|
|
2732
|
-
end
|
|
2733
|
-
|
|
2734
|
-
# Update organization preview warning
|
|
2735
|
-
# @param organization_id [String] Organization ID
|
|
2736
|
-
# @param organization_preview_warning [OrganizationPreviewWarning]
|
|
2737
|
-
# @param [Hash] opts the optional parameters
|
|
2738
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2739
|
-
def update_organization_preview_warning_with_http_info(organization_id, organization_preview_warning, opts = {})
|
|
2740
|
-
if @api_client.config.debugging
|
|
2741
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_preview_warning ...'
|
|
2742
|
-
end
|
|
2743
|
-
# verify the required parameter 'organization_id' is set
|
|
2744
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2745
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_preview_warning"
|
|
2746
|
-
end
|
|
2747
|
-
# verify the required parameter 'organization_preview_warning' is set
|
|
2748
|
-
if @api_client.config.client_side_validation && organization_preview_warning.nil?
|
|
2749
|
-
fail ArgumentError, "Missing the required parameter 'organization_preview_warning' when calling OrganizationsApi.update_organization_preview_warning"
|
|
2750
|
-
end
|
|
2751
|
-
# resource path
|
|
2752
|
-
local_var_path = '/organizations/{organizationId}/preview-warning'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2753
|
-
|
|
2754
|
-
# query parameters
|
|
2755
|
-
query_params = opts[:query_params] || {}
|
|
2756
|
-
|
|
2757
|
-
# header parameters
|
|
2758
|
-
header_params = opts[:header_params] || {}
|
|
2759
|
-
# HTTP header 'Content-Type'
|
|
2760
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2761
|
-
if !content_type.nil?
|
|
2762
|
-
header_params['Content-Type'] = content_type
|
|
2763
|
-
end
|
|
2764
|
-
|
|
2765
|
-
# form parameters
|
|
2766
|
-
form_params = opts[:form_params] || {}
|
|
2767
|
-
|
|
2768
|
-
# http body (model)
|
|
2769
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(organization_preview_warning)
|
|
2770
|
-
|
|
2771
|
-
# return_type
|
|
2772
|
-
return_type = opts[:debug_return_type]
|
|
2773
|
-
|
|
2774
|
-
# auth_names
|
|
2775
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2776
|
-
|
|
2777
|
-
new_options = opts.merge(
|
|
2778
|
-
:operation => :"OrganizationsApi.update_organization_preview_warning",
|
|
2779
|
-
:header_params => header_params,
|
|
2780
|
-
:query_params => query_params,
|
|
2781
|
-
:form_params => form_params,
|
|
2782
|
-
:body => post_body,
|
|
2783
|
-
:auth_names => auth_names,
|
|
2784
|
-
:return_type => return_type
|
|
2785
|
-
)
|
|
2786
|
-
|
|
2787
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2788
|
-
if @api_client.config.debugging
|
|
2789
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_preview_warning\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2790
|
-
end
|
|
2791
|
-
return data, status_code, headers
|
|
2792
|
-
end
|
|
2793
|
-
|
|
2794
|
-
# Update organization quota
|
|
2795
|
-
# @param organization_id [String] Organization ID
|
|
2796
|
-
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
2797
|
-
# @param [Hash] opts the optional parameters
|
|
2798
|
-
# @return [nil]
|
|
2799
|
-
def update_organization_quota(organization_id, update_organization_quota, opts = {})
|
|
2800
|
-
update_organization_quota_with_http_info(organization_id, update_organization_quota, opts)
|
|
2801
|
-
nil
|
|
2802
|
-
end
|
|
2803
|
-
|
|
2804
|
-
# Update organization quota
|
|
2805
|
-
# @param organization_id [String] Organization ID
|
|
2806
|
-
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
2807
|
-
# @param [Hash] opts the optional parameters
|
|
2808
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2809
|
-
def update_organization_quota_with_http_info(organization_id, update_organization_quota, opts = {})
|
|
2810
|
-
if @api_client.config.debugging
|
|
2811
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_quota ...'
|
|
2812
|
-
end
|
|
2813
|
-
# verify the required parameter 'organization_id' is set
|
|
2814
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2815
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_quota"
|
|
2816
|
-
end
|
|
2817
|
-
# verify the required parameter 'update_organization_quota' is set
|
|
2818
|
-
if @api_client.config.client_side_validation && update_organization_quota.nil?
|
|
2819
|
-
fail ArgumentError, "Missing the required parameter 'update_organization_quota' when calling OrganizationsApi.update_organization_quota"
|
|
2820
|
-
end
|
|
2821
|
-
# resource path
|
|
2822
|
-
local_var_path = '/organizations/{organizationId}/quota'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2823
|
-
|
|
2824
|
-
# query parameters
|
|
2825
|
-
query_params = opts[:query_params] || {}
|
|
2826
|
-
|
|
2827
|
-
# header parameters
|
|
2828
|
-
header_params = opts[:header_params] || {}
|
|
2829
|
-
# HTTP header 'Content-Type'
|
|
2830
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2831
|
-
if !content_type.nil?
|
|
2832
|
-
header_params['Content-Type'] = content_type
|
|
2833
|
-
end
|
|
2834
|
-
|
|
2835
|
-
# form parameters
|
|
2836
|
-
form_params = opts[:form_params] || {}
|
|
2837
|
-
|
|
2838
|
-
# http body (model)
|
|
2839
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_quota)
|
|
2840
|
-
|
|
2841
|
-
# return_type
|
|
2842
|
-
return_type = opts[:debug_return_type]
|
|
2843
|
-
|
|
2844
|
-
# auth_names
|
|
2845
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2846
|
-
|
|
2847
|
-
new_options = opts.merge(
|
|
2848
|
-
:operation => :"OrganizationsApi.update_organization_quota",
|
|
2849
|
-
:header_params => header_params,
|
|
2850
|
-
:query_params => query_params,
|
|
2851
|
-
:form_params => form_params,
|
|
2852
|
-
:body => post_body,
|
|
2853
|
-
:auth_names => auth_names,
|
|
2854
|
-
:return_type => return_type
|
|
2855
|
-
)
|
|
2856
|
-
|
|
2857
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2858
|
-
if @api_client.config.debugging
|
|
2859
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2860
|
-
end
|
|
2861
|
-
return data, status_code, headers
|
|
2862
|
-
end
|
|
2863
|
-
|
|
2864
|
-
# Update organization region quota
|
|
2865
|
-
# @param organization_id [String] Organization ID
|
|
2866
|
-
# @param region_id [String] ID of the region where the updated quota will be applied
|
|
2867
|
-
# @param update_organization_region_quota [UpdateOrganizationRegionQuota]
|
|
2868
|
-
# @param [Hash] opts the optional parameters
|
|
2869
|
-
# @return [nil]
|
|
2870
|
-
def update_organization_region_quota(organization_id, region_id, update_organization_region_quota, opts = {})
|
|
2871
|
-
update_organization_region_quota_with_http_info(organization_id, region_id, update_organization_region_quota, opts)
|
|
2872
|
-
nil
|
|
2873
|
-
end
|
|
2874
|
-
|
|
2875
|
-
# Update organization region quota
|
|
2876
|
-
# @param organization_id [String] Organization ID
|
|
2877
|
-
# @param region_id [String] ID of the region where the updated quota will be applied
|
|
2878
|
-
# @param update_organization_region_quota [UpdateOrganizationRegionQuota]
|
|
2879
|
-
# @param [Hash] opts the optional parameters
|
|
2880
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2881
|
-
def update_organization_region_quota_with_http_info(organization_id, region_id, update_organization_region_quota, opts = {})
|
|
2882
|
-
if @api_client.config.debugging
|
|
2883
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_region_quota ...'
|
|
2884
|
-
end
|
|
2885
|
-
# verify the required parameter 'organization_id' is set
|
|
2886
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2887
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_region_quota"
|
|
2888
|
-
end
|
|
2889
|
-
# verify the required parameter 'region_id' is set
|
|
2890
|
-
if @api_client.config.client_side_validation && region_id.nil?
|
|
2891
|
-
fail ArgumentError, "Missing the required parameter 'region_id' when calling OrganizationsApi.update_organization_region_quota"
|
|
2892
|
-
end
|
|
2893
|
-
# verify the required parameter 'update_organization_region_quota' is set
|
|
2894
|
-
if @api_client.config.client_side_validation && update_organization_region_quota.nil?
|
|
2895
|
-
fail ArgumentError, "Missing the required parameter 'update_organization_region_quota' when calling OrganizationsApi.update_organization_region_quota"
|
|
2896
|
-
end
|
|
2897
|
-
# resource path
|
|
2898
|
-
local_var_path = '/organizations/{organizationId}/quota/{regionId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'regionId' + '}', CGI.escape(region_id.to_s))
|
|
2899
|
-
|
|
2900
|
-
# query parameters
|
|
2901
|
-
query_params = opts[:query_params] || {}
|
|
2902
|
-
|
|
2903
|
-
# header parameters
|
|
2904
|
-
header_params = opts[:header_params] || {}
|
|
2905
|
-
# HTTP header 'Content-Type'
|
|
2906
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2907
|
-
if !content_type.nil?
|
|
2908
|
-
header_params['Content-Type'] = content_type
|
|
2909
|
-
end
|
|
2910
|
-
|
|
2911
|
-
# form parameters
|
|
2912
|
-
form_params = opts[:form_params] || {}
|
|
2913
|
-
|
|
2914
|
-
# http body (model)
|
|
2915
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_region_quota)
|
|
2916
|
-
|
|
2917
|
-
# return_type
|
|
2918
|
-
return_type = opts[:debug_return_type]
|
|
2919
|
-
|
|
2920
|
-
# auth_names
|
|
2921
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2922
|
-
|
|
2923
|
-
new_options = opts.merge(
|
|
2924
|
-
:operation => :"OrganizationsApi.update_organization_region_quota",
|
|
2925
|
-
:header_params => header_params,
|
|
2926
|
-
:query_params => query_params,
|
|
2927
|
-
:form_params => form_params,
|
|
2928
|
-
:body => post_body,
|
|
2929
|
-
:auth_names => auth_names,
|
|
2930
|
-
:return_type => return_type
|
|
2931
|
-
)
|
|
2932
|
-
|
|
2933
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2934
|
-
if @api_client.config.debugging
|
|
2935
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_region_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2936
|
-
end
|
|
2937
|
-
return data, status_code, headers
|
|
2938
|
-
end
|
|
2939
|
-
|
|
2940
2856
|
# Update organization role
|
|
2941
2857
|
# @param organization_id [String] Organization ID
|
|
2942
2858
|
# @param role_id [String] Role ID
|
|
@@ -3015,76 +2931,6 @@ module DaytonaApiClient
|
|
|
3015
2931
|
return data, status_code, headers
|
|
3016
2932
|
end
|
|
3017
2933
|
|
|
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
|
-
|
|
3088
2934
|
# Update region configuration
|
|
3089
2935
|
# @param id [String] Region ID
|
|
3090
2936
|
# @param update_region [UpdateRegion]
|
|
@@ -3157,75 +3003,5 @@ module DaytonaApiClient
|
|
|
3157
3003
|
end
|
|
3158
3004
|
return data, status_code, headers
|
|
3159
3005
|
end
|
|
3160
|
-
|
|
3161
|
-
# Update sandbox default limited network egress
|
|
3162
|
-
# @param organization_id [String] Organization ID
|
|
3163
|
-
# @param organization_sandbox_default_limited_network_egress [OrganizationSandboxDefaultLimitedNetworkEgress]
|
|
3164
|
-
# @param [Hash] opts the optional parameters
|
|
3165
|
-
# @return [nil]
|
|
3166
|
-
def update_sandbox_default_limited_network_egress(organization_id, organization_sandbox_default_limited_network_egress, opts = {})
|
|
3167
|
-
update_sandbox_default_limited_network_egress_with_http_info(organization_id, organization_sandbox_default_limited_network_egress, opts)
|
|
3168
|
-
nil
|
|
3169
|
-
end
|
|
3170
|
-
|
|
3171
|
-
# Update sandbox default limited network egress
|
|
3172
|
-
# @param organization_id [String] Organization ID
|
|
3173
|
-
# @param organization_sandbox_default_limited_network_egress [OrganizationSandboxDefaultLimitedNetworkEgress]
|
|
3174
|
-
# @param [Hash] opts the optional parameters
|
|
3175
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
3176
|
-
def update_sandbox_default_limited_network_egress_with_http_info(organization_id, organization_sandbox_default_limited_network_egress, opts = {})
|
|
3177
|
-
if @api_client.config.debugging
|
|
3178
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_sandbox_default_limited_network_egress ...'
|
|
3179
|
-
end
|
|
3180
|
-
# verify the required parameter 'organization_id' is set
|
|
3181
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
3182
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_sandbox_default_limited_network_egress"
|
|
3183
|
-
end
|
|
3184
|
-
# verify the required parameter 'organization_sandbox_default_limited_network_egress' is set
|
|
3185
|
-
if @api_client.config.client_side_validation && organization_sandbox_default_limited_network_egress.nil?
|
|
3186
|
-
fail ArgumentError, "Missing the required parameter 'organization_sandbox_default_limited_network_egress' when calling OrganizationsApi.update_sandbox_default_limited_network_egress"
|
|
3187
|
-
end
|
|
3188
|
-
# resource path
|
|
3189
|
-
local_var_path = '/organizations/{organizationId}/sandbox-default-limited-network-egress'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
3190
|
-
|
|
3191
|
-
# query parameters
|
|
3192
|
-
query_params = opts[:query_params] || {}
|
|
3193
|
-
|
|
3194
|
-
# header parameters
|
|
3195
|
-
header_params = opts[:header_params] || {}
|
|
3196
|
-
# HTTP header 'Content-Type'
|
|
3197
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
3198
|
-
if !content_type.nil?
|
|
3199
|
-
header_params['Content-Type'] = content_type
|
|
3200
|
-
end
|
|
3201
|
-
|
|
3202
|
-
# form parameters
|
|
3203
|
-
form_params = opts[:form_params] || {}
|
|
3204
|
-
|
|
3205
|
-
# http body (model)
|
|
3206
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(organization_sandbox_default_limited_network_egress)
|
|
3207
|
-
|
|
3208
|
-
# return_type
|
|
3209
|
-
return_type = opts[:debug_return_type]
|
|
3210
|
-
|
|
3211
|
-
# auth_names
|
|
3212
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
3213
|
-
|
|
3214
|
-
new_options = opts.merge(
|
|
3215
|
-
:operation => :"OrganizationsApi.update_sandbox_default_limited_network_egress",
|
|
3216
|
-
:header_params => header_params,
|
|
3217
|
-
:query_params => query_params,
|
|
3218
|
-
:form_params => form_params,
|
|
3219
|
-
:body => post_body,
|
|
3220
|
-
:auth_names => auth_names,
|
|
3221
|
-
:return_type => return_type
|
|
3222
|
-
)
|
|
3223
|
-
|
|
3224
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
3225
|
-
if @api_client.config.debugging
|
|
3226
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#update_sandbox_default_limited_network_egress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3227
|
-
end
|
|
3228
|
-
return data, status_code, headers
|
|
3229
|
-
end
|
|
3230
3006
|
end
|
|
3231
3007
|
end
|