Class: OryClient::ProjectApi
- Inherits:
-
Object
- Object
- OryClient::ProjectApi
- Defined in:
- lib/ory-client/api/project_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_organization(project_id, opts = {}) ⇒ Organization
Create an Enterprise SSO Organization Creates an Enterprise SSO Organization in a project.
-
#create_organization_onboarding_portal_link(project_id, organization_id, opts = {}) ⇒ OnboardingPortalLink
Create organization onboarding portal link Create a onboarding portal link for an organization.
-
#create_organization_onboarding_portal_link_with_http_info(project_id, organization_id, opts = {}) ⇒ Array<(OnboardingPortalLink, Integer, Hash)>
Create organization onboarding portal link Create a onboarding portal link for an organization.
-
#create_organization_with_http_info(project_id, opts = {}) ⇒ Array<(Organization, Integer, Hash)>
Create an Enterprise SSO Organization Creates an Enterprise SSO Organization in a project.
-
#create_project(opts = {}) ⇒ Project
Create a Project Creates a new project.
-
#create_project_api_key(project, opts = {}) ⇒ ProjectApiKey
Create project API key Create an API key for a project.
-
#create_project_api_key_with_http_info(project, opts = {}) ⇒ Array<(ProjectApiKey, Integer, Hash)>
Create project API key Create an API key for a project.
-
#create_project_with_http_info(opts = {}) ⇒ Array<(Project, Integer, Hash)>
Create a Project Creates a new project.
-
#delete_organization(project_id, organization_id, opts = {}) ⇒ nil
Delete Enterprise SSO Organization Irrecoverably deletes an Enterprise SSO Organization in a project by its ID.
-
#delete_organization_onboarding_portal_link(project_id, organization_id, onboarding_portal_link_id, opts = {}) ⇒ nil
Delete an organization onboarding portal link Deletes a onboarding portal link for an organization.
-
#delete_organization_onboarding_portal_link_with_http_info(project_id, organization_id, onboarding_portal_link_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete an organization onboarding portal link Deletes a onboarding portal link for an organization.
-
#delete_organization_with_http_info(project_id, organization_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete Enterprise SSO Organization Irrecoverably deletes an Enterprise SSO Organization in a project by its ID.
-
#delete_project_api_key(project, token_id, opts = {}) ⇒ nil
Delete project API key Deletes an API key and immediately removes it.
-
#delete_project_api_key_with_http_info(project, token_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete project API key Deletes an API key and immediately removes it.
-
#get_organization(project_id, organization_id, opts = {}) ⇒ GetOrganizationResponse
Get Enterprise SSO Organization by ID Retrieves an Enterprise SSO Organization for a project by its ID.
-
#get_organization_onboarding_portal_links(project_id, organization_id, opts = {}) ⇒ OrganizationOnboardingPortalLinksResponse
Get the organization onboarding portal links Retrieves the organization onboarding portal links.
-
#get_organization_onboarding_portal_links_with_http_info(project_id, organization_id, opts = {}) ⇒ Array<(OrganizationOnboardingPortalLinksResponse, Integer, Hash)>
Get the organization onboarding portal links Retrieves the organization onboarding portal links.
-
#get_organization_with_http_info(project_id, organization_id, opts = {}) ⇒ Array<(GetOrganizationResponse, Integer, Hash)>
Get Enterprise SSO Organization by ID Retrieves an Enterprise SSO Organization for a project by its ID.
-
#get_project(project_id, opts = {}) ⇒ Project
Get a Project Get a projects you have access to by its ID.
-
#get_project_members(project, opts = {}) ⇒ Array<ProjectMember>
Get all members associated with this project This endpoint requires the user to be a member of the project with the role ‘OWNER` or `DEVELOPER`.
-
#get_project_members_with_http_info(project, opts = {}) ⇒ Array<(Array<ProjectMember>, Integer, Hash)>
Get all members associated with this project This endpoint requires the user to be a member of the project with the role `OWNER` or `DEVELOPER`.
-
#get_project_with_http_info(project_id, opts = {}) ⇒ Array<(Project, Integer, Hash)>
Get a Project Get a projects you have access to by its ID.
-
#initialize(api_client = ApiClient.default) ⇒ ProjectApi
constructor
A new instance of ProjectApi.
-
#list_organizations(project_id, opts = {}) ⇒ ListOrganizationsResponse
List all Enterprise SSO organizations Lists all Enterprise SSO organizations in a project.
-
#list_organizations_with_http_info(project_id, opts = {}) ⇒ Array<(ListOrganizationsResponse, Integer, Hash)>
List all Enterprise SSO organizations Lists all Enterprise SSO organizations in a project.
-
#list_project_api_keys(project, opts = {}) ⇒ Array<ProjectApiKey>
List a project’s API keys A list of all the project’s API keys.
-
#list_project_api_keys_with_http_info(project, opts = {}) ⇒ Array<(Array<ProjectApiKey>, Integer, Hash)>
List a project's API keys A list of all the project's API keys.
-
#list_projects(opts = {}) ⇒ Array<ProjectMetadata>
List All Projects Lists all projects you have access to.
-
#list_projects_with_http_info(opts = {}) ⇒ Array<(Array<ProjectMetadata>, Integer, Hash)>
List All Projects Lists all projects you have access to.
-
#patch_project(project_id, opts = {}) ⇒ SuccessfulProjectUpdate
Patch an Ory Network Project Configuration Deprecated: Use the ‘patchProjectWithRevision` endpoint instead to specify the exact revision the patch was generated for.
-
#patch_project_with_http_info(project_id, opts = {}) ⇒ Array<(SuccessfulProjectUpdate, Integer, Hash)>
Patch an Ory Network Project Configuration Deprecated: Use the `patchProjectWithRevision` endpoint instead to specify the exact revision the patch was generated for.
-
#patch_project_with_revision(project_id, revision_id, opts = {}) ⇒ SuccessfulProjectUpdate
Patch an Ory Network Project Configuration based on a revision ID This endpoints allows you to patch individual Ory Network Project configuration keys for Ory’s services (identity, permission, …).
-
#patch_project_with_revision_with_http_info(project_id, revision_id, opts = {}) ⇒ Array<(SuccessfulProjectUpdate, Integer, Hash)>
Patch an Ory Network Project Configuration based on a revision ID This endpoints allows you to patch individual Ory Network Project configuration keys for Ory's services (identity, permission, …).
-
#purge_project(project_id, opts = {}) ⇒ nil
Irrecoverably purge a project !! Use with extreme caution !! Using this API endpoint you can purge (completely delete) a project and its data.
-
#purge_project_with_http_info(project_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Irrecoverably purge a project !! Use with extreme caution !! Using this API endpoint you can purge (completely delete) a project and its data.
-
#remove_project_member(project, member, opts = {}) ⇒ nil
Remove a member associated with this project This also sets their invite status to ‘REMOVED`.
-
#remove_project_member_with_http_info(project, member, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Remove a member associated with this project This also sets their invite status to `REMOVED`.
-
#set_project(project_id, opts = {}) ⇒ SuccessfulProjectUpdate
Update an Ory Network Project Configuration This endpoints allows you to update the Ory Network project configuration for individual services (identity, permission, …).
-
#set_project_with_http_info(project_id, opts = {}) ⇒ Array<(SuccessfulProjectUpdate, Integer, Hash)>
Update an Ory Network Project Configuration This endpoints allows you to update the Ory Network project configuration for individual services (identity, permission, …).
-
#update_organization(project_id, organization_id, opts = {}) ⇒ Organization
Update an Enterprise SSO Organization Updates an Enterprise SSO Organization in a project by its ID.
-
#update_organization_onboarding_portal_link(project_id, organization_id, onboarding_portal_link_id, opts = {}) ⇒ OnboardingPortalLink
Update organization onboarding portal link Update a onboarding portal link for an organization.
-
#update_organization_onboarding_portal_link_with_http_info(project_id, organization_id, onboarding_portal_link_id, opts = {}) ⇒ Array<(OnboardingPortalLink, Integer, Hash)>
Update organization onboarding portal link Update a onboarding portal link for an organization.
-
#update_organization_with_http_info(project_id, organization_id, opts = {}) ⇒ Array<(Organization, Integer, Hash)>
Update an Enterprise SSO Organization Updates an Enterprise SSO Organization in a project by its ID.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ ProjectApi
Returns a new instance of ProjectApi.
19 20 21 |
# File 'lib/ory-client/api/project_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/ory-client/api/project_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#create_organization(project_id, opts = {}) ⇒ Organization
Create an Enterprise SSO Organization Creates an Enterprise SSO Organization in a project.
28 29 30 31 |
# File 'lib/ory-client/api/project_api.rb', line 28 def create_organization(project_id, opts = {}) data, _status_code, _headers = create_organization_with_http_info(project_id, opts) data end |
#create_organization_onboarding_portal_link(project_id, organization_id, opts = {}) ⇒ OnboardingPortalLink
Create organization onboarding portal link Create a onboarding portal link for an organization.
99 100 101 102 |
# File 'lib/ory-client/api/project_api.rb', line 99 def create_organization_onboarding_portal_link(project_id, organization_id, opts = {}) data, _status_code, _headers = create_organization_onboarding_portal_link_with_http_info(project_id, organization_id, opts) data end |
#create_organization_onboarding_portal_link_with_http_info(project_id, organization_id, opts = {}) ⇒ Array<(OnboardingPortalLink, Integer, Hash)>
Create organization onboarding portal link Create a onboarding portal link for an organization.
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
# File 'lib/ory-client/api/project_api.rb', line 111 def create_organization_onboarding_portal_link_with_http_info(project_id, organization_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.create_organization_onboarding_portal_link ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.create_organization_onboarding_portal_link" end # verify the required parameter 'organization_id' is set if @api_client.config.client_side_validation && organization_id.nil? fail ArgumentError, "Missing the required parameter 'organization_id' when calling ProjectApi.create_organization_onboarding_portal_link" end # resource path local_var_path = '/projects/{project_id}/organizations/{organization_id}/onboarding-portal-links'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'organization_id' + '}', CGI.escape(organization_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_organization_onboarding_portal_link_body']) # return_type return_type = opts[:debug_return_type] || 'OnboardingPortalLink' # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.create_organization_onboarding_portal_link", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#create_organization_onboarding_portal_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_organization_with_http_info(project_id, opts = {}) ⇒ Array<(Organization, Integer, Hash)>
Create an Enterprise SSO Organization Creates an Enterprise SSO Organization in a project.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/ory-client/api/project_api.rb', line 39 def create_organization_with_http_info(project_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.create_organization ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.create_organization" end # resource path local_var_path = '/projects/{project_id}/organizations'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'organization_body']) # return_type return_type = opts[:debug_return_type] || 'Organization' # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.create_organization", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#create_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_project(opts = {}) ⇒ Project
Create a Project Creates a new project.
173 174 175 176 |
# File 'lib/ory-client/api/project_api.rb', line 173 def create_project(opts = {}) data, _status_code, _headers = create_project_with_http_info(opts) data end |
#create_project_api_key(project, opts = {}) ⇒ ProjectApiKey
Create project API key Create an API key for a project.
238 239 240 241 |
# File 'lib/ory-client/api/project_api.rb', line 238 def create_project_api_key(project, opts = {}) data, _status_code, _headers = create_project_api_key_with_http_info(project, opts) data end |
#create_project_api_key_with_http_info(project, opts = {}) ⇒ Array<(ProjectApiKey, Integer, Hash)>
Create project API key Create an API key for a project.
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 |
# File 'lib/ory-client/api/project_api.rb', line 249 def create_project_api_key_with_http_info(project, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.create_project_api_key ...' end # verify the required parameter 'project' is set if @api_client.config.client_side_validation && project.nil? fail ArgumentError, "Missing the required parameter 'project' when calling ProjectApi.create_project_api_key" end # resource path local_var_path = '/projects/{project}/tokens'.sub('{' + 'project' + '}', CGI.escape(project.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_project_api_key_request']) # return_type return_type = opts[:debug_return_type] || 'ProjectApiKey' # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.create_project_api_key", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#create_project_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_project_with_http_info(opts = {}) ⇒ Array<(Project, Integer, Hash)>
Create a Project Creates a new project.
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/ory-client/api/project_api.rb', line 183 def create_project_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.create_project ...' end # resource path local_var_path = '/projects' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_project_body']) # return_type return_type = opts[:debug_return_type] || 'Project' # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.create_project", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#create_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_organization(project_id, organization_id, opts = {}) ⇒ nil
Delete Enterprise SSO Organization Irrecoverably deletes an Enterprise SSO Organization in a project by its ID.
308 309 310 311 |
# File 'lib/ory-client/api/project_api.rb', line 308 def delete_organization(project_id, organization_id, opts = {}) delete_organization_with_http_info(project_id, organization_id, opts) nil end |
#delete_organization_onboarding_portal_link(project_id, organization_id, onboarding_portal_link_id, opts = {}) ⇒ nil
Delete an organization onboarding portal link Deletes a onboarding portal link for an organization.
378 379 380 381 |
# File 'lib/ory-client/api/project_api.rb', line 378 def delete_organization_onboarding_portal_link(project_id, organization_id, onboarding_portal_link_id, opts = {}) delete_organization_onboarding_portal_link_with_http_info(project_id, organization_id, onboarding_portal_link_id, opts) nil end |
#delete_organization_onboarding_portal_link_with_http_info(project_id, organization_id, onboarding_portal_link_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete an organization onboarding portal link Deletes a onboarding portal link for an organization.
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 |
# File 'lib/ory-client/api/project_api.rb', line 390 def delete_organization_onboarding_portal_link_with_http_info(project_id, organization_id, onboarding_portal_link_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.delete_organization_onboarding_portal_link ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.delete_organization_onboarding_portal_link" end # verify the required parameter 'organization_id' is set if @api_client.config.client_side_validation && organization_id.nil? fail ArgumentError, "Missing the required parameter 'organization_id' when calling ProjectApi.delete_organization_onboarding_portal_link" end # verify the required parameter 'onboarding_portal_link_id' is set if @api_client.config.client_side_validation && onboarding_portal_link_id.nil? fail ArgumentError, "Missing the required parameter 'onboarding_portal_link_id' when calling ProjectApi.delete_organization_onboarding_portal_link" end # resource path local_var_path = '/projects/{project_id}/organizations/{organization_id}/onboarding-portal-links/{onboarding_portal_link_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'organization_id' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'onboarding_portal_link_id' + '}', CGI.escape(onboarding_portal_link_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.delete_organization_onboarding_portal_link", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#delete_organization_onboarding_portal_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_organization_with_http_info(project_id, organization_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete Enterprise SSO Organization Irrecoverably deletes an Enterprise SSO Organization in a project by its ID.
319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 |
# File 'lib/ory-client/api/project_api.rb', line 319 def delete_organization_with_http_info(project_id, organization_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.delete_organization ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.delete_organization" end # verify the required parameter 'organization_id' is set if @api_client.config.client_side_validation && organization_id.nil? fail ArgumentError, "Missing the required parameter 'organization_id' when calling ProjectApi.delete_organization" end # resource path local_var_path = '/projects/{project_id}/organizations/{organization_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'organization_id' + '}', CGI.escape(organization_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.delete_organization", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#delete_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_project_api_key(project, token_id, opts = {}) ⇒ nil
Delete project API key Deletes an API key and immediately removes it.
452 453 454 455 |
# File 'lib/ory-client/api/project_api.rb', line 452 def delete_project_api_key(project, token_id, opts = {}) delete_project_api_key_with_http_info(project, token_id, opts) nil end |
#delete_project_api_key_with_http_info(project, token_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete project API key Deletes an API key and immediately removes it.
463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 |
# File 'lib/ory-client/api/project_api.rb', line 463 def delete_project_api_key_with_http_info(project, token_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.delete_project_api_key ...' end # verify the required parameter 'project' is set if @api_client.config.client_side_validation && project.nil? fail ArgumentError, "Missing the required parameter 'project' when calling ProjectApi.delete_project_api_key" end # verify the required parameter 'token_id' is set if @api_client.config.client_side_validation && token_id.nil? fail ArgumentError, "Missing the required parameter 'token_id' when calling ProjectApi.delete_project_api_key" end # resource path local_var_path = '/projects/{project}/tokens/{token_id}'.sub('{' + 'project' + '}', CGI.escape(project.to_s)).sub('{' + 'token_id' + '}', CGI.escape(token_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.delete_project_api_key", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#delete_project_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_organization(project_id, organization_id, opts = {}) ⇒ GetOrganizationResponse
Get Enterprise SSO Organization by ID Retrieves an Enterprise SSO Organization for a project by its ID
521 522 523 524 |
# File 'lib/ory-client/api/project_api.rb', line 521 def get_organization(project_id, organization_id, opts = {}) data, _status_code, _headers = get_organization_with_http_info(project_id, organization_id, opts) data end |
#get_organization_onboarding_portal_links(project_id, organization_id, opts = {}) ⇒ OrganizationOnboardingPortalLinksResponse
Get the organization onboarding portal links Retrieves the organization onboarding portal links.
590 591 592 593 |
# File 'lib/ory-client/api/project_api.rb', line 590 def get_organization_onboarding_portal_links(project_id, organization_id, opts = {}) data, _status_code, _headers = get_organization_onboarding_portal_links_with_http_info(project_id, organization_id, opts) data end |
#get_organization_onboarding_portal_links_with_http_info(project_id, organization_id, opts = {}) ⇒ Array<(OrganizationOnboardingPortalLinksResponse, Integer, Hash)>
Get the organization onboarding portal links Retrieves the organization onboarding portal links.
601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 |
# File 'lib/ory-client/api/project_api.rb', line 601 def get_organization_onboarding_portal_links_with_http_info(project_id, organization_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.get_organization_onboarding_portal_links ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.get_organization_onboarding_portal_links" end # verify the required parameter 'organization_id' is set if @api_client.config.client_side_validation && organization_id.nil? fail ArgumentError, "Missing the required parameter 'organization_id' when calling ProjectApi.get_organization_onboarding_portal_links" end # resource path local_var_path = '/projects/{project_id}/organizations/{organization_id}/onboarding-portal-links'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'organization_id' + '}', CGI.escape(organization_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'OrganizationOnboardingPortalLinksResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.get_organization_onboarding_portal_links", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#get_organization_onboarding_portal_links\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_organization_with_http_info(project_id, organization_id, opts = {}) ⇒ Array<(GetOrganizationResponse, Integer, Hash)>
Get Enterprise SSO Organization by ID Retrieves an Enterprise SSO Organization for a project by its ID
532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 |
# File 'lib/ory-client/api/project_api.rb', line 532 def get_organization_with_http_info(project_id, organization_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.get_organization ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.get_organization" end # verify the required parameter 'organization_id' is set if @api_client.config.client_side_validation && organization_id.nil? fail ArgumentError, "Missing the required parameter 'organization_id' when calling ProjectApi.get_organization" end # resource path local_var_path = '/projects/{project_id}/organizations/{organization_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'organization_id' + '}', CGI.escape(organization_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'GetOrganizationResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.get_organization", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#get_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_project(project_id, opts = {}) ⇒ Project
Get a Project Get a projects you have access to by its ID.
658 659 660 661 |
# File 'lib/ory-client/api/project_api.rb', line 658 def get_project(project_id, opts = {}) data, _status_code, _headers = get_project_with_http_info(project_id, opts) data end |
#get_project_members(project, opts = {}) ⇒ Array<ProjectMember>
Get all members associated with this project This endpoint requires the user to be a member of the project with the role ‘OWNER` or `DEVELOPER`.
721 722 723 724 |
# File 'lib/ory-client/api/project_api.rb', line 721 def get_project_members(project, opts = {}) data, _status_code, _headers = get_project_members_with_http_info(project, opts) data end |
#get_project_members_with_http_info(project, opts = {}) ⇒ Array<(Array<ProjectMember>, Integer, Hash)>
Get all members associated with this project This endpoint requires the user to be a member of the project with the role `OWNER` or `DEVELOPER`.
731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 |
# File 'lib/ory-client/api/project_api.rb', line 731 def get_project_members_with_http_info(project, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.get_project_members ...' end # verify the required parameter 'project' is set if @api_client.config.client_side_validation && project.nil? fail ArgumentError, "Missing the required parameter 'project' when calling ProjectApi.get_project_members" end # resource path local_var_path = '/projects/{project}/members'.sub('{' + 'project' + '}', CGI.escape(project.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<ProjectMember>' # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.get_project_members", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#get_project_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_project_with_http_info(project_id, opts = {}) ⇒ Array<(Project, Integer, Hash)>
Get a Project Get a projects you have access to by its ID.
668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 |
# File 'lib/ory-client/api/project_api.rb', line 668 def get_project_with_http_info(project_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.get_project ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.get_project" end # resource path local_var_path = '/projects/{project_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Project' # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.get_project", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#get_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_organizations(project_id, opts = {}) ⇒ ListOrganizationsResponse
List all Enterprise SSO organizations Lists all Enterprise SSO organizations in a project.
787 788 789 790 |
# File 'lib/ory-client/api/project_api.rb', line 787 def list_organizations(project_id, opts = {}) data, _status_code, _headers = list_organizations_with_http_info(project_id, opts) data end |
#list_organizations_with_http_info(project_id, opts = {}) ⇒ Array<(ListOrganizationsResponse, Integer, Hash)>
List all Enterprise SSO organizations Lists all Enterprise SSO organizations in a project.
800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 |
# File 'lib/ory-client/api/project_api.rb', line 800 def list_organizations_with_http_info(project_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.list_organizations ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.list_organizations" end if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000 fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ProjectApi.list_organizations, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1 fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ProjectApi.list_organizations, must be greater than or equal to 1.' end # resource path local_var_path = '/projects/{project_id}/organizations'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? query_params[:'page_token'] = opts[:'page_token'] if !opts[:'page_token'].nil? query_params[:'domain'] = opts[:'domain'] if !opts[:'domain'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ListOrganizationsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.list_organizations", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#list_organizations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_project_api_keys(project, opts = {}) ⇒ Array<ProjectApiKey>
List a project’s API keys A list of all the project’s API keys.
864 865 866 867 |
# File 'lib/ory-client/api/project_api.rb', line 864 def list_project_api_keys(project, opts = {}) data, _status_code, _headers = list_project_api_keys_with_http_info(project, opts) data end |
#list_project_api_keys_with_http_info(project, opts = {}) ⇒ Array<(Array<ProjectApiKey>, Integer, Hash)>
List a project's API keys A list of all the project's API keys.
874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 |
# File 'lib/ory-client/api/project_api.rb', line 874 def list_project_api_keys_with_http_info(project, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.list_project_api_keys ...' end # verify the required parameter 'project' is set if @api_client.config.client_side_validation && project.nil? fail ArgumentError, "Missing the required parameter 'project' when calling ProjectApi.list_project_api_keys" end # resource path local_var_path = '/projects/{project}/tokens'.sub('{' + 'project' + '}', CGI.escape(project.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<ProjectApiKey>' # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.list_project_api_keys", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#list_project_api_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_projects(opts = {}) ⇒ Array<ProjectMetadata>
List All Projects Lists all projects you have access to.
926 927 928 929 |
# File 'lib/ory-client/api/project_api.rb', line 926 def list_projects(opts = {}) data, _status_code, _headers = list_projects_with_http_info(opts) data end |
#list_projects_with_http_info(opts = {}) ⇒ Array<(Array<ProjectMetadata>, Integer, Hash)>
List All Projects Lists all projects you have access to.
935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 |
# File 'lib/ory-client/api/project_api.rb', line 935 def list_projects_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.list_projects ...' end # resource path local_var_path = '/projects' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<ProjectMetadata>' # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.list_projects", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#list_projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_project(project_id, opts = {}) ⇒ SuccessfulProjectUpdate
Patch an Ory Network Project Configuration Deprecated: Use the ‘patchProjectWithRevision` endpoint instead to specify the exact revision the patch was generated for. This endpoints allows you to patch individual Ory Network project configuration keys for Ory’s services (identity, permission, …). The configuration format is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the ‘version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed.
985 986 987 988 |
# File 'lib/ory-client/api/project_api.rb', line 985 def patch_project(project_id, opts = {}) data, _status_code, _headers = patch_project_with_http_info(project_id, opts) data end |
#patch_project_with_http_info(project_id, opts = {}) ⇒ Array<(SuccessfulProjectUpdate, Integer, Hash)>
Patch an Ory Network Project Configuration Deprecated: Use the `patchProjectWithRevision` endpoint instead to specify the exact revision the patch was generated for. This endpoints allows you to patch individual Ory Network project configuration keys for Ory's services (identity, permission, …). The configuration format is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed.
996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 |
# File 'lib/ory-client/api/project_api.rb', line 996 def patch_project_with_http_info(project_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.patch_project ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.patch_project" end # resource path local_var_path = '/projects/{project_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'json_patch']) # return_type return_type = opts[:debug_return_type] || 'SuccessfulProjectUpdate' # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.patch_project", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#patch_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_project_with_revision(project_id, revision_id, opts = {}) ⇒ SuccessfulProjectUpdate
Patch an Ory Network Project Configuration based on a revision ID This endpoints allows you to patch individual Ory Network Project configuration keys for Ory’s services (identity, permission, …). The configuration format is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the ‘version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed.
1056 1057 1058 1059 |
# File 'lib/ory-client/api/project_api.rb', line 1056 def patch_project_with_revision(project_id, revision_id, opts = {}) data, _status_code, _headers = patch_project_with_revision_with_http_info(project_id, revision_id, opts) data end |
#patch_project_with_revision_with_http_info(project_id, revision_id, opts = {}) ⇒ Array<(SuccessfulProjectUpdate, Integer, Hash)>
Patch an Ory Network Project Configuration based on a revision ID This endpoints allows you to patch individual Ory Network Project configuration keys for Ory's services (identity, permission, …). The configuration format is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed.
1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 |
# File 'lib/ory-client/api/project_api.rb', line 1068 def patch_project_with_revision_with_http_info(project_id, revision_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.patch_project_with_revision ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.patch_project_with_revision" end # verify the required parameter 'revision_id' is set if @api_client.config.client_side_validation && revision_id.nil? fail ArgumentError, "Missing the required parameter 'revision_id' when calling ProjectApi.patch_project_with_revision" end # resource path local_var_path = '/projects/{project_id}/revision/{revision_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'revision_id' + '}', CGI.escape(revision_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'json_patch']) # return_type return_type = opts[:debug_return_type] || 'SuccessfulProjectUpdate' # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.patch_project_with_revision", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#patch_project_with_revision\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#purge_project(project_id, opts = {}) ⇒ nil
Irrecoverably purge a project !! Use with extreme caution !! Using this API endpoint you can purge (completely delete) a project and its data. This action can not be undone and will delete ALL your data. Calling this endpoint will additionally delete custom domains and other related data. If the project is linked to a subscription, the subscription needs to be unlinked first.
1130 1131 1132 1133 |
# File 'lib/ory-client/api/project_api.rb', line 1130 def purge_project(project_id, opts = {}) purge_project_with_http_info(project_id, opts) nil end |
#purge_project_with_http_info(project_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Irrecoverably purge a project !! Use with extreme caution !! Using this API endpoint you can purge (completely delete) a project and its data. This action can not be undone and will delete ALL your data. Calling this endpoint will additionally delete custom domains and other related data. If the project is linked to a subscription, the subscription needs to be unlinked first.
1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 |
# File 'lib/ory-client/api/project_api.rb', line 1140 def purge_project_with_http_info(project_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.purge_project ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.purge_project" end # resource path local_var_path = '/projects/{project_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.purge_project", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#purge_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#remove_project_member(project, member, opts = {}) ⇒ nil
Remove a member associated with this project This also sets their invite status to ‘REMOVED`. This endpoint requires the user to be a member of the project with the role `OWNER`.
1194 1195 1196 1197 |
# File 'lib/ory-client/api/project_api.rb', line 1194 def remove_project_member(project, member, opts = {}) remove_project_member_with_http_info(project, member, opts) nil end |
#remove_project_member_with_http_info(project, member, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Remove a member associated with this project This also sets their invite status to `REMOVED`. This endpoint requires the user to be a member of the project with the role `OWNER`.
1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 |
# File 'lib/ory-client/api/project_api.rb', line 1205 def remove_project_member_with_http_info(project, member, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.remove_project_member ...' end # verify the required parameter 'project' is set if @api_client.config.client_side_validation && project.nil? fail ArgumentError, "Missing the required parameter 'project' when calling ProjectApi.remove_project_member" end # verify the required parameter 'member' is set if @api_client.config.client_side_validation && member.nil? fail ArgumentError, "Missing the required parameter 'member' when calling ProjectApi.remove_project_member" end # resource path local_var_path = '/projects/{project}/members/{member}'.sub('{' + 'project' + '}', CGI.escape(project.to_s)).sub('{' + 'member' + '}', CGI.escape(member.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.remove_project_member", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#remove_project_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#set_project(project_id, opts = {}) ⇒ SuccessfulProjectUpdate
Update an Ory Network Project Configuration This endpoints allows you to update the Ory Network project configuration for individual services (identity, permission, …). The configuration is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the ‘version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed. Be aware that updating any service’s configuration will completely override your current configuration for that service!
1263 1264 1265 1266 |
# File 'lib/ory-client/api/project_api.rb', line 1263 def set_project(project_id, opts = {}) data, _status_code, _headers = set_project_with_http_info(project_id, opts) data end |
#set_project_with_http_info(project_id, opts = {}) ⇒ Array<(SuccessfulProjectUpdate, Integer, Hash)>
Update an Ory Network Project Configuration This endpoints allows you to update the Ory Network project configuration for individual services (identity, permission, …). The configuration is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed. Be aware that updating any service's configuration will completely override your current configuration for that service!
1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 |
# File 'lib/ory-client/api/project_api.rb', line 1274 def set_project_with_http_info(project_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.set_project ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.set_project" end # resource path local_var_path = '/projects/{project_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'set_project']) # return_type return_type = opts[:debug_return_type] || 'SuccessfulProjectUpdate' # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.set_project", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#set_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_organization(project_id, organization_id, opts = {}) ⇒ Organization
Update an Enterprise SSO Organization Updates an Enterprise SSO Organization in a project by its ID.
1334 1335 1336 1337 |
# File 'lib/ory-client/api/project_api.rb', line 1334 def update_organization(project_id, organization_id, opts = {}) data, _status_code, _headers = update_organization_with_http_info(project_id, organization_id, opts) data end |
#update_organization_onboarding_portal_link(project_id, organization_id, onboarding_portal_link_id, opts = {}) ⇒ OnboardingPortalLink
Update organization onboarding portal link Update a onboarding portal link for an organization.
1411 1412 1413 1414 |
# File 'lib/ory-client/api/project_api.rb', line 1411 def update_organization_onboarding_portal_link(project_id, organization_id, onboarding_portal_link_id, opts = {}) data, _status_code, _headers = update_organization_onboarding_portal_link_with_http_info(project_id, organization_id, onboarding_portal_link_id, opts) data end |
#update_organization_onboarding_portal_link_with_http_info(project_id, organization_id, onboarding_portal_link_id, opts = {}) ⇒ Array<(OnboardingPortalLink, Integer, Hash)>
Update organization onboarding portal link Update a onboarding portal link for an organization.
1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 |
# File 'lib/ory-client/api/project_api.rb', line 1424 def update_organization_onboarding_portal_link_with_http_info(project_id, organization_id, onboarding_portal_link_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.update_organization_onboarding_portal_link ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.update_organization_onboarding_portal_link" end # verify the required parameter 'organization_id' is set if @api_client.config.client_side_validation && organization_id.nil? fail ArgumentError, "Missing the required parameter 'organization_id' when calling ProjectApi.update_organization_onboarding_portal_link" end # verify the required parameter 'onboarding_portal_link_id' is set if @api_client.config.client_side_validation && onboarding_portal_link_id.nil? fail ArgumentError, "Missing the required parameter 'onboarding_portal_link_id' when calling ProjectApi.update_organization_onboarding_portal_link" end # resource path local_var_path = '/projects/{project_id}/organizations/{organization_id}/onboarding-portal-links/{onboarding_portal_link_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'organization_id' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'onboarding_portal_link_id' + '}', CGI.escape(onboarding_portal_link_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_organization_onboarding_portal_link_body']) # return_type return_type = opts[:debug_return_type] || 'OnboardingPortalLink' # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.update_organization_onboarding_portal_link", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#update_organization_onboarding_portal_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_organization_with_http_info(project_id, organization_id, opts = {}) ⇒ Array<(Organization, Integer, Hash)>
Update an Enterprise SSO Organization Updates an Enterprise SSO Organization in a project by its ID.
1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 |
# File 'lib/ory-client/api/project_api.rb', line 1346 def update_organization_with_http_info(project_id, organization_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.update_organization ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectApi.update_organization" end # verify the required parameter 'organization_id' is set if @api_client.config.client_side_validation && organization_id.nil? fail ArgumentError, "Missing the required parameter 'organization_id' when calling ProjectApi.update_organization" end # resource path local_var_path = '/projects/{project_id}/organizations/{organization_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'organization_id' + '}', CGI.escape(organization_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'organization_body']) # return_type return_type = opts[:debug_return_type] || 'Organization' # auth_names auth_names = opts[:debug_auth_names] || ['oryWorkspaceApiKey'] = opts.merge( :operation => :"ProjectApi.update_organization", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectApi#update_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |