ory-client 0.1.0.alpha11 → 0.2.0.alpha4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +15 -10
- data/docs/AdminUpdateIdentityBody.md +2 -0
- data/docs/{InlineResponse2001.md → GetVersion200Response.md} +2 -2
- data/docs/IdentitySchema.md +0 -2
- data/docs/IdentitySchemaContainer.md +20 -0
- data/docs/{InlineResponse200.md → IsAlive200Response.md} +2 -2
- data/docs/{InlineResponse503.md → IsReady503Response.md} +2 -2
- data/docs/JsonPatch.md +4 -2
- data/docs/MetadataApi.md +12 -12
- data/docs/Pagination.md +1 -1
- data/docs/QuotaCustomDomains.md +22 -0
- data/docs/SubmitSelfServiceLoginFlowWithWebAuthnMethodBody.md +1 -1
- data/docs/Subscription.md +1 -1
- data/docs/TokenPagination.md +20 -0
- data/docs/TokenPaginationHeaders.md +20 -0
- data/docs/UiNodeInputAttributes.md +3 -1
- data/docs/V0alpha2Api.md +101 -27
- data/docs/VerifiableIdentityAddress.md +1 -1
- data/lib/ory-client/api/metadata_api.rb +11 -11
- data/lib/ory-client/api/read_api.rb +2 -2
- data/lib/ory-client/api/v0alpha2_api.rb +102 -32
- data/lib/ory-client/api/write_api.rb +2 -2
- data/lib/ory-client/api_client.rb +5 -3
- data/lib/ory-client/api_error.rb +2 -2
- data/lib/ory-client/configuration.rb +4 -3
- data/lib/ory-client/models/active_project.rb +3 -2
- data/lib/ory-client/models/admin_create_identity_body.rb +3 -2
- data/lib/ory-client/models/admin_create_identity_import_credentials_oidc.rb +3 -2
- data/lib/ory-client/models/admin_create_identity_import_credentials_oidc_config.rb +3 -2
- data/lib/ory-client/models/admin_create_identity_import_credentials_oidc_provider.rb +3 -2
- data/lib/ory-client/models/admin_create_identity_import_credentials_password.rb +3 -2
- data/lib/ory-client/models/admin_create_identity_import_credentials_password_config.rb +3 -2
- data/lib/ory-client/models/admin_create_self_service_recovery_link_body.rb +3 -2
- data/lib/ory-client/models/admin_identity_import_credentials.rb +3 -2
- data/lib/ory-client/models/admin_update_identity_body.rb +13 -3
- data/lib/ory-client/models/api_token.rb +3 -2
- data/lib/ory-client/models/authenticator_assurance_level.rb +2 -2
- data/lib/ory-client/models/cloud_account.rb +3 -2
- data/lib/ory-client/models/cname_settings.rb +3 -2
- data/lib/ory-client/models/create_custom_hostname_body.rb +3 -2
- data/lib/ory-client/models/create_project_body.rb +3 -2
- data/lib/ory-client/models/create_subscription_payload.rb +3 -2
- data/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb +3 -2
- data/lib/ory-client/models/expand_tree.rb +3 -2
- data/lib/ory-client/models/generic_error.rb +3 -2
- data/lib/ory-client/models/generic_error_content.rb +3 -2
- data/lib/ory-client/models/get_check_response.rb +3 -2
- data/lib/ory-client/models/get_relation_tuples_response.rb +3 -2
- data/lib/ory-client/models/{inline_response2001.rb → get_version200_response.rb} +6 -5
- data/lib/ory-client/models/health_not_ready_status.rb +3 -2
- data/lib/ory-client/models/health_status.rb +3 -2
- data/lib/ory-client/models/identity.rb +3 -2
- data/lib/ory-client/models/identity_credentials.rb +3 -2
- data/lib/ory-client/models/identity_credentials_oidc.rb +3 -2
- data/lib/ory-client/models/identity_credentials_oidc_provider.rb +3 -2
- data/lib/ory-client/models/identity_credentials_password.rb +3 -2
- data/lib/ory-client/models/identity_credentials_type.rb +2 -2
- data/lib/ory-client/models/identity_schema.rb +4 -13
- data/lib/ory-client/models/identity_schema_container.rb +229 -0
- data/lib/ory-client/models/identity_schema_location.rb +3 -2
- data/lib/ory-client/models/identity_schema_preset.rb +3 -2
- data/lib/ory-client/models/identity_schema_validation_result.rb +3 -2
- data/lib/ory-client/models/identity_state.rb +2 -2
- data/lib/ory-client/models/internal_relation_tuple.rb +3 -2
- data/lib/ory-client/models/invite_payload.rb +3 -2
- data/lib/ory-client/models/{inline_response200.rb → is_alive200_response.rb} +6 -5
- data/lib/ory-client/models/is_owner_for_project_by_slug.rb +3 -2
- data/lib/ory-client/models/is_owner_for_project_by_slug_payload.rb +3 -2
- data/lib/ory-client/models/{inline_response503.rb → is_ready503_response.rb} +6 -5
- data/lib/ory-client/models/json_error.rb +3 -2
- data/lib/ory-client/models/json_patch.rb +14 -3
- data/lib/ory-client/models/keto_namespace.rb +3 -2
- data/lib/ory-client/models/needs_privileged_session_error.rb +3 -2
- data/lib/ory-client/models/normalized_project.rb +3 -2
- data/lib/ory-client/models/normalized_project_revision.rb +3 -2
- data/lib/ory-client/models/normalized_project_revision_hook.rb +3 -2
- data/lib/ory-client/models/normalized_project_revision_identity_schema.rb +3 -2
- data/lib/ory-client/models/normalized_project_revision_third_party_provider.rb +3 -2
- data/lib/ory-client/models/null_plan.rb +2 -2
- data/lib/ory-client/models/pagination.rb +4 -3
- data/lib/ory-client/models/patch_delta.rb +3 -2
- data/lib/ory-client/models/project.rb +3 -2
- data/lib/ory-client/models/project_host.rb +3 -2
- data/lib/ory-client/models/project_invite.rb +3 -2
- data/lib/ory-client/models/project_metadata.rb +3 -2
- data/lib/ory-client/models/project_service_identity.rb +3 -2
- data/lib/ory-client/models/project_service_permission.rb +3 -2
- data/lib/ory-client/models/project_services.rb +3 -2
- data/lib/ory-client/models/provision_mock_subscription_payload.rb +3 -2
- data/lib/ory-client/models/quota_custom_domains.rb +237 -0
- data/lib/ory-client/models/quota_project_member_seats.rb +3 -2
- data/lib/ory-client/models/recovery_address.rb +3 -2
- data/lib/ory-client/models/relation_query.rb +3 -2
- data/lib/ory-client/models/revoked_sessions.rb +3 -2
- data/lib/ory-client/models/schema_patch.rb +3 -2
- data/lib/ory-client/models/self_service_browser_location_change_required_error.rb +3 -2
- data/lib/ory-client/models/self_service_error.rb +3 -2
- data/lib/ory-client/models/self_service_flow_expired_error.rb +3 -2
- data/lib/ory-client/models/self_service_login_flow.rb +3 -2
- data/lib/ory-client/models/self_service_logout_url.rb +3 -2
- data/lib/ory-client/models/self_service_recovery_flow.rb +3 -2
- data/lib/ory-client/models/self_service_recovery_flow_state.rb +2 -2
- data/lib/ory-client/models/self_service_recovery_link.rb +3 -2
- data/lib/ory-client/models/self_service_registration_flow.rb +3 -2
- data/lib/ory-client/models/self_service_settings_flow.rb +3 -2
- data/lib/ory-client/models/self_service_settings_flow_state.rb +2 -2
- data/lib/ory-client/models/self_service_verification_flow.rb +3 -2
- data/lib/ory-client/models/self_service_verification_flow_state.rb +2 -2
- data/lib/ory-client/models/session.rb +3 -2
- data/lib/ory-client/models/session_authentication_method.rb +3 -2
- data/lib/ory-client/models/session_device.rb +3 -2
- data/lib/ory-client/models/settings_profile_form_config.rb +3 -2
- data/lib/ory-client/models/stripe_customer_response.rb +3 -2
- data/lib/ory-client/models/subject_set.rb +3 -2
- data/lib/ory-client/models/submit_self_service_flow_with_web_authn_registration_method.rb +3 -2
- data/lib/ory-client/models/submit_self_service_login_flow_body.rb +4 -4
- data/lib/ory-client/models/submit_self_service_login_flow_with_lookup_secret_method_body.rb +3 -2
- data/lib/ory-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +3 -2
- data/lib/ory-client/models/submit_self_service_login_flow_with_password_method_body.rb +3 -2
- data/lib/ory-client/models/submit_self_service_login_flow_with_totp_method_body.rb +3 -2
- data/lib/ory-client/models/submit_self_service_login_flow_with_web_authn_method_body.rb +9 -3
- data/lib/ory-client/models/submit_self_service_logout_flow_without_browser_body.rb +3 -2
- data/lib/ory-client/models/submit_self_service_recovery_flow_body.rb +4 -4
- data/lib/ory-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +3 -2
- data/lib/ory-client/models/submit_self_service_registration_flow_body.rb +4 -4
- data/lib/ory-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +3 -2
- data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method_body.rb +3 -2
- data/lib/ory-client/models/submit_self_service_registration_flow_with_web_authn_method_body.rb +3 -2
- data/lib/ory-client/models/submit_self_service_settings_flow_body.rb +4 -4
- data/lib/ory-client/models/submit_self_service_settings_flow_with_lookup_method_body.rb +3 -2
- data/lib/ory-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +3 -2
- data/lib/ory-client/models/submit_self_service_settings_flow_with_password_method_body.rb +3 -2
- data/lib/ory-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +3 -2
- data/lib/ory-client/models/submit_self_service_settings_flow_with_totp_method_body.rb +3 -2
- data/lib/ory-client/models/submit_self_service_settings_flow_with_web_authn_method_body.rb +3 -2
- data/lib/ory-client/models/submit_self_service_verification_flow_body.rb +4 -4
- data/lib/ory-client/models/submit_self_service_verification_flow_with_link_method_body.rb +3 -2
- data/lib/ory-client/models/subscription.rb +4 -2
- data/lib/ory-client/models/successful_project_update.rb +3 -2
- data/lib/ory-client/models/successful_self_service_login_without_browser.rb +3 -2
- data/lib/ory-client/models/successful_self_service_registration_without_browser.rb +3 -2
- data/lib/ory-client/models/token_pagination.rb +264 -0
- data/lib/ory-client/models/token_pagination_headers.rb +230 -0
- data/lib/ory-client/models/ui_container.rb +3 -2
- data/lib/ory-client/models/ui_node.rb +3 -2
- data/lib/ory-client/models/ui_node_anchor_attributes.rb +3 -2
- data/lib/ory-client/models/ui_node_attributes.rb +4 -4
- data/lib/ory-client/models/ui_node_image_attributes.rb +3 -2
- data/lib/ory-client/models/ui_node_input_attributes.rb +49 -3
- data/lib/ory-client/models/ui_node_meta.rb +3 -2
- data/lib/ory-client/models/ui_node_script_attributes.rb +3 -2
- data/lib/ory-client/models/ui_node_text_attributes.rb +3 -2
- data/lib/ory-client/models/ui_text.rb +3 -2
- data/lib/ory-client/models/update_custom_hostname_body.rb +3 -2
- data/lib/ory-client/models/update_project.rb +3 -2
- data/lib/ory-client/models/update_subscription_payload.rb +3 -2
- data/lib/ory-client/models/verifiable_identity_address.rb +3 -7
- data/lib/ory-client/models/version.rb +3 -2
- data/lib/ory-client/models/warning.rb +3 -2
- data/lib/ory-client/version.rb +3 -3
- data/lib/ory-client.rb +9 -5
- data/ory-client.gemspec +2 -2
- data/spec/api/metadata_api_spec.rb +5 -5
- data/spec/api/read_api_spec.rb +2 -2
- data/spec/api/v0alpha2_api_spec.rb +26 -13
- data/spec/api/write_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/active_project_spec.rb +2 -2
- data/spec/models/admin_create_identity_body_spec.rb +2 -2
- data/spec/models/admin_create_identity_import_credentials_oidc_config_spec.rb +2 -2
- data/spec/models/admin_create_identity_import_credentials_oidc_provider_spec.rb +2 -2
- data/spec/models/admin_create_identity_import_credentials_oidc_spec.rb +2 -2
- data/spec/models/admin_create_identity_import_credentials_password_config_spec.rb +2 -2
- data/spec/models/admin_create_identity_import_credentials_password_spec.rb +2 -2
- data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +2 -2
- data/spec/models/admin_identity_import_credentials_spec.rb +2 -2
- data/spec/models/admin_update_identity_body_spec.rb +8 -2
- data/spec/models/api_token_spec.rb +2 -2
- data/spec/models/authenticator_assurance_level_spec.rb +2 -2
- data/spec/models/cloud_account_spec.rb +2 -2
- data/spec/models/cname_settings_spec.rb +2 -2
- data/spec/models/create_custom_hostname_body_spec.rb +2 -2
- data/spec/models/create_project_body_spec.rb +2 -2
- data/spec/models/create_subscription_payload_spec.rb +2 -2
- data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +2 -2
- data/spec/models/expand_tree_spec.rb +2 -2
- data/spec/models/generic_error_content_spec.rb +2 -2
- data/spec/models/generic_error_spec.rb +2 -2
- data/spec/models/get_check_response_spec.rb +2 -2
- data/spec/models/get_relation_tuples_response_spec.rb +2 -2
- data/spec/models/{inline_response2001_spec.rb → get_version200_response_spec.rb} +8 -8
- data/spec/models/health_not_ready_status_spec.rb +2 -2
- data/spec/models/health_status_spec.rb +2 -2
- data/spec/models/identity_credentials_oidc_provider_spec.rb +2 -2
- data/spec/models/identity_credentials_oidc_spec.rb +2 -2
- data/spec/models/identity_credentials_password_spec.rb +2 -2
- data/spec/models/identity_credentials_spec.rb +2 -2
- data/spec/models/identity_credentials_type_spec.rb +2 -2
- data/spec/models/identity_schema_container_spec.rb +40 -0
- data/spec/models/identity_schema_location_spec.rb +2 -2
- data/spec/models/identity_schema_preset_spec.rb +2 -2
- data/spec/models/identity_schema_spec.rb +2 -8
- data/spec/models/identity_schema_validation_result_spec.rb +2 -2
- data/spec/models/identity_spec.rb +2 -2
- data/spec/models/identity_state_spec.rb +2 -2
- data/spec/models/internal_relation_tuple_spec.rb +2 -2
- data/spec/models/invite_payload_spec.rb +2 -2
- data/spec/models/{inline_response200_spec.rb → is_alive200_response_spec.rb} +8 -8
- data/spec/models/is_owner_for_project_by_slug_payload_spec.rb +2 -2
- data/spec/models/is_owner_for_project_by_slug_spec.rb +2 -2
- data/spec/models/{inline_response503_spec.rb → is_ready503_response_spec.rb} +8 -8
- data/spec/models/json_error_spec.rb +2 -2
- data/spec/models/json_patch_spec.rb +8 -2
- data/spec/models/keto_namespace_spec.rb +2 -2
- data/spec/models/needs_privileged_session_error_spec.rb +2 -2
- data/spec/models/normalized_project_revision_hook_spec.rb +2 -2
- data/spec/models/normalized_project_revision_identity_schema_spec.rb +2 -2
- data/spec/models/normalized_project_revision_spec.rb +2 -2
- data/spec/models/normalized_project_revision_third_party_provider_spec.rb +2 -2
- data/spec/models/normalized_project_spec.rb +2 -2
- data/spec/models/null_plan_spec.rb +2 -2
- data/spec/models/pagination_spec.rb +2 -2
- data/spec/models/patch_delta_spec.rb +2 -2
- data/spec/models/project_host_spec.rb +2 -2
- data/spec/models/project_invite_spec.rb +2 -2
- data/spec/models/project_metadata_spec.rb +2 -2
- data/spec/models/project_service_identity_spec.rb +2 -2
- data/spec/models/project_service_permission_spec.rb +2 -2
- data/spec/models/project_services_spec.rb +2 -2
- data/spec/models/project_spec.rb +2 -2
- data/spec/models/provision_mock_subscription_payload_spec.rb +2 -2
- data/spec/models/quota_custom_domains_spec.rb +46 -0
- data/spec/models/quota_project_member_seats_spec.rb +2 -2
- data/spec/models/recovery_address_spec.rb +2 -2
- data/spec/models/relation_query_spec.rb +2 -2
- data/spec/models/revoked_sessions_spec.rb +2 -2
- data/spec/models/schema_patch_spec.rb +2 -2
- data/spec/models/self_service_browser_location_change_required_error_spec.rb +2 -2
- data/spec/models/self_service_error_spec.rb +2 -2
- data/spec/models/self_service_flow_expired_error_spec.rb +2 -2
- data/spec/models/self_service_login_flow_spec.rb +2 -2
- data/spec/models/self_service_logout_url_spec.rb +2 -2
- data/spec/models/self_service_recovery_flow_spec.rb +2 -2
- data/spec/models/self_service_recovery_flow_state_spec.rb +2 -2
- data/spec/models/self_service_recovery_link_spec.rb +2 -2
- data/spec/models/self_service_registration_flow_spec.rb +2 -2
- data/spec/models/self_service_settings_flow_spec.rb +2 -2
- data/spec/models/self_service_settings_flow_state_spec.rb +2 -2
- data/spec/models/self_service_verification_flow_spec.rb +2 -2
- data/spec/models/self_service_verification_flow_state_spec.rb +2 -2
- data/spec/models/session_authentication_method_spec.rb +2 -2
- data/spec/models/session_device_spec.rb +2 -2
- data/spec/models/session_spec.rb +2 -2
- data/spec/models/settings_profile_form_config_spec.rb +2 -2
- data/spec/models/stripe_customer_response_spec.rb +2 -2
- data/spec/models/subject_set_spec.rb +2 -2
- data/spec/models/submit_self_service_flow_with_web_authn_registration_method_spec.rb +2 -2
- data/spec/models/submit_self_service_login_flow_body_spec.rb +2 -2
- data/spec/models/submit_self_service_login_flow_with_lookup_secret_method_body_spec.rb +2 -2
- data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +2 -2
- data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +2 -2
- data/spec/models/submit_self_service_login_flow_with_totp_method_body_spec.rb +2 -2
- data/spec/models/submit_self_service_login_flow_with_web_authn_method_body_spec.rb +2 -2
- data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +2 -2
- data/spec/models/submit_self_service_recovery_flow_body_spec.rb +2 -2
- data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +2 -2
- data/spec/models/submit_self_service_registration_flow_body_spec.rb +2 -2
- data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +2 -2
- data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +2 -2
- data/spec/models/submit_self_service_registration_flow_with_web_authn_method_body_spec.rb +2 -2
- data/spec/models/submit_self_service_settings_flow_body_spec.rb +2 -2
- data/spec/models/submit_self_service_settings_flow_with_lookup_method_body_spec.rb +2 -2
- data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +2 -2
- data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +2 -2
- data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +2 -2
- data/spec/models/submit_self_service_settings_flow_with_totp_method_body_spec.rb +2 -2
- data/spec/models/submit_self_service_settings_flow_with_web_authn_method_body_spec.rb +2 -2
- data/spec/models/submit_self_service_verification_flow_body_spec.rb +2 -2
- data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +2 -2
- data/spec/models/subscription_spec.rb +2 -2
- data/spec/models/successful_project_update_spec.rb +2 -2
- data/spec/models/successful_self_service_login_without_browser_spec.rb +2 -2
- data/spec/models/successful_self_service_registration_without_browser_spec.rb +2 -2
- data/spec/models/token_pagination_headers_spec.rb +40 -0
- data/spec/models/token_pagination_spec.rb +40 -0
- data/spec/models/ui_container_spec.rb +2 -2
- data/spec/models/ui_node_anchor_attributes_spec.rb +2 -2
- data/spec/models/ui_node_attributes_spec.rb +2 -2
- data/spec/models/ui_node_image_attributes_spec.rb +2 -2
- data/spec/models/ui_node_input_attributes_spec.rb +12 -2
- data/spec/models/ui_node_meta_spec.rb +2 -2
- data/spec/models/ui_node_script_attributes_spec.rb +2 -2
- data/spec/models/ui_node_spec.rb +2 -2
- data/spec/models/ui_node_text_attributes_spec.rb +2 -2
- data/spec/models/ui_text_spec.rb +2 -2
- data/spec/models/update_custom_hostname_body_spec.rb +2 -2
- data/spec/models/update_project_spec.rb +2 -2
- data/spec/models/update_subscription_payload_spec.rb +2 -2
- data/spec/models/verifiable_identity_address_spec.rb +2 -2
- data/spec/models/version_spec.rb +2 -2
- data/spec/models/warning_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- 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.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.2/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.2/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/psych-4.0.4/ext/psych/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.2/ext/stringio/Makefile +2 -2
- metadata +30 -14
@@ -3,10 +3,10 @@
|
|
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.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.4
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -149,6 +149,7 @@ module OryClient
|
|
149
149
|
# @return [Object] Returns the model itself
|
150
150
|
def build_from_hash(attributes)
|
151
151
|
return nil unless attributes.is_a?(Hash)
|
152
|
+
attributes = attributes.transform_keys(&:to_sym)
|
152
153
|
self.class.openapi_types.each_pair do |key, type|
|
153
154
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
154
155
|
self.send("#{key}=", nil)
|
data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method_body.rb
CHANGED
@@ -3,10 +3,10 @@
|
|
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.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.4
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -154,6 +154,7 @@ module OryClient
|
|
154
154
|
# @return [Object] Returns the model itself
|
155
155
|
def build_from_hash(attributes)
|
156
156
|
return nil unless attributes.is_a?(Hash)
|
157
|
+
attributes = attributes.transform_keys(&:to_sym)
|
157
158
|
self.class.openapi_types.each_pair do |key, type|
|
158
159
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
159
160
|
self.send("#{key}=", nil)
|
data/lib/ory-client/models/submit_self_service_registration_flow_with_web_authn_method_body.rb
CHANGED
@@ -3,10 +3,10 @@
|
|
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.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.4
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -158,6 +158,7 @@ module OryClient
|
|
158
158
|
# @return [Object] Returns the model itself
|
159
159
|
def build_from_hash(attributes)
|
160
160
|
return nil unless attributes.is_a?(Hash)
|
161
|
+
attributes = attributes.transform_keys(&:to_sym)
|
161
162
|
self.class.openapi_types.each_pair do |key, type|
|
162
163
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
163
164
|
self.send("#{key}=", nil)
|
@@ -3,10 +3,10 @@
|
|
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.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.4
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -50,9 +50,9 @@ module OryClient
|
|
50
50
|
# @return [Object] Returns the model or the data itself
|
51
51
|
def build(data)
|
52
52
|
discriminator_value = data[openapi_discriminator_name]
|
53
|
-
return nil
|
53
|
+
return nil if discriminator_value.nil?
|
54
54
|
|
55
|
-
klass = openapi_discriminator_mapping[discriminator_value.to_sym]
|
55
|
+
klass = openapi_discriminator_mapping[discriminator_value.to_s.to_sym]
|
56
56
|
return nil unless klass
|
57
57
|
|
58
58
|
OryClient.const_get(klass).build_from_hash(data)
|
@@ -3,10 +3,10 @@
|
|
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.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.4
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -163,6 +163,7 @@ module OryClient
|
|
163
163
|
# @return [Object] Returns the model itself
|
164
164
|
def build_from_hash(attributes)
|
165
165
|
return nil unless attributes.is_a?(Hash)
|
166
|
+
attributes = attributes.transform_keys(&:to_sym)
|
166
167
|
self.class.openapi_types.each_pair do |key, type|
|
167
168
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
168
169
|
self.send("#{key}=", nil)
|
@@ -3,10 +3,10 @@
|
|
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.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.4
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -154,6 +154,7 @@ module OryClient
|
|
154
154
|
# @return [Object] Returns the model itself
|
155
155
|
def build_from_hash(attributes)
|
156
156
|
return nil unless attributes.is_a?(Hash)
|
157
|
+
attributes = attributes.transform_keys(&:to_sym)
|
157
158
|
self.class.openapi_types.each_pair do |key, type|
|
158
159
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
159
160
|
self.send("#{key}=", nil)
|
@@ -3,10 +3,10 @@
|
|
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.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.4
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -138,6 +138,7 @@ module OryClient
|
|
138
138
|
# @return [Object] Returns the model itself
|
139
139
|
def build_from_hash(attributes)
|
140
140
|
return nil unless attributes.is_a?(Hash)
|
141
|
+
attributes = attributes.transform_keys(&:to_sym)
|
141
142
|
self.class.openapi_types.each_pair do |key, type|
|
142
143
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
143
144
|
self.send("#{key}=", nil)
|
@@ -3,10 +3,10 @@
|
|
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.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.4
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -139,6 +139,7 @@ module OryClient
|
|
139
139
|
# @return [Object] Returns the model itself
|
140
140
|
def build_from_hash(attributes)
|
141
141
|
return nil unless attributes.is_a?(Hash)
|
142
|
+
attributes = attributes.transform_keys(&:to_sym)
|
142
143
|
self.class.openapi_types.each_pair do |key, type|
|
143
144
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
144
145
|
self.send("#{key}=", nil)
|
@@ -3,10 +3,10 @@
|
|
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.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.4
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -143,6 +143,7 @@ module OryClient
|
|
143
143
|
# @return [Object] Returns the model itself
|
144
144
|
def build_from_hash(attributes)
|
145
145
|
return nil unless attributes.is_a?(Hash)
|
146
|
+
attributes = attributes.transform_keys(&:to_sym)
|
146
147
|
self.class.openapi_types.each_pair do |key, type|
|
147
148
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
148
149
|
self.send("#{key}=", nil)
|
@@ -3,10 +3,10 @@
|
|
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.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.4
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -153,6 +153,7 @@ module OryClient
|
|
153
153
|
# @return [Object] Returns the model itself
|
154
154
|
def build_from_hash(attributes)
|
155
155
|
return nil unless attributes.is_a?(Hash)
|
156
|
+
attributes = attributes.transform_keys(&:to_sym)
|
156
157
|
self.class.openapi_types.each_pair do |key, type|
|
157
158
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
158
159
|
self.send("#{key}=", nil)
|
@@ -3,10 +3,10 @@
|
|
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.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.4
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -41,9 +41,9 @@ module OryClient
|
|
41
41
|
# @return [Object] Returns the model or the data itself
|
42
42
|
def build(data)
|
43
43
|
discriminator_value = data[openapi_discriminator_name]
|
44
|
-
return nil
|
44
|
+
return nil if discriminator_value.nil?
|
45
45
|
|
46
|
-
klass = openapi_discriminator_mapping[discriminator_value.to_sym]
|
46
|
+
klass = openapi_discriminator_mapping[discriminator_value.to_s.to_sym]
|
47
47
|
return nil unless klass
|
48
48
|
|
49
49
|
OryClient.const_get(klass).build_from_hash(data)
|
@@ -3,10 +3,10 @@
|
|
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.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.4
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -138,6 +138,7 @@ module OryClient
|
|
138
138
|
# @return [Object] Returns the model itself
|
139
139
|
def build_from_hash(attributes)
|
140
140
|
return nil unless attributes.is_a?(Hash)
|
141
|
+
attributes = attributes.transform_keys(&:to_sym)
|
141
142
|
self.class.openapi_types.each_pair do |key, type|
|
142
143
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
143
144
|
self.send("#{key}=", nil)
|
@@ -3,10 +3,10 @@
|
|
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.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.4
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,6 +34,7 @@ module OryClient
|
|
34
34
|
|
35
35
|
attr_accessor :plan_changes_to
|
36
36
|
|
37
|
+
# For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. If subscription `collection_method=charge_automatically` it becomes `past_due` when payment to renew it fails and `canceled` or `unpaid` (depending on your subscriptions settings) when Stripe has exhausted all payment retry attempts. If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices.
|
37
38
|
attr_accessor :status
|
38
39
|
|
39
40
|
attr_accessor :updated_at
|
@@ -266,6 +267,7 @@ module OryClient
|
|
266
267
|
# @return [Object] Returns the model itself
|
267
268
|
def build_from_hash(attributes)
|
268
269
|
return nil unless attributes.is_a?(Hash)
|
270
|
+
attributes = attributes.transform_keys(&:to_sym)
|
269
271
|
self.class.openapi_types.each_pair do |key, type|
|
270
272
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
271
273
|
self.send("#{key}=", nil)
|
@@ -3,10 +3,10 @@
|
|
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.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.4
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -129,6 +129,7 @@ module OryClient
|
|
129
129
|
# @return [Object] Returns the model itself
|
130
130
|
def build_from_hash(attributes)
|
131
131
|
return nil unless attributes.is_a?(Hash)
|
132
|
+
attributes = attributes.transform_keys(&:to_sym)
|
132
133
|
self.class.openapi_types.each_pair do |key, type|
|
133
134
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
134
135
|
self.send("#{key}=", nil)
|
@@ -3,10 +3,10 @@
|
|
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.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.4
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -123,6 +123,7 @@ module OryClient
|
|
123
123
|
# @return [Object] Returns the model itself
|
124
124
|
def build_from_hash(attributes)
|
125
125
|
return nil unless attributes.is_a?(Hash)
|
126
|
+
attributes = attributes.transform_keys(&:to_sym)
|
126
127
|
self.class.openapi_types.each_pair do |key, type|
|
127
128
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
128
129
|
self.send("#{key}=", nil)
|
@@ -3,10 +3,10 @@
|
|
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.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.4
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -132,6 +132,7 @@ module OryClient
|
|
132
132
|
# @return [Object] Returns the model itself
|
133
133
|
def build_from_hash(attributes)
|
134
134
|
return nil unless attributes.is_a?(Hash)
|
135
|
+
attributes = attributes.transform_keys(&:to_sym)
|
135
136
|
self.class.openapi_types.each_pair do |key, type|
|
136
137
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
137
138
|
self.send("#{key}=", nil)
|
@@ -0,0 +1,264 @@
|
|
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.2.0-alpha.4
|
7
|
+
Contact: support@ory.sh
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module OryClient
|
17
|
+
class TokenPagination
|
18
|
+
# Items per page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
19
|
+
attr_accessor :page_size
|
20
|
+
|
21
|
+
# Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
22
|
+
attr_accessor :page_token
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'page_size' => :'page_size',
|
28
|
+
:'page_token' => :'page_token'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Returns all the JSON keys this model knows about
|
33
|
+
def self.acceptable_attributes
|
34
|
+
attribute_map.values
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.openapi_types
|
39
|
+
{
|
40
|
+
:'page_size' => :'Integer',
|
41
|
+
:'page_token' => :'String'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# List of attributes with nullable: true
|
46
|
+
def self.openapi_nullable
|
47
|
+
Set.new([
|
48
|
+
])
|
49
|
+
end
|
50
|
+
|
51
|
+
# Initializes the object
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::TokenPagination` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::TokenPagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
|
+
end
|
63
|
+
h[k.to_sym] = v
|
64
|
+
}
|
65
|
+
|
66
|
+
if attributes.key?(:'page_size')
|
67
|
+
self.page_size = attributes[:'page_size']
|
68
|
+
else
|
69
|
+
self.page_size = 250
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'page_token')
|
73
|
+
self.page_token = attributes[:'page_token']
|
74
|
+
else
|
75
|
+
self.page_token = '1'
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
80
|
+
# @return Array for valid properties with the reasons
|
81
|
+
def list_invalid_properties
|
82
|
+
invalid_properties = Array.new
|
83
|
+
if !@page_size.nil? && @page_size > 1000
|
84
|
+
invalid_properties.push('invalid value for "page_size", must be smaller than or equal to 1000.')
|
85
|
+
end
|
86
|
+
|
87
|
+
if !@page_size.nil? && @page_size < 1
|
88
|
+
invalid_properties.push('invalid value for "page_size", must be greater than or equal to 1.')
|
89
|
+
end
|
90
|
+
|
91
|
+
invalid_properties
|
92
|
+
end
|
93
|
+
|
94
|
+
# Check to see if the all the properties in the model are valid
|
95
|
+
# @return true if the model is valid
|
96
|
+
def valid?
|
97
|
+
return false if !@page_size.nil? && @page_size > 1000
|
98
|
+
return false if !@page_size.nil? && @page_size < 1
|
99
|
+
true
|
100
|
+
end
|
101
|
+
|
102
|
+
# Custom attribute writer method with validation
|
103
|
+
# @param [Object] page_size Value to be assigned
|
104
|
+
def page_size=(page_size)
|
105
|
+
if !page_size.nil? && page_size > 1000
|
106
|
+
fail ArgumentError, 'invalid value for "page_size", must be smaller than or equal to 1000.'
|
107
|
+
end
|
108
|
+
|
109
|
+
if !page_size.nil? && page_size < 1
|
110
|
+
fail ArgumentError, 'invalid value for "page_size", must be greater than or equal to 1.'
|
111
|
+
end
|
112
|
+
|
113
|
+
@page_size = page_size
|
114
|
+
end
|
115
|
+
|
116
|
+
# Custom attribute writer method with validation
|
117
|
+
# @param [Object] page_token Value to be assigned
|
118
|
+
def page_token=(page_token)
|
119
|
+
@page_token = page_token
|
120
|
+
end
|
121
|
+
|
122
|
+
# Checks equality by comparing each attribute.
|
123
|
+
# @param [Object] Object to be compared
|
124
|
+
def ==(o)
|
125
|
+
return true if self.equal?(o)
|
126
|
+
self.class == o.class &&
|
127
|
+
page_size == o.page_size &&
|
128
|
+
page_token == o.page_token
|
129
|
+
end
|
130
|
+
|
131
|
+
# @see the `==` method
|
132
|
+
# @param [Object] Object to be compared
|
133
|
+
def eql?(o)
|
134
|
+
self == o
|
135
|
+
end
|
136
|
+
|
137
|
+
# Calculates hash code according to all attributes.
|
138
|
+
# @return [Integer] Hash code
|
139
|
+
def hash
|
140
|
+
[page_size, page_token].hash
|
141
|
+
end
|
142
|
+
|
143
|
+
# Builds the object from hash
|
144
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
145
|
+
# @return [Object] Returns the model itself
|
146
|
+
def self.build_from_hash(attributes)
|
147
|
+
new.build_from_hash(attributes)
|
148
|
+
end
|
149
|
+
|
150
|
+
# Builds the object from hash
|
151
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
152
|
+
# @return [Object] Returns the model itself
|
153
|
+
def build_from_hash(attributes)
|
154
|
+
return nil unless attributes.is_a?(Hash)
|
155
|
+
attributes = attributes.transform_keys(&:to_sym)
|
156
|
+
self.class.openapi_types.each_pair do |key, type|
|
157
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
158
|
+
self.send("#{key}=", nil)
|
159
|
+
elsif type =~ /\AArray<(.*)>/i
|
160
|
+
# check to ensure the input is an array given that the attribute
|
161
|
+
# is documented as an array but the input is not
|
162
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
163
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
164
|
+
end
|
165
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
166
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
self
|
171
|
+
end
|
172
|
+
|
173
|
+
# Deserializes the data based on type
|
174
|
+
# @param string type Data type
|
175
|
+
# @param string value Value to be deserialized
|
176
|
+
# @return [Object] Deserialized data
|
177
|
+
def _deserialize(type, value)
|
178
|
+
case type.to_sym
|
179
|
+
when :Time
|
180
|
+
Time.parse(value)
|
181
|
+
when :Date
|
182
|
+
Date.parse(value)
|
183
|
+
when :String
|
184
|
+
value.to_s
|
185
|
+
when :Integer
|
186
|
+
value.to_i
|
187
|
+
when :Float
|
188
|
+
value.to_f
|
189
|
+
when :Boolean
|
190
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
191
|
+
true
|
192
|
+
else
|
193
|
+
false
|
194
|
+
end
|
195
|
+
when :Object
|
196
|
+
# generic object (usually a Hash), return directly
|
197
|
+
value
|
198
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
199
|
+
inner_type = Regexp.last_match[:inner_type]
|
200
|
+
value.map { |v| _deserialize(inner_type, v) }
|
201
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
202
|
+
k_type = Regexp.last_match[:k_type]
|
203
|
+
v_type = Regexp.last_match[:v_type]
|
204
|
+
{}.tap do |hash|
|
205
|
+
value.each do |k, v|
|
206
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
else # model
|
210
|
+
# models (e.g. Pet) or oneOf
|
211
|
+
klass = OryClient.const_get(type)
|
212
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
# Returns the string representation of the object
|
217
|
+
# @return [String] String presentation of the object
|
218
|
+
def to_s
|
219
|
+
to_hash.to_s
|
220
|
+
end
|
221
|
+
|
222
|
+
# to_body is an alias to to_hash (backward compatibility)
|
223
|
+
# @return [Hash] Returns the object in the form of hash
|
224
|
+
def to_body
|
225
|
+
to_hash
|
226
|
+
end
|
227
|
+
|
228
|
+
# Returns the object in the form of hash
|
229
|
+
# @return [Hash] Returns the object in the form of hash
|
230
|
+
def to_hash
|
231
|
+
hash = {}
|
232
|
+
self.class.attribute_map.each_pair do |attr, param|
|
233
|
+
value = self.send(attr)
|
234
|
+
if value.nil?
|
235
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
236
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
237
|
+
end
|
238
|
+
|
239
|
+
hash[param] = _to_hash(value)
|
240
|
+
end
|
241
|
+
hash
|
242
|
+
end
|
243
|
+
|
244
|
+
# Outputs non-array value in the form of hash
|
245
|
+
# For object, use to_hash. Otherwise, just return the value
|
246
|
+
# @param [Object] value Any valid value
|
247
|
+
# @return [Hash] Returns the value in the form of hash
|
248
|
+
def _to_hash(value)
|
249
|
+
if value.is_a?(Array)
|
250
|
+
value.compact.map { |v| _to_hash(v) }
|
251
|
+
elsif value.is_a?(Hash)
|
252
|
+
{}.tap do |hash|
|
253
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
254
|
+
end
|
255
|
+
elsif value.respond_to? :to_hash
|
256
|
+
value.to_hash
|
257
|
+
else
|
258
|
+
value
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
end
|
263
|
+
|
264
|
+
end
|