ory-client 0.0.1.alpha168 → 0.0.1.alpha176
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +27 -5
- data/docs/AdminCreateIdentityBody.md +4 -0
- data/docs/AdminUpdateIdentityBody.md +4 -0
- data/docs/CnameSettings.md +4 -0
- data/docs/CreateCustomHostnameBody.md +4 -0
- data/docs/ExpandTree.md +24 -0
- data/docs/GenericError.md +1 -1
- data/docs/GetCheckResponse.md +18 -0
- data/docs/GetRelationTuplesResponse.md +20 -0
- data/docs/Identity.md +4 -0
- data/docs/InternalRelationTuple.md +26 -0
- data/docs/KetoNamespace.md +20 -0
- data/docs/MetadataApi.md +18 -3
- data/docs/NormalizedProject.md +1 -1
- data/docs/NormalizedProjectRevision.md +4 -0
- data/docs/PatchDelta.md +20 -0
- data/docs/Project.md +1 -1
- data/docs/ProjectMetadata.md +1 -1
- data/docs/ProjectServicePermission.md +18 -0
- data/docs/ProjectServices.md +4 -2
- data/docs/ReadApi.md +333 -0
- data/docs/RelationQuery.md +26 -0
- data/docs/SelfServiceRecoveryFlow.md +1 -1
- data/docs/SelfServiceRegistrationFlow.md +1 -1
- data/docs/SelfServiceSettingsFlow.md +1 -1
- data/docs/SubjectSet.md +22 -0
- data/docs/SubmitSelfServiceLoginFlowWithPasswordMethodBody.md +1 -1
- data/docs/Subscription.md +1 -1
- data/docs/UiNode.md +2 -2
- data/docs/UiNodeAnchorAttributes.md +1 -1
- data/docs/UiNodeAttributes.md +2 -2
- data/docs/UiNodeImageAttributes.md +1 -1
- data/docs/UiNodeInputAttributes.md +1 -1
- data/docs/UiNodeScriptAttributes.md +1 -1
- data/docs/UiNodeTextAttributes.md +1 -1
- data/docs/UpdateCustomHostnameBody.md +4 -0
- data/docs/V0alpha2Api.md +5 -3
- data/docs/WriteApi.md +233 -0
- data/lib/ory-client/api/metadata_api.rb +4 -4
- data/lib/ory-client/api/read_api.rb +335 -0
- data/lib/ory-client/api/v0alpha2_api.rb +8 -5
- data/lib/ory-client/api/write_api.rb +228 -0
- 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 +24 -2
- 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 +24 -2
- 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 +22 -2
- data/lib/ory-client/models/create_custom_hostname_body.rb +24 -2
- 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/expand_tree.rb +286 -0
- data/lib/ory-client/models/generic_error.rb +5 -3
- data/lib/ory-client/models/generic_error_content.rb +1 -1
- data/lib/ory-client/models/get_check_response.rb +225 -0
- data/lib/ory-client/models/get_relation_tuples_response.rb +230 -0
- 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 +22 -2
- 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/internal_relation_tuple.rb +273 -0
- 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/keto_namespace.rb +227 -0
- data/lib/ory-client/models/needs_privileged_session_error.rb +1 -1
- data/lib/ory-client/models/normalized_project.rb +3 -2
- data/lib/ory-client/models/normalized_project_revision.rb +23 -2
- data/lib/ory-client/models/normalized_project_revision_hook.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_identity_schema.rb +2 -1
- data/lib/ory-client/models/normalized_project_revision_third_party_provider.rb +3 -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/patch_delta.rb +261 -0
- data/lib/ory-client/models/project.rb +2 -2
- data/lib/ory-client/models/project_host.rb +1 -1
- data/lib/ory-client/models/project_invite.rb +2 -1
- data/lib/ory-client/models/project_metadata.rb +3 -2
- data/lib/ory-client/models/project_service_identity.rb +1 -1
- data/lib/ory-client/models/project_service_permission.rb +223 -0
- data/lib/ory-client/models/project_services.rb +14 -10
- 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/relation_query.rb +258 -0
- 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 +6 -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 +6 -1
- data/lib/ory-client/models/self_service_settings_flow.rb +6 -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 +3 -3
- 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/subject_set.rb +254 -0
- 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 -6
- 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 +3 -2
- 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 +49 -1
- data/lib/ory-client/models/ui_node_anchor_attributes.rb +2 -1
- data/lib/ory-client/models/ui_node_attributes.rb +3 -3
- data/lib/ory-client/models/ui_node_image_attributes.rb +2 -1
- data/lib/ory-client/models/ui_node_input_attributes.rb +2 -1
- data/lib/ory-client/models/ui_node_meta.rb +1 -1
- data/lib/ory-client/models/ui_node_script_attributes.rb +2 -1
- data/lib/ory-client/models/ui_node_text_attributes.rb +2 -1
- data/lib/ory-client/models/ui_text.rb +1 -1
- data/lib/ory-client/models/update_custom_hostname_body.rb +24 -2
- 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 +12 -1
- data/ory-client.gemspec +1 -1
- data/spec/api/metadata_api_spec.rb +1 -1
- data/spec/api/read_api_spec.rb +102 -0
- data/spec/api/v0alpha2_api_spec.rb +4 -3
- data/spec/api/write_api_spec.rb +77 -0
- 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 +13 -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 +13 -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 +13 -1
- data/spec/models/create_custom_hostname_body_spec.rb +13 -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/expand_tree_spec.rb +56 -0
- data/spec/models/generic_error_content_spec.rb +1 -1
- data/spec/models/generic_error_spec.rb +1 -1
- data/spec/models/get_check_response_spec.rb +34 -0
- data/spec/models/get_relation_tuples_response_spec.rb +40 -0
- 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 +13 -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/internal_relation_tuple_spec.rb +58 -0
- 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/keto_namespace_spec.rb +40 -0
- 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 +13 -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/patch_delta_spec.rb +44 -0
- 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 +1 -1
- data/spec/models/project_service_identity_spec.rb +1 -1
- data/spec/models/project_service_permission_spec.rb +34 -0
- data/spec/models/project_services_spec.rb +7 -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/relation_query_spec.rb +58 -0
- 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 +2 -2
- 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/subject_set_spec.rb +46 -0
- 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 +9 -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 +13 -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/psych-4.0.4.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/stringio-3.0.2.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 → psych-4.0.4}/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.3 → psych-4.0.4}/gem_make.out +6 -6
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.3 → psych-4.0.4}/mkmf.log +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.3 → psych-4.0.4}/psych.so +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{stringio-3.0.1 → stringio-3.0.2}/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{stringio-3.0.1 → stringio-3.0.2}/gem_make.out +6 -6
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{stringio-3.0.1 → stringio-3.0.2}/mkmf.log +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{stringio-3.0.1 → stringio-3.0.2}/stringio.so +0 -0
- 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/{psych-4.0.3 → psych-4.0.4}/.gitignore +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/Gemfile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/LICENSE +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/Mavenfile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/README.md +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/Rakefile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/bin/console +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/bin/setup +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/.sitearchdir.time +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/api.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/depend +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/dumper.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/emitter.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/extconf.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/loader.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/parser.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3/lib → psych-4.0.4/ext/psych}/psych.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_emitter.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_emitter.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_emitter.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_parser.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_parser.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_parser.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_to_ruby.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_to_ruby.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_to_ruby.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_yaml_tree.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_yaml_tree.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/psych_yaml_tree.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/reader.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/scanner.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/writer.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/LICENSE +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/api.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/config.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/dumper.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/emitter.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/loader.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/parser.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/reader.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/scanner.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/writer.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/yaml.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/ext/psych/yaml/yaml_private.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/class_loader.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/coder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/core_ext.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/exception.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/handler.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/handlers/document_stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/handlers/recorder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/json/ruby_events.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/json/stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/json/tree_builder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/json/yaml_events.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/nodes/alias.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/nodes/document.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/nodes/mapping.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/nodes/node.rb +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/nodes/scalar.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/nodes/sequence.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/nodes/stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/nodes.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/omap.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/parser.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/scalar_scanner.rb +17 -10
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/set.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/streaming.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/syntax_error.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/tree_builder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/versions.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/visitors/depth_first.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/visitors/emitter.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/visitors/json_tree.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/visitors/to_ruby.rb +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/visitors/visitor.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/visitors/yaml_tree.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/visitors.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych/y.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/lib/psych.rb +7 -7
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3/ext/psych → psych-4.0.4/lib}/psych.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.3 → psych-4.0.4}/psych.gemspec +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{stringio-3.0.1 → stringio-3.0.2}/README.md +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{stringio-3.0.1 → stringio-3.0.2}/ext/stringio/.sitearchdir.time +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{stringio-3.0.1 → stringio-3.0.2}/ext/stringio/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{stringio-3.0.1 → stringio-3.0.2}/ext/stringio/extconf.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{stringio-3.0.1 → stringio-3.0.2}/ext/stringio/stringio.c +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/{stringio-3.0.1 → stringio-3.0.2}/ext/stringio/stringio.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{stringio-3.0.1/lib → stringio-3.0.2/ext/stringio}/stringio.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{stringio-3.0.1/ext/stringio → stringio-3.0.2/lib}/stringio.so +0 -0
- data/vendor/bundle/ruby/2.5.0/specifications/{psych-4.0.3.gemspec → psych-4.0.4.gemspec} +3 -3
- data/vendor/bundle/ruby/2.5.0/specifications/{stringio-3.0.1.gemspec → stringio-3.0.2.gemspec} +5 -5
- metadata +154 -110
- data/vendor/bundle/ruby/2.5.0/cache/psych-4.0.3.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/stringio-3.0.1.gem +0 -0
@@ -0,0 +1,228 @@
|
|
1
|
+
=begin
|
2
|
+
#Ory APIs
|
3
|
+
|
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
|
+
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.176
|
7
|
+
Contact: support@ory.sh
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module OryClient
|
16
|
+
class WriteApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create a Relation Tuple
|
23
|
+
# Use this endpoint to create a relation tuple.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [RelationQuery] :relation_query
|
26
|
+
# @return [RelationQuery]
|
27
|
+
def create_relation_tuple(opts = {})
|
28
|
+
data, _status_code, _headers = create_relation_tuple_with_http_info(opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create a Relation Tuple
|
33
|
+
# Use this endpoint to create a relation tuple.
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @option opts [RelationQuery] :relation_query
|
36
|
+
# @return [Array<(RelationQuery, Integer, Hash)>] RelationQuery data, response status code and response headers
|
37
|
+
def create_relation_tuple_with_http_info(opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: WriteApi.create_relation_tuple ...'
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/admin/relation-tuples'
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = opts[:query_params] || {}
|
46
|
+
|
47
|
+
# header parameters
|
48
|
+
header_params = opts[:header_params] || {}
|
49
|
+
# HTTP header 'Accept' (if needed)
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
51
|
+
# HTTP header 'Content-Type'
|
52
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
53
|
+
if !content_type.nil?
|
54
|
+
header_params['Content-Type'] = content_type
|
55
|
+
end
|
56
|
+
|
57
|
+
# form parameters
|
58
|
+
form_params = opts[:form_params] || {}
|
59
|
+
|
60
|
+
# http body (model)
|
61
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'relation_query'])
|
62
|
+
|
63
|
+
# return_type
|
64
|
+
return_type = opts[:debug_return_type] || 'RelationQuery'
|
65
|
+
|
66
|
+
# auth_names
|
67
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
68
|
+
|
69
|
+
new_options = opts.merge(
|
70
|
+
:operation => :"WriteApi.create_relation_tuple",
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: WriteApi#create_relation_tuple\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# Delete Relation Tuples
|
87
|
+
# Use this endpoint to delete relation tuples
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [String] :namespace Namespace of the Relation Tuple
|
90
|
+
# @option opts [String] :object Object of the Relation Tuple
|
91
|
+
# @option opts [String] :relation Relation of the Relation Tuple
|
92
|
+
# @option opts [String] :subject_id SubjectID of the Relation Tuple
|
93
|
+
# @option opts [String] :subject_set_namespace Namespace of the Subject Set
|
94
|
+
# @option opts [String] :subject_set_object Object of the Subject Set
|
95
|
+
# @option opts [String] :subject_set_relation Relation of the Subject Set
|
96
|
+
# @return [nil]
|
97
|
+
def delete_relation_tuples(opts = {})
|
98
|
+
delete_relation_tuples_with_http_info(opts)
|
99
|
+
nil
|
100
|
+
end
|
101
|
+
|
102
|
+
# Delete Relation Tuples
|
103
|
+
# Use this endpoint to delete relation tuples
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @option opts [String] :namespace Namespace of the Relation Tuple
|
106
|
+
# @option opts [String] :object Object of the Relation Tuple
|
107
|
+
# @option opts [String] :relation Relation of the Relation Tuple
|
108
|
+
# @option opts [String] :subject_id SubjectID of the Relation Tuple
|
109
|
+
# @option opts [String] :subject_set_namespace Namespace of the Subject Set
|
110
|
+
# @option opts [String] :subject_set_object Object of the Subject Set
|
111
|
+
# @option opts [String] :subject_set_relation Relation of the Subject Set
|
112
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
113
|
+
def delete_relation_tuples_with_http_info(opts = {})
|
114
|
+
if @api_client.config.debugging
|
115
|
+
@api_client.config.logger.debug 'Calling API: WriteApi.delete_relation_tuples ...'
|
116
|
+
end
|
117
|
+
# resource path
|
118
|
+
local_var_path = '/admin/relation-tuples'
|
119
|
+
|
120
|
+
# query parameters
|
121
|
+
query_params = opts[:query_params] || {}
|
122
|
+
query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
|
123
|
+
query_params[:'object'] = opts[:'object'] if !opts[:'object'].nil?
|
124
|
+
query_params[:'relation'] = opts[:'relation'] if !opts[:'relation'].nil?
|
125
|
+
query_params[:'subject_id'] = opts[:'subject_id'] if !opts[:'subject_id'].nil?
|
126
|
+
query_params[:'subject_set.namespace'] = opts[:'subject_set_namespace'] if !opts[:'subject_set_namespace'].nil?
|
127
|
+
query_params[:'subject_set.object'] = opts[:'subject_set_object'] if !opts[:'subject_set_object'].nil?
|
128
|
+
query_params[:'subject_set.relation'] = opts[:'subject_set_relation'] if !opts[:'subject_set_relation'].nil?
|
129
|
+
|
130
|
+
# header parameters
|
131
|
+
header_params = opts[:header_params] || {}
|
132
|
+
# HTTP header 'Accept' (if needed)
|
133
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
134
|
+
|
135
|
+
# form parameters
|
136
|
+
form_params = opts[:form_params] || {}
|
137
|
+
|
138
|
+
# http body (model)
|
139
|
+
post_body = opts[:debug_body]
|
140
|
+
|
141
|
+
# return_type
|
142
|
+
return_type = opts[:debug_return_type]
|
143
|
+
|
144
|
+
# auth_names
|
145
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
146
|
+
|
147
|
+
new_options = opts.merge(
|
148
|
+
:operation => :"WriteApi.delete_relation_tuples",
|
149
|
+
:header_params => header_params,
|
150
|
+
:query_params => query_params,
|
151
|
+
:form_params => form_params,
|
152
|
+
:body => post_body,
|
153
|
+
:auth_names => auth_names,
|
154
|
+
:return_type => return_type
|
155
|
+
)
|
156
|
+
|
157
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
158
|
+
if @api_client.config.debugging
|
159
|
+
@api_client.config.logger.debug "API called: WriteApi#delete_relation_tuples\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
160
|
+
end
|
161
|
+
return data, status_code, headers
|
162
|
+
end
|
163
|
+
|
164
|
+
# Patch Multiple Relation Tuples
|
165
|
+
# Use this endpoint to patch one or more relation tuples.
|
166
|
+
# @param [Hash] opts the optional parameters
|
167
|
+
# @option opts [Array<PatchDelta>] :patch_delta
|
168
|
+
# @return [nil]
|
169
|
+
def patch_relation_tuples(opts = {})
|
170
|
+
patch_relation_tuples_with_http_info(opts)
|
171
|
+
nil
|
172
|
+
end
|
173
|
+
|
174
|
+
# Patch Multiple Relation Tuples
|
175
|
+
# Use this endpoint to patch one or more relation tuples.
|
176
|
+
# @param [Hash] opts the optional parameters
|
177
|
+
# @option opts [Array<PatchDelta>] :patch_delta
|
178
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
179
|
+
def patch_relation_tuples_with_http_info(opts = {})
|
180
|
+
if @api_client.config.debugging
|
181
|
+
@api_client.config.logger.debug 'Calling API: WriteApi.patch_relation_tuples ...'
|
182
|
+
end
|
183
|
+
# resource path
|
184
|
+
local_var_path = '/admin/relation-tuples'
|
185
|
+
|
186
|
+
# query parameters
|
187
|
+
query_params = opts[:query_params] || {}
|
188
|
+
|
189
|
+
# header parameters
|
190
|
+
header_params = opts[:header_params] || {}
|
191
|
+
# HTTP header 'Accept' (if needed)
|
192
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
193
|
+
# HTTP header 'Content-Type'
|
194
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
195
|
+
if !content_type.nil?
|
196
|
+
header_params['Content-Type'] = content_type
|
197
|
+
end
|
198
|
+
|
199
|
+
# form parameters
|
200
|
+
form_params = opts[:form_params] || {}
|
201
|
+
|
202
|
+
# http body (model)
|
203
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patch_delta'])
|
204
|
+
|
205
|
+
# return_type
|
206
|
+
return_type = opts[:debug_return_type]
|
207
|
+
|
208
|
+
# auth_names
|
209
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
210
|
+
|
211
|
+
new_options = opts.merge(
|
212
|
+
:operation => :"WriteApi.patch_relation_tuples",
|
213
|
+
:header_params => header_params,
|
214
|
+
:query_params => query_params,
|
215
|
+
:form_params => form_params,
|
216
|
+
:body => post_body,
|
217
|
+
:auth_names => auth_names,
|
218
|
+
:return_type => return_type
|
219
|
+
)
|
220
|
+
|
221
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
222
|
+
if @api_client.config.debugging
|
223
|
+
@api_client.config.logger.debug "API called: WriteApi#patch_relation_tuples\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
224
|
+
end
|
225
|
+
return data, status_code, headers
|
226
|
+
end
|
227
|
+
end
|
228
|
+
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.176
|
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.176
|
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.176
|
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.176
|
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.176
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -17,6 +17,12 @@ module OryClient
|
|
17
17
|
class AdminCreateIdentityBody
|
18
18
|
attr_accessor :credentials
|
19
19
|
|
20
|
+
# Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/<id>`.
|
21
|
+
attr_accessor :metadata_admin
|
22
|
+
|
23
|
+
# Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field.
|
24
|
+
attr_accessor :metadata_public
|
25
|
+
|
20
26
|
# RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update.
|
21
27
|
attr_accessor :recovery_addresses
|
22
28
|
|
@@ -35,6 +41,8 @@ module OryClient
|
|
35
41
|
def self.attribute_map
|
36
42
|
{
|
37
43
|
:'credentials' => :'credentials',
|
44
|
+
:'metadata_admin' => :'metadata_admin',
|
45
|
+
:'metadata_public' => :'metadata_public',
|
38
46
|
:'recovery_addresses' => :'recovery_addresses',
|
39
47
|
:'schema_id' => :'schema_id',
|
40
48
|
:'state' => :'state',
|
@@ -52,6 +60,8 @@ module OryClient
|
|
52
60
|
def self.openapi_types
|
53
61
|
{
|
54
62
|
:'credentials' => :'AdminIdentityImportCredentials',
|
63
|
+
:'metadata_admin' => :'Object',
|
64
|
+
:'metadata_public' => :'Object',
|
55
65
|
:'recovery_addresses' => :'Array<RecoveryAddress>',
|
56
66
|
:'schema_id' => :'String',
|
57
67
|
:'state' => :'IdentityState',
|
@@ -63,6 +73,8 @@ module OryClient
|
|
63
73
|
# List of attributes with nullable: true
|
64
74
|
def self.openapi_nullable
|
65
75
|
Set.new([
|
76
|
+
:'metadata_admin',
|
77
|
+
:'metadata_public',
|
66
78
|
])
|
67
79
|
end
|
68
80
|
|
@@ -85,6 +97,14 @@ module OryClient
|
|
85
97
|
self.credentials = attributes[:'credentials']
|
86
98
|
end
|
87
99
|
|
100
|
+
if attributes.key?(:'metadata_admin')
|
101
|
+
self.metadata_admin = attributes[:'metadata_admin']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'metadata_public')
|
105
|
+
self.metadata_public = attributes[:'metadata_public']
|
106
|
+
end
|
107
|
+
|
88
108
|
if attributes.key?(:'recovery_addresses')
|
89
109
|
if (value = attributes[:'recovery_addresses']).is_a?(Array)
|
90
110
|
self.recovery_addresses = value
|
@@ -139,6 +159,8 @@ module OryClient
|
|
139
159
|
return true if self.equal?(o)
|
140
160
|
self.class == o.class &&
|
141
161
|
credentials == o.credentials &&
|
162
|
+
metadata_admin == o.metadata_admin &&
|
163
|
+
metadata_public == o.metadata_public &&
|
142
164
|
recovery_addresses == o.recovery_addresses &&
|
143
165
|
schema_id == o.schema_id &&
|
144
166
|
state == o.state &&
|
@@ -155,7 +177,7 @@ module OryClient
|
|
155
177
|
# Calculates hash code according to all attributes.
|
156
178
|
# @return [Integer] Hash code
|
157
179
|
def hash
|
158
|
-
[credentials, recovery_addresses, schema_id, state, traits, verifiable_addresses].hash
|
180
|
+
[credentials, metadata_admin, metadata_public, recovery_addresses, schema_id, state, traits, verifiable_addresses].hash
|
159
181
|
end
|
160
182
|
|
161
183
|
# Builds the object from hash
|
@@ -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.176
|
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.176
|
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.176
|
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.176
|
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.176
|
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.176
|
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.176
|
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.176
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -15,6 +15,12 @@ require 'time'
|
|
15
15
|
|
16
16
|
module OryClient
|
17
17
|
class AdminUpdateIdentityBody
|
18
|
+
# Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/<id>`.
|
19
|
+
attr_accessor :metadata_admin
|
20
|
+
|
21
|
+
# Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field.
|
22
|
+
attr_accessor :metadata_public
|
23
|
+
|
18
24
|
# SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID.
|
19
25
|
attr_accessor :schema_id
|
20
26
|
|
@@ -26,6 +32,8 @@ module OryClient
|
|
26
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
33
|
def self.attribute_map
|
28
34
|
{
|
35
|
+
:'metadata_admin' => :'metadata_admin',
|
36
|
+
:'metadata_public' => :'metadata_public',
|
29
37
|
:'schema_id' => :'schema_id',
|
30
38
|
:'state' => :'state',
|
31
39
|
:'traits' => :'traits'
|
@@ -40,6 +48,8 @@ module OryClient
|
|
40
48
|
# Attribute type mapping.
|
41
49
|
def self.openapi_types
|
42
50
|
{
|
51
|
+
:'metadata_admin' => :'Object',
|
52
|
+
:'metadata_public' => :'Object',
|
43
53
|
:'schema_id' => :'String',
|
44
54
|
:'state' => :'IdentityState',
|
45
55
|
:'traits' => :'Object'
|
@@ -49,6 +59,8 @@ module OryClient
|
|
49
59
|
# List of attributes with nullable: true
|
50
60
|
def self.openapi_nullable
|
51
61
|
Set.new([
|
62
|
+
:'metadata_admin',
|
63
|
+
:'metadata_public',
|
52
64
|
])
|
53
65
|
end
|
54
66
|
|
@@ -67,6 +79,14 @@ module OryClient
|
|
67
79
|
h[k.to_sym] = v
|
68
80
|
}
|
69
81
|
|
82
|
+
if attributes.key?(:'metadata_admin')
|
83
|
+
self.metadata_admin = attributes[:'metadata_admin']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'metadata_public')
|
87
|
+
self.metadata_public = attributes[:'metadata_public']
|
88
|
+
end
|
89
|
+
|
70
90
|
if attributes.key?(:'schema_id')
|
71
91
|
self.schema_id = attributes[:'schema_id']
|
72
92
|
end
|
@@ -113,6 +133,8 @@ module OryClient
|
|
113
133
|
def ==(o)
|
114
134
|
return true if self.equal?(o)
|
115
135
|
self.class == o.class &&
|
136
|
+
metadata_admin == o.metadata_admin &&
|
137
|
+
metadata_public == o.metadata_public &&
|
116
138
|
schema_id == o.schema_id &&
|
117
139
|
state == o.state &&
|
118
140
|
traits == o.traits
|
@@ -127,7 +149,7 @@ module OryClient
|
|
127
149
|
# Calculates hash code according to all attributes.
|
128
150
|
# @return [Integer] Hash code
|
129
151
|
def hash
|
130
|
-
[schema_id, state, traits].hash
|
152
|
+
[metadata_admin, metadata_public, schema_id, state, traits].hash
|
131
153
|
end
|
132
154
|
|
133
155
|
# Builds the object from hash
|
@@ -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.176
|
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.176
|
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.176
|
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.176
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -17,6 +17,10 @@ module OryClient
|
|
17
17
|
class CnameSettings
|
18
18
|
attr_accessor :cookie_domain
|
19
19
|
|
20
|
+
attr_accessor :cors_allowed_origins
|
21
|
+
|
22
|
+
attr_accessor :cors_enabled
|
23
|
+
|
20
24
|
attr_accessor :created_at
|
21
25
|
|
22
26
|
attr_accessor :hostname
|
@@ -34,6 +38,8 @@ module OryClient
|
|
34
38
|
def self.attribute_map
|
35
39
|
{
|
36
40
|
:'cookie_domain' => :'cookie_domain',
|
41
|
+
:'cors_allowed_origins' => :'cors_allowed_origins',
|
42
|
+
:'cors_enabled' => :'cors_enabled',
|
37
43
|
:'created_at' => :'created_at',
|
38
44
|
:'hostname' => :'hostname',
|
39
45
|
:'id' => :'id',
|
@@ -52,6 +58,8 @@ module OryClient
|
|
52
58
|
def self.openapi_types
|
53
59
|
{
|
54
60
|
:'cookie_domain' => :'String',
|
61
|
+
:'cors_allowed_origins' => :'Array<String>',
|
62
|
+
:'cors_enabled' => :'Boolean',
|
55
63
|
:'created_at' => :'Time',
|
56
64
|
:'hostname' => :'String',
|
57
65
|
:'id' => :'String',
|
@@ -86,6 +94,16 @@ module OryClient
|
|
86
94
|
self.cookie_domain = attributes[:'cookie_domain']
|
87
95
|
end
|
88
96
|
|
97
|
+
if attributes.key?(:'cors_allowed_origins')
|
98
|
+
if (value = attributes[:'cors_allowed_origins']).is_a?(Array)
|
99
|
+
self.cors_allowed_origins = value
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.key?(:'cors_enabled')
|
104
|
+
self.cors_enabled = attributes[:'cors_enabled']
|
105
|
+
end
|
106
|
+
|
89
107
|
if attributes.key?(:'created_at')
|
90
108
|
self.created_at = attributes[:'created_at']
|
91
109
|
end
|
@@ -132,6 +150,8 @@ module OryClient
|
|
132
150
|
return true if self.equal?(o)
|
133
151
|
self.class == o.class &&
|
134
152
|
cookie_domain == o.cookie_domain &&
|
153
|
+
cors_allowed_origins == o.cors_allowed_origins &&
|
154
|
+
cors_enabled == o.cors_enabled &&
|
135
155
|
created_at == o.created_at &&
|
136
156
|
hostname == o.hostname &&
|
137
157
|
id == o.id &&
|
@@ -149,7 +169,7 @@ module OryClient
|
|
149
169
|
# Calculates hash code according to all attributes.
|
150
170
|
# @return [Integer] Hash code
|
151
171
|
def hash
|
152
|
-
[cookie_domain, created_at, hostname, id, updated_at, verification_errors, verification_status].hash
|
172
|
+
[cookie_domain, cors_allowed_origins, cors_enabled, created_at, hostname, id, updated_at, verification_errors, verification_status].hash
|
153
173
|
end
|
154
174
|
|
155
175
|
# Builds the object from hash
|
@@ -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.176
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -18,6 +18,12 @@ module OryClient
|
|
18
18
|
# The domain where cookies will be set. Has to be a parent domain of the custom hostname to work.
|
19
19
|
attr_accessor :cookie_domain
|
20
20
|
|
21
|
+
# Cors Allowed origins for the custom hostname.
|
22
|
+
attr_accessor :cors_allowed_origins
|
23
|
+
|
24
|
+
# Cors Enabled for the custom hostname.
|
25
|
+
attr_accessor :cors_enabled
|
26
|
+
|
21
27
|
# The custom hostname where the API will be exposed.
|
22
28
|
attr_accessor :hostname
|
23
29
|
|
@@ -25,6 +31,8 @@ module OryClient
|
|
25
31
|
def self.attribute_map
|
26
32
|
{
|
27
33
|
:'cookie_domain' => :'cookie_domain',
|
34
|
+
:'cors_allowed_origins' => :'cors_allowed_origins',
|
35
|
+
:'cors_enabled' => :'cors_enabled',
|
28
36
|
:'hostname' => :'hostname'
|
29
37
|
}
|
30
38
|
end
|
@@ -38,6 +46,8 @@ module OryClient
|
|
38
46
|
def self.openapi_types
|
39
47
|
{
|
40
48
|
:'cookie_domain' => :'String',
|
49
|
+
:'cors_allowed_origins' => :'Array<String>',
|
50
|
+
:'cors_enabled' => :'Boolean',
|
41
51
|
:'hostname' => :'String'
|
42
52
|
}
|
43
53
|
end
|
@@ -67,6 +77,16 @@ module OryClient
|
|
67
77
|
self.cookie_domain = attributes[:'cookie_domain']
|
68
78
|
end
|
69
79
|
|
80
|
+
if attributes.key?(:'cors_allowed_origins')
|
81
|
+
if (value = attributes[:'cors_allowed_origins']).is_a?(Array)
|
82
|
+
self.cors_allowed_origins = value
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'cors_enabled')
|
87
|
+
self.cors_enabled = attributes[:'cors_enabled']
|
88
|
+
end
|
89
|
+
|
70
90
|
if attributes.key?(:'hostname')
|
71
91
|
self.hostname = attributes[:'hostname']
|
72
92
|
end
|
@@ -91,6 +111,8 @@ module OryClient
|
|
91
111
|
return true if self.equal?(o)
|
92
112
|
self.class == o.class &&
|
93
113
|
cookie_domain == o.cookie_domain &&
|
114
|
+
cors_allowed_origins == o.cors_allowed_origins &&
|
115
|
+
cors_enabled == o.cors_enabled &&
|
94
116
|
hostname == o.hostname
|
95
117
|
end
|
96
118
|
|
@@ -103,7 +125,7 @@ module OryClient
|
|
103
125
|
# Calculates hash code according to all attributes.
|
104
126
|
# @return [Integer] Hash code
|
105
127
|
def hash
|
106
|
-
[cookie_domain, hostname].hash
|
128
|
+
[cookie_domain, cors_allowed_origins, cors_enabled, hostname].hash
|
107
129
|
end
|
108
130
|
|
109
131
|
# Builds the object from hash
|