ory-client 0.0.1.alpha134 → 0.0.1.alpha140
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +14 -5
- data/docs/ProjectMetadata.md +32 -0
- data/docs/V0alpha2Api.md +567 -0
- data/lib/ory-client/api/metadata_api.rb +1 -1
- data/lib/ory-client/api/v0alpha2_api.rb +520 -1
- data/lib/ory-client/api_client.rb +1 -1
- data/lib/ory-client/api_error.rb +1 -1
- data/lib/ory-client/configuration.rb +1 -1
- data/lib/ory-client/models/active_project.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_body.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_import_credentials_oidc.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_import_credentials_oidc_config.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_import_credentials_oidc_provider.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_import_credentials_password.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_import_credentials_password_config.rb +1 -1
- data/lib/ory-client/models/admin_create_self_service_recovery_link_body.rb +1 -1
- data/lib/ory-client/models/admin_identity_import_credentials.rb +1 -1
- data/lib/ory-client/models/admin_update_identity_body.rb +1 -1
- data/lib/ory-client/models/api_token.rb +1 -1
- data/lib/ory-client/models/authenticator_assurance_level.rb +1 -1
- data/lib/ory-client/models/cloud_account.rb +1 -1
- data/lib/ory-client/models/cname_settings.rb +1 -1
- data/lib/ory-client/models/create_custom_hostname_body.rb +1 -1
- data/lib/ory-client/models/create_project_body.rb +1 -1
- data/lib/ory-client/models/create_subscription_payload.rb +1 -1
- data/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb +1 -1
- data/lib/ory-client/models/generic_error.rb +1 -1
- data/lib/ory-client/models/generic_error_content.rb +1 -1
- data/lib/ory-client/models/health_not_ready_status.rb +1 -1
- data/lib/ory-client/models/health_status.rb +1 -1
- data/lib/ory-client/models/identity.rb +1 -1
- data/lib/ory-client/models/identity_credentials.rb +1 -1
- data/lib/ory-client/models/identity_credentials_oidc.rb +1 -1
- data/lib/ory-client/models/identity_credentials_oidc_provider.rb +1 -1
- data/lib/ory-client/models/identity_credentials_password.rb +1 -1
- data/lib/ory-client/models/identity_credentials_type.rb +1 -1
- data/lib/ory-client/models/identity_schema.rb +1 -1
- data/lib/ory-client/models/identity_schema_location.rb +1 -1
- data/lib/ory-client/models/identity_schema_preset.rb +1 -1
- data/lib/ory-client/models/identity_schema_validation_result.rb +1 -1
- data/lib/ory-client/models/identity_state.rb +1 -1
- data/lib/ory-client/models/inline_response200.rb +1 -1
- data/lib/ory-client/models/inline_response2001.rb +1 -1
- data/lib/ory-client/models/inline_response503.rb +1 -1
- data/lib/ory-client/models/invite_payload.rb +1 -1
- data/lib/ory-client/models/is_owner_for_project_by_slug.rb +1 -1
- data/lib/ory-client/models/is_owner_for_project_by_slug_payload.rb +1 -1
- data/lib/ory-client/models/json_error.rb +1 -1
- data/lib/ory-client/models/json_patch.rb +1 -1
- data/lib/ory-client/models/needs_privileged_session_error.rb +1 -1
- data/lib/ory-client/models/normalized_project.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_hook.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_identity_schema.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_third_party_provider.rb +1 -1
- data/lib/ory-client/models/null_plan.rb +1 -1
- data/lib/ory-client/models/pagination.rb +1 -1
- data/lib/ory-client/models/project.rb +1 -1
- data/lib/ory-client/models/project_host.rb +1 -1
- data/lib/ory-client/models/project_invite.rb +1 -1
- data/lib/ory-client/models/project_metadata.rb +352 -0
- data/lib/ory-client/models/project_service_identity.rb +1 -1
- data/lib/ory-client/models/project_services.rb +1 -1
- data/lib/ory-client/models/project_slug.rb +1 -1
- data/lib/ory-client/models/provision_mock_subscription_payload.rb +1 -1
- data/lib/ory-client/models/quota_project_member_seats.rb +1 -1
- data/lib/ory-client/models/recovery_address.rb +1 -1
- data/lib/ory-client/models/revoked_sessions.rb +1 -1
- data/lib/ory-client/models/schema_patch.rb +1 -1
- data/lib/ory-client/models/self_service_browser_location_change_required_error.rb +1 -1
- data/lib/ory-client/models/self_service_error.rb +1 -1
- data/lib/ory-client/models/self_service_flow_expired_error.rb +1 -1
- data/lib/ory-client/models/self_service_login_flow.rb +1 -1
- data/lib/ory-client/models/self_service_logout_url.rb +1 -1
- data/lib/ory-client/models/self_service_recovery_flow.rb +1 -1
- data/lib/ory-client/models/self_service_recovery_flow_state.rb +1 -1
- data/lib/ory-client/models/self_service_recovery_link.rb +1 -1
- data/lib/ory-client/models/self_service_registration_flow.rb +1 -1
- data/lib/ory-client/models/self_service_settings_flow.rb +1 -1
- data/lib/ory-client/models/self_service_settings_flow_state.rb +1 -1
- data/lib/ory-client/models/self_service_verification_flow.rb +1 -1
- data/lib/ory-client/models/self_service_verification_flow_state.rb +1 -1
- data/lib/ory-client/models/session.rb +1 -1
- data/lib/ory-client/models/session_authentication_method.rb +1 -1
- data/lib/ory-client/models/session_device.rb +1 -1
- data/lib/ory-client/models/settings_profile_form_config.rb +1 -1
- data/lib/ory-client/models/stripe_customer_response.rb +1 -1
- data/lib/ory-client/models/submit_self_service_flow_with_web_authn_registration_method.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_lookup_secret_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_password_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_totp_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_web_authn_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_logout_flow_without_browser_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_recovery_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_with_web_authn_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_lookup_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_password_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_totp_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_web_authn_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_verification_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_verification_flow_with_link_method_body.rb +1 -1
- data/lib/ory-client/models/subscription.rb +1 -1
- data/lib/ory-client/models/successful_project_update.rb +1 -1
- data/lib/ory-client/models/successful_self_service_login_without_browser.rb +1 -1
- data/lib/ory-client/models/successful_self_service_registration_without_browser.rb +1 -1
- data/lib/ory-client/models/ui_container.rb +1 -1
- data/lib/ory-client/models/ui_node.rb +1 -1
- data/lib/ory-client/models/ui_node_anchor_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_image_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_input_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_meta.rb +1 -1
- data/lib/ory-client/models/ui_node_script_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_text_attributes.rb +1 -1
- data/lib/ory-client/models/ui_text.rb +1 -1
- data/lib/ory-client/models/update_custom_hostname_body.rb +1 -1
- data/lib/ory-client/models/update_project.rb +1 -1
- data/lib/ory-client/models/update_subscription_payload.rb +1 -1
- data/lib/ory-client/models/verifiable_identity_address.rb +1 -1
- data/lib/ory-client/models/version.rb +1 -1
- data/lib/ory-client/models/warning.rb +1 -1
- data/lib/ory-client/version.rb +2 -2
- data/lib/ory-client.rb +2 -1
- data/ory-client.gemspec +1 -1
- data/spec/api/metadata_api_spec.rb +1 -1
- data/spec/api/v0alpha2_api_spec.rb +99 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/active_project_spec.rb +1 -1
- data/spec/models/admin_create_identity_body_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_oidc_config_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_oidc_provider_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_oidc_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_password_config_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_password_spec.rb +1 -1
- data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +1 -1
- data/spec/models/admin_identity_import_credentials_spec.rb +1 -1
- data/spec/models/admin_update_identity_body_spec.rb +1 -1
- data/spec/models/api_token_spec.rb +1 -1
- data/spec/models/authenticator_assurance_level_spec.rb +1 -1
- data/spec/models/cloud_account_spec.rb +1 -1
- data/spec/models/cname_settings_spec.rb +1 -1
- data/spec/models/create_custom_hostname_body_spec.rb +1 -1
- data/spec/models/create_project_body_spec.rb +1 -1
- data/spec/models/create_subscription_payload_spec.rb +1 -1
- data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +1 -1
- data/spec/models/generic_error_content_spec.rb +1 -1
- data/spec/models/generic_error_spec.rb +1 -1
- data/spec/models/health_not_ready_status_spec.rb +1 -1
- data/spec/models/health_status_spec.rb +1 -1
- data/spec/models/identity_credentials_oidc_provider_spec.rb +1 -1
- data/spec/models/identity_credentials_oidc_spec.rb +1 -1
- data/spec/models/identity_credentials_password_spec.rb +1 -1
- data/spec/models/identity_credentials_spec.rb +1 -1
- data/spec/models/identity_credentials_type_spec.rb +1 -1
- data/spec/models/identity_schema_location_spec.rb +1 -1
- data/spec/models/identity_schema_preset_spec.rb +1 -1
- data/spec/models/identity_schema_spec.rb +1 -1
- data/spec/models/identity_schema_validation_result_spec.rb +1 -1
- data/spec/models/identity_spec.rb +1 -1
- data/spec/models/identity_state_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/inline_response503_spec.rb +1 -1
- data/spec/models/invite_payload_spec.rb +1 -1
- data/spec/models/is_owner_for_project_by_slug_payload_spec.rb +1 -1
- data/spec/models/is_owner_for_project_by_slug_spec.rb +1 -1
- data/spec/models/json_error_spec.rb +1 -1
- data/spec/models/json_patch_spec.rb +1 -1
- data/spec/models/needs_privileged_session_error_spec.rb +1 -1
- data/spec/models/normalized_project_revision_hook_spec.rb +1 -1
- data/spec/models/normalized_project_revision_identity_schema_spec.rb +1 -1
- data/spec/models/normalized_project_revision_spec.rb +1 -1
- data/spec/models/normalized_project_revision_third_party_provider_spec.rb +1 -1
- data/spec/models/normalized_project_spec.rb +1 -1
- data/spec/models/null_plan_spec.rb +1 -1
- data/spec/models/pagination_spec.rb +1 -1
- data/spec/models/project_host_spec.rb +1 -1
- data/spec/models/project_invite_spec.rb +1 -1
- data/spec/models/project_metadata_spec.rb +80 -0
- data/spec/models/project_service_identity_spec.rb +1 -1
- data/spec/models/project_services_spec.rb +1 -1
- data/spec/models/project_slug_spec.rb +1 -1
- data/spec/models/project_spec.rb +1 -1
- data/spec/models/provision_mock_subscription_payload_spec.rb +1 -1
- data/spec/models/quota_project_member_seats_spec.rb +1 -1
- data/spec/models/recovery_address_spec.rb +1 -1
- data/spec/models/revoked_sessions_spec.rb +1 -1
- data/spec/models/schema_patch_spec.rb +1 -1
- data/spec/models/self_service_browser_location_change_required_error_spec.rb +1 -1
- data/spec/models/self_service_error_spec.rb +1 -1
- data/spec/models/self_service_flow_expired_error_spec.rb +1 -1
- data/spec/models/self_service_login_flow_spec.rb +1 -1
- data/spec/models/self_service_logout_url_spec.rb +1 -1
- data/spec/models/self_service_recovery_flow_spec.rb +1 -1
- data/spec/models/self_service_recovery_flow_state_spec.rb +1 -1
- data/spec/models/self_service_recovery_link_spec.rb +1 -1
- data/spec/models/self_service_registration_flow_spec.rb +1 -1
- data/spec/models/self_service_settings_flow_spec.rb +1 -1
- data/spec/models/self_service_settings_flow_state_spec.rb +1 -1
- data/spec/models/self_service_verification_flow_spec.rb +1 -1
- data/spec/models/self_service_verification_flow_state_spec.rb +1 -1
- data/spec/models/session_authentication_method_spec.rb +1 -1
- data/spec/models/session_device_spec.rb +1 -1
- data/spec/models/session_spec.rb +1 -1
- data/spec/models/settings_profile_form_config_spec.rb +1 -1
- data/spec/models/stripe_customer_response_spec.rb +1 -1
- data/spec/models/submit_self_service_flow_with_web_authn_registration_method_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_lookup_secret_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_totp_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_web_authn_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +1 -1
- data/spec/models/submit_self_service_recovery_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_with_web_authn_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_lookup_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_totp_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_web_authn_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_verification_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +1 -1
- data/spec/models/subscription_spec.rb +1 -1
- data/spec/models/successful_project_update_spec.rb +1 -1
- data/spec/models/successful_self_service_login_without_browser_spec.rb +1 -1
- data/spec/models/successful_self_service_registration_without_browser_spec.rb +1 -1
- data/spec/models/ui_container_spec.rb +1 -1
- data/spec/models/ui_node_anchor_attributes_spec.rb +1 -1
- data/spec/models/ui_node_attributes_spec.rb +1 -1
- data/spec/models/ui_node_image_attributes_spec.rb +1 -1
- data/spec/models/ui_node_input_attributes_spec.rb +1 -1
- data/spec/models/ui_node_meta_spec.rb +1 -1
- data/spec/models/ui_node_script_attributes_spec.rb +1 -1
- data/spec/models/ui_node_spec.rb +1 -1
- data/spec/models/ui_node_text_attributes_spec.rb +1 -1
- data/spec/models/ui_text_spec.rb +1 -1
- data/spec/models/update_custom_hostname_body_spec.rb +1 -1
- data/spec/models/update_project_spec.rb +1 -1
- data/spec/models/update_subscription_payload_spec.rb +1 -1
- data/spec/models/verifiable_identity_address_spec.rb +1 -1
- data/spec/models/version_spec.rb +1 -1
- data/spec/models/warning_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/cache/parallel-1.22.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.5/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/jaro_winkler-1.5.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.1/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.1/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{parallel-1.21.0 → parallel-1.22.0}/MIT-LICENSE.txt +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parallel-1.21.0 → parallel-1.22.0}/lib/parallel/processor_count.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/parallel-1.22.0/lib/parallel/version.rb +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/{parallel-1.21.0 → parallel-1.22.0}/lib/parallel.rb +84 -4
- data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.3/ext/psych/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.1/ext/stringio/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/specifications/{parallel-1.21.0.gemspec → parallel-1.22.0.gemspec} +4 -4
- metadata +13 -9
- data/vendor/bundle/ruby/2.5.0/cache/parallel-1.21.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/parallel-1.21.0/lib/parallel/version.rb +0 -4
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.140
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -568,6 +568,70 @@ module OryClient
|
|
568
568
|
return data, status_code, headers
|
569
569
|
end
|
570
570
|
|
571
|
+
# Create a Project
|
572
|
+
# Creates a new project.
|
573
|
+
# @param [Hash] opts the optional parameters
|
574
|
+
# @option opts [CreateProjectBody] :create_project_body
|
575
|
+
# @return [Project]
|
576
|
+
def create_project(opts = {})
|
577
|
+
data, _status_code, _headers = create_project_with_http_info(opts)
|
578
|
+
data
|
579
|
+
end
|
580
|
+
|
581
|
+
# Create a Project
|
582
|
+
# Creates a new project.
|
583
|
+
# @param [Hash] opts the optional parameters
|
584
|
+
# @option opts [CreateProjectBody] :create_project_body
|
585
|
+
# @return [Array<(Project, Integer, Hash)>] Project data, response status code and response headers
|
586
|
+
def create_project_with_http_info(opts = {})
|
587
|
+
if @api_client.config.debugging
|
588
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.create_project ...'
|
589
|
+
end
|
590
|
+
# resource path
|
591
|
+
local_var_path = '/projects'
|
592
|
+
|
593
|
+
# query parameters
|
594
|
+
query_params = opts[:query_params] || {}
|
595
|
+
|
596
|
+
# header parameters
|
597
|
+
header_params = opts[:header_params] || {}
|
598
|
+
# HTTP header 'Accept' (if needed)
|
599
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
600
|
+
# HTTP header 'Content-Type'
|
601
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
602
|
+
if !content_type.nil?
|
603
|
+
header_params['Content-Type'] = content_type
|
604
|
+
end
|
605
|
+
|
606
|
+
# form parameters
|
607
|
+
form_params = opts[:form_params] || {}
|
608
|
+
|
609
|
+
# http body (model)
|
610
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_project_body'])
|
611
|
+
|
612
|
+
# return_type
|
613
|
+
return_type = opts[:debug_return_type] || 'Project'
|
614
|
+
|
615
|
+
# auth_names
|
616
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
617
|
+
|
618
|
+
new_options = opts.merge(
|
619
|
+
:operation => :"V0alpha2Api.create_project",
|
620
|
+
:header_params => header_params,
|
621
|
+
:query_params => query_params,
|
622
|
+
:form_params => form_params,
|
623
|
+
:body => post_body,
|
624
|
+
:auth_names => auth_names,
|
625
|
+
:return_type => return_type
|
626
|
+
)
|
627
|
+
|
628
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
629
|
+
if @api_client.config.debugging
|
630
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#create_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
631
|
+
end
|
632
|
+
return data, status_code, headers
|
633
|
+
end
|
634
|
+
|
571
635
|
# Create a Logout URL for Browsers
|
572
636
|
# This endpoint initializes a browser-based user logout flow and a URL which can be used to log out the user. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). For API clients you can call the `/self-service/logout/api` URL directly with the Ory Session Token. The URL is only valid for the currently signed in user. If no user is signed in, this endpoint returns a 401 error. When calling this endpoint from a backend, please ensure to properly forward the HTTP cookies.
|
573
637
|
# @param [Hash] opts the optional parameters
|
@@ -689,6 +753,132 @@ module OryClient
|
|
689
753
|
return data, status_code, headers
|
690
754
|
end
|
691
755
|
|
756
|
+
# Get a Project
|
757
|
+
# Get a projects you have access to by its ID.
|
758
|
+
# @param project_id [String] Project ID The project's ID.
|
759
|
+
# @param [Hash] opts the optional parameters
|
760
|
+
# @return [Project]
|
761
|
+
def get_project(project_id, opts = {})
|
762
|
+
data, _status_code, _headers = get_project_with_http_info(project_id, opts)
|
763
|
+
data
|
764
|
+
end
|
765
|
+
|
766
|
+
# Get a Project
|
767
|
+
# Get a projects you have access to by its ID.
|
768
|
+
# @param project_id [String] Project ID The project's ID.
|
769
|
+
# @param [Hash] opts the optional parameters
|
770
|
+
# @return [Array<(Project, Integer, Hash)>] Project data, response status code and response headers
|
771
|
+
def get_project_with_http_info(project_id, opts = {})
|
772
|
+
if @api_client.config.debugging
|
773
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.get_project ...'
|
774
|
+
end
|
775
|
+
# verify the required parameter 'project_id' is set
|
776
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
777
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling V0alpha2Api.get_project"
|
778
|
+
end
|
779
|
+
# resource path
|
780
|
+
local_var_path = '/projects/{project_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
|
781
|
+
|
782
|
+
# query parameters
|
783
|
+
query_params = opts[:query_params] || {}
|
784
|
+
|
785
|
+
# header parameters
|
786
|
+
header_params = opts[:header_params] || {}
|
787
|
+
# HTTP header 'Accept' (if needed)
|
788
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
789
|
+
|
790
|
+
# form parameters
|
791
|
+
form_params = opts[:form_params] || {}
|
792
|
+
|
793
|
+
# http body (model)
|
794
|
+
post_body = opts[:debug_body]
|
795
|
+
|
796
|
+
# return_type
|
797
|
+
return_type = opts[:debug_return_type] || 'Project'
|
798
|
+
|
799
|
+
# auth_names
|
800
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
801
|
+
|
802
|
+
new_options = opts.merge(
|
803
|
+
:operation => :"V0alpha2Api.get_project",
|
804
|
+
:header_params => header_params,
|
805
|
+
:query_params => query_params,
|
806
|
+
:form_params => form_params,
|
807
|
+
:body => post_body,
|
808
|
+
:auth_names => auth_names,
|
809
|
+
:return_type => return_type
|
810
|
+
)
|
811
|
+
|
812
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
813
|
+
if @api_client.config.debugging
|
814
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#get_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
815
|
+
end
|
816
|
+
return data, status_code, headers
|
817
|
+
end
|
818
|
+
|
819
|
+
# Get all members associated with this project.
|
820
|
+
# This endpoint requires the user to be a member of the project with the role `OWNER` or `DEVELOPER`.
|
821
|
+
# @param project_id [String] Project ID The project's ID.
|
822
|
+
# @param [Hash] opts the optional parameters
|
823
|
+
# @return [Array<CloudAccount>]
|
824
|
+
def get_project_members(project_id, opts = {})
|
825
|
+
data, _status_code, _headers = get_project_members_with_http_info(project_id, opts)
|
826
|
+
data
|
827
|
+
end
|
828
|
+
|
829
|
+
# Get all members associated with this project.
|
830
|
+
# This endpoint requires the user to be a member of the project with the role `OWNER` or `DEVELOPER`.
|
831
|
+
# @param project_id [String] Project ID The project's ID.
|
832
|
+
# @param [Hash] opts the optional parameters
|
833
|
+
# @return [Array<(Array<CloudAccount>, Integer, Hash)>] Array<CloudAccount> data, response status code and response headers
|
834
|
+
def get_project_members_with_http_info(project_id, opts = {})
|
835
|
+
if @api_client.config.debugging
|
836
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.get_project_members ...'
|
837
|
+
end
|
838
|
+
# verify the required parameter 'project_id' is set
|
839
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
840
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling V0alpha2Api.get_project_members"
|
841
|
+
end
|
842
|
+
# resource path
|
843
|
+
local_var_path = '/projects/{project_id}/members'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
|
844
|
+
|
845
|
+
# query parameters
|
846
|
+
query_params = opts[:query_params] || {}
|
847
|
+
|
848
|
+
# header parameters
|
849
|
+
header_params = opts[:header_params] || {}
|
850
|
+
# HTTP header 'Accept' (if needed)
|
851
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
852
|
+
|
853
|
+
# form parameters
|
854
|
+
form_params = opts[:form_params] || {}
|
855
|
+
|
856
|
+
# http body (model)
|
857
|
+
post_body = opts[:debug_body]
|
858
|
+
|
859
|
+
# return_type
|
860
|
+
return_type = opts[:debug_return_type] || 'Array<CloudAccount>'
|
861
|
+
|
862
|
+
# auth_names
|
863
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
864
|
+
|
865
|
+
new_options = opts.merge(
|
866
|
+
:operation => :"V0alpha2Api.get_project_members",
|
867
|
+
:header_params => header_params,
|
868
|
+
:query_params => query_params,
|
869
|
+
:form_params => form_params,
|
870
|
+
:body => post_body,
|
871
|
+
:auth_names => auth_names,
|
872
|
+
:return_type => return_type
|
873
|
+
)
|
874
|
+
|
875
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
876
|
+
if @api_client.config.debugging
|
877
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#get_project_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
878
|
+
end
|
879
|
+
return data, status_code, headers
|
880
|
+
end
|
881
|
+
|
692
882
|
# Get Self-Service Errors
|
693
883
|
# This endpoint returns the error associated with a user-facing self service errors. This endpoint supports stub values to help you implement the error UI: `?id=stub:500` - returns a stub 500 (Internal Server Error) error. More information can be found at [Ory Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors).
|
694
884
|
# @param id [String] Error is the error's ID
|
@@ -1824,6 +2014,63 @@ module OryClient
|
|
1824
2014
|
return data, status_code, headers
|
1825
2015
|
end
|
1826
2016
|
|
2017
|
+
# List All Projects
|
2018
|
+
# Lists all projects you have access to.
|
2019
|
+
# @param [Hash] opts the optional parameters
|
2020
|
+
# @return [Array<ProjectMetadata>]
|
2021
|
+
def list_projects(opts = {})
|
2022
|
+
data, _status_code, _headers = list_projects_with_http_info(opts)
|
2023
|
+
data
|
2024
|
+
end
|
2025
|
+
|
2026
|
+
# List All Projects
|
2027
|
+
# Lists all projects you have access to.
|
2028
|
+
# @param [Hash] opts the optional parameters
|
2029
|
+
# @return [Array<(Array<ProjectMetadata>, Integer, Hash)>] Array<ProjectMetadata> data, response status code and response headers
|
2030
|
+
def list_projects_with_http_info(opts = {})
|
2031
|
+
if @api_client.config.debugging
|
2032
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.list_projects ...'
|
2033
|
+
end
|
2034
|
+
# resource path
|
2035
|
+
local_var_path = '/projects'
|
2036
|
+
|
2037
|
+
# query parameters
|
2038
|
+
query_params = opts[:query_params] || {}
|
2039
|
+
|
2040
|
+
# header parameters
|
2041
|
+
header_params = opts[:header_params] || {}
|
2042
|
+
# HTTP header 'Accept' (if needed)
|
2043
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2044
|
+
|
2045
|
+
# form parameters
|
2046
|
+
form_params = opts[:form_params] || {}
|
2047
|
+
|
2048
|
+
# http body (model)
|
2049
|
+
post_body = opts[:debug_body]
|
2050
|
+
|
2051
|
+
# return_type
|
2052
|
+
return_type = opts[:debug_return_type] || 'Array<ProjectMetadata>'
|
2053
|
+
|
2054
|
+
# auth_names
|
2055
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
2056
|
+
|
2057
|
+
new_options = opts.merge(
|
2058
|
+
:operation => :"V0alpha2Api.list_projects",
|
2059
|
+
:header_params => header_params,
|
2060
|
+
:query_params => query_params,
|
2061
|
+
:form_params => form_params,
|
2062
|
+
:body => post_body,
|
2063
|
+
:auth_names => auth_names,
|
2064
|
+
:return_type => return_type
|
2065
|
+
)
|
2066
|
+
|
2067
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2068
|
+
if @api_client.config.debugging
|
2069
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#list_projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2070
|
+
end
|
2071
|
+
return data, status_code, headers
|
2072
|
+
end
|
2073
|
+
|
1827
2074
|
# This endpoints returns all other active sessions that belong to the logged-in user. The current session can be retrieved by calling the `/sessions/whoami` endpoint.
|
1828
2075
|
# This endpoint is useful for: Displaying all other sessions that belong to the logged-in user
|
1829
2076
|
# @param [Hash] opts the optional parameters
|
@@ -1905,6 +2152,208 @@ module OryClient
|
|
1905
2152
|
return data, status_code, headers
|
1906
2153
|
end
|
1907
2154
|
|
2155
|
+
# Patch an Ory Cloud Project Configuration
|
2156
|
+
# This endpoints allows you to patch individual Ory Cloud 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 Ory Cloud, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed.
|
2157
|
+
# @param project_id [String] Project ID The project's ID.
|
2158
|
+
# @param [Hash] opts the optional parameters
|
2159
|
+
# @option opts [Array<JsonPatch>] :json_patch
|
2160
|
+
# @return [SuccessfulProjectUpdate]
|
2161
|
+
def patch_project(project_id, opts = {})
|
2162
|
+
data, _status_code, _headers = patch_project_with_http_info(project_id, opts)
|
2163
|
+
data
|
2164
|
+
end
|
2165
|
+
|
2166
|
+
# Patch an Ory Cloud Project Configuration
|
2167
|
+
# This endpoints allows you to patch individual Ory Cloud 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 Ory Cloud, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed.
|
2168
|
+
# @param project_id [String] Project ID The project's ID.
|
2169
|
+
# @param [Hash] opts the optional parameters
|
2170
|
+
# @option opts [Array<JsonPatch>] :json_patch
|
2171
|
+
# @return [Array<(SuccessfulProjectUpdate, Integer, Hash)>] SuccessfulProjectUpdate data, response status code and response headers
|
2172
|
+
def patch_project_with_http_info(project_id, opts = {})
|
2173
|
+
if @api_client.config.debugging
|
2174
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.patch_project ...'
|
2175
|
+
end
|
2176
|
+
# verify the required parameter 'project_id' is set
|
2177
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
2178
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling V0alpha2Api.patch_project"
|
2179
|
+
end
|
2180
|
+
# resource path
|
2181
|
+
local_var_path = '/projects/{project_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
|
2182
|
+
|
2183
|
+
# query parameters
|
2184
|
+
query_params = opts[:query_params] || {}
|
2185
|
+
|
2186
|
+
# header parameters
|
2187
|
+
header_params = opts[:header_params] || {}
|
2188
|
+
# HTTP header 'Accept' (if needed)
|
2189
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2190
|
+
# HTTP header 'Content-Type'
|
2191
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2192
|
+
if !content_type.nil?
|
2193
|
+
header_params['Content-Type'] = content_type
|
2194
|
+
end
|
2195
|
+
|
2196
|
+
# form parameters
|
2197
|
+
form_params = opts[:form_params] || {}
|
2198
|
+
|
2199
|
+
# http body (model)
|
2200
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'json_patch'])
|
2201
|
+
|
2202
|
+
# return_type
|
2203
|
+
return_type = opts[:debug_return_type] || 'SuccessfulProjectUpdate'
|
2204
|
+
|
2205
|
+
# auth_names
|
2206
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
2207
|
+
|
2208
|
+
new_options = opts.merge(
|
2209
|
+
:operation => :"V0alpha2Api.patch_project",
|
2210
|
+
:header_params => header_params,
|
2211
|
+
:query_params => query_params,
|
2212
|
+
:form_params => form_params,
|
2213
|
+
:body => post_body,
|
2214
|
+
:auth_names => auth_names,
|
2215
|
+
:return_type => return_type
|
2216
|
+
)
|
2217
|
+
|
2218
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
2219
|
+
if @api_client.config.debugging
|
2220
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#patch_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2221
|
+
end
|
2222
|
+
return data, status_code, headers
|
2223
|
+
end
|
2224
|
+
|
2225
|
+
# Irrecoverably Purge a Project
|
2226
|
+
# !! 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. !! Use with extreme caution !!
|
2227
|
+
# @param project_id [String] Project ID The project's ID.
|
2228
|
+
# @param [Hash] opts the optional parameters
|
2229
|
+
# @return [nil]
|
2230
|
+
def purge_project(project_id, opts = {})
|
2231
|
+
purge_project_with_http_info(project_id, opts)
|
2232
|
+
nil
|
2233
|
+
end
|
2234
|
+
|
2235
|
+
# Irrecoverably Purge a Project
|
2236
|
+
# !! 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. !! Use with extreme caution !!
|
2237
|
+
# @param project_id [String] Project ID The project's ID.
|
2238
|
+
# @param [Hash] opts the optional parameters
|
2239
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
2240
|
+
def purge_project_with_http_info(project_id, opts = {})
|
2241
|
+
if @api_client.config.debugging
|
2242
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.purge_project ...'
|
2243
|
+
end
|
2244
|
+
# verify the required parameter 'project_id' is set
|
2245
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
2246
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling V0alpha2Api.purge_project"
|
2247
|
+
end
|
2248
|
+
# resource path
|
2249
|
+
local_var_path = '/projects/{project_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
|
2250
|
+
|
2251
|
+
# query parameters
|
2252
|
+
query_params = opts[:query_params] || {}
|
2253
|
+
|
2254
|
+
# header parameters
|
2255
|
+
header_params = opts[:header_params] || {}
|
2256
|
+
# HTTP header 'Accept' (if needed)
|
2257
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2258
|
+
|
2259
|
+
# form parameters
|
2260
|
+
form_params = opts[:form_params] || {}
|
2261
|
+
|
2262
|
+
# http body (model)
|
2263
|
+
post_body = opts[:debug_body]
|
2264
|
+
|
2265
|
+
# return_type
|
2266
|
+
return_type = opts[:debug_return_type]
|
2267
|
+
|
2268
|
+
# auth_names
|
2269
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
2270
|
+
|
2271
|
+
new_options = opts.merge(
|
2272
|
+
:operation => :"V0alpha2Api.purge_project",
|
2273
|
+
:header_params => header_params,
|
2274
|
+
:query_params => query_params,
|
2275
|
+
:form_params => form_params,
|
2276
|
+
:body => post_body,
|
2277
|
+
:auth_names => auth_names,
|
2278
|
+
:return_type => return_type
|
2279
|
+
)
|
2280
|
+
|
2281
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
2282
|
+
if @api_client.config.debugging
|
2283
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#purge_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2284
|
+
end
|
2285
|
+
return data, status_code, headers
|
2286
|
+
end
|
2287
|
+
|
2288
|
+
# Remove a member associated with this project. This also sets their invite status to `REMOVED`.
|
2289
|
+
# This endpoint requires the user to be a member of the project with the role `OWNER`.
|
2290
|
+
# @param project_id [String] Project ID The project's ID.
|
2291
|
+
# @param member_id [String] Member ID
|
2292
|
+
# @param [Hash] opts the optional parameters
|
2293
|
+
# @return [nil]
|
2294
|
+
def remove_project_member(project_id, member_id, opts = {})
|
2295
|
+
remove_project_member_with_http_info(project_id, member_id, opts)
|
2296
|
+
nil
|
2297
|
+
end
|
2298
|
+
|
2299
|
+
# Remove a member associated with this project. This also sets their invite status to `REMOVED`.
|
2300
|
+
# This endpoint requires the user to be a member of the project with the role `OWNER`.
|
2301
|
+
# @param project_id [String] Project ID The project's ID.
|
2302
|
+
# @param member_id [String] Member ID
|
2303
|
+
# @param [Hash] opts the optional parameters
|
2304
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
2305
|
+
def remove_project_member_with_http_info(project_id, member_id, opts = {})
|
2306
|
+
if @api_client.config.debugging
|
2307
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.remove_project_member ...'
|
2308
|
+
end
|
2309
|
+
# verify the required parameter 'project_id' is set
|
2310
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
2311
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling V0alpha2Api.remove_project_member"
|
2312
|
+
end
|
2313
|
+
# verify the required parameter 'member_id' is set
|
2314
|
+
if @api_client.config.client_side_validation && member_id.nil?
|
2315
|
+
fail ArgumentError, "Missing the required parameter 'member_id' when calling V0alpha2Api.remove_project_member"
|
2316
|
+
end
|
2317
|
+
# resource path
|
2318
|
+
local_var_path = '/projects/{project_id}/members/{member_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'member_id' + '}', CGI.escape(member_id.to_s))
|
2319
|
+
|
2320
|
+
# query parameters
|
2321
|
+
query_params = opts[:query_params] || {}
|
2322
|
+
|
2323
|
+
# header parameters
|
2324
|
+
header_params = opts[:header_params] || {}
|
2325
|
+
# HTTP header 'Accept' (if needed)
|
2326
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2327
|
+
|
2328
|
+
# form parameters
|
2329
|
+
form_params = opts[:form_params] || {}
|
2330
|
+
|
2331
|
+
# http body (model)
|
2332
|
+
post_body = opts[:debug_body]
|
2333
|
+
|
2334
|
+
# return_type
|
2335
|
+
return_type = opts[:debug_return_type]
|
2336
|
+
|
2337
|
+
# auth_names
|
2338
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
2339
|
+
|
2340
|
+
new_options = opts.merge(
|
2341
|
+
:operation => :"V0alpha2Api.remove_project_member",
|
2342
|
+
:header_params => header_params,
|
2343
|
+
:query_params => query_params,
|
2344
|
+
:form_params => form_params,
|
2345
|
+
:body => post_body,
|
2346
|
+
:auth_names => auth_names,
|
2347
|
+
:return_type => return_type
|
2348
|
+
)
|
2349
|
+
|
2350
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
2351
|
+
if @api_client.config.debugging
|
2352
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#remove_project_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2353
|
+
end
|
2354
|
+
return data, status_code, headers
|
2355
|
+
end
|
2356
|
+
|
1908
2357
|
# Calling this endpoint invalidates the specified session. The current session cannot be revoked. Session data are not deleted.
|
1909
2358
|
# This endpoint is useful for: To forcefully logout the current user from another device or session
|
1910
2359
|
# @param id [String] ID is the session's ID.
|
@@ -2591,5 +3040,75 @@ module OryClient
|
|
2591
3040
|
end
|
2592
3041
|
return data, status_code, headers
|
2593
3042
|
end
|
3043
|
+
|
3044
|
+
# Update an Ory Cloud Project Configuration
|
3045
|
+
# This endpoints allows you to update the Ory Cloud 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 Ory Cloud, 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!
|
3046
|
+
# @param project_id [String] Project ID The project's ID.
|
3047
|
+
# @param [Hash] opts the optional parameters
|
3048
|
+
# @option opts [UpdateProject] :update_project
|
3049
|
+
# @return [SuccessfulProjectUpdate]
|
3050
|
+
def update_project(project_id, opts = {})
|
3051
|
+
data, _status_code, _headers = update_project_with_http_info(project_id, opts)
|
3052
|
+
data
|
3053
|
+
end
|
3054
|
+
|
3055
|
+
# Update an Ory Cloud Project Configuration
|
3056
|
+
# This endpoints allows you to update the Ory Cloud 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 Ory Cloud, 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!
|
3057
|
+
# @param project_id [String] Project ID The project's ID.
|
3058
|
+
# @param [Hash] opts the optional parameters
|
3059
|
+
# @option opts [UpdateProject] :update_project
|
3060
|
+
# @return [Array<(SuccessfulProjectUpdate, Integer, Hash)>] SuccessfulProjectUpdate data, response status code and response headers
|
3061
|
+
def update_project_with_http_info(project_id, opts = {})
|
3062
|
+
if @api_client.config.debugging
|
3063
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.update_project ...'
|
3064
|
+
end
|
3065
|
+
# verify the required parameter 'project_id' is set
|
3066
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
3067
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling V0alpha2Api.update_project"
|
3068
|
+
end
|
3069
|
+
# resource path
|
3070
|
+
local_var_path = '/projects/{project_id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
|
3071
|
+
|
3072
|
+
# query parameters
|
3073
|
+
query_params = opts[:query_params] || {}
|
3074
|
+
|
3075
|
+
# header parameters
|
3076
|
+
header_params = opts[:header_params] || {}
|
3077
|
+
# HTTP header 'Accept' (if needed)
|
3078
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3079
|
+
# HTTP header 'Content-Type'
|
3080
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
3081
|
+
if !content_type.nil?
|
3082
|
+
header_params['Content-Type'] = content_type
|
3083
|
+
end
|
3084
|
+
|
3085
|
+
# form parameters
|
3086
|
+
form_params = opts[:form_params] || {}
|
3087
|
+
|
3088
|
+
# http body (model)
|
3089
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_project'])
|
3090
|
+
|
3091
|
+
# return_type
|
3092
|
+
return_type = opts[:debug_return_type] || 'SuccessfulProjectUpdate'
|
3093
|
+
|
3094
|
+
# auth_names
|
3095
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
3096
|
+
|
3097
|
+
new_options = opts.merge(
|
3098
|
+
:operation => :"V0alpha2Api.update_project",
|
3099
|
+
:header_params => header_params,
|
3100
|
+
:query_params => query_params,
|
3101
|
+
:form_params => form_params,
|
3102
|
+
:body => post_body,
|
3103
|
+
:auth_names => auth_names,
|
3104
|
+
:return_type => return_type
|
3105
|
+
)
|
3106
|
+
|
3107
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
3108
|
+
if @api_client.config.debugging
|
3109
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#update_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3110
|
+
end
|
3111
|
+
return data, status_code, headers
|
3112
|
+
end
|
2594
3113
|
end
|
2595
3114
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.140
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
data/lib/ory-client/api_error.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.140
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.140
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.140
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.140
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.140
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.140
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.140
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.140
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.140
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.140
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|