daytona_api_client 0.126.0.pre.alpha.2
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 +7 -0
- data/.gitignore +39 -0
- data/.openapi-generator/FILES +171 -0
- data/.openapi-generator/VERSION +1 -0
- data/.openapi-generator-ignore +33 -0
- data/.rspec +2 -0
- data/.rubocop.yml +148 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +101 -0
- data/Rakefile +10 -0
- data/daytona_api_client.gemspec +39 -0
- data/fix-gemspec.sh +11 -0
- data/lib/daytona_api_client/api/api_keys_api.rb +401 -0
- data/lib/daytona_api_client/api/audit_api.rb +192 -0
- data/lib/daytona_api_client/api/config_api.rb +77 -0
- data/lib/daytona_api_client/api/docker_registry_api.rb +472 -0
- data/lib/daytona_api_client/api/health_api.rb +75 -0
- data/lib/daytona_api_client/api/object_storage_api.rb +80 -0
- data/lib/daytona_api_client/api/organizations_api.rb +1902 -0
- data/lib/daytona_api_client/api/preview_api.rb +211 -0
- data/lib/daytona_api_client/api/regions_api.rb +83 -0
- data/lib/daytona_api_client/api/runners_api.rb +376 -0
- data/lib/daytona_api_client/api/sandbox_api.rb +1660 -0
- data/lib/daytona_api_client/api/snapshots_api.rb +641 -0
- data/lib/daytona_api_client/api/toolbox_api.rb +5108 -0
- data/lib/daytona_api_client/api/users_api.rb +553 -0
- data/lib/daytona_api_client/api/volumes_api.rb +342 -0
- data/lib/daytona_api_client/api/webhooks_api.rb +413 -0
- data/lib/daytona_api_client/api/workspace_api.rb +955 -0
- data/lib/daytona_api_client/api_client.rb +393 -0
- data/lib/daytona_api_client/api_error.rb +58 -0
- data/lib/daytona_api_client/configuration.rb +306 -0
- data/lib/daytona_api_client/models/account_provider.rb +261 -0
- data/lib/daytona_api_client/models/announcement.rb +246 -0
- data/lib/daytona_api_client/models/api_key_list.rb +384 -0
- data/lib/daytona_api_client/models/api_key_response.rb +344 -0
- data/lib/daytona_api_client/models/audit_log.rb +422 -0
- data/lib/daytona_api_client/models/build_info.rb +285 -0
- data/lib/daytona_api_client/models/command.rb +273 -0
- data/lib/daytona_api_client/models/completion_context.rb +244 -0
- data/lib/daytona_api_client/models/completion_item.rb +289 -0
- data/lib/daytona_api_client/models/completion_list.rb +263 -0
- data/lib/daytona_api_client/models/compressed_screenshot_response.rb +256 -0
- data/lib/daytona_api_client/models/computer_use_start_response.rb +263 -0
- data/lib/daytona_api_client/models/computer_use_status_response.rb +260 -0
- data/lib/daytona_api_client/models/computer_use_stop_response.rb +263 -0
- data/lib/daytona_api_client/models/create_api_key.rb +288 -0
- data/lib/daytona_api_client/models/create_audit_log.rb +350 -0
- data/lib/daytona_api_client/models/create_build_info.rb +248 -0
- data/lib/daytona_api_client/models/create_docker_registry.rb +388 -0
- data/lib/daytona_api_client/models/create_linked_account.rb +263 -0
- data/lib/daytona_api_client/models/create_organization.rb +263 -0
- data/lib/daytona_api_client/models/create_organization_invitation.rb +326 -0
- data/lib/daytona_api_client/models/create_organization_quota.rb +290 -0
- data/lib/daytona_api_client/models/create_organization_role.rb +304 -0
- data/lib/daytona_api_client/models/create_runner.rb +545 -0
- data/lib/daytona_api_client/models/create_sandbox.rb +439 -0
- data/lib/daytona_api_client/models/create_session_request.rb +236 -0
- data/lib/daytona_api_client/models/create_snapshot.rb +318 -0
- data/lib/daytona_api_client/models/create_user.rb +340 -0
- data/lib/daytona_api_client/models/create_volume.rb +235 -0
- data/lib/daytona_api_client/models/create_workspace.rb +411 -0
- data/lib/daytona_api_client/models/daytona_configuration.rb +568 -0
- data/lib/daytona_api_client/models/display_info_response.rb +238 -0
- data/lib/daytona_api_client/models/docker_registry.rb +449 -0
- data/lib/daytona_api_client/models/download_files.rb +238 -0
- data/lib/daytona_api_client/models/execute_request.rb +255 -0
- data/lib/daytona_api_client/models/execute_response.rb +263 -0
- data/lib/daytona_api_client/models/file_info.rb +417 -0
- data/lib/daytona_api_client/models/file_status.rb +313 -0
- data/lib/daytona_api_client/models/git_add_request.rb +264 -0
- data/lib/daytona_api_client/models/git_branch_request.rb +261 -0
- data/lib/daytona_api_client/models/git_checkout_request.rb +261 -0
- data/lib/daytona_api_client/models/git_clone_request.rb +297 -0
- data/lib/daytona_api_client/models/git_commit_info.rb +339 -0
- data/lib/daytona_api_client/models/git_commit_request.rb +325 -0
- data/lib/daytona_api_client/models/git_commit_response.rb +235 -0
- data/lib/daytona_api_client/models/git_delete_branch_request.rb +261 -0
- data/lib/daytona_api_client/models/git_repo_request.rb +253 -0
- data/lib/daytona_api_client/models/git_status.rb +290 -0
- data/lib/daytona_api_client/models/health_controller_check200_response.rb +253 -0
- data/lib/daytona_api_client/models/health_controller_check200_response_info_value.rb +235 -0
- data/lib/daytona_api_client/models/health_controller_check503_response.rb +253 -0
- data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +236 -0
- data/lib/daytona_api_client/models/keyboard_press_request.rb +248 -0
- data/lib/daytona_api_client/models/keyboard_type_request.rb +246 -0
- data/lib/daytona_api_client/models/list_branch_response.rb +237 -0
- data/lib/daytona_api_client/models/lsp_completion_params.rb +325 -0
- data/lib/daytona_api_client/models/lsp_document_request.rb +290 -0
- data/lib/daytona_api_client/models/lsp_location.rb +261 -0
- data/lib/daytona_api_client/models/lsp_server_request.rb +263 -0
- data/lib/daytona_api_client/models/lsp_symbol.rb +287 -0
- data/lib/daytona_api_client/models/match.rb +287 -0
- data/lib/daytona_api_client/models/mouse_click_request.rb +283 -0
- data/lib/daytona_api_client/models/mouse_click_response.rb +263 -0
- data/lib/daytona_api_client/models/mouse_drag_request.rb +327 -0
- data/lib/daytona_api_client/models/mouse_drag_response.rb +263 -0
- data/lib/daytona_api_client/models/mouse_move_request.rb +263 -0
- data/lib/daytona_api_client/models/mouse_move_response.rb +263 -0
- data/lib/daytona_api_client/models/mouse_position.rb +263 -0
- data/lib/daytona_api_client/models/mouse_scroll_request.rb +300 -0
- data/lib/daytona_api_client/models/mouse_scroll_response.rb +236 -0
- data/lib/daytona_api_client/models/oidc_config.rb +290 -0
- data/lib/daytona_api_client/models/organization.rb +663 -0
- data/lib/daytona_api_client/models/organization_invitation.rb +534 -0
- data/lib/daytona_api_client/models/organization_role.rb +412 -0
- data/lib/daytona_api_client/models/organization_sandbox_default_limited_network_egress.rb +236 -0
- data/lib/daytona_api_client/models/organization_suspension.rb +290 -0
- data/lib/daytona_api_client/models/organization_usage_overview.rb +341 -0
- data/lib/daytona_api_client/models/organization_user.rb +451 -0
- data/lib/daytona_api_client/models/paginated_audit_logs.rb +325 -0
- data/lib/daytona_api_client/models/paginated_sandboxes.rb +315 -0
- data/lib/daytona_api_client/models/paginated_snapshots.rb +315 -0
- data/lib/daytona_api_client/models/paginated_snapshots_dto.rb +315 -0
- data/lib/daytona_api_client/models/port_preview_url.rb +290 -0
- data/lib/daytona_api_client/models/position.rb +261 -0
- data/lib/daytona_api_client/models/posthog_config.rb +263 -0
- data/lib/daytona_api_client/models/process_errors_response.rb +263 -0
- data/lib/daytona_api_client/models/process_logs_response.rb +263 -0
- data/lib/daytona_api_client/models/process_restart_response.rb +263 -0
- data/lib/daytona_api_client/models/process_status_response.rb +263 -0
- data/lib/daytona_api_client/models/project_dir_response.rb +218 -0
- data/lib/daytona_api_client/models/pty_create_request.rb +288 -0
- data/lib/daytona_api_client/models/pty_create_response.rb +236 -0
- data/lib/daytona_api_client/models/pty_list_response.rb +238 -0
- data/lib/daytona_api_client/models/pty_resize_request.rb +263 -0
- data/lib/daytona_api_client/models/pty_session_info.rb +425 -0
- data/lib/daytona_api_client/models/range.rb +261 -0
- data/lib/daytona_api_client/models/rate_limit_config.rb +249 -0
- data/lib/daytona_api_client/models/rate_limit_entry.rb +229 -0
- data/lib/daytona_api_client/models/region.rb +328 -0
- data/lib/daytona_api_client/models/region_quota.rb +339 -0
- data/lib/daytona_api_client/models/region_screenshot_response.rb +256 -0
- data/lib/daytona_api_client/models/region_usage_overview.rb +391 -0
- data/lib/daytona_api_client/models/registry_push_access_dto.rb +371 -0
- data/lib/daytona_api_client/models/replace_request.rb +289 -0
- data/lib/daytona_api_client/models/replace_result.rb +236 -0
- data/lib/daytona_api_client/models/runner.rb +780 -0
- data/lib/daytona_api_client/models/runner_snapshot_dto.rb +290 -0
- data/lib/daytona_api_client/models/runner_state.rb +43 -0
- data/lib/daytona_api_client/models/sandbox.rb +782 -0
- data/lib/daytona_api_client/models/sandbox_class.rb +41 -0
- data/lib/daytona_api_client/models/sandbox_desired_state.rb +43 -0
- data/lib/daytona_api_client/models/sandbox_info.rb +273 -0
- data/lib/daytona_api_client/models/sandbox_labels.rb +238 -0
- data/lib/daytona_api_client/models/sandbox_state.rb +54 -0
- data/lib/daytona_api_client/models/sandbox_volume.rb +273 -0
- data/lib/daytona_api_client/models/screenshot_response.rb +256 -0
- data/lib/daytona_api_client/models/search_files_response.rb +237 -0
- data/lib/daytona_api_client/models/send_webhook_dto.rb +273 -0
- data/lib/daytona_api_client/models/session.rb +251 -0
- data/lib/daytona_api_client/models/session_execute_request.rb +256 -0
- data/lib/daytona_api_client/models/session_execute_response.rb +239 -0
- data/lib/daytona_api_client/models/set_snapshot_general_status_dto.rb +236 -0
- data/lib/daytona_api_client/models/snapshot_dto.rb +569 -0
- data/lib/daytona_api_client/models/snapshot_state.rb +46 -0
- data/lib/daytona_api_client/models/ssh_access_dto.rb +371 -0
- data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +263 -0
- data/lib/daytona_api_client/models/storage_access_dto.rb +371 -0
- data/lib/daytona_api_client/models/update_docker_registry.rb +310 -0
- data/lib/daytona_api_client/models/update_organization_default_region.rb +236 -0
- data/lib/daytona_api_client/models/update_organization_invitation.rb +299 -0
- data/lib/daytona_api_client/models/update_organization_member_access.rb +289 -0
- data/lib/daytona_api_client/models/update_organization_quota.rb +317 -0
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +245 -0
- data/lib/daytona_api_client/models/update_organization_role.rb +304 -0
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +270 -0
- data/lib/daytona_api_client/models/user.rb +346 -0
- data/lib/daytona_api_client/models/user_home_dir_response.rb +218 -0
- data/lib/daytona_api_client/models/user_public_key.rb +263 -0
- data/lib/daytona_api_client/models/volume_dto.rb +417 -0
- data/lib/daytona_api_client/models/volume_state.rb +45 -0
- data/lib/daytona_api_client/models/webhook_app_portal_access.rb +236 -0
- data/lib/daytona_api_client/models/webhook_controller_get_status200_response.rb +218 -0
- data/lib/daytona_api_client/models/webhook_initialization_status.rb +343 -0
- data/lib/daytona_api_client/models/windows_response.rb +265 -0
- data/lib/daytona_api_client/models/work_dir_response.rb +218 -0
- data/lib/daytona_api_client/models/workspace.rb +834 -0
- data/lib/daytona_api_client/models/workspace_port_preview_url.rb +263 -0
- data/lib/daytona_api_client/version.rb +15 -0
- data/lib/daytona_api_client.rb +201 -0
- data/project.json +59 -0
- metadata +261 -0
|
@@ -0,0 +1,1902 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Daytona
|
|
3
|
+
|
|
4
|
+
#Daytona AI platform API Docs
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@daytona.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.12.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module DaytonaApiClient
|
|
16
|
+
class OrganizationsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Accept organization invitation
|
|
23
|
+
# @param invitation_id [String] Invitation ID
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [OrganizationInvitation]
|
|
26
|
+
def accept_organization_invitation(invitation_id, opts = {})
|
|
27
|
+
data, _status_code, _headers = accept_organization_invitation_with_http_info(invitation_id, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Accept organization invitation
|
|
32
|
+
# @param invitation_id [String] Invitation ID
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(OrganizationInvitation, Integer, Hash)>] OrganizationInvitation data, response status code and response headers
|
|
35
|
+
def accept_organization_invitation_with_http_info(invitation_id, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.accept_organization_invitation ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'invitation_id' is set
|
|
40
|
+
if @api_client.config.client_side_validation && invitation_id.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'invitation_id' when calling OrganizationsApi.accept_organization_invitation"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/organizations/invitations/{invitationId}/accept'.sub('{' + 'invitationId' + '}', CGI.escape(invitation_id.to_s))
|
|
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
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = opts[:form_params] || {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = opts[:debug_body]
|
|
59
|
+
|
|
60
|
+
# return_type
|
|
61
|
+
return_type = opts[:debug_return_type] || 'OrganizationInvitation'
|
|
62
|
+
|
|
63
|
+
# auth_names
|
|
64
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
65
|
+
|
|
66
|
+
new_options = opts.merge(
|
|
67
|
+
:operation => :"OrganizationsApi.accept_organization_invitation",
|
|
68
|
+
:header_params => header_params,
|
|
69
|
+
:query_params => query_params,
|
|
70
|
+
:form_params => form_params,
|
|
71
|
+
:body => post_body,
|
|
72
|
+
:auth_names => auth_names,
|
|
73
|
+
:return_type => return_type
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
77
|
+
if @api_client.config.debugging
|
|
78
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#accept_organization_invitation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
79
|
+
end
|
|
80
|
+
return data, status_code, headers
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Cancel organization invitation
|
|
84
|
+
# @param organization_id [String] Organization ID
|
|
85
|
+
# @param invitation_id [String] Invitation ID
|
|
86
|
+
# @param [Hash] opts the optional parameters
|
|
87
|
+
# @return [nil]
|
|
88
|
+
def cancel_organization_invitation(organization_id, invitation_id, opts = {})
|
|
89
|
+
cancel_organization_invitation_with_http_info(organization_id, invitation_id, opts)
|
|
90
|
+
nil
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Cancel organization invitation
|
|
94
|
+
# @param organization_id [String] Organization ID
|
|
95
|
+
# @param invitation_id [String] Invitation ID
|
|
96
|
+
# @param [Hash] opts the optional parameters
|
|
97
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
98
|
+
def cancel_organization_invitation_with_http_info(organization_id, invitation_id, opts = {})
|
|
99
|
+
if @api_client.config.debugging
|
|
100
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.cancel_organization_invitation ...'
|
|
101
|
+
end
|
|
102
|
+
# verify the required parameter 'organization_id' is set
|
|
103
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
104
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.cancel_organization_invitation"
|
|
105
|
+
end
|
|
106
|
+
# verify the required parameter 'invitation_id' is set
|
|
107
|
+
if @api_client.config.client_side_validation && invitation_id.nil?
|
|
108
|
+
fail ArgumentError, "Missing the required parameter 'invitation_id' when calling OrganizationsApi.cancel_organization_invitation"
|
|
109
|
+
end
|
|
110
|
+
# resource path
|
|
111
|
+
local_var_path = '/organizations/{organizationId}/invitations/{invitationId}/cancel'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'invitationId' + '}', CGI.escape(invitation_id.to_s))
|
|
112
|
+
|
|
113
|
+
# query parameters
|
|
114
|
+
query_params = opts[:query_params] || {}
|
|
115
|
+
|
|
116
|
+
# header parameters
|
|
117
|
+
header_params = opts[:header_params] || {}
|
|
118
|
+
|
|
119
|
+
# form parameters
|
|
120
|
+
form_params = opts[:form_params] || {}
|
|
121
|
+
|
|
122
|
+
# http body (model)
|
|
123
|
+
post_body = opts[:debug_body]
|
|
124
|
+
|
|
125
|
+
# return_type
|
|
126
|
+
return_type = opts[:debug_return_type]
|
|
127
|
+
|
|
128
|
+
# auth_names
|
|
129
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
130
|
+
|
|
131
|
+
new_options = opts.merge(
|
|
132
|
+
:operation => :"OrganizationsApi.cancel_organization_invitation",
|
|
133
|
+
:header_params => header_params,
|
|
134
|
+
:query_params => query_params,
|
|
135
|
+
:form_params => form_params,
|
|
136
|
+
:body => post_body,
|
|
137
|
+
:auth_names => auth_names,
|
|
138
|
+
:return_type => return_type
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
142
|
+
if @api_client.config.debugging
|
|
143
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#cancel_organization_invitation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
144
|
+
end
|
|
145
|
+
return data, status_code, headers
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Create organization
|
|
149
|
+
# @param create_organization [CreateOrganization]
|
|
150
|
+
# @param [Hash] opts the optional parameters
|
|
151
|
+
# @return [Organization]
|
|
152
|
+
def create_organization(create_organization, opts = {})
|
|
153
|
+
data, _status_code, _headers = create_organization_with_http_info(create_organization, opts)
|
|
154
|
+
data
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Create organization
|
|
158
|
+
# @param create_organization [CreateOrganization]
|
|
159
|
+
# @param [Hash] opts the optional parameters
|
|
160
|
+
# @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
|
|
161
|
+
def create_organization_with_http_info(create_organization, opts = {})
|
|
162
|
+
if @api_client.config.debugging
|
|
163
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization ...'
|
|
164
|
+
end
|
|
165
|
+
# verify the required parameter 'create_organization' is set
|
|
166
|
+
if @api_client.config.client_side_validation && create_organization.nil?
|
|
167
|
+
fail ArgumentError, "Missing the required parameter 'create_organization' when calling OrganizationsApi.create_organization"
|
|
168
|
+
end
|
|
169
|
+
# resource path
|
|
170
|
+
local_var_path = '/organizations'
|
|
171
|
+
|
|
172
|
+
# query parameters
|
|
173
|
+
query_params = opts[:query_params] || {}
|
|
174
|
+
|
|
175
|
+
# header parameters
|
|
176
|
+
header_params = opts[:header_params] || {}
|
|
177
|
+
# HTTP header 'Accept' (if needed)
|
|
178
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
179
|
+
# HTTP header 'Content-Type'
|
|
180
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
181
|
+
if !content_type.nil?
|
|
182
|
+
header_params['Content-Type'] = content_type
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# form parameters
|
|
186
|
+
form_params = opts[:form_params] || {}
|
|
187
|
+
|
|
188
|
+
# http body (model)
|
|
189
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_organization)
|
|
190
|
+
|
|
191
|
+
# return_type
|
|
192
|
+
return_type = opts[:debug_return_type] || 'Organization'
|
|
193
|
+
|
|
194
|
+
# auth_names
|
|
195
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
196
|
+
|
|
197
|
+
new_options = opts.merge(
|
|
198
|
+
:operation => :"OrganizationsApi.create_organization",
|
|
199
|
+
:header_params => header_params,
|
|
200
|
+
:query_params => query_params,
|
|
201
|
+
:form_params => form_params,
|
|
202
|
+
:body => post_body,
|
|
203
|
+
:auth_names => auth_names,
|
|
204
|
+
:return_type => return_type
|
|
205
|
+
)
|
|
206
|
+
|
|
207
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
208
|
+
if @api_client.config.debugging
|
|
209
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
210
|
+
end
|
|
211
|
+
return data, status_code, headers
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Create organization invitation
|
|
215
|
+
# @param organization_id [String] Organization ID
|
|
216
|
+
# @param create_organization_invitation [CreateOrganizationInvitation]
|
|
217
|
+
# @param [Hash] opts the optional parameters
|
|
218
|
+
# @return [OrganizationInvitation]
|
|
219
|
+
def create_organization_invitation(organization_id, create_organization_invitation, opts = {})
|
|
220
|
+
data, _status_code, _headers = create_organization_invitation_with_http_info(organization_id, create_organization_invitation, opts)
|
|
221
|
+
data
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Create organization invitation
|
|
225
|
+
# @param organization_id [String] Organization ID
|
|
226
|
+
# @param create_organization_invitation [CreateOrganizationInvitation]
|
|
227
|
+
# @param [Hash] opts the optional parameters
|
|
228
|
+
# @return [Array<(OrganizationInvitation, Integer, Hash)>] OrganizationInvitation data, response status code and response headers
|
|
229
|
+
def create_organization_invitation_with_http_info(organization_id, create_organization_invitation, opts = {})
|
|
230
|
+
if @api_client.config.debugging
|
|
231
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization_invitation ...'
|
|
232
|
+
end
|
|
233
|
+
# verify the required parameter 'organization_id' is set
|
|
234
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
235
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.create_organization_invitation"
|
|
236
|
+
end
|
|
237
|
+
# verify the required parameter 'create_organization_invitation' is set
|
|
238
|
+
if @api_client.config.client_side_validation && create_organization_invitation.nil?
|
|
239
|
+
fail ArgumentError, "Missing the required parameter 'create_organization_invitation' when calling OrganizationsApi.create_organization_invitation"
|
|
240
|
+
end
|
|
241
|
+
# resource path
|
|
242
|
+
local_var_path = '/organizations/{organizationId}/invitations'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
243
|
+
|
|
244
|
+
# query parameters
|
|
245
|
+
query_params = opts[:query_params] || {}
|
|
246
|
+
|
|
247
|
+
# header parameters
|
|
248
|
+
header_params = opts[:header_params] || {}
|
|
249
|
+
# HTTP header 'Accept' (if needed)
|
|
250
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
251
|
+
# HTTP header 'Content-Type'
|
|
252
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
253
|
+
if !content_type.nil?
|
|
254
|
+
header_params['Content-Type'] = content_type
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# form parameters
|
|
258
|
+
form_params = opts[:form_params] || {}
|
|
259
|
+
|
|
260
|
+
# http body (model)
|
|
261
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_organization_invitation)
|
|
262
|
+
|
|
263
|
+
# return_type
|
|
264
|
+
return_type = opts[:debug_return_type] || 'OrganizationInvitation'
|
|
265
|
+
|
|
266
|
+
# auth_names
|
|
267
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
268
|
+
|
|
269
|
+
new_options = opts.merge(
|
|
270
|
+
:operation => :"OrganizationsApi.create_organization_invitation",
|
|
271
|
+
:header_params => header_params,
|
|
272
|
+
:query_params => query_params,
|
|
273
|
+
:form_params => form_params,
|
|
274
|
+
:body => post_body,
|
|
275
|
+
:auth_names => auth_names,
|
|
276
|
+
:return_type => return_type
|
|
277
|
+
)
|
|
278
|
+
|
|
279
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
280
|
+
if @api_client.config.debugging
|
|
281
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization_invitation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
282
|
+
end
|
|
283
|
+
return data, status_code, headers
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# Create organization role
|
|
287
|
+
# @param organization_id [String] Organization ID
|
|
288
|
+
# @param create_organization_role [CreateOrganizationRole]
|
|
289
|
+
# @param [Hash] opts the optional parameters
|
|
290
|
+
# @return [OrganizationRole]
|
|
291
|
+
def create_organization_role(organization_id, create_organization_role, opts = {})
|
|
292
|
+
data, _status_code, _headers = create_organization_role_with_http_info(organization_id, create_organization_role, opts)
|
|
293
|
+
data
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
# Create organization role
|
|
297
|
+
# @param organization_id [String] Organization ID
|
|
298
|
+
# @param create_organization_role [CreateOrganizationRole]
|
|
299
|
+
# @param [Hash] opts the optional parameters
|
|
300
|
+
# @return [Array<(OrganizationRole, Integer, Hash)>] OrganizationRole data, response status code and response headers
|
|
301
|
+
def create_organization_role_with_http_info(organization_id, create_organization_role, opts = {})
|
|
302
|
+
if @api_client.config.debugging
|
|
303
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization_role ...'
|
|
304
|
+
end
|
|
305
|
+
# verify the required parameter 'organization_id' is set
|
|
306
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
307
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.create_organization_role"
|
|
308
|
+
end
|
|
309
|
+
# verify the required parameter 'create_organization_role' is set
|
|
310
|
+
if @api_client.config.client_side_validation && create_organization_role.nil?
|
|
311
|
+
fail ArgumentError, "Missing the required parameter 'create_organization_role' when calling OrganizationsApi.create_organization_role"
|
|
312
|
+
end
|
|
313
|
+
# resource path
|
|
314
|
+
local_var_path = '/organizations/{organizationId}/roles'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
315
|
+
|
|
316
|
+
# query parameters
|
|
317
|
+
query_params = opts[:query_params] || {}
|
|
318
|
+
|
|
319
|
+
# header parameters
|
|
320
|
+
header_params = opts[:header_params] || {}
|
|
321
|
+
# HTTP header 'Accept' (if needed)
|
|
322
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
323
|
+
# HTTP header 'Content-Type'
|
|
324
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
325
|
+
if !content_type.nil?
|
|
326
|
+
header_params['Content-Type'] = content_type
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
# form parameters
|
|
330
|
+
form_params = opts[:form_params] || {}
|
|
331
|
+
|
|
332
|
+
# http body (model)
|
|
333
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_organization_role)
|
|
334
|
+
|
|
335
|
+
# return_type
|
|
336
|
+
return_type = opts[:debug_return_type] || 'OrganizationRole'
|
|
337
|
+
|
|
338
|
+
# auth_names
|
|
339
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
340
|
+
|
|
341
|
+
new_options = opts.merge(
|
|
342
|
+
:operation => :"OrganizationsApi.create_organization_role",
|
|
343
|
+
:header_params => header_params,
|
|
344
|
+
:query_params => query_params,
|
|
345
|
+
:form_params => form_params,
|
|
346
|
+
:body => post_body,
|
|
347
|
+
:auth_names => auth_names,
|
|
348
|
+
:return_type => return_type
|
|
349
|
+
)
|
|
350
|
+
|
|
351
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
352
|
+
if @api_client.config.debugging
|
|
353
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
354
|
+
end
|
|
355
|
+
return data, status_code, headers
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# Decline organization invitation
|
|
359
|
+
# @param invitation_id [String] Invitation ID
|
|
360
|
+
# @param [Hash] opts the optional parameters
|
|
361
|
+
# @return [nil]
|
|
362
|
+
def decline_organization_invitation(invitation_id, opts = {})
|
|
363
|
+
decline_organization_invitation_with_http_info(invitation_id, opts)
|
|
364
|
+
nil
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
# Decline organization invitation
|
|
368
|
+
# @param invitation_id [String] Invitation ID
|
|
369
|
+
# @param [Hash] opts the optional parameters
|
|
370
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
371
|
+
def decline_organization_invitation_with_http_info(invitation_id, opts = {})
|
|
372
|
+
if @api_client.config.debugging
|
|
373
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.decline_organization_invitation ...'
|
|
374
|
+
end
|
|
375
|
+
# verify the required parameter 'invitation_id' is set
|
|
376
|
+
if @api_client.config.client_side_validation && invitation_id.nil?
|
|
377
|
+
fail ArgumentError, "Missing the required parameter 'invitation_id' when calling OrganizationsApi.decline_organization_invitation"
|
|
378
|
+
end
|
|
379
|
+
# resource path
|
|
380
|
+
local_var_path = '/organizations/invitations/{invitationId}/decline'.sub('{' + 'invitationId' + '}', CGI.escape(invitation_id.to_s))
|
|
381
|
+
|
|
382
|
+
# query parameters
|
|
383
|
+
query_params = opts[:query_params] || {}
|
|
384
|
+
|
|
385
|
+
# header parameters
|
|
386
|
+
header_params = opts[:header_params] || {}
|
|
387
|
+
|
|
388
|
+
# form parameters
|
|
389
|
+
form_params = opts[:form_params] || {}
|
|
390
|
+
|
|
391
|
+
# http body (model)
|
|
392
|
+
post_body = opts[:debug_body]
|
|
393
|
+
|
|
394
|
+
# return_type
|
|
395
|
+
return_type = opts[:debug_return_type]
|
|
396
|
+
|
|
397
|
+
# auth_names
|
|
398
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
399
|
+
|
|
400
|
+
new_options = opts.merge(
|
|
401
|
+
:operation => :"OrganizationsApi.decline_organization_invitation",
|
|
402
|
+
:header_params => header_params,
|
|
403
|
+
:query_params => query_params,
|
|
404
|
+
:form_params => form_params,
|
|
405
|
+
:body => post_body,
|
|
406
|
+
:auth_names => auth_names,
|
|
407
|
+
:return_type => return_type
|
|
408
|
+
)
|
|
409
|
+
|
|
410
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
411
|
+
if @api_client.config.debugging
|
|
412
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#decline_organization_invitation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
413
|
+
end
|
|
414
|
+
return data, status_code, headers
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
# Delete organization
|
|
418
|
+
# @param organization_id [String] Organization ID
|
|
419
|
+
# @param [Hash] opts the optional parameters
|
|
420
|
+
# @return [nil]
|
|
421
|
+
def delete_organization(organization_id, opts = {})
|
|
422
|
+
delete_organization_with_http_info(organization_id, opts)
|
|
423
|
+
nil
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
# Delete organization
|
|
427
|
+
# @param organization_id [String] Organization ID
|
|
428
|
+
# @param [Hash] opts the optional parameters
|
|
429
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
430
|
+
def delete_organization_with_http_info(organization_id, opts = {})
|
|
431
|
+
if @api_client.config.debugging
|
|
432
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization ...'
|
|
433
|
+
end
|
|
434
|
+
# verify the required parameter 'organization_id' is set
|
|
435
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
436
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.delete_organization"
|
|
437
|
+
end
|
|
438
|
+
# resource path
|
|
439
|
+
local_var_path = '/organizations/{organizationId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
440
|
+
|
|
441
|
+
# query parameters
|
|
442
|
+
query_params = opts[:query_params] || {}
|
|
443
|
+
|
|
444
|
+
# header parameters
|
|
445
|
+
header_params = opts[:header_params] || {}
|
|
446
|
+
|
|
447
|
+
# form parameters
|
|
448
|
+
form_params = opts[:form_params] || {}
|
|
449
|
+
|
|
450
|
+
# http body (model)
|
|
451
|
+
post_body = opts[:debug_body]
|
|
452
|
+
|
|
453
|
+
# return_type
|
|
454
|
+
return_type = opts[:debug_return_type]
|
|
455
|
+
|
|
456
|
+
# auth_names
|
|
457
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
458
|
+
|
|
459
|
+
new_options = opts.merge(
|
|
460
|
+
:operation => :"OrganizationsApi.delete_organization",
|
|
461
|
+
:header_params => header_params,
|
|
462
|
+
:query_params => query_params,
|
|
463
|
+
:form_params => form_params,
|
|
464
|
+
:body => post_body,
|
|
465
|
+
:auth_names => auth_names,
|
|
466
|
+
:return_type => return_type
|
|
467
|
+
)
|
|
468
|
+
|
|
469
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
470
|
+
if @api_client.config.debugging
|
|
471
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
472
|
+
end
|
|
473
|
+
return data, status_code, headers
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
# Delete organization member
|
|
477
|
+
# @param organization_id [String] Organization ID
|
|
478
|
+
# @param user_id [String] User ID
|
|
479
|
+
# @param [Hash] opts the optional parameters
|
|
480
|
+
# @return [nil]
|
|
481
|
+
def delete_organization_member(organization_id, user_id, opts = {})
|
|
482
|
+
delete_organization_member_with_http_info(organization_id, user_id, opts)
|
|
483
|
+
nil
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
# Delete organization member
|
|
487
|
+
# @param organization_id [String] Organization ID
|
|
488
|
+
# @param user_id [String] User ID
|
|
489
|
+
# @param [Hash] opts the optional parameters
|
|
490
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
491
|
+
def delete_organization_member_with_http_info(organization_id, user_id, opts = {})
|
|
492
|
+
if @api_client.config.debugging
|
|
493
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_member ...'
|
|
494
|
+
end
|
|
495
|
+
# verify the required parameter 'organization_id' is set
|
|
496
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
497
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.delete_organization_member"
|
|
498
|
+
end
|
|
499
|
+
# verify the required parameter 'user_id' is set
|
|
500
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
501
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.delete_organization_member"
|
|
502
|
+
end
|
|
503
|
+
# resource path
|
|
504
|
+
local_var_path = '/organizations/{organizationId}/users/{userId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
|
|
505
|
+
|
|
506
|
+
# query parameters
|
|
507
|
+
query_params = opts[:query_params] || {}
|
|
508
|
+
|
|
509
|
+
# header parameters
|
|
510
|
+
header_params = opts[:header_params] || {}
|
|
511
|
+
|
|
512
|
+
# form parameters
|
|
513
|
+
form_params = opts[:form_params] || {}
|
|
514
|
+
|
|
515
|
+
# http body (model)
|
|
516
|
+
post_body = opts[:debug_body]
|
|
517
|
+
|
|
518
|
+
# return_type
|
|
519
|
+
return_type = opts[:debug_return_type]
|
|
520
|
+
|
|
521
|
+
# auth_names
|
|
522
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
523
|
+
|
|
524
|
+
new_options = opts.merge(
|
|
525
|
+
:operation => :"OrganizationsApi.delete_organization_member",
|
|
526
|
+
:header_params => header_params,
|
|
527
|
+
:query_params => query_params,
|
|
528
|
+
:form_params => form_params,
|
|
529
|
+
:body => post_body,
|
|
530
|
+
:auth_names => auth_names,
|
|
531
|
+
:return_type => return_type
|
|
532
|
+
)
|
|
533
|
+
|
|
534
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
535
|
+
if @api_client.config.debugging
|
|
536
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
537
|
+
end
|
|
538
|
+
return data, status_code, headers
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
# Delete organization role
|
|
542
|
+
# @param organization_id [String] Organization ID
|
|
543
|
+
# @param role_id [String] Role ID
|
|
544
|
+
# @param [Hash] opts the optional parameters
|
|
545
|
+
# @return [nil]
|
|
546
|
+
def delete_organization_role(organization_id, role_id, opts = {})
|
|
547
|
+
delete_organization_role_with_http_info(organization_id, role_id, opts)
|
|
548
|
+
nil
|
|
549
|
+
end
|
|
550
|
+
|
|
551
|
+
# Delete organization role
|
|
552
|
+
# @param organization_id [String] Organization ID
|
|
553
|
+
# @param role_id [String] Role ID
|
|
554
|
+
# @param [Hash] opts the optional parameters
|
|
555
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
556
|
+
def delete_organization_role_with_http_info(organization_id, role_id, opts = {})
|
|
557
|
+
if @api_client.config.debugging
|
|
558
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_role ...'
|
|
559
|
+
end
|
|
560
|
+
# verify the required parameter 'organization_id' is set
|
|
561
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
562
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.delete_organization_role"
|
|
563
|
+
end
|
|
564
|
+
# verify the required parameter 'role_id' is set
|
|
565
|
+
if @api_client.config.client_side_validation && role_id.nil?
|
|
566
|
+
fail ArgumentError, "Missing the required parameter 'role_id' when calling OrganizationsApi.delete_organization_role"
|
|
567
|
+
end
|
|
568
|
+
# resource path
|
|
569
|
+
local_var_path = '/organizations/{organizationId}/roles/{roleId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'roleId' + '}', CGI.escape(role_id.to_s))
|
|
570
|
+
|
|
571
|
+
# query parameters
|
|
572
|
+
query_params = opts[:query_params] || {}
|
|
573
|
+
|
|
574
|
+
# header parameters
|
|
575
|
+
header_params = opts[:header_params] || {}
|
|
576
|
+
|
|
577
|
+
# form parameters
|
|
578
|
+
form_params = opts[:form_params] || {}
|
|
579
|
+
|
|
580
|
+
# http body (model)
|
|
581
|
+
post_body = opts[:debug_body]
|
|
582
|
+
|
|
583
|
+
# return_type
|
|
584
|
+
return_type = opts[:debug_return_type]
|
|
585
|
+
|
|
586
|
+
# auth_names
|
|
587
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
588
|
+
|
|
589
|
+
new_options = opts.merge(
|
|
590
|
+
:operation => :"OrganizationsApi.delete_organization_role",
|
|
591
|
+
:header_params => header_params,
|
|
592
|
+
:query_params => query_params,
|
|
593
|
+
:form_params => form_params,
|
|
594
|
+
:body => post_body,
|
|
595
|
+
:auth_names => auth_names,
|
|
596
|
+
:return_type => return_type
|
|
597
|
+
)
|
|
598
|
+
|
|
599
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
600
|
+
if @api_client.config.debugging
|
|
601
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
602
|
+
end
|
|
603
|
+
return data, status_code, headers
|
|
604
|
+
end
|
|
605
|
+
|
|
606
|
+
# Get organization by ID
|
|
607
|
+
# @param organization_id [String] Organization ID
|
|
608
|
+
# @param [Hash] opts the optional parameters
|
|
609
|
+
# @return [Organization]
|
|
610
|
+
def get_organization(organization_id, opts = {})
|
|
611
|
+
data, _status_code, _headers = get_organization_with_http_info(organization_id, opts)
|
|
612
|
+
data
|
|
613
|
+
end
|
|
614
|
+
|
|
615
|
+
# Get organization by ID
|
|
616
|
+
# @param organization_id [String] Organization ID
|
|
617
|
+
# @param [Hash] opts the optional parameters
|
|
618
|
+
# @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
|
|
619
|
+
def get_organization_with_http_info(organization_id, opts = {})
|
|
620
|
+
if @api_client.config.debugging
|
|
621
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization ...'
|
|
622
|
+
end
|
|
623
|
+
# verify the required parameter 'organization_id' is set
|
|
624
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
625
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization"
|
|
626
|
+
end
|
|
627
|
+
# resource path
|
|
628
|
+
local_var_path = '/organizations/{organizationId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
629
|
+
|
|
630
|
+
# query parameters
|
|
631
|
+
query_params = opts[:query_params] || {}
|
|
632
|
+
|
|
633
|
+
# header parameters
|
|
634
|
+
header_params = opts[:header_params] || {}
|
|
635
|
+
# HTTP header 'Accept' (if needed)
|
|
636
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
637
|
+
|
|
638
|
+
# form parameters
|
|
639
|
+
form_params = opts[:form_params] || {}
|
|
640
|
+
|
|
641
|
+
# http body (model)
|
|
642
|
+
post_body = opts[:debug_body]
|
|
643
|
+
|
|
644
|
+
# return_type
|
|
645
|
+
return_type = opts[:debug_return_type] || 'Organization'
|
|
646
|
+
|
|
647
|
+
# auth_names
|
|
648
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
649
|
+
|
|
650
|
+
new_options = opts.merge(
|
|
651
|
+
:operation => :"OrganizationsApi.get_organization",
|
|
652
|
+
:header_params => header_params,
|
|
653
|
+
:query_params => query_params,
|
|
654
|
+
:form_params => form_params,
|
|
655
|
+
:body => post_body,
|
|
656
|
+
:auth_names => auth_names,
|
|
657
|
+
:return_type => return_type
|
|
658
|
+
)
|
|
659
|
+
|
|
660
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
661
|
+
if @api_client.config.debugging
|
|
662
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
663
|
+
end
|
|
664
|
+
return data, status_code, headers
|
|
665
|
+
end
|
|
666
|
+
|
|
667
|
+
# Get organization by sandbox ID
|
|
668
|
+
# @param sandbox_id [String] Sandbox ID
|
|
669
|
+
# @param [Hash] opts the optional parameters
|
|
670
|
+
# @return [Organization]
|
|
671
|
+
def get_organization_by_sandbox_id(sandbox_id, opts = {})
|
|
672
|
+
data, _status_code, _headers = get_organization_by_sandbox_id_with_http_info(sandbox_id, opts)
|
|
673
|
+
data
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
# Get organization by sandbox ID
|
|
677
|
+
# @param sandbox_id [String] Sandbox ID
|
|
678
|
+
# @param [Hash] opts the optional parameters
|
|
679
|
+
# @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
|
|
680
|
+
def get_organization_by_sandbox_id_with_http_info(sandbox_id, opts = {})
|
|
681
|
+
if @api_client.config.debugging
|
|
682
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_by_sandbox_id ...'
|
|
683
|
+
end
|
|
684
|
+
# verify the required parameter 'sandbox_id' is set
|
|
685
|
+
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
686
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling OrganizationsApi.get_organization_by_sandbox_id"
|
|
687
|
+
end
|
|
688
|
+
# resource path
|
|
689
|
+
local_var_path = '/organizations/by-sandbox-id/{sandboxId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
690
|
+
|
|
691
|
+
# query parameters
|
|
692
|
+
query_params = opts[:query_params] || {}
|
|
693
|
+
|
|
694
|
+
# header parameters
|
|
695
|
+
header_params = opts[:header_params] || {}
|
|
696
|
+
# HTTP header 'Accept' (if needed)
|
|
697
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
698
|
+
|
|
699
|
+
# form parameters
|
|
700
|
+
form_params = opts[:form_params] || {}
|
|
701
|
+
|
|
702
|
+
# http body (model)
|
|
703
|
+
post_body = opts[:debug_body]
|
|
704
|
+
|
|
705
|
+
# return_type
|
|
706
|
+
return_type = opts[:debug_return_type] || 'Organization'
|
|
707
|
+
|
|
708
|
+
# auth_names
|
|
709
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
710
|
+
|
|
711
|
+
new_options = opts.merge(
|
|
712
|
+
:operation => :"OrganizationsApi.get_organization_by_sandbox_id",
|
|
713
|
+
:header_params => header_params,
|
|
714
|
+
:query_params => query_params,
|
|
715
|
+
:form_params => form_params,
|
|
716
|
+
:body => post_body,
|
|
717
|
+
:auth_names => auth_names,
|
|
718
|
+
:return_type => return_type
|
|
719
|
+
)
|
|
720
|
+
|
|
721
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
722
|
+
if @api_client.config.debugging
|
|
723
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_by_sandbox_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
724
|
+
end
|
|
725
|
+
return data, status_code, headers
|
|
726
|
+
end
|
|
727
|
+
|
|
728
|
+
# Get count of organization invitations for authenticated user
|
|
729
|
+
# @param [Hash] opts the optional parameters
|
|
730
|
+
# @return [Float]
|
|
731
|
+
def get_organization_invitations_count_for_authenticated_user(opts = {})
|
|
732
|
+
data, _status_code, _headers = get_organization_invitations_count_for_authenticated_user_with_http_info(opts)
|
|
733
|
+
data
|
|
734
|
+
end
|
|
735
|
+
|
|
736
|
+
# Get count of organization invitations for authenticated user
|
|
737
|
+
# @param [Hash] opts the optional parameters
|
|
738
|
+
# @return [Array<(Float, Integer, Hash)>] Float data, response status code and response headers
|
|
739
|
+
def get_organization_invitations_count_for_authenticated_user_with_http_info(opts = {})
|
|
740
|
+
if @api_client.config.debugging
|
|
741
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_invitations_count_for_authenticated_user ...'
|
|
742
|
+
end
|
|
743
|
+
# resource path
|
|
744
|
+
local_var_path = '/organizations/invitations/count'
|
|
745
|
+
|
|
746
|
+
# query parameters
|
|
747
|
+
query_params = opts[:query_params] || {}
|
|
748
|
+
|
|
749
|
+
# header parameters
|
|
750
|
+
header_params = opts[:header_params] || {}
|
|
751
|
+
# HTTP header 'Accept' (if needed)
|
|
752
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
753
|
+
|
|
754
|
+
# form parameters
|
|
755
|
+
form_params = opts[:form_params] || {}
|
|
756
|
+
|
|
757
|
+
# http body (model)
|
|
758
|
+
post_body = opts[:debug_body]
|
|
759
|
+
|
|
760
|
+
# return_type
|
|
761
|
+
return_type = opts[:debug_return_type] || 'Float'
|
|
762
|
+
|
|
763
|
+
# auth_names
|
|
764
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
765
|
+
|
|
766
|
+
new_options = opts.merge(
|
|
767
|
+
:operation => :"OrganizationsApi.get_organization_invitations_count_for_authenticated_user",
|
|
768
|
+
:header_params => header_params,
|
|
769
|
+
:query_params => query_params,
|
|
770
|
+
:form_params => form_params,
|
|
771
|
+
:body => post_body,
|
|
772
|
+
:auth_names => auth_names,
|
|
773
|
+
:return_type => return_type
|
|
774
|
+
)
|
|
775
|
+
|
|
776
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
777
|
+
if @api_client.config.debugging
|
|
778
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_invitations_count_for_authenticated_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
779
|
+
end
|
|
780
|
+
return data, status_code, headers
|
|
781
|
+
end
|
|
782
|
+
|
|
783
|
+
# Get organization current usage overview
|
|
784
|
+
# @param organization_id [String] Organization ID
|
|
785
|
+
# @param [Hash] opts the optional parameters
|
|
786
|
+
# @return [OrganizationUsageOverview]
|
|
787
|
+
def get_organization_usage_overview(organization_id, opts = {})
|
|
788
|
+
data, _status_code, _headers = get_organization_usage_overview_with_http_info(organization_id, opts)
|
|
789
|
+
data
|
|
790
|
+
end
|
|
791
|
+
|
|
792
|
+
# Get organization current usage overview
|
|
793
|
+
# @param organization_id [String] Organization ID
|
|
794
|
+
# @param [Hash] opts the optional parameters
|
|
795
|
+
# @return [Array<(OrganizationUsageOverview, Integer, Hash)>] OrganizationUsageOverview data, response status code and response headers
|
|
796
|
+
def get_organization_usage_overview_with_http_info(organization_id, opts = {})
|
|
797
|
+
if @api_client.config.debugging
|
|
798
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_usage_overview ...'
|
|
799
|
+
end
|
|
800
|
+
# verify the required parameter 'organization_id' is set
|
|
801
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
802
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization_usage_overview"
|
|
803
|
+
end
|
|
804
|
+
# resource path
|
|
805
|
+
local_var_path = '/organizations/{organizationId}/usage'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
806
|
+
|
|
807
|
+
# query parameters
|
|
808
|
+
query_params = opts[:query_params] || {}
|
|
809
|
+
|
|
810
|
+
# header parameters
|
|
811
|
+
header_params = opts[:header_params] || {}
|
|
812
|
+
# HTTP header 'Accept' (if needed)
|
|
813
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
814
|
+
|
|
815
|
+
# form parameters
|
|
816
|
+
form_params = opts[:form_params] || {}
|
|
817
|
+
|
|
818
|
+
# http body (model)
|
|
819
|
+
post_body = opts[:debug_body]
|
|
820
|
+
|
|
821
|
+
# return_type
|
|
822
|
+
return_type = opts[:debug_return_type] || 'OrganizationUsageOverview'
|
|
823
|
+
|
|
824
|
+
# auth_names
|
|
825
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
826
|
+
|
|
827
|
+
new_options = opts.merge(
|
|
828
|
+
:operation => :"OrganizationsApi.get_organization_usage_overview",
|
|
829
|
+
:header_params => header_params,
|
|
830
|
+
:query_params => query_params,
|
|
831
|
+
:form_params => form_params,
|
|
832
|
+
:body => post_body,
|
|
833
|
+
:auth_names => auth_names,
|
|
834
|
+
:return_type => return_type
|
|
835
|
+
)
|
|
836
|
+
|
|
837
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
838
|
+
if @api_client.config.debugging
|
|
839
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_usage_overview\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
840
|
+
end
|
|
841
|
+
return data, status_code, headers
|
|
842
|
+
end
|
|
843
|
+
|
|
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
|
+
# Leave organization
|
|
906
|
+
# @param organization_id [String] Organization ID
|
|
907
|
+
# @param [Hash] opts the optional parameters
|
|
908
|
+
# @return [nil]
|
|
909
|
+
def leave_organization(organization_id, opts = {})
|
|
910
|
+
leave_organization_with_http_info(organization_id, opts)
|
|
911
|
+
nil
|
|
912
|
+
end
|
|
913
|
+
|
|
914
|
+
# Leave organization
|
|
915
|
+
# @param organization_id [String] Organization ID
|
|
916
|
+
# @param [Hash] opts the optional parameters
|
|
917
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
918
|
+
def leave_organization_with_http_info(organization_id, opts = {})
|
|
919
|
+
if @api_client.config.debugging
|
|
920
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.leave_organization ...'
|
|
921
|
+
end
|
|
922
|
+
# verify the required parameter 'organization_id' is set
|
|
923
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
924
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.leave_organization"
|
|
925
|
+
end
|
|
926
|
+
# resource path
|
|
927
|
+
local_var_path = '/organizations/{organizationId}/leave'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
928
|
+
|
|
929
|
+
# query parameters
|
|
930
|
+
query_params = opts[:query_params] || {}
|
|
931
|
+
|
|
932
|
+
# header parameters
|
|
933
|
+
header_params = opts[:header_params] || {}
|
|
934
|
+
|
|
935
|
+
# form parameters
|
|
936
|
+
form_params = opts[:form_params] || {}
|
|
937
|
+
|
|
938
|
+
# http body (model)
|
|
939
|
+
post_body = opts[:debug_body]
|
|
940
|
+
|
|
941
|
+
# return_type
|
|
942
|
+
return_type = opts[:debug_return_type]
|
|
943
|
+
|
|
944
|
+
# auth_names
|
|
945
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
946
|
+
|
|
947
|
+
new_options = opts.merge(
|
|
948
|
+
:operation => :"OrganizationsApi.leave_organization",
|
|
949
|
+
:header_params => header_params,
|
|
950
|
+
:query_params => query_params,
|
|
951
|
+
:form_params => form_params,
|
|
952
|
+
:body => post_body,
|
|
953
|
+
:auth_names => auth_names,
|
|
954
|
+
:return_type => return_type
|
|
955
|
+
)
|
|
956
|
+
|
|
957
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
958
|
+
if @api_client.config.debugging
|
|
959
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#leave_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
960
|
+
end
|
|
961
|
+
return data, status_code, headers
|
|
962
|
+
end
|
|
963
|
+
|
|
964
|
+
# List pending organization invitations
|
|
965
|
+
# @param organization_id [String] Organization ID
|
|
966
|
+
# @param [Hash] opts the optional parameters
|
|
967
|
+
# @return [Array<OrganizationInvitation>]
|
|
968
|
+
def list_organization_invitations(organization_id, opts = {})
|
|
969
|
+
data, _status_code, _headers = list_organization_invitations_with_http_info(organization_id, opts)
|
|
970
|
+
data
|
|
971
|
+
end
|
|
972
|
+
|
|
973
|
+
# List pending organization invitations
|
|
974
|
+
# @param organization_id [String] Organization ID
|
|
975
|
+
# @param [Hash] opts the optional parameters
|
|
976
|
+
# @return [Array<(Array<OrganizationInvitation>, Integer, Hash)>] Array<OrganizationInvitation> data, response status code and response headers
|
|
977
|
+
def list_organization_invitations_with_http_info(organization_id, opts = {})
|
|
978
|
+
if @api_client.config.debugging
|
|
979
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations ...'
|
|
980
|
+
end
|
|
981
|
+
# verify the required parameter 'organization_id' is set
|
|
982
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
983
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_invitations"
|
|
984
|
+
end
|
|
985
|
+
# resource path
|
|
986
|
+
local_var_path = '/organizations/{organizationId}/invitations'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
987
|
+
|
|
988
|
+
# query parameters
|
|
989
|
+
query_params = opts[:query_params] || {}
|
|
990
|
+
|
|
991
|
+
# header parameters
|
|
992
|
+
header_params = opts[:header_params] || {}
|
|
993
|
+
# HTTP header 'Accept' (if needed)
|
|
994
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
995
|
+
|
|
996
|
+
# form parameters
|
|
997
|
+
form_params = opts[:form_params] || {}
|
|
998
|
+
|
|
999
|
+
# http body (model)
|
|
1000
|
+
post_body = opts[:debug_body]
|
|
1001
|
+
|
|
1002
|
+
# return_type
|
|
1003
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
|
|
1004
|
+
|
|
1005
|
+
# auth_names
|
|
1006
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1007
|
+
|
|
1008
|
+
new_options = opts.merge(
|
|
1009
|
+
:operation => :"OrganizationsApi.list_organization_invitations",
|
|
1010
|
+
:header_params => header_params,
|
|
1011
|
+
:query_params => query_params,
|
|
1012
|
+
:form_params => form_params,
|
|
1013
|
+
:body => post_body,
|
|
1014
|
+
:auth_names => auth_names,
|
|
1015
|
+
:return_type => return_type
|
|
1016
|
+
)
|
|
1017
|
+
|
|
1018
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1019
|
+
if @api_client.config.debugging
|
|
1020
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_invitations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1021
|
+
end
|
|
1022
|
+
return data, status_code, headers
|
|
1023
|
+
end
|
|
1024
|
+
|
|
1025
|
+
# List organization invitations for authenticated user
|
|
1026
|
+
# @param [Hash] opts the optional parameters
|
|
1027
|
+
# @return [Array<OrganizationInvitation>]
|
|
1028
|
+
def list_organization_invitations_for_authenticated_user(opts = {})
|
|
1029
|
+
data, _status_code, _headers = list_organization_invitations_for_authenticated_user_with_http_info(opts)
|
|
1030
|
+
data
|
|
1031
|
+
end
|
|
1032
|
+
|
|
1033
|
+
# List organization invitations for authenticated user
|
|
1034
|
+
# @param [Hash] opts the optional parameters
|
|
1035
|
+
# @return [Array<(Array<OrganizationInvitation>, Integer, Hash)>] Array<OrganizationInvitation> data, response status code and response headers
|
|
1036
|
+
def list_organization_invitations_for_authenticated_user_with_http_info(opts = {})
|
|
1037
|
+
if @api_client.config.debugging
|
|
1038
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations_for_authenticated_user ...'
|
|
1039
|
+
end
|
|
1040
|
+
# resource path
|
|
1041
|
+
local_var_path = '/organizations/invitations'
|
|
1042
|
+
|
|
1043
|
+
# query parameters
|
|
1044
|
+
query_params = opts[:query_params] || {}
|
|
1045
|
+
|
|
1046
|
+
# header parameters
|
|
1047
|
+
header_params = opts[:header_params] || {}
|
|
1048
|
+
# HTTP header 'Accept' (if needed)
|
|
1049
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1050
|
+
|
|
1051
|
+
# form parameters
|
|
1052
|
+
form_params = opts[:form_params] || {}
|
|
1053
|
+
|
|
1054
|
+
# http body (model)
|
|
1055
|
+
post_body = opts[:debug_body]
|
|
1056
|
+
|
|
1057
|
+
# return_type
|
|
1058
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
|
|
1059
|
+
|
|
1060
|
+
# auth_names
|
|
1061
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1062
|
+
|
|
1063
|
+
new_options = opts.merge(
|
|
1064
|
+
:operation => :"OrganizationsApi.list_organization_invitations_for_authenticated_user",
|
|
1065
|
+
:header_params => header_params,
|
|
1066
|
+
:query_params => query_params,
|
|
1067
|
+
:form_params => form_params,
|
|
1068
|
+
:body => post_body,
|
|
1069
|
+
:auth_names => auth_names,
|
|
1070
|
+
:return_type => return_type
|
|
1071
|
+
)
|
|
1072
|
+
|
|
1073
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1074
|
+
if @api_client.config.debugging
|
|
1075
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_invitations_for_authenticated_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1076
|
+
end
|
|
1077
|
+
return data, status_code, headers
|
|
1078
|
+
end
|
|
1079
|
+
|
|
1080
|
+
# List organization members
|
|
1081
|
+
# @param organization_id [String] Organization ID
|
|
1082
|
+
# @param [Hash] opts the optional parameters
|
|
1083
|
+
# @return [Array<OrganizationUser>]
|
|
1084
|
+
def list_organization_members(organization_id, opts = {})
|
|
1085
|
+
data, _status_code, _headers = list_organization_members_with_http_info(organization_id, opts)
|
|
1086
|
+
data
|
|
1087
|
+
end
|
|
1088
|
+
|
|
1089
|
+
# List organization members
|
|
1090
|
+
# @param organization_id [String] Organization ID
|
|
1091
|
+
# @param [Hash] opts the optional parameters
|
|
1092
|
+
# @return [Array<(Array<OrganizationUser>, Integer, Hash)>] Array<OrganizationUser> data, response status code and response headers
|
|
1093
|
+
def list_organization_members_with_http_info(organization_id, opts = {})
|
|
1094
|
+
if @api_client.config.debugging
|
|
1095
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_members ...'
|
|
1096
|
+
end
|
|
1097
|
+
# verify the required parameter 'organization_id' is set
|
|
1098
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1099
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_members"
|
|
1100
|
+
end
|
|
1101
|
+
# resource path
|
|
1102
|
+
local_var_path = '/organizations/{organizationId}/users'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1103
|
+
|
|
1104
|
+
# query parameters
|
|
1105
|
+
query_params = opts[:query_params] || {}
|
|
1106
|
+
|
|
1107
|
+
# header parameters
|
|
1108
|
+
header_params = opts[:header_params] || {}
|
|
1109
|
+
# HTTP header 'Accept' (if needed)
|
|
1110
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1111
|
+
|
|
1112
|
+
# form parameters
|
|
1113
|
+
form_params = opts[:form_params] || {}
|
|
1114
|
+
|
|
1115
|
+
# http body (model)
|
|
1116
|
+
post_body = opts[:debug_body]
|
|
1117
|
+
|
|
1118
|
+
# return_type
|
|
1119
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationUser>'
|
|
1120
|
+
|
|
1121
|
+
# auth_names
|
|
1122
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1123
|
+
|
|
1124
|
+
new_options = opts.merge(
|
|
1125
|
+
:operation => :"OrganizationsApi.list_organization_members",
|
|
1126
|
+
:header_params => header_params,
|
|
1127
|
+
:query_params => query_params,
|
|
1128
|
+
:form_params => form_params,
|
|
1129
|
+
:body => post_body,
|
|
1130
|
+
:auth_names => auth_names,
|
|
1131
|
+
:return_type => return_type
|
|
1132
|
+
)
|
|
1133
|
+
|
|
1134
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1135
|
+
if @api_client.config.debugging
|
|
1136
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1137
|
+
end
|
|
1138
|
+
return data, status_code, headers
|
|
1139
|
+
end
|
|
1140
|
+
|
|
1141
|
+
# List organization roles
|
|
1142
|
+
# @param organization_id [String] Organization ID
|
|
1143
|
+
# @param [Hash] opts the optional parameters
|
|
1144
|
+
# @return [Array<OrganizationRole>]
|
|
1145
|
+
def list_organization_roles(organization_id, opts = {})
|
|
1146
|
+
data, _status_code, _headers = list_organization_roles_with_http_info(organization_id, opts)
|
|
1147
|
+
data
|
|
1148
|
+
end
|
|
1149
|
+
|
|
1150
|
+
# List organization roles
|
|
1151
|
+
# @param organization_id [String] Organization ID
|
|
1152
|
+
# @param [Hash] opts the optional parameters
|
|
1153
|
+
# @return [Array<(Array<OrganizationRole>, Integer, Hash)>] Array<OrganizationRole> data, response status code and response headers
|
|
1154
|
+
def list_organization_roles_with_http_info(organization_id, opts = {})
|
|
1155
|
+
if @api_client.config.debugging
|
|
1156
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_roles ...'
|
|
1157
|
+
end
|
|
1158
|
+
# verify the required parameter 'organization_id' is set
|
|
1159
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1160
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_roles"
|
|
1161
|
+
end
|
|
1162
|
+
# resource path
|
|
1163
|
+
local_var_path = '/organizations/{organizationId}/roles'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1164
|
+
|
|
1165
|
+
# query parameters
|
|
1166
|
+
query_params = opts[:query_params] || {}
|
|
1167
|
+
|
|
1168
|
+
# header parameters
|
|
1169
|
+
header_params = opts[:header_params] || {}
|
|
1170
|
+
# HTTP header 'Accept' (if needed)
|
|
1171
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1172
|
+
|
|
1173
|
+
# form parameters
|
|
1174
|
+
form_params = opts[:form_params] || {}
|
|
1175
|
+
|
|
1176
|
+
# http body (model)
|
|
1177
|
+
post_body = opts[:debug_body]
|
|
1178
|
+
|
|
1179
|
+
# return_type
|
|
1180
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationRole>'
|
|
1181
|
+
|
|
1182
|
+
# auth_names
|
|
1183
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1184
|
+
|
|
1185
|
+
new_options = opts.merge(
|
|
1186
|
+
:operation => :"OrganizationsApi.list_organization_roles",
|
|
1187
|
+
:header_params => header_params,
|
|
1188
|
+
:query_params => query_params,
|
|
1189
|
+
:form_params => form_params,
|
|
1190
|
+
:body => post_body,
|
|
1191
|
+
:auth_names => auth_names,
|
|
1192
|
+
:return_type => return_type
|
|
1193
|
+
)
|
|
1194
|
+
|
|
1195
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1196
|
+
if @api_client.config.debugging
|
|
1197
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1198
|
+
end
|
|
1199
|
+
return data, status_code, headers
|
|
1200
|
+
end
|
|
1201
|
+
|
|
1202
|
+
# List organizations
|
|
1203
|
+
# @param [Hash] opts the optional parameters
|
|
1204
|
+
# @return [Array<Organization>]
|
|
1205
|
+
def list_organizations(opts = {})
|
|
1206
|
+
data, _status_code, _headers = list_organizations_with_http_info(opts)
|
|
1207
|
+
data
|
|
1208
|
+
end
|
|
1209
|
+
|
|
1210
|
+
# List organizations
|
|
1211
|
+
# @param [Hash] opts the optional parameters
|
|
1212
|
+
# @return [Array<(Array<Organization>, Integer, Hash)>] Array<Organization> data, response status code and response headers
|
|
1213
|
+
def list_organizations_with_http_info(opts = {})
|
|
1214
|
+
if @api_client.config.debugging
|
|
1215
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organizations ...'
|
|
1216
|
+
end
|
|
1217
|
+
# resource path
|
|
1218
|
+
local_var_path = '/organizations'
|
|
1219
|
+
|
|
1220
|
+
# query parameters
|
|
1221
|
+
query_params = opts[:query_params] || {}
|
|
1222
|
+
|
|
1223
|
+
# header parameters
|
|
1224
|
+
header_params = opts[:header_params] || {}
|
|
1225
|
+
# HTTP header 'Accept' (if needed)
|
|
1226
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1227
|
+
|
|
1228
|
+
# form parameters
|
|
1229
|
+
form_params = opts[:form_params] || {}
|
|
1230
|
+
|
|
1231
|
+
# http body (model)
|
|
1232
|
+
post_body = opts[:debug_body]
|
|
1233
|
+
|
|
1234
|
+
# return_type
|
|
1235
|
+
return_type = opts[:debug_return_type] || 'Array<Organization>'
|
|
1236
|
+
|
|
1237
|
+
# auth_names
|
|
1238
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1239
|
+
|
|
1240
|
+
new_options = opts.merge(
|
|
1241
|
+
:operation => :"OrganizationsApi.list_organizations",
|
|
1242
|
+
:header_params => header_params,
|
|
1243
|
+
:query_params => query_params,
|
|
1244
|
+
:form_params => form_params,
|
|
1245
|
+
:body => post_body,
|
|
1246
|
+
:auth_names => auth_names,
|
|
1247
|
+
:return_type => return_type
|
|
1248
|
+
)
|
|
1249
|
+
|
|
1250
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1251
|
+
if @api_client.config.debugging
|
|
1252
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_organizations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1253
|
+
end
|
|
1254
|
+
return data, status_code, headers
|
|
1255
|
+
end
|
|
1256
|
+
|
|
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
|
+
# Suspend organization
|
|
1328
|
+
# @param organization_id [String] Organization ID
|
|
1329
|
+
# @param [Hash] opts the optional parameters
|
|
1330
|
+
# @option opts [OrganizationSuspension] :organization_suspension
|
|
1331
|
+
# @return [nil]
|
|
1332
|
+
def suspend_organization(organization_id, opts = {})
|
|
1333
|
+
suspend_organization_with_http_info(organization_id, opts)
|
|
1334
|
+
nil
|
|
1335
|
+
end
|
|
1336
|
+
|
|
1337
|
+
# Suspend organization
|
|
1338
|
+
# @param organization_id [String] Organization ID
|
|
1339
|
+
# @param [Hash] opts the optional parameters
|
|
1340
|
+
# @option opts [OrganizationSuspension] :organization_suspension
|
|
1341
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1342
|
+
def suspend_organization_with_http_info(organization_id, opts = {})
|
|
1343
|
+
if @api_client.config.debugging
|
|
1344
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.suspend_organization ...'
|
|
1345
|
+
end
|
|
1346
|
+
# verify the required parameter 'organization_id' is set
|
|
1347
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1348
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.suspend_organization"
|
|
1349
|
+
end
|
|
1350
|
+
# resource path
|
|
1351
|
+
local_var_path = '/organizations/{organizationId}/suspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1352
|
+
|
|
1353
|
+
# query parameters
|
|
1354
|
+
query_params = opts[:query_params] || {}
|
|
1355
|
+
|
|
1356
|
+
# header parameters
|
|
1357
|
+
header_params = opts[:header_params] || {}
|
|
1358
|
+
# HTTP header 'Content-Type'
|
|
1359
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1360
|
+
if !content_type.nil?
|
|
1361
|
+
header_params['Content-Type'] = content_type
|
|
1362
|
+
end
|
|
1363
|
+
|
|
1364
|
+
# form parameters
|
|
1365
|
+
form_params = opts[:form_params] || {}
|
|
1366
|
+
|
|
1367
|
+
# http body (model)
|
|
1368
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'organization_suspension'])
|
|
1369
|
+
|
|
1370
|
+
# return_type
|
|
1371
|
+
return_type = opts[:debug_return_type]
|
|
1372
|
+
|
|
1373
|
+
# auth_names
|
|
1374
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1375
|
+
|
|
1376
|
+
new_options = opts.merge(
|
|
1377
|
+
:operation => :"OrganizationsApi.suspend_organization",
|
|
1378
|
+
:header_params => header_params,
|
|
1379
|
+
:query_params => query_params,
|
|
1380
|
+
:form_params => form_params,
|
|
1381
|
+
:body => post_body,
|
|
1382
|
+
:auth_names => auth_names,
|
|
1383
|
+
:return_type => return_type
|
|
1384
|
+
)
|
|
1385
|
+
|
|
1386
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1387
|
+
if @api_client.config.debugging
|
|
1388
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#suspend_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1389
|
+
end
|
|
1390
|
+
return data, status_code, headers
|
|
1391
|
+
end
|
|
1392
|
+
|
|
1393
|
+
# Unsuspend organization
|
|
1394
|
+
# @param organization_id [String] Organization ID
|
|
1395
|
+
# @param [Hash] opts the optional parameters
|
|
1396
|
+
# @return [nil]
|
|
1397
|
+
def unsuspend_organization(organization_id, opts = {})
|
|
1398
|
+
unsuspend_organization_with_http_info(organization_id, opts)
|
|
1399
|
+
nil
|
|
1400
|
+
end
|
|
1401
|
+
|
|
1402
|
+
# Unsuspend organization
|
|
1403
|
+
# @param organization_id [String] Organization ID
|
|
1404
|
+
# @param [Hash] opts the optional parameters
|
|
1405
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1406
|
+
def unsuspend_organization_with_http_info(organization_id, opts = {})
|
|
1407
|
+
if @api_client.config.debugging
|
|
1408
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.unsuspend_organization ...'
|
|
1409
|
+
end
|
|
1410
|
+
# verify the required parameter 'organization_id' is set
|
|
1411
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1412
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.unsuspend_organization"
|
|
1413
|
+
end
|
|
1414
|
+
# resource path
|
|
1415
|
+
local_var_path = '/organizations/{organizationId}/unsuspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1416
|
+
|
|
1417
|
+
# query parameters
|
|
1418
|
+
query_params = opts[:query_params] || {}
|
|
1419
|
+
|
|
1420
|
+
# header parameters
|
|
1421
|
+
header_params = opts[:header_params] || {}
|
|
1422
|
+
|
|
1423
|
+
# form parameters
|
|
1424
|
+
form_params = opts[:form_params] || {}
|
|
1425
|
+
|
|
1426
|
+
# http body (model)
|
|
1427
|
+
post_body = opts[:debug_body]
|
|
1428
|
+
|
|
1429
|
+
# return_type
|
|
1430
|
+
return_type = opts[:debug_return_type]
|
|
1431
|
+
|
|
1432
|
+
# auth_names
|
|
1433
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1434
|
+
|
|
1435
|
+
new_options = opts.merge(
|
|
1436
|
+
:operation => :"OrganizationsApi.unsuspend_organization",
|
|
1437
|
+
:header_params => header_params,
|
|
1438
|
+
:query_params => query_params,
|
|
1439
|
+
:form_params => form_params,
|
|
1440
|
+
:body => post_body,
|
|
1441
|
+
:auth_names => auth_names,
|
|
1442
|
+
:return_type => return_type
|
|
1443
|
+
)
|
|
1444
|
+
|
|
1445
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1446
|
+
if @api_client.config.debugging
|
|
1447
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#unsuspend_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1448
|
+
end
|
|
1449
|
+
return data, status_code, headers
|
|
1450
|
+
end
|
|
1451
|
+
|
|
1452
|
+
# Update access for organization member
|
|
1453
|
+
# @param organization_id [String] Organization ID
|
|
1454
|
+
# @param user_id [String] User ID
|
|
1455
|
+
# @param update_organization_member_access [UpdateOrganizationMemberAccess]
|
|
1456
|
+
# @param [Hash] opts the optional parameters
|
|
1457
|
+
# @return [OrganizationUser]
|
|
1458
|
+
def update_access_for_organization_member(organization_id, user_id, update_organization_member_access, opts = {})
|
|
1459
|
+
data, _status_code, _headers = update_access_for_organization_member_with_http_info(organization_id, user_id, update_organization_member_access, opts)
|
|
1460
|
+
data
|
|
1461
|
+
end
|
|
1462
|
+
|
|
1463
|
+
# Update access for organization member
|
|
1464
|
+
# @param organization_id [String] Organization ID
|
|
1465
|
+
# @param user_id [String] User ID
|
|
1466
|
+
# @param update_organization_member_access [UpdateOrganizationMemberAccess]
|
|
1467
|
+
# @param [Hash] opts the optional parameters
|
|
1468
|
+
# @return [Array<(OrganizationUser, Integer, Hash)>] OrganizationUser data, response status code and response headers
|
|
1469
|
+
def update_access_for_organization_member_with_http_info(organization_id, user_id, update_organization_member_access, opts = {})
|
|
1470
|
+
if @api_client.config.debugging
|
|
1471
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_access_for_organization_member ...'
|
|
1472
|
+
end
|
|
1473
|
+
# verify the required parameter 'organization_id' is set
|
|
1474
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1475
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_access_for_organization_member"
|
|
1476
|
+
end
|
|
1477
|
+
# verify the required parameter 'user_id' is set
|
|
1478
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
1479
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.update_access_for_organization_member"
|
|
1480
|
+
end
|
|
1481
|
+
# verify the required parameter 'update_organization_member_access' is set
|
|
1482
|
+
if @api_client.config.client_side_validation && update_organization_member_access.nil?
|
|
1483
|
+
fail ArgumentError, "Missing the required parameter 'update_organization_member_access' when calling OrganizationsApi.update_access_for_organization_member"
|
|
1484
|
+
end
|
|
1485
|
+
# resource path
|
|
1486
|
+
local_var_path = '/organizations/{organizationId}/users/{userId}/access'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
|
|
1487
|
+
|
|
1488
|
+
# query parameters
|
|
1489
|
+
query_params = opts[:query_params] || {}
|
|
1490
|
+
|
|
1491
|
+
# header parameters
|
|
1492
|
+
header_params = opts[:header_params] || {}
|
|
1493
|
+
# HTTP header 'Accept' (if needed)
|
|
1494
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1495
|
+
# HTTP header 'Content-Type'
|
|
1496
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1497
|
+
if !content_type.nil?
|
|
1498
|
+
header_params['Content-Type'] = content_type
|
|
1499
|
+
end
|
|
1500
|
+
|
|
1501
|
+
# form parameters
|
|
1502
|
+
form_params = opts[:form_params] || {}
|
|
1503
|
+
|
|
1504
|
+
# http body (model)
|
|
1505
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_member_access)
|
|
1506
|
+
|
|
1507
|
+
# return_type
|
|
1508
|
+
return_type = opts[:debug_return_type] || 'OrganizationUser'
|
|
1509
|
+
|
|
1510
|
+
# auth_names
|
|
1511
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1512
|
+
|
|
1513
|
+
new_options = opts.merge(
|
|
1514
|
+
:operation => :"OrganizationsApi.update_access_for_organization_member",
|
|
1515
|
+
:header_params => header_params,
|
|
1516
|
+
:query_params => query_params,
|
|
1517
|
+
:form_params => form_params,
|
|
1518
|
+
:body => post_body,
|
|
1519
|
+
:auth_names => auth_names,
|
|
1520
|
+
:return_type => return_type
|
|
1521
|
+
)
|
|
1522
|
+
|
|
1523
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1524
|
+
if @api_client.config.debugging
|
|
1525
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_access_for_organization_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1526
|
+
end
|
|
1527
|
+
return data, status_code, headers
|
|
1528
|
+
end
|
|
1529
|
+
|
|
1530
|
+
# Update organization invitation
|
|
1531
|
+
# @param organization_id [String] Organization ID
|
|
1532
|
+
# @param invitation_id [String] Invitation ID
|
|
1533
|
+
# @param update_organization_invitation [UpdateOrganizationInvitation]
|
|
1534
|
+
# @param [Hash] opts the optional parameters
|
|
1535
|
+
# @return [OrganizationInvitation]
|
|
1536
|
+
def update_organization_invitation(organization_id, invitation_id, update_organization_invitation, opts = {})
|
|
1537
|
+
data, _status_code, _headers = update_organization_invitation_with_http_info(organization_id, invitation_id, update_organization_invitation, opts)
|
|
1538
|
+
data
|
|
1539
|
+
end
|
|
1540
|
+
|
|
1541
|
+
# Update organization invitation
|
|
1542
|
+
# @param organization_id [String] Organization ID
|
|
1543
|
+
# @param invitation_id [String] Invitation ID
|
|
1544
|
+
# @param update_organization_invitation [UpdateOrganizationInvitation]
|
|
1545
|
+
# @param [Hash] opts the optional parameters
|
|
1546
|
+
# @return [Array<(OrganizationInvitation, Integer, Hash)>] OrganizationInvitation data, response status code and response headers
|
|
1547
|
+
def update_organization_invitation_with_http_info(organization_id, invitation_id, update_organization_invitation, opts = {})
|
|
1548
|
+
if @api_client.config.debugging
|
|
1549
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_invitation ...'
|
|
1550
|
+
end
|
|
1551
|
+
# verify the required parameter 'organization_id' is set
|
|
1552
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1553
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_invitation"
|
|
1554
|
+
end
|
|
1555
|
+
# verify the required parameter 'invitation_id' is set
|
|
1556
|
+
if @api_client.config.client_side_validation && invitation_id.nil?
|
|
1557
|
+
fail ArgumentError, "Missing the required parameter 'invitation_id' when calling OrganizationsApi.update_organization_invitation"
|
|
1558
|
+
end
|
|
1559
|
+
# verify the required parameter 'update_organization_invitation' is set
|
|
1560
|
+
if @api_client.config.client_side_validation && update_organization_invitation.nil?
|
|
1561
|
+
fail ArgumentError, "Missing the required parameter 'update_organization_invitation' when calling OrganizationsApi.update_organization_invitation"
|
|
1562
|
+
end
|
|
1563
|
+
# resource path
|
|
1564
|
+
local_var_path = '/organizations/{organizationId}/invitations/{invitationId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'invitationId' + '}', CGI.escape(invitation_id.to_s))
|
|
1565
|
+
|
|
1566
|
+
# query parameters
|
|
1567
|
+
query_params = opts[:query_params] || {}
|
|
1568
|
+
|
|
1569
|
+
# header parameters
|
|
1570
|
+
header_params = opts[:header_params] || {}
|
|
1571
|
+
# HTTP header 'Accept' (if needed)
|
|
1572
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1573
|
+
# HTTP header 'Content-Type'
|
|
1574
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1575
|
+
if !content_type.nil?
|
|
1576
|
+
header_params['Content-Type'] = content_type
|
|
1577
|
+
end
|
|
1578
|
+
|
|
1579
|
+
# form parameters
|
|
1580
|
+
form_params = opts[:form_params] || {}
|
|
1581
|
+
|
|
1582
|
+
# http body (model)
|
|
1583
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_invitation)
|
|
1584
|
+
|
|
1585
|
+
# return_type
|
|
1586
|
+
return_type = opts[:debug_return_type] || 'OrganizationInvitation'
|
|
1587
|
+
|
|
1588
|
+
# auth_names
|
|
1589
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1590
|
+
|
|
1591
|
+
new_options = opts.merge(
|
|
1592
|
+
:operation => :"OrganizationsApi.update_organization_invitation",
|
|
1593
|
+
:header_params => header_params,
|
|
1594
|
+
:query_params => query_params,
|
|
1595
|
+
:form_params => form_params,
|
|
1596
|
+
:body => post_body,
|
|
1597
|
+
:auth_names => auth_names,
|
|
1598
|
+
:return_type => return_type
|
|
1599
|
+
)
|
|
1600
|
+
|
|
1601
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1602
|
+
if @api_client.config.debugging
|
|
1603
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_invitation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1604
|
+
end
|
|
1605
|
+
return data, status_code, headers
|
|
1606
|
+
end
|
|
1607
|
+
|
|
1608
|
+
# Update organization quota
|
|
1609
|
+
# @param organization_id [String] Organization ID
|
|
1610
|
+
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
1611
|
+
# @param [Hash] opts the optional parameters
|
|
1612
|
+
# @return [nil]
|
|
1613
|
+
def update_organization_quota(organization_id, update_organization_quota, opts = {})
|
|
1614
|
+
update_organization_quota_with_http_info(organization_id, update_organization_quota, opts)
|
|
1615
|
+
nil
|
|
1616
|
+
end
|
|
1617
|
+
|
|
1618
|
+
# Update organization quota
|
|
1619
|
+
# @param organization_id [String] Organization ID
|
|
1620
|
+
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
1621
|
+
# @param [Hash] opts the optional parameters
|
|
1622
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1623
|
+
def update_organization_quota_with_http_info(organization_id, update_organization_quota, opts = {})
|
|
1624
|
+
if @api_client.config.debugging
|
|
1625
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_quota ...'
|
|
1626
|
+
end
|
|
1627
|
+
# verify the required parameter 'organization_id' is set
|
|
1628
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1629
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_quota"
|
|
1630
|
+
end
|
|
1631
|
+
# verify the required parameter 'update_organization_quota' is set
|
|
1632
|
+
if @api_client.config.client_side_validation && update_organization_quota.nil?
|
|
1633
|
+
fail ArgumentError, "Missing the required parameter 'update_organization_quota' when calling OrganizationsApi.update_organization_quota"
|
|
1634
|
+
end
|
|
1635
|
+
# resource path
|
|
1636
|
+
local_var_path = '/organizations/{organizationId}/quota'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1637
|
+
|
|
1638
|
+
# query parameters
|
|
1639
|
+
query_params = opts[:query_params] || {}
|
|
1640
|
+
|
|
1641
|
+
# header parameters
|
|
1642
|
+
header_params = opts[:header_params] || {}
|
|
1643
|
+
# HTTP header 'Content-Type'
|
|
1644
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1645
|
+
if !content_type.nil?
|
|
1646
|
+
header_params['Content-Type'] = content_type
|
|
1647
|
+
end
|
|
1648
|
+
|
|
1649
|
+
# form parameters
|
|
1650
|
+
form_params = opts[:form_params] || {}
|
|
1651
|
+
|
|
1652
|
+
# http body (model)
|
|
1653
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_quota)
|
|
1654
|
+
|
|
1655
|
+
# return_type
|
|
1656
|
+
return_type = opts[:debug_return_type]
|
|
1657
|
+
|
|
1658
|
+
# auth_names
|
|
1659
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1660
|
+
|
|
1661
|
+
new_options = opts.merge(
|
|
1662
|
+
:operation => :"OrganizationsApi.update_organization_quota",
|
|
1663
|
+
:header_params => header_params,
|
|
1664
|
+
:query_params => query_params,
|
|
1665
|
+
:form_params => form_params,
|
|
1666
|
+
:body => post_body,
|
|
1667
|
+
:auth_names => auth_names,
|
|
1668
|
+
:return_type => return_type
|
|
1669
|
+
)
|
|
1670
|
+
|
|
1671
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1672
|
+
if @api_client.config.debugging
|
|
1673
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1674
|
+
end
|
|
1675
|
+
return data, status_code, headers
|
|
1676
|
+
end
|
|
1677
|
+
|
|
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
|
+
# Update organization role
|
|
1755
|
+
# @param organization_id [String] Organization ID
|
|
1756
|
+
# @param role_id [String] Role ID
|
|
1757
|
+
# @param update_organization_role [UpdateOrganizationRole]
|
|
1758
|
+
# @param [Hash] opts the optional parameters
|
|
1759
|
+
# @return [OrganizationRole]
|
|
1760
|
+
def update_organization_role(organization_id, role_id, update_organization_role, opts = {})
|
|
1761
|
+
data, _status_code, _headers = update_organization_role_with_http_info(organization_id, role_id, update_organization_role, opts)
|
|
1762
|
+
data
|
|
1763
|
+
end
|
|
1764
|
+
|
|
1765
|
+
# Update organization role
|
|
1766
|
+
# @param organization_id [String] Organization ID
|
|
1767
|
+
# @param role_id [String] Role ID
|
|
1768
|
+
# @param update_organization_role [UpdateOrganizationRole]
|
|
1769
|
+
# @param [Hash] opts the optional parameters
|
|
1770
|
+
# @return [Array<(OrganizationRole, Integer, Hash)>] OrganizationRole data, response status code and response headers
|
|
1771
|
+
def update_organization_role_with_http_info(organization_id, role_id, update_organization_role, opts = {})
|
|
1772
|
+
if @api_client.config.debugging
|
|
1773
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_role ...'
|
|
1774
|
+
end
|
|
1775
|
+
# verify the required parameter 'organization_id' is set
|
|
1776
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1777
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_role"
|
|
1778
|
+
end
|
|
1779
|
+
# verify the required parameter 'role_id' is set
|
|
1780
|
+
if @api_client.config.client_side_validation && role_id.nil?
|
|
1781
|
+
fail ArgumentError, "Missing the required parameter 'role_id' when calling OrganizationsApi.update_organization_role"
|
|
1782
|
+
end
|
|
1783
|
+
# verify the required parameter 'update_organization_role' is set
|
|
1784
|
+
if @api_client.config.client_side_validation && update_organization_role.nil?
|
|
1785
|
+
fail ArgumentError, "Missing the required parameter 'update_organization_role' when calling OrganizationsApi.update_organization_role"
|
|
1786
|
+
end
|
|
1787
|
+
# resource path
|
|
1788
|
+
local_var_path = '/organizations/{organizationId}/roles/{roleId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'roleId' + '}', CGI.escape(role_id.to_s))
|
|
1789
|
+
|
|
1790
|
+
# query parameters
|
|
1791
|
+
query_params = opts[:query_params] || {}
|
|
1792
|
+
|
|
1793
|
+
# header parameters
|
|
1794
|
+
header_params = opts[:header_params] || {}
|
|
1795
|
+
# HTTP header 'Accept' (if needed)
|
|
1796
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1797
|
+
# HTTP header 'Content-Type'
|
|
1798
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1799
|
+
if !content_type.nil?
|
|
1800
|
+
header_params['Content-Type'] = content_type
|
|
1801
|
+
end
|
|
1802
|
+
|
|
1803
|
+
# form parameters
|
|
1804
|
+
form_params = opts[:form_params] || {}
|
|
1805
|
+
|
|
1806
|
+
# http body (model)
|
|
1807
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_role)
|
|
1808
|
+
|
|
1809
|
+
# return_type
|
|
1810
|
+
return_type = opts[:debug_return_type] || 'OrganizationRole'
|
|
1811
|
+
|
|
1812
|
+
# auth_names
|
|
1813
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1814
|
+
|
|
1815
|
+
new_options = opts.merge(
|
|
1816
|
+
:operation => :"OrganizationsApi.update_organization_role",
|
|
1817
|
+
:header_params => header_params,
|
|
1818
|
+
:query_params => query_params,
|
|
1819
|
+
:form_params => form_params,
|
|
1820
|
+
:body => post_body,
|
|
1821
|
+
:auth_names => auth_names,
|
|
1822
|
+
:return_type => return_type
|
|
1823
|
+
)
|
|
1824
|
+
|
|
1825
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1826
|
+
if @api_client.config.debugging
|
|
1827
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1828
|
+
end
|
|
1829
|
+
return data, status_code, headers
|
|
1830
|
+
end
|
|
1831
|
+
|
|
1832
|
+
# Update sandbox default limited network egress
|
|
1833
|
+
# @param organization_id [String] Organization ID
|
|
1834
|
+
# @param organization_sandbox_default_limited_network_egress [OrganizationSandboxDefaultLimitedNetworkEgress]
|
|
1835
|
+
# @param [Hash] opts the optional parameters
|
|
1836
|
+
# @return [nil]
|
|
1837
|
+
def update_sandbox_default_limited_network_egress(organization_id, organization_sandbox_default_limited_network_egress, opts = {})
|
|
1838
|
+
update_sandbox_default_limited_network_egress_with_http_info(organization_id, organization_sandbox_default_limited_network_egress, opts)
|
|
1839
|
+
nil
|
|
1840
|
+
end
|
|
1841
|
+
|
|
1842
|
+
# Update sandbox default limited network egress
|
|
1843
|
+
# @param organization_id [String] Organization ID
|
|
1844
|
+
# @param organization_sandbox_default_limited_network_egress [OrganizationSandboxDefaultLimitedNetworkEgress]
|
|
1845
|
+
# @param [Hash] opts the optional parameters
|
|
1846
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1847
|
+
def update_sandbox_default_limited_network_egress_with_http_info(organization_id, organization_sandbox_default_limited_network_egress, opts = {})
|
|
1848
|
+
if @api_client.config.debugging
|
|
1849
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_sandbox_default_limited_network_egress ...'
|
|
1850
|
+
end
|
|
1851
|
+
# verify the required parameter 'organization_id' is set
|
|
1852
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1853
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_sandbox_default_limited_network_egress"
|
|
1854
|
+
end
|
|
1855
|
+
# verify the required parameter 'organization_sandbox_default_limited_network_egress' is set
|
|
1856
|
+
if @api_client.config.client_side_validation && organization_sandbox_default_limited_network_egress.nil?
|
|
1857
|
+
fail ArgumentError, "Missing the required parameter 'organization_sandbox_default_limited_network_egress' when calling OrganizationsApi.update_sandbox_default_limited_network_egress"
|
|
1858
|
+
end
|
|
1859
|
+
# resource path
|
|
1860
|
+
local_var_path = '/organizations/{organizationId}/sandbox-default-limited-network-egress'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1861
|
+
|
|
1862
|
+
# query parameters
|
|
1863
|
+
query_params = opts[:query_params] || {}
|
|
1864
|
+
|
|
1865
|
+
# header parameters
|
|
1866
|
+
header_params = opts[:header_params] || {}
|
|
1867
|
+
# HTTP header 'Content-Type'
|
|
1868
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1869
|
+
if !content_type.nil?
|
|
1870
|
+
header_params['Content-Type'] = content_type
|
|
1871
|
+
end
|
|
1872
|
+
|
|
1873
|
+
# form parameters
|
|
1874
|
+
form_params = opts[:form_params] || {}
|
|
1875
|
+
|
|
1876
|
+
# http body (model)
|
|
1877
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(organization_sandbox_default_limited_network_egress)
|
|
1878
|
+
|
|
1879
|
+
# return_type
|
|
1880
|
+
return_type = opts[:debug_return_type]
|
|
1881
|
+
|
|
1882
|
+
# auth_names
|
|
1883
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1884
|
+
|
|
1885
|
+
new_options = opts.merge(
|
|
1886
|
+
:operation => :"OrganizationsApi.update_sandbox_default_limited_network_egress",
|
|
1887
|
+
:header_params => header_params,
|
|
1888
|
+
:query_params => query_params,
|
|
1889
|
+
:form_params => form_params,
|
|
1890
|
+
:body => post_body,
|
|
1891
|
+
:auth_names => auth_names,
|
|
1892
|
+
:return_type => return_type
|
|
1893
|
+
)
|
|
1894
|
+
|
|
1895
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1896
|
+
if @api_client.config.debugging
|
|
1897
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_sandbox_default_limited_network_egress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1898
|
+
end
|
|
1899
|
+
return data, status_code, headers
|
|
1900
|
+
end
|
|
1901
|
+
end
|
|
1902
|
+
end
|