turnkey_client 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/turnkey_client/api/activities_api.rb +6 -6
- data/lib/turnkey_client/api/api_keys_api.rb +12 -12
- data/lib/turnkey_client/api/authenticators_api.rb +12 -12
- data/lib/turnkey_client/api/consensus_api.rb +6 -6
- data/lib/turnkey_client/api/features_api.rb +6 -6
- data/lib/turnkey_client/api/invitations_api.rb +6 -6
- data/lib/turnkey_client/api/organizations_api.rb +6 -64
- data/lib/turnkey_client/api/policies_api.rb +15 -15
- data/lib/turnkey_client/api/private_key_tags_api.rb +67 -9
- data/lib/turnkey_client/api/private_keys_api.rb +12 -12
- data/lib/turnkey_client/api/sessions_api.rb +3 -3
- data/lib/turnkey_client/api/signing_api.rb +6 -6
- data/lib/turnkey_client/api/user_auth_api.rb +3 -3
- data/lib/turnkey_client/api/user_recovery_api.rb +6 -6
- data/lib/turnkey_client/api/user_tags_api.rb +67 -9
- data/lib/turnkey_client/api/users_api.rb +37 -37
- data/lib/turnkey_client/api/wallets_api.rb +137 -21
- data/lib/turnkey_client/models/{v1_accept_invitation_intent_v2.rb → accept_invitation_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_accept_invitation_intent.rb → accept_invitation_intent_v2.rb} +3 -3
- data/lib/turnkey_client/models/{v1_accept_invitation_result.rb → accept_invitation_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_access_type.rb → access_type.rb} +3 -3
- data/lib/turnkey_client/models/{v1_activate_billing_tier_intent.rb → activate_billing_tier_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_activate_billing_tier_result.rb → activate_billing_tier_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_activity.rb → activity.rb} +3 -3
- data/lib/turnkey_client/models/{v1_activity_response.rb → activity_response.rb} +3 -3
- data/lib/turnkey_client/models/{v1_activity_status.rb → activity_status.rb} +3 -3
- data/lib/turnkey_client/models/{v1_activity_type.rb → activity_type.rb} +5 -3
- data/lib/turnkey_client/models/{externaldatav1_address.rb → activity_v1_address.rb} +3 -3
- data/lib/turnkey_client/models/{v1_address_format.rb → address_format.rb} +4 -3
- data/lib/turnkey_client/models/{v1_api_key.rb → api_key.rb} +3 -3
- data/lib/turnkey_client/models/{v1_api_key_params.rb → api_key_params.rb} +3 -3
- data/lib/turnkey_client/models/{v1_api_only_user_params.rb → api_only_user_params.rb} +3 -3
- data/lib/turnkey_client/models/{v1_reject_activity_intent.rb → approve_activity_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_api_keys_request.rb → approve_activity_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_attestation.rb → attestation.rb} +3 -3
- data/lib/turnkey_client/models/{v1_authenticator.rb → authenticator.rb} +3 -3
- data/lib/turnkey_client/models/{v1_authenticator_attestation_response.rb → authenticator_attestation_response.rb} +3 -3
- data/lib/turnkey_client/models/{v1_authenticator_params.rb → authenticator_params.rb} +3 -3
- data/lib/turnkey_client/models/{v1_authenticator_params_v2.rb → authenticator_params_v2.rb} +3 -3
- data/lib/turnkey_client/models/{v1_authenticator_transport.rb → authenticator_transport.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_api_keys_intent.rb → create_api_keys_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_users_request.rb → create_api_keys_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_create_api_keys_result.rb → create_api_keys_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_api_only_users_intent.rb → create_api_only_users_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_api_only_users_result.rb → create_api_only_users_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_authenticators_intent_v2.rb → create_authenticators_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_authenticators_intent.rb → create_authenticators_intent_v2.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_authenticators_request.rb → create_authenticators_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_authenticators_result.rb → create_authenticators_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_invitations_intent.rb → create_invitations_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_approve_activity_request.rb → create_invitations_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_create_invitations_result.rb → create_invitations_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_organization_intent_v2.rb → create_organization_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_organization_intent.rb → create_organization_intent_v2.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_organization_request.rb → create_organization_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_policy_intent_v2.rb → create_policy_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_policy_intent.rb → create_policy_intent_v2.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_policy_intent_v3.rb → create_policy_intent_v3.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_policy_request.rb → create_policy_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_delete_policy_intent.rb → create_policy_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_private_key_tag_intent.rb → create_private_key_tag_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_private_keys_request.rb → create_private_key_tag_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_create_private_key_tag_result.rb → create_private_key_tag_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_private_keys_response.rb → create_private_keys_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_private_keys_intent.rb → create_private_keys_intent_v2.rb} +3 -3
- data/lib/turnkey_client/models/{v1_sign_transaction_request.rb → create_private_keys_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_create_private_keys_result.rb → create_private_keys_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_private_keys_result_v2.rb → create_private_keys_result_v2.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_sub_organization_intent.rb → create_sub_organization_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_sub_organization_intent_v2.rb → create_sub_organization_intent_v2.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_sub_organization_intent_v3.rb → create_sub_organization_intent_v3.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_sub_organization_intent_v4.rb → create_sub_organization_intent_v4.rb} +3 -3
- data/lib/turnkey_client/models/{v1_export_wallet_account_request.rb → create_sub_organization_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_create_sub_organization_result.rb → create_sub_organization_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_sub_organization_result_v3.rb → create_sub_organization_result_v3.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_sub_organization_result_v4.rb → create_sub_organization_result_v4.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_user_tag_intent.rb → create_user_tag_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_recover_user_request.rb → create_user_tag_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_create_user_tag_result.rb → create_user_tag_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_users_response.rb → create_users_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_users_intent.rb → create_users_intent_v2.rb} +3 -3
- data/lib/turnkey_client/models/create_users_request.rb +289 -0
- data/lib/turnkey_client/models/{v1_delete_users_intent.rb → create_users_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_wallet_accounts_intent.rb → create_wallet_accounts_intent.rb} +3 -3
- data/lib/turnkey_client/models/create_wallet_accounts_request.rb +289 -0
- data/lib/turnkey_client/models/{v1_create_wallet_accounts_result.rb → create_wallet_accounts_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_wallet_intent.rb → create_wallet_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_update_user_request.rb → create_wallet_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_create_wallet_result.rb → create_wallet_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_cred_props_authentication_extensions_client_outputs.rb → cred_props_authentication_extensions_client_outputs.rb} +3 -3
- data/lib/turnkey_client/models/{v1_credential_type.rb → credential_type.rb} +3 -3
- data/lib/turnkey_client/models/{v1_curve.rb → curve.rb} +3 -3
- data/lib/turnkey_client/models/{immutableactivityv1_address.rb → data_v1_address.rb} +3 -3
- data/lib/turnkey_client/models/{v1_delete_api_keys_intent.rb → delete_api_keys_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_delete_api_keys_request.rb → delete_api_keys_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_delete_api_keys_result.rb → delete_api_keys_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_delete_authenticators_intent.rb → delete_authenticators_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_api_only_users_request.rb → delete_authenticators_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_delete_authenticators_result.rb → delete_authenticators_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_delete_invitation_intent.rb → delete_invitation_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_reject_activity_request.rb → delete_invitation_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_delete_invitation_result.rb → delete_invitation_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_private_keys_request.rb → delete_organization_intent.rb} +3 -3
- data/lib/turnkey_client/models/delete_organization_result.rb +212 -0
- data/lib/turnkey_client/models/{v1_delete_payment_method_intent.rb → delete_payment_method_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_delete_payment_method_result.rb → delete_payment_method_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_update_policy_result.rb → delete_policy_intent.rb} +3 -3
- data/lib/turnkey_client/models/delete_policy_request.rb +289 -0
- data/lib/turnkey_client/models/{v1_delete_policy_result.rb → delete_policy_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_delete_private_key_tags_intent.rb → delete_private_key_tags_intent.rb} +3 -3
- data/lib/turnkey_client/models/delete_private_key_tags_request.rb +289 -0
- data/lib/turnkey_client/models/{v1_delete_private_key_tags_result.rb → delete_private_key_tags_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_delete_user_tags_intent.rb → delete_user_tags_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_export_wallet_request.rb → delete_user_tags_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_delete_user_tags_result.rb → delete_user_tags_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_delete_users_result.rb → delete_users_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_email_auth_request.rb → delete_users_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_create_users_result.rb → delete_users_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_disable_private_key_intent.rb → disable_private_key_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_disable_private_key_result.rb → disable_private_key_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_effect.rb → effect.rb} +3 -3
- data/lib/turnkey_client/models/{v1_email_auth_intent.rb → email_auth_intent.rb} +3 -3
- data/lib/turnkey_client/models/email_auth_request.rb +289 -0
- data/lib/turnkey_client/models/{v1_email_auth_result.rb → email_auth_result.rb} +3 -3
- data/lib/turnkey_client/models/email_customization_params.rb +247 -0
- data/lib/turnkey_client/models/{v1_export_private_key_intent.rb → export_private_key_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_sign_raw_payload_request.rb → export_private_key_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_export_private_key_result.rb → export_private_key_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_export_wallet_account_intent.rb → export_wallet_account_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_invitations_request.rb → export_wallet_account_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_export_wallet_account_result.rb → export_wallet_account_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_export_wallet_intent.rb → export_wallet_intent.rb} +3 -3
- data/lib/turnkey_client/models/export_wallet_request.rb +289 -0
- data/lib/turnkey_client/models/{v1_export_wallet_result.rb → export_wallet_result.rb} +3 -3
- data/lib/turnkey_client/models/{externaldatav1_credential.rb → external_data_v1_credential.rb} +3 -3
- data/lib/turnkey_client/models/{externaldatav1_timestamp.rb → external_data_v1_timestamp.rb} +3 -3
- data/lib/turnkey_client/models/{v1_feature.rb → feature.rb} +3 -3
- data/lib/turnkey_client/models/{v1_feature_name.rb → feature_name.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_activities_request.rb → get_activities_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_activities_response.rb → get_activities_response.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_activity_request.rb → get_activity_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_api_key_request.rb → get_api_key_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_api_key_response.rb → get_api_key_response.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_api_keys_request.rb → get_api_keys_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_api_keys_response.rb → get_api_keys_response.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_authenticator_request.rb → get_authenticator_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_authenticator_response.rb → get_authenticator_response.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_authenticators_request.rb → get_authenticators_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_authenticators_response.rb → get_authenticators_response.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_policies_request.rb → get_policies_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_policies_response.rb → get_policies_response.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_policy_request.rb → get_policy_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_policy_response.rb → get_policy_response.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_private_key_request.rb → get_private_key_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_private_key_response.rb → get_private_key_response.rb} +3 -3
- data/lib/turnkey_client/models/{v1_list_user_tags_request.rb → get_private_keys_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_private_keys_intent_v2.rb → get_private_keys_response.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_user_request.rb → get_user_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_user_response.rb → get_user_response.rb} +3 -3
- data/lib/turnkey_client/models/get_users_request.rb +212 -0
- data/lib/turnkey_client/models/{v1_create_users_intent_v2.rb → get_users_response.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_wallet_accounts_request.rb → get_wallet_accounts_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_wallet_accounts_response.rb → get_wallet_accounts_response.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_wallet_request.rb → get_wallet_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_wallet_response.rb → get_wallet_response.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_users_request.rb → get_wallets_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_wallets_response.rb → get_wallets_response.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_whoami_request.rb → get_whoami_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_whoami_response.rb → get_whoami_response.rb} +3 -3
- data/lib/turnkey_client/models/{v1_hash_function.rb → hash_function.rb} +3 -3
- data/lib/turnkey_client/models/import_wallet_intent.rb +259 -0
- data/lib/turnkey_client/models/import_wallet_request.rb +289 -0
- data/lib/turnkey_client/models/import_wallet_result.rb +229 -0
- data/lib/turnkey_client/models/init_import_wallet_intent.rb +212 -0
- data/lib/turnkey_client/models/init_import_wallet_request.rb +289 -0
- data/lib/turnkey_client/models/init_import_wallet_result.rb +212 -0
- data/lib/turnkey_client/models/{v1_init_user_email_recovery_intent.rb → init_user_email_recovery_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_private_key_tag_request.rb → init_user_email_recovery_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_init_user_email_recovery_result.rb → init_user_email_recovery_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_intent.rb → intent.rb} +25 -7
- data/lib/turnkey_client/models/{v1_invitation_params.rb → invitation_params.rb} +3 -3
- data/lib/turnkey_client/models/list_private_key_tags_request.rb +212 -0
- data/lib/turnkey_client/models/{v1_list_private_key_tags_response.rb → list_private_key_tags_response.rb} +3 -3
- data/lib/turnkey_client/models/{v1_get_wallets_request.rb → list_user_tags_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_list_user_tags_response.rb → list_user_tags_response.rb} +3 -3
- data/lib/turnkey_client/models/{v1_mnemonic_language.rb → mnemonic_language.rb} +3 -3
- data/lib/turnkey_client/models/{v1_operator.rb → operator.rb} +3 -3
- data/lib/turnkey_client/models/{v1_pagination.rb → pagination.rb} +3 -3
- data/lib/turnkey_client/models/{v1_path_format.rb → path_format.rb} +3 -3
- data/lib/turnkey_client/models/{v1_payload_encoding.rb → payload_encoding.rb} +3 -3
- data/lib/turnkey_client/models/{v1_policy.rb → policy.rb} +3 -3
- data/lib/turnkey_client/models/{v1_private_key.rb → private_key.rb} +3 -3
- data/lib/turnkey_client/models/{v1_private_key_params.rb → private_key_params.rb} +3 -3
- data/lib/turnkey_client/models/{v1_private_key_result.rb → private_key_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_public_key_credential_with_attestation.rb → public_key_credential_with_attestation.rb} +3 -3
- data/lib/turnkey_client/models/{v1_recover_user_intent.rb → recover_user_intent.rb} +3 -3
- data/lib/turnkey_client/models/recover_user_request.rb +289 -0
- data/lib/turnkey_client/models/{v1_recover_user_result.rb → recover_user_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_approve_activity_intent.rb → reject_activity_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_wallet_request.rb → reject_activity_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_remove_organization_feature_intent.rb → remove_organization_feature_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_remove_organization_feature_request.rb → remove_organization_feature_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_remove_organization_feature_result.rb → remove_organization_feature_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_result.rb → result.rb} +25 -7
- data/lib/turnkey_client/models/{v1_root_user_params.rb → root_user_params.rb} +3 -3
- data/lib/turnkey_client/models/{v1_selector.rb → selector.rb} +3 -3
- data/lib/turnkey_client/models/{v1_selector_v2.rb → selector_v2.rb} +3 -3
- data/lib/turnkey_client/models/{v1_set_organization_feature_intent.rb → set_organization_feature_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_wallet_accounts_request.rb → set_organization_feature_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_set_organization_feature_result.rb → set_organization_feature_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_set_payment_method_intent.rb → set_payment_method_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_set_payment_method_intent_v2.rb → set_payment_method_intent_v2.rb} +3 -3
- data/lib/turnkey_client/models/{v1_set_payment_method_result.rb → set_payment_method_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_sign_raw_payload_intent.rb → sign_raw_payload_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_sign_raw_payload_intent_v2.rb → sign_raw_payload_intent_v2.rb} +3 -3
- data/lib/turnkey_client/models/{v1_delete_policy_request.rb → sign_raw_payload_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_sign_raw_payload_result.rb → sign_raw_payload_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_sign_transaction_intent.rb → sign_transaction_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_sign_transaction_intent_v2.rb → sign_transaction_intent_v2.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_user_tag_request.rb → sign_transaction_request.rb} +5 -5
- data/lib/turnkey_client/models/{v1_sign_transaction_result.rb → sign_transaction_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_simple_client_extension_results.rb → simple_client_extension_results.rb} +3 -3
- data/lib/turnkey_client/models/{v1_tag_type.rb → tag_type.rb} +3 -3
- data/lib/turnkey_client/models/{v1_transaction_type.rb → transaction_type.rb} +3 -3
- data/lib/turnkey_client/models/{v1_update_allowed_origins_intent.rb → update_allowed_origins_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_update_allowed_origins_result.rb → update_allowed_origins_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_update_policy_intent.rb → update_policy_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_update_policy_request.rb → update_policy_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_create_policy_result.rb → update_policy_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_update_private_key_tag_intent.rb → update_private_key_tag_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_update_private_key_tag_request.rb → update_private_key_tag_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_update_private_key_tag_result.rb → update_private_key_tag_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_update_root_quorum_intent.rb → update_root_quorum_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_update_root_quorum_request.rb → update_root_quorum_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_update_root_quorum_result.rb → update_root_quorum_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_update_user_intent.rb → update_user_intent.rb} +3 -3
- data/lib/turnkey_client/models/update_user_request.rb +289 -0
- data/lib/turnkey_client/models/{v1_update_user_result.rb → update_user_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_update_user_tag_intent.rb → update_user_tag_intent.rb} +3 -3
- data/lib/turnkey_client/models/{v1_update_user_tag_request.rb → update_user_tag_request.rb} +3 -3
- data/lib/turnkey_client/models/{v1_update_user_tag_result.rb → update_user_tag_result.rb} +3 -3
- data/lib/turnkey_client/models/{v1_user.rb → user.rb} +3 -3
- data/lib/turnkey_client/models/{v1_user_params.rb → user_params.rb} +3 -3
- data/lib/turnkey_client/models/{v1_user_params_v2.rb → user_params_v2.rb} +3 -3
- data/lib/turnkey_client/models/{datav1_tag.rb → v1_tag.rb} +3 -3
- data/lib/turnkey_client/models/{v1_vote.rb → vote.rb} +3 -3
- data/lib/turnkey_client/models/{v1_wallet.rb → wallet.rb} +22 -7
- data/lib/turnkey_client/models/{v1_wallet_account.rb → wallet_account.rb} +3 -3
- data/lib/turnkey_client/models/{v1_wallet_account_params.rb → wallet_account_params.rb} +3 -3
- data/lib/turnkey_client/models/{v1_wallet_params.rb → wallet_params.rb} +3 -3
- data/lib/turnkey_client/models/{v1_wallet_result.rb → wallet_result.rb} +3 -3
- data/lib/turnkey_client/version.rb +1 -1
- data/lib/turnkey_client.rb +234 -237
- metadata +236 -239
- data/lib/turnkey_client/api/public_api_service_api.rb +0 -66
- data/lib/turnkey_client/models/externaldatav1_quorum.rb +0 -229
- data/lib/turnkey_client/models/protobuf_any.rb +0 -201
- data/lib/turnkey_client/models/rpc_status.rb +0 -226
- data/lib/turnkey_client/models/v1_create_organization_result.rb +0 -212
- data/lib/turnkey_client/models/v1_create_sub_organization_request.rb +0 -289
- data/lib/turnkey_client/models/v1_delete_authenticators_request.rb +0 -289
- data/lib/turnkey_client/models/v1_delete_invitation_request.rb +0 -289
- data/lib/turnkey_client/models/v1_delete_organization_intent.rb +0 -212
- data/lib/turnkey_client/models/v1_delete_organization_result.rb +0 -212
- data/lib/turnkey_client/models/v1_email_customization.rb +0 -233
- data/lib/turnkey_client/models/v1_export_private_key_request.rb +0 -289
- data/lib/turnkey_client/models/v1_get_organization_response.rb +0 -211
- data/lib/turnkey_client/models/v1_init_user_email_recovery_request.rb +0 -289
- data/lib/turnkey_client/models/v1_invitation.rb +0 -330
- data/lib/turnkey_client/models/v1_invitation_status.rb +0 -29
- data/lib/turnkey_client/models/v1_list_private_key_tags_request.rb +0 -212
- data/lib/turnkey_client/models/v1_noop_codegen_anchor_response.rb +0 -211
- data/lib/turnkey_client/models/v1_organization_data.rb +0 -301
- data/lib/turnkey_client/models/v1_set_organization_feature_request.rb +0 -289
- data/lib/turnkey_client/models/v1_web_authn_stamp.rb +0 -257
@@ -1,229 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#API Reference
|
3
|
-
|
4
|
-
#Review our [API Introduction](../api-introduction) to get started.
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.53
|
10
|
-
=end
|
11
|
-
|
12
|
-
require 'date'
|
13
|
-
|
14
|
-
module TurnkeyClient
|
15
|
-
class Externaldatav1Quorum
|
16
|
-
# Count of unique approvals required to meet quorum.
|
17
|
-
attr_accessor :threshold
|
18
|
-
|
19
|
-
# Unique identifiers of quorum set members.
|
20
|
-
attr_accessor :user_ids
|
21
|
-
|
22
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
-
def self.attribute_map
|
24
|
-
{
|
25
|
-
:'threshold' => :'threshold',
|
26
|
-
:'user_ids' => :'userIds'
|
27
|
-
}
|
28
|
-
end
|
29
|
-
|
30
|
-
# Attribute type mapping.
|
31
|
-
def self.openapi_types
|
32
|
-
{
|
33
|
-
:'threshold' => :'Object',
|
34
|
-
:'user_ids' => :'Object'
|
35
|
-
}
|
36
|
-
end
|
37
|
-
|
38
|
-
# List of attributes with nullable: true
|
39
|
-
def self.openapi_nullable
|
40
|
-
Set.new([
|
41
|
-
])
|
42
|
-
end
|
43
|
-
|
44
|
-
# Initializes the object
|
45
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
46
|
-
def initialize(attributes = {})
|
47
|
-
if (!attributes.is_a?(Hash))
|
48
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::Externaldatav1Quorum` initialize method"
|
49
|
-
end
|
50
|
-
|
51
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
52
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
53
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
54
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::Externaldatav1Quorum`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
55
|
-
end
|
56
|
-
h[k.to_sym] = v
|
57
|
-
}
|
58
|
-
|
59
|
-
if attributes.key?(:'threshold')
|
60
|
-
self.threshold = attributes[:'threshold']
|
61
|
-
end
|
62
|
-
|
63
|
-
if attributes.key?(:'user_ids')
|
64
|
-
if (value = attributes[:'user_ids']).is_a?(Array)
|
65
|
-
self.user_ids = value
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
71
|
-
# @return Array for valid properties with the reasons
|
72
|
-
def list_invalid_properties
|
73
|
-
invalid_properties = Array.new
|
74
|
-
if @threshold.nil?
|
75
|
-
invalid_properties.push('invalid value for "threshold", threshold cannot be nil.')
|
76
|
-
end
|
77
|
-
|
78
|
-
if @user_ids.nil?
|
79
|
-
invalid_properties.push('invalid value for "user_ids", user_ids cannot be nil.')
|
80
|
-
end
|
81
|
-
|
82
|
-
invalid_properties
|
83
|
-
end
|
84
|
-
|
85
|
-
# Check to see if the all the properties in the model are valid
|
86
|
-
# @return true if the model is valid
|
87
|
-
def valid?
|
88
|
-
return false if @threshold.nil?
|
89
|
-
return false if @user_ids.nil?
|
90
|
-
true
|
91
|
-
end
|
92
|
-
|
93
|
-
# Checks equality by comparing each attribute.
|
94
|
-
# @param [Object] Object to be compared
|
95
|
-
def ==(o)
|
96
|
-
return true if self.equal?(o)
|
97
|
-
self.class == o.class &&
|
98
|
-
threshold == o.threshold &&
|
99
|
-
user_ids == o.user_ids
|
100
|
-
end
|
101
|
-
|
102
|
-
# @see the `==` method
|
103
|
-
# @param [Object] Object to be compared
|
104
|
-
def eql?(o)
|
105
|
-
self == o
|
106
|
-
end
|
107
|
-
|
108
|
-
# Calculates hash code according to all attributes.
|
109
|
-
# @return [Integer] Hash code
|
110
|
-
def hash
|
111
|
-
[threshold, user_ids].hash
|
112
|
-
end
|
113
|
-
|
114
|
-
# Builds the object from hash
|
115
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
116
|
-
# @return [Object] Returns the model itself
|
117
|
-
def self.build_from_hash(attributes)
|
118
|
-
new.build_from_hash(attributes)
|
119
|
-
end
|
120
|
-
|
121
|
-
# Builds the object from hash
|
122
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
123
|
-
# @return [Object] Returns the model itself
|
124
|
-
def build_from_hash(attributes)
|
125
|
-
return nil unless attributes.is_a?(Hash)
|
126
|
-
self.class.openapi_types.each_pair do |key, type|
|
127
|
-
if type =~ /\AArray<(.*)>/i
|
128
|
-
# check to ensure the input is an array given that the attribute
|
129
|
-
# is documented as an array but the input is not
|
130
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
131
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
132
|
-
end
|
133
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
134
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
135
|
-
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
136
|
-
self.send("#{key}=", nil)
|
137
|
-
end
|
138
|
-
end
|
139
|
-
|
140
|
-
self
|
141
|
-
end
|
142
|
-
|
143
|
-
# Deserializes the data based on type
|
144
|
-
# @param string type Data type
|
145
|
-
# @param string value Value to be deserialized
|
146
|
-
# @return [Object] Deserialized data
|
147
|
-
def _deserialize(type, value)
|
148
|
-
case type.to_sym
|
149
|
-
when :DateTime
|
150
|
-
DateTime.parse(value)
|
151
|
-
when :Date
|
152
|
-
Date.parse(value)
|
153
|
-
when :String
|
154
|
-
value.to_s
|
155
|
-
when :Integer
|
156
|
-
value.to_i
|
157
|
-
when :Float
|
158
|
-
value.to_f
|
159
|
-
when :Boolean
|
160
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
161
|
-
true
|
162
|
-
else
|
163
|
-
false
|
164
|
-
end
|
165
|
-
when :Object
|
166
|
-
# generic object (usually a Hash), return directly
|
167
|
-
value
|
168
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
169
|
-
inner_type = Regexp.last_match[:inner_type]
|
170
|
-
value.map { |v| _deserialize(inner_type, v) }
|
171
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
172
|
-
k_type = Regexp.last_match[:k_type]
|
173
|
-
v_type = Regexp.last_match[:v_type]
|
174
|
-
{}.tap do |hash|
|
175
|
-
value.each do |k, v|
|
176
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
177
|
-
end
|
178
|
-
end
|
179
|
-
else # model
|
180
|
-
TurnkeyClient.const_get(type).build_from_hash(value)
|
181
|
-
end
|
182
|
-
end
|
183
|
-
|
184
|
-
# Returns the string representation of the object
|
185
|
-
# @return [String] String presentation of the object
|
186
|
-
def to_s
|
187
|
-
to_hash.to_s
|
188
|
-
end
|
189
|
-
|
190
|
-
# to_body is an alias to to_hash (backward compatibility)
|
191
|
-
# @return [Hash] Returns the object in the form of hash
|
192
|
-
def to_body
|
193
|
-
to_hash
|
194
|
-
end
|
195
|
-
|
196
|
-
# Returns the object in the form of hash
|
197
|
-
# @return [Hash] Returns the object in the form of hash
|
198
|
-
def to_hash
|
199
|
-
hash = {}
|
200
|
-
self.class.attribute_map.each_pair do |attr, param|
|
201
|
-
value = self.send(attr)
|
202
|
-
if value.nil?
|
203
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
204
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
205
|
-
end
|
206
|
-
|
207
|
-
hash[param] = _to_hash(value)
|
208
|
-
end
|
209
|
-
hash
|
210
|
-
end
|
211
|
-
|
212
|
-
# Outputs non-array value in the form of hash
|
213
|
-
# For object, use to_hash. Otherwise, just return the value
|
214
|
-
# @param [Object] value Any valid value
|
215
|
-
# @return [Hash] Returns the value in the form of hash
|
216
|
-
def _to_hash(value)
|
217
|
-
if value.is_a?(Array)
|
218
|
-
value.compact.map { |v| _to_hash(v) }
|
219
|
-
elsif value.is_a?(Hash)
|
220
|
-
{}.tap do |hash|
|
221
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
222
|
-
end
|
223
|
-
elsif value.respond_to? :to_hash
|
224
|
-
value.to_hash
|
225
|
-
else
|
226
|
-
value
|
227
|
-
end
|
228
|
-
end end
|
229
|
-
end
|
@@ -1,201 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#API Reference
|
3
|
-
|
4
|
-
#Review our [API Introduction](../api-introduction) to get started.
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.53
|
10
|
-
=end
|
11
|
-
|
12
|
-
require 'date'
|
13
|
-
|
14
|
-
module TurnkeyClient
|
15
|
-
class ProtobufAny
|
16
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
17
|
-
def self.attribute_map
|
18
|
-
{
|
19
|
-
}
|
20
|
-
end
|
21
|
-
|
22
|
-
# Attribute type mapping.
|
23
|
-
def self.openapi_types
|
24
|
-
{
|
25
|
-
}
|
26
|
-
end
|
27
|
-
|
28
|
-
# List of attributes with nullable: true
|
29
|
-
def self.openapi_nullable
|
30
|
-
Set.new([
|
31
|
-
])
|
32
|
-
end
|
33
|
-
|
34
|
-
# Initializes the object
|
35
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
36
|
-
def initialize(attributes = {})
|
37
|
-
if (!attributes.is_a?(Hash))
|
38
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::ProtobufAny` initialize method"
|
39
|
-
end
|
40
|
-
|
41
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
42
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
43
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
44
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::ProtobufAny`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
45
|
-
end
|
46
|
-
h[k.to_sym] = v
|
47
|
-
}
|
48
|
-
|
49
|
-
# call parent's initialize
|
50
|
-
super(attributes)
|
51
|
-
end
|
52
|
-
|
53
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
54
|
-
# @return Array for valid properties with the reasons
|
55
|
-
def list_invalid_properties
|
56
|
-
invalid_properties = super
|
57
|
-
invalid_properties
|
58
|
-
end
|
59
|
-
|
60
|
-
# Check to see if the all the properties in the model are valid
|
61
|
-
# @return true if the model is valid
|
62
|
-
def valid?
|
63
|
-
true
|
64
|
-
end
|
65
|
-
|
66
|
-
# Checks equality by comparing each attribute.
|
67
|
-
# @param [Object] Object to be compared
|
68
|
-
def ==(o)
|
69
|
-
return true if self.equal?(o)
|
70
|
-
self.class == o.class && super(o)
|
71
|
-
end
|
72
|
-
|
73
|
-
# @see the `==` method
|
74
|
-
# @param [Object] Object to be compared
|
75
|
-
def eql?(o)
|
76
|
-
self == o
|
77
|
-
end
|
78
|
-
|
79
|
-
# Calculates hash code according to all attributes.
|
80
|
-
# @return [Integer] Hash code
|
81
|
-
def hash
|
82
|
-
[].hash
|
83
|
-
end
|
84
|
-
|
85
|
-
# Builds the object from hash
|
86
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
87
|
-
# @return [Object] Returns the model itself
|
88
|
-
def self.build_from_hash(attributes)
|
89
|
-
new.build_from_hash(attributes)
|
90
|
-
end
|
91
|
-
|
92
|
-
# Builds the object from hash
|
93
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
94
|
-
# @return [Object] Returns the model itself
|
95
|
-
def build_from_hash(attributes)
|
96
|
-
return nil unless attributes.is_a?(Hash)
|
97
|
-
super(attributes)
|
98
|
-
self.class.openapi_types.each_pair do |key, type|
|
99
|
-
if type =~ /\AArray<(.*)>/i
|
100
|
-
# check to ensure the input is an array given that the attribute
|
101
|
-
# is documented as an array but the input is not
|
102
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
103
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
104
|
-
end
|
105
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
106
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
107
|
-
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
108
|
-
self.send("#{key}=", nil)
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
self
|
113
|
-
end
|
114
|
-
|
115
|
-
# Deserializes the data based on type
|
116
|
-
# @param string type Data type
|
117
|
-
# @param string value Value to be deserialized
|
118
|
-
# @return [Object] Deserialized data
|
119
|
-
def _deserialize(type, value)
|
120
|
-
case type.to_sym
|
121
|
-
when :DateTime
|
122
|
-
DateTime.parse(value)
|
123
|
-
when :Date
|
124
|
-
Date.parse(value)
|
125
|
-
when :String
|
126
|
-
value.to_s
|
127
|
-
when :Integer
|
128
|
-
value.to_i
|
129
|
-
when :Float
|
130
|
-
value.to_f
|
131
|
-
when :Boolean
|
132
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
133
|
-
true
|
134
|
-
else
|
135
|
-
false
|
136
|
-
end
|
137
|
-
when :Object
|
138
|
-
# generic object (usually a Hash), return directly
|
139
|
-
value
|
140
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
141
|
-
inner_type = Regexp.last_match[:inner_type]
|
142
|
-
value.map { |v| _deserialize(inner_type, v) }
|
143
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
144
|
-
k_type = Regexp.last_match[:k_type]
|
145
|
-
v_type = Regexp.last_match[:v_type]
|
146
|
-
{}.tap do |hash|
|
147
|
-
value.each do |k, v|
|
148
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
149
|
-
end
|
150
|
-
end
|
151
|
-
else # model
|
152
|
-
TurnkeyClient.const_get(type).build_from_hash(value)
|
153
|
-
end
|
154
|
-
end
|
155
|
-
|
156
|
-
# Returns the string representation of the object
|
157
|
-
# @return [String] String presentation of the object
|
158
|
-
def to_s
|
159
|
-
to_hash.to_s
|
160
|
-
end
|
161
|
-
|
162
|
-
# to_body is an alias to to_hash (backward compatibility)
|
163
|
-
# @return [Hash] Returns the object in the form of hash
|
164
|
-
def to_body
|
165
|
-
to_hash
|
166
|
-
end
|
167
|
-
|
168
|
-
# Returns the object in the form of hash
|
169
|
-
# @return [Hash] Returns the object in the form of hash
|
170
|
-
def to_hash
|
171
|
-
hash = super
|
172
|
-
self.class.attribute_map.each_pair do |attr, param|
|
173
|
-
value = self.send(attr)
|
174
|
-
if value.nil?
|
175
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
176
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
177
|
-
end
|
178
|
-
|
179
|
-
hash[param] = _to_hash(value)
|
180
|
-
end
|
181
|
-
hash
|
182
|
-
end
|
183
|
-
|
184
|
-
# Outputs non-array value in the form of hash
|
185
|
-
# For object, use to_hash. Otherwise, just return the value
|
186
|
-
# @param [Object] value Any valid value
|
187
|
-
# @return [Hash] Returns the value in the form of hash
|
188
|
-
def _to_hash(value)
|
189
|
-
if value.is_a?(Array)
|
190
|
-
value.compact.map { |v| _to_hash(v) }
|
191
|
-
elsif value.is_a?(Hash)
|
192
|
-
{}.tap do |hash|
|
193
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
194
|
-
end
|
195
|
-
elsif value.respond_to? :to_hash
|
196
|
-
value.to_hash
|
197
|
-
else
|
198
|
-
value
|
199
|
-
end
|
200
|
-
end end
|
201
|
-
end
|
@@ -1,226 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#API Reference
|
3
|
-
|
4
|
-
#Review our [API Introduction](../api-introduction) to get started.
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.53
|
10
|
-
=end
|
11
|
-
|
12
|
-
require 'date'
|
13
|
-
|
14
|
-
module TurnkeyClient
|
15
|
-
class RpcStatus
|
16
|
-
attr_accessor :code
|
17
|
-
|
18
|
-
attr_accessor :message
|
19
|
-
|
20
|
-
attr_accessor :details
|
21
|
-
|
22
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
-
def self.attribute_map
|
24
|
-
{
|
25
|
-
:'code' => :'code',
|
26
|
-
:'message' => :'message',
|
27
|
-
:'details' => :'details'
|
28
|
-
}
|
29
|
-
end
|
30
|
-
|
31
|
-
# Attribute type mapping.
|
32
|
-
def self.openapi_types
|
33
|
-
{
|
34
|
-
:'code' => :'Object',
|
35
|
-
:'message' => :'Object',
|
36
|
-
:'details' => :'Object'
|
37
|
-
}
|
38
|
-
end
|
39
|
-
|
40
|
-
# List of attributes with nullable: true
|
41
|
-
def self.openapi_nullable
|
42
|
-
Set.new([
|
43
|
-
])
|
44
|
-
end
|
45
|
-
|
46
|
-
# Initializes the object
|
47
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
48
|
-
def initialize(attributes = {})
|
49
|
-
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::RpcStatus` initialize method"
|
51
|
-
end
|
52
|
-
|
53
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
54
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::RpcStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
|
-
end
|
58
|
-
h[k.to_sym] = v
|
59
|
-
}
|
60
|
-
|
61
|
-
if attributes.key?(:'code')
|
62
|
-
self.code = attributes[:'code']
|
63
|
-
end
|
64
|
-
|
65
|
-
if attributes.key?(:'message')
|
66
|
-
self.message = attributes[:'message']
|
67
|
-
end
|
68
|
-
|
69
|
-
if attributes.key?(:'details')
|
70
|
-
if (value = attributes[:'details']).is_a?(Array)
|
71
|
-
self.details = value
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
77
|
-
# @return Array for valid properties with the reasons
|
78
|
-
def list_invalid_properties
|
79
|
-
invalid_properties = Array.new
|
80
|
-
invalid_properties
|
81
|
-
end
|
82
|
-
|
83
|
-
# Check to see if the all the properties in the model are valid
|
84
|
-
# @return true if the model is valid
|
85
|
-
def valid?
|
86
|
-
true
|
87
|
-
end
|
88
|
-
|
89
|
-
# Checks equality by comparing each attribute.
|
90
|
-
# @param [Object] Object to be compared
|
91
|
-
def ==(o)
|
92
|
-
return true if self.equal?(o)
|
93
|
-
self.class == o.class &&
|
94
|
-
code == o.code &&
|
95
|
-
message == o.message &&
|
96
|
-
details == o.details
|
97
|
-
end
|
98
|
-
|
99
|
-
# @see the `==` method
|
100
|
-
# @param [Object] Object to be compared
|
101
|
-
def eql?(o)
|
102
|
-
self == o
|
103
|
-
end
|
104
|
-
|
105
|
-
# Calculates hash code according to all attributes.
|
106
|
-
# @return [Integer] Hash code
|
107
|
-
def hash
|
108
|
-
[code, message, details].hash
|
109
|
-
end
|
110
|
-
|
111
|
-
# Builds the object from hash
|
112
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
113
|
-
# @return [Object] Returns the model itself
|
114
|
-
def self.build_from_hash(attributes)
|
115
|
-
new.build_from_hash(attributes)
|
116
|
-
end
|
117
|
-
|
118
|
-
# Builds the object from hash
|
119
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
120
|
-
# @return [Object] Returns the model itself
|
121
|
-
def build_from_hash(attributes)
|
122
|
-
return nil unless attributes.is_a?(Hash)
|
123
|
-
self.class.openapi_types.each_pair do |key, type|
|
124
|
-
if type =~ /\AArray<(.*)>/i
|
125
|
-
# check to ensure the input is an array given that the attribute
|
126
|
-
# is documented as an array but the input is not
|
127
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
128
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
129
|
-
end
|
130
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
131
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
132
|
-
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
133
|
-
self.send("#{key}=", nil)
|
134
|
-
end
|
135
|
-
end
|
136
|
-
|
137
|
-
self
|
138
|
-
end
|
139
|
-
|
140
|
-
# Deserializes the data based on type
|
141
|
-
# @param string type Data type
|
142
|
-
# @param string value Value to be deserialized
|
143
|
-
# @return [Object] Deserialized data
|
144
|
-
def _deserialize(type, value)
|
145
|
-
case type.to_sym
|
146
|
-
when :DateTime
|
147
|
-
DateTime.parse(value)
|
148
|
-
when :Date
|
149
|
-
Date.parse(value)
|
150
|
-
when :String
|
151
|
-
value.to_s
|
152
|
-
when :Integer
|
153
|
-
value.to_i
|
154
|
-
when :Float
|
155
|
-
value.to_f
|
156
|
-
when :Boolean
|
157
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
158
|
-
true
|
159
|
-
else
|
160
|
-
false
|
161
|
-
end
|
162
|
-
when :Object
|
163
|
-
# generic object (usually a Hash), return directly
|
164
|
-
value
|
165
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
166
|
-
inner_type = Regexp.last_match[:inner_type]
|
167
|
-
value.map { |v| _deserialize(inner_type, v) }
|
168
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
169
|
-
k_type = Regexp.last_match[:k_type]
|
170
|
-
v_type = Regexp.last_match[:v_type]
|
171
|
-
{}.tap do |hash|
|
172
|
-
value.each do |k, v|
|
173
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
174
|
-
end
|
175
|
-
end
|
176
|
-
else # model
|
177
|
-
TurnkeyClient.const_get(type).build_from_hash(value)
|
178
|
-
end
|
179
|
-
end
|
180
|
-
|
181
|
-
# Returns the string representation of the object
|
182
|
-
# @return [String] String presentation of the object
|
183
|
-
def to_s
|
184
|
-
to_hash.to_s
|
185
|
-
end
|
186
|
-
|
187
|
-
# to_body is an alias to to_hash (backward compatibility)
|
188
|
-
# @return [Hash] Returns the object in the form of hash
|
189
|
-
def to_body
|
190
|
-
to_hash
|
191
|
-
end
|
192
|
-
|
193
|
-
# Returns the object in the form of hash
|
194
|
-
# @return [Hash] Returns the object in the form of hash
|
195
|
-
def to_hash
|
196
|
-
hash = {}
|
197
|
-
self.class.attribute_map.each_pair do |attr, param|
|
198
|
-
value = self.send(attr)
|
199
|
-
if value.nil?
|
200
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
201
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
202
|
-
end
|
203
|
-
|
204
|
-
hash[param] = _to_hash(value)
|
205
|
-
end
|
206
|
-
hash
|
207
|
-
end
|
208
|
-
|
209
|
-
# Outputs non-array value in the form of hash
|
210
|
-
# For object, use to_hash. Otherwise, just return the value
|
211
|
-
# @param [Object] value Any valid value
|
212
|
-
# @return [Hash] Returns the value in the form of hash
|
213
|
-
def _to_hash(value)
|
214
|
-
if value.is_a?(Array)
|
215
|
-
value.compact.map { |v| _to_hash(v) }
|
216
|
-
elsif value.is_a?(Hash)
|
217
|
-
{}.tap do |hash|
|
218
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
219
|
-
end
|
220
|
-
elsif value.respond_to? :to_hash
|
221
|
-
value.to_hash
|
222
|
-
else
|
223
|
-
value
|
224
|
-
end
|
225
|
-
end end
|
226
|
-
end
|