turnkey_client 0.0.3 → 0.0.7
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 +0 -1
- data/lib/turnkey_client/api/api_keys_api.rb +0 -1
- data/lib/turnkey_client/api/authenticators_api.rb +0 -1
- data/lib/turnkey_client/api/consensus_api.rb +0 -1
- data/lib/turnkey_client/api/features_api.rb +0 -1
- data/lib/turnkey_client/api/invitations_api.rb +0 -1
- data/lib/turnkey_client/api/organizations_api.rb +58 -1
- data/lib/turnkey_client/api/policies_api.rb +58 -1
- data/lib/turnkey_client/api/private_key_tags_api.rb +0 -1
- data/lib/turnkey_client/api/private_keys_api.rb +0 -1
- data/lib/turnkey_client/api/sessions_api.rb +118 -3
- data/lib/turnkey_client/api/signing_api.rb +58 -1
- data/lib/turnkey_client/api/user_auth_api.rb +0 -1
- data/lib/turnkey_client/api/user_recovery_api.rb +0 -1
- data/lib/turnkey_client/api/user_tags_api.rb +0 -1
- data/lib/turnkey_client/api/users_api.rb +232 -1
- data/lib/turnkey_client/api/wallets_api.rb +0 -1
- data/lib/turnkey_client/api_client.rb +0 -1
- data/lib/turnkey_client/api_error.rb +0 -1
- data/lib/turnkey_client/configuration.rb +0 -1
- data/lib/turnkey_client/models/accept_invitation_intent.rb +0 -1
- data/lib/turnkey_client/models/accept_invitation_intent_v2.rb +0 -1
- data/lib/turnkey_client/models/accept_invitation_result.rb +0 -1
- data/lib/turnkey_client/models/access_type.rb +0 -1
- data/lib/turnkey_client/models/activate_billing_tier_intent.rb +0 -1
- data/lib/turnkey_client/models/activate_billing_tier_result.rb +0 -1
- data/lib/turnkey_client/models/activity.rb +13 -5
- data/lib/turnkey_client/models/activity_response.rb +0 -1
- data/lib/turnkey_client/models/activity_status.rb +0 -1
- data/lib/turnkey_client/models/activity_type.rb +11 -1
- data/lib/turnkey_client/models/activity_v1_address.rb +0 -1
- data/lib/turnkey_client/models/address_format.rb +0 -1
- data/lib/turnkey_client/models/any.rb +200 -0
- data/lib/turnkey_client/models/api_key.rb +0 -1
- data/lib/turnkey_client/models/api_key_curve.rb +28 -0
- data/lib/turnkey_client/models/api_key_params.rb +0 -1
- data/lib/turnkey_client/models/api_key_params_v2.rb +250 -0
- data/lib/turnkey_client/models/api_only_user_params.rb +0 -1
- data/lib/turnkey_client/models/approve_activity_intent.rb +0 -1
- data/lib/turnkey_client/models/approve_activity_request.rb +0 -1
- data/lib/turnkey_client/models/attestation.rb +0 -1
- data/lib/turnkey_client/models/authenticator.rb +0 -1
- data/lib/turnkey_client/models/authenticator_attestation_response.rb +0 -1
- data/lib/turnkey_client/models/authenticator_params.rb +0 -1
- data/lib/turnkey_client/models/authenticator_params_v2.rb +0 -1
- data/lib/turnkey_client/models/authenticator_transport.rb +0 -1
- data/lib/turnkey_client/models/config.rb +216 -0
- data/lib/turnkey_client/models/create_api_keys_intent.rb +0 -1
- data/lib/turnkey_client/models/create_api_keys_intent_v2.rb +228 -0
- data/lib/turnkey_client/models/create_api_keys_request.rb +2 -3
- data/lib/turnkey_client/models/create_api_keys_result.rb +0 -1
- data/lib/turnkey_client/models/create_api_only_users_intent.rb +0 -1
- data/lib/turnkey_client/models/create_api_only_users_result.rb +0 -1
- data/lib/turnkey_client/models/create_authenticators_intent.rb +0 -1
- data/lib/turnkey_client/models/create_authenticators_intent_v2.rb +0 -1
- data/lib/turnkey_client/models/create_authenticators_request.rb +0 -1
- data/lib/turnkey_client/models/create_authenticators_result.rb +0 -1
- data/lib/turnkey_client/models/create_invitations_intent.rb +0 -1
- data/lib/turnkey_client/models/create_invitations_request.rb +0 -1
- data/lib/turnkey_client/models/create_invitations_result.rb +0 -1
- data/lib/turnkey_client/models/create_oauth_providers_intent.rb +228 -0
- data/lib/turnkey_client/models/create_oauth_providers_request.rb +288 -0
- data/lib/turnkey_client/models/create_oauth_providers_result.rb +213 -0
- data/lib/turnkey_client/models/create_organization_intent.rb +0 -1
- data/lib/turnkey_client/models/create_organization_intent_v2.rb +0 -1
- data/lib/turnkey_client/models/create_organization_result.rb +0 -1
- data/lib/turnkey_client/models/create_policies_intent.rb +213 -0
- data/lib/turnkey_client/models/create_policies_request.rb +288 -0
- data/lib/turnkey_client/models/create_policies_result.rb +213 -0
- data/lib/turnkey_client/models/create_policy_intent.rb +0 -1
- data/lib/turnkey_client/models/create_policy_intent_v2.rb +0 -1
- data/lib/turnkey_client/models/create_policy_intent_v3.rb +0 -1
- data/lib/turnkey_client/models/create_policy_request.rb +0 -1
- data/lib/turnkey_client/models/create_policy_result.rb +0 -1
- data/lib/turnkey_client/models/create_private_key_tag_intent.rb +0 -1
- data/lib/turnkey_client/models/create_private_key_tag_request.rb +0 -1
- data/lib/turnkey_client/models/create_private_key_tag_result.rb +0 -1
- data/lib/turnkey_client/models/create_private_keys_intent.rb +0 -1
- data/lib/turnkey_client/models/create_private_keys_intent_v2.rb +0 -1
- data/lib/turnkey_client/models/create_private_keys_request.rb +0 -1
- data/lib/turnkey_client/models/create_private_keys_result.rb +0 -1
- data/lib/turnkey_client/models/create_private_keys_result_v2.rb +0 -1
- data/lib/turnkey_client/models/create_read_only_session_intent.rb +196 -0
- data/lib/turnkey_client/models/create_read_only_session_request.rb +288 -0
- data/lib/turnkey_client/models/create_read_only_session_result.rb +286 -0
- data/lib/turnkey_client/models/create_read_write_session_intent.rb +246 -0
- data/lib/turnkey_client/models/create_read_write_session_request.rb +288 -0
- data/lib/turnkey_client/models/create_read_write_session_result.rb +286 -0
- data/lib/turnkey_client/models/create_sub_organization_intent.rb +0 -1
- data/lib/turnkey_client/models/create_sub_organization_intent_v2.rb +0 -1
- data/lib/turnkey_client/models/create_sub_organization_intent_v3.rb +0 -1
- data/lib/turnkey_client/models/create_sub_organization_intent_v4.rb +0 -1
- data/lib/turnkey_client/models/create_sub_organization_intent_v5.rb +272 -0
- data/lib/turnkey_client/models/create_sub_organization_intent_v6.rb +272 -0
- data/lib/turnkey_client/models/create_sub_organization_request.rb +2 -3
- data/lib/turnkey_client/models/create_sub_organization_result.rb +0 -1
- data/lib/turnkey_client/models/create_sub_organization_result_v3.rb +0 -1
- data/lib/turnkey_client/models/create_sub_organization_result_v4.rb +0 -1
- data/lib/turnkey_client/models/create_sub_organization_result_v5.rb +230 -0
- data/lib/turnkey_client/models/create_sub_organization_result_v6.rb +230 -0
- data/lib/turnkey_client/models/create_user_tag_intent.rb +0 -1
- data/lib/turnkey_client/models/create_user_tag_request.rb +0 -1
- data/lib/turnkey_client/models/create_user_tag_result.rb +0 -1
- data/lib/turnkey_client/models/create_users_intent.rb +0 -1
- data/lib/turnkey_client/models/create_users_intent_v2.rb +0 -1
- data/lib/turnkey_client/models/create_users_request.rb +0 -1
- data/lib/turnkey_client/models/create_users_result.rb +0 -1
- data/lib/turnkey_client/models/create_wallet_accounts_intent.rb +0 -1
- data/lib/turnkey_client/models/create_wallet_accounts_request.rb +0 -1
- data/lib/turnkey_client/models/create_wallet_accounts_result.rb +0 -1
- data/lib/turnkey_client/models/create_wallet_intent.rb +0 -1
- data/lib/turnkey_client/models/create_wallet_request.rb +0 -1
- data/lib/turnkey_client/models/create_wallet_result.rb +0 -1
- data/lib/turnkey_client/models/cred_props_authentication_extensions_client_outputs.rb +0 -1
- data/lib/turnkey_client/models/credential_type.rb +3 -1
- data/lib/turnkey_client/models/curve.rb +0 -1
- data/lib/turnkey_client/models/data_v1_address.rb +0 -1
- data/lib/turnkey_client/models/delete_api_keys_intent.rb +0 -1
- data/lib/turnkey_client/models/delete_api_keys_request.rb +0 -1
- data/lib/turnkey_client/models/delete_api_keys_result.rb +0 -1
- data/lib/turnkey_client/models/delete_authenticators_intent.rb +0 -1
- data/lib/turnkey_client/models/delete_authenticators_request.rb +0 -1
- data/lib/turnkey_client/models/delete_authenticators_result.rb +0 -1
- data/lib/turnkey_client/models/delete_invitation_intent.rb +0 -1
- data/lib/turnkey_client/models/delete_invitation_request.rb +0 -1
- data/lib/turnkey_client/models/delete_invitation_result.rb +0 -1
- data/lib/turnkey_client/models/delete_oauth_providers_intent.rb +228 -0
- data/lib/turnkey_client/models/delete_oauth_providers_request.rb +288 -0
- data/lib/turnkey_client/models/delete_oauth_providers_result.rb +213 -0
- data/lib/turnkey_client/models/delete_organization_intent.rb +0 -1
- data/lib/turnkey_client/models/delete_organization_result.rb +0 -1
- data/lib/turnkey_client/models/delete_payment_method_intent.rb +0 -1
- data/lib/turnkey_client/models/delete_payment_method_result.rb +0 -1
- data/lib/turnkey_client/models/delete_policy_intent.rb +0 -1
- data/lib/turnkey_client/models/delete_policy_request.rb +0 -1
- data/lib/turnkey_client/models/delete_policy_result.rb +0 -1
- data/lib/turnkey_client/models/delete_private_key_tags_intent.rb +0 -1
- data/lib/turnkey_client/models/delete_private_key_tags_request.rb +0 -1
- data/lib/turnkey_client/models/delete_private_key_tags_result.rb +0 -1
- data/lib/turnkey_client/models/delete_user_tags_intent.rb +0 -1
- data/lib/turnkey_client/models/delete_user_tags_request.rb +0 -1
- data/lib/turnkey_client/models/delete_user_tags_result.rb +0 -1
- data/lib/turnkey_client/models/delete_users_intent.rb +0 -1
- data/lib/turnkey_client/models/delete_users_request.rb +0 -1
- data/lib/turnkey_client/models/delete_users_result.rb +0 -1
- data/lib/turnkey_client/models/disable_private_key_intent.rb +0 -1
- data/lib/turnkey_client/models/disable_private_key_result.rb +0 -1
- data/lib/turnkey_client/models/effect.rb +0 -1
- data/lib/turnkey_client/models/email_auth_intent.rb +14 -5
- data/lib/turnkey_client/models/email_auth_intent_v2.rb +265 -0
- data/lib/turnkey_client/models/email_auth_request.rb +2 -3
- data/lib/turnkey_client/models/email_auth_result.rb +0 -1
- data/lib/turnkey_client/models/email_customization_params.rb +1 -2
- data/lib/turnkey_client/models/export_private_key_intent.rb +0 -1
- data/lib/turnkey_client/models/export_private_key_request.rb +0 -1
- data/lib/turnkey_client/models/export_private_key_result.rb +0 -1
- data/lib/turnkey_client/models/export_wallet_account_intent.rb +0 -1
- data/lib/turnkey_client/models/export_wallet_account_request.rb +0 -1
- data/lib/turnkey_client/models/export_wallet_account_result.rb +0 -1
- data/lib/turnkey_client/models/export_wallet_intent.rb +0 -1
- data/lib/turnkey_client/models/export_wallet_request.rb +0 -1
- data/lib/turnkey_client/models/export_wallet_result.rb +0 -1
- data/lib/turnkey_client/models/external_data_v1_credential.rb +0 -1
- data/lib/turnkey_client/models/external_data_v1_quorum.rb +228 -0
- data/lib/turnkey_client/models/external_data_v1_timestamp.rb +0 -1
- data/lib/turnkey_client/models/feature.rb +0 -1
- data/lib/turnkey_client/models/feature_name.rb +0 -1
- data/lib/turnkey_client/models/get_activities_request.rb +0 -1
- data/lib/turnkey_client/models/get_activities_response.rb +0 -1
- data/lib/turnkey_client/models/get_activity_request.rb +0 -1
- data/lib/turnkey_client/models/get_api_key_request.rb +0 -1
- data/lib/turnkey_client/models/get_api_key_response.rb +0 -1
- data/lib/turnkey_client/models/get_api_keys_request.rb +0 -1
- data/lib/turnkey_client/models/get_api_keys_response.rb +0 -1
- data/lib/turnkey_client/models/get_authenticator_request.rb +0 -1
- data/lib/turnkey_client/models/get_authenticator_response.rb +0 -1
- data/lib/turnkey_client/models/get_authenticators_request.rb +0 -1
- data/lib/turnkey_client/models/get_authenticators_response.rb +0 -1
- data/lib/turnkey_client/models/get_oauth_providers_request.rb +221 -0
- data/lib/turnkey_client/models/get_oauth_providers_response.rb +213 -0
- data/lib/turnkey_client/models/get_organization_configs_request.rb +211 -0
- data/lib/turnkey_client/models/get_organization_configs_response.rb +210 -0
- data/lib/turnkey_client/models/get_policies_request.rb +0 -1
- data/lib/turnkey_client/models/get_policies_response.rb +0 -1
- data/lib/turnkey_client/models/get_policy_request.rb +0 -1
- data/lib/turnkey_client/models/get_policy_response.rb +0 -1
- data/lib/turnkey_client/models/get_private_key_request.rb +0 -1
- data/lib/turnkey_client/models/get_private_key_response.rb +0 -1
- data/lib/turnkey_client/models/get_private_keys_request.rb +0 -1
- data/lib/turnkey_client/models/get_private_keys_response.rb +0 -1
- data/lib/turnkey_client/models/get_sub_org_ids_request.rb +14 -6
- data/lib/turnkey_client/models/get_sub_org_ids_response.rb +0 -1
- data/lib/turnkey_client/models/get_user_request.rb +0 -1
- data/lib/turnkey_client/models/get_user_response.rb +0 -1
- data/lib/turnkey_client/models/get_users_request.rb +0 -1
- data/lib/turnkey_client/models/get_users_response.rb +0 -1
- data/lib/turnkey_client/models/get_wallet_accounts_request.rb +13 -5
- data/lib/turnkey_client/models/get_wallet_accounts_response.rb +0 -1
- data/lib/turnkey_client/models/get_wallet_request.rb +0 -1
- data/lib/turnkey_client/models/get_wallet_response.rb +0 -1
- data/lib/turnkey_client/models/get_wallets_request.rb +0 -1
- data/lib/turnkey_client/models/get_wallets_response.rb +0 -1
- data/lib/turnkey_client/models/get_whoami_request.rb +0 -1
- data/lib/turnkey_client/models/get_whoami_response.rb +0 -1
- data/lib/turnkey_client/models/hash_function.rb +0 -1
- data/lib/turnkey_client/models/import_private_key_intent.rb +0 -1
- data/lib/turnkey_client/models/import_private_key_request.rb +0 -1
- data/lib/turnkey_client/models/import_private_key_result.rb +0 -1
- data/lib/turnkey_client/models/import_wallet_intent.rb +0 -1
- data/lib/turnkey_client/models/import_wallet_request.rb +0 -1
- data/lib/turnkey_client/models/import_wallet_result.rb +0 -1
- data/lib/turnkey_client/models/init_import_private_key_intent.rb +0 -1
- data/lib/turnkey_client/models/init_import_private_key_request.rb +0 -1
- data/lib/turnkey_client/models/init_import_private_key_result.rb +0 -1
- data/lib/turnkey_client/models/init_import_wallet_intent.rb +0 -1
- data/lib/turnkey_client/models/init_import_wallet_request.rb +0 -1
- data/lib/turnkey_client/models/init_import_wallet_result.rb +0 -1
- data/lib/turnkey_client/models/init_user_email_recovery_intent.rb +0 -1
- data/lib/turnkey_client/models/init_user_email_recovery_request.rb +0 -1
- data/lib/turnkey_client/models/init_user_email_recovery_result.rb +0 -1
- data/lib/turnkey_client/models/intent.rb +103 -10
- data/lib/turnkey_client/models/invitation_params.rb +0 -1
- data/lib/turnkey_client/models/list_private_key_tags_request.rb +0 -1
- data/lib/turnkey_client/models/list_private_key_tags_response.rb +0 -1
- data/lib/turnkey_client/models/list_user_tags_request.rb +0 -1
- data/lib/turnkey_client/models/list_user_tags_response.rb +0 -1
- data/lib/turnkey_client/models/mnemonic_language.rb +0 -1
- data/lib/turnkey_client/models/oauth_intent.rb +246 -0
- data/lib/turnkey_client/models/oauth_provider.rb +299 -0
- data/lib/turnkey_client/models/oauth_provider_params.rb +226 -0
- data/lib/turnkey_client/models/oauth_request.rb +288 -0
- data/lib/turnkey_client/models/oauth_result.rb +241 -0
- data/lib/turnkey_client/models/operator.rb +0 -1
- data/lib/turnkey_client/models/pagination.rb +0 -1
- data/lib/turnkey_client/models/path_format.rb +0 -1
- data/lib/turnkey_client/models/payload_encoding.rb +0 -1
- data/lib/turnkey_client/models/policy.rb +0 -1
- data/lib/turnkey_client/models/private_key.rb +0 -1
- data/lib/turnkey_client/models/private_key_params.rb +0 -1
- data/lib/turnkey_client/models/private_key_result.rb +0 -1
- data/lib/turnkey_client/models/public_key_credential_with_attestation.rb +0 -1
- data/lib/turnkey_client/models/recover_user_intent.rb +0 -1
- data/lib/turnkey_client/models/recover_user_request.rb +0 -1
- data/lib/turnkey_client/models/recover_user_result.rb +0 -1
- data/lib/turnkey_client/models/reject_activity_intent.rb +0 -1
- data/lib/turnkey_client/models/reject_activity_request.rb +0 -1
- data/lib/turnkey_client/models/remove_organization_feature_intent.rb +0 -1
- data/lib/turnkey_client/models/remove_organization_feature_request.rb +0 -1
- data/lib/turnkey_client/models/remove_organization_feature_result.rb +0 -1
- data/lib/turnkey_client/models/result.rb +85 -5
- data/lib/turnkey_client/models/root_user_params.rb +0 -1
- data/lib/turnkey_client/models/root_user_params_v2.rb +272 -0
- data/lib/turnkey_client/models/root_user_params_v3.rb +272 -0
- data/lib/turnkey_client/models/selector.rb +0 -1
- data/lib/turnkey_client/models/selector_v2.rb +0 -1
- data/lib/turnkey_client/models/set_organization_feature_intent.rb +0 -1
- data/lib/turnkey_client/models/set_organization_feature_request.rb +0 -1
- data/lib/turnkey_client/models/set_organization_feature_result.rb +0 -1
- data/lib/turnkey_client/models/set_payment_method_intent.rb +0 -1
- data/lib/turnkey_client/models/set_payment_method_intent_v2.rb +0 -1
- data/lib/turnkey_client/models/set_payment_method_result.rb +0 -1
- data/lib/turnkey_client/models/sign_raw_payload_intent.rb +0 -1
- data/lib/turnkey_client/models/sign_raw_payload_intent_v2.rb +0 -1
- data/lib/turnkey_client/models/sign_raw_payload_request.rb +0 -1
- data/lib/turnkey_client/models/sign_raw_payload_result.rb +0 -1
- data/lib/turnkey_client/models/sign_raw_payloads_intent.rb +256 -0
- data/lib/turnkey_client/models/sign_raw_payloads_request.rb +288 -0
- data/lib/turnkey_client/models/sign_raw_payloads_result.rb +207 -0
- data/lib/turnkey_client/models/sign_transaction_intent.rb +0 -1
- data/lib/turnkey_client/models/sign_transaction_intent_v2.rb +0 -1
- data/lib/turnkey_client/models/sign_transaction_request.rb +0 -1
- data/lib/turnkey_client/models/sign_transaction_result.rb +0 -1
- data/lib/turnkey_client/models/simple_client_extension_results.rb +0 -1
- data/lib/turnkey_client/models/status.rb +225 -0
- data/lib/turnkey_client/models/tag_type.rb +0 -1
- data/lib/turnkey_client/models/transaction_type.rb +0 -1
- data/lib/turnkey_client/models/update_allowed_origins_intent.rb +0 -1
- data/lib/turnkey_client/models/update_allowed_origins_result.rb +0 -1
- data/lib/turnkey_client/models/update_policy_intent.rb +0 -1
- data/lib/turnkey_client/models/update_policy_request.rb +0 -1
- data/lib/turnkey_client/models/update_policy_result.rb +0 -1
- data/lib/turnkey_client/models/update_private_key_tag_intent.rb +0 -1
- data/lib/turnkey_client/models/update_private_key_tag_request.rb +0 -1
- data/lib/turnkey_client/models/update_private_key_tag_result.rb +0 -1
- data/lib/turnkey_client/models/update_root_quorum_intent.rb +0 -1
- data/lib/turnkey_client/models/update_root_quorum_request.rb +0 -1
- data/lib/turnkey_client/models/update_root_quorum_result.rb +0 -1
- data/lib/turnkey_client/models/update_user_intent.rb +0 -1
- data/lib/turnkey_client/models/update_user_request.rb +0 -1
- data/lib/turnkey_client/models/update_user_result.rb +0 -1
- data/lib/turnkey_client/models/update_user_tag_intent.rb +0 -1
- data/lib/turnkey_client/models/update_user_tag_request.rb +0 -1
- data/lib/turnkey_client/models/update_user_tag_result.rb +0 -1
- data/lib/turnkey_client/models/user.rb +18 -2
- data/lib/turnkey_client/models/user_params.rb +0 -1
- data/lib/turnkey_client/models/user_params_v2.rb +0 -1
- data/lib/turnkey_client/models/v1_tag.rb +0 -1
- data/lib/turnkey_client/models/vote.rb +0 -1
- data/lib/turnkey_client/models/wallet.rb +0 -1
- data/lib/turnkey_client/models/wallet_account.rb +4 -20
- data/lib/turnkey_client/models/wallet_account_params.rb +0 -1
- data/lib/turnkey_client/models/wallet_params.rb +0 -1
- data/lib/turnkey_client/models/wallet_result.rb +0 -1
- data/lib/turnkey_client/version.rb +1 -2
- data/lib/turnkey_client.rb +41 -1
- data/turnkey_client-0.0.3.gem +0 -0
- data/turnkey_client-0.0.4.gem +0 -0
- data/turnkey_client.gemspec +0 -1
- metadata +45 -2
@@ -6,7 +6,6 @@
|
|
6
6
|
OpenAPI spec version: 1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.54
|
10
9
|
=end
|
11
10
|
|
12
11
|
require 'date'
|
@@ -111,6 +110,24 @@ module TurnkeyClient
|
|
111
110
|
|
112
111
|
attr_accessor :import_private_key_result
|
113
112
|
|
113
|
+
attr_accessor :create_policies_result
|
114
|
+
|
115
|
+
attr_accessor :sign_raw_payloads_result
|
116
|
+
|
117
|
+
attr_accessor :create_read_only_session_result
|
118
|
+
|
119
|
+
attr_accessor :create_oauth_providers_result
|
120
|
+
|
121
|
+
attr_accessor :delete_oauth_providers_result
|
122
|
+
|
123
|
+
attr_accessor :create_sub_organization_result_v5
|
124
|
+
|
125
|
+
attr_accessor :oauth_result
|
126
|
+
|
127
|
+
attr_accessor :create_read_write_session_result
|
128
|
+
|
129
|
+
attr_accessor :create_sub_organization_result_v6
|
130
|
+
|
114
131
|
# Attribute mapping from ruby-style variable name to JSON key.
|
115
132
|
def self.attribute_map
|
116
133
|
{
|
@@ -162,7 +179,16 @@ module TurnkeyClient
|
|
162
179
|
:'init_import_wallet_result' => :'initImportWalletResult',
|
163
180
|
:'import_wallet_result' => :'importWalletResult',
|
164
181
|
:'init_import_private_key_result' => :'initImportPrivateKeyResult',
|
165
|
-
:'import_private_key_result' => :'importPrivateKeyResult'
|
182
|
+
:'import_private_key_result' => :'importPrivateKeyResult',
|
183
|
+
:'create_policies_result' => :'createPoliciesResult',
|
184
|
+
:'sign_raw_payloads_result' => :'signRawPayloadsResult',
|
185
|
+
:'create_read_only_session_result' => :'createReadOnlySessionResult',
|
186
|
+
:'create_oauth_providers_result' => :'createOauthProvidersResult',
|
187
|
+
:'delete_oauth_providers_result' => :'deleteOauthProvidersResult',
|
188
|
+
:'create_sub_organization_result_v5' => :'createSubOrganizationResultV5',
|
189
|
+
:'oauth_result' => :'oauthResult',
|
190
|
+
:'create_read_write_session_result' => :'createReadWriteSessionResult',
|
191
|
+
:'create_sub_organization_result_v6' => :'createSubOrganizationResultV6'
|
166
192
|
}
|
167
193
|
end
|
168
194
|
|
@@ -217,7 +243,16 @@ module TurnkeyClient
|
|
217
243
|
:'init_import_wallet_result' => :'Object',
|
218
244
|
:'import_wallet_result' => :'Object',
|
219
245
|
:'init_import_private_key_result' => :'Object',
|
220
|
-
:'import_private_key_result' => :'Object'
|
246
|
+
:'import_private_key_result' => :'Object',
|
247
|
+
:'create_policies_result' => :'Object',
|
248
|
+
:'sign_raw_payloads_result' => :'Object',
|
249
|
+
:'create_read_only_session_result' => :'Object',
|
250
|
+
:'create_oauth_providers_result' => :'Object',
|
251
|
+
:'delete_oauth_providers_result' => :'Object',
|
252
|
+
:'create_sub_organization_result_v5' => :'Object',
|
253
|
+
:'oauth_result' => :'Object',
|
254
|
+
:'create_read_write_session_result' => :'Object',
|
255
|
+
:'create_sub_organization_result_v6' => :'Object'
|
221
256
|
}
|
222
257
|
end
|
223
258
|
|
@@ -437,6 +472,42 @@ module TurnkeyClient
|
|
437
472
|
if attributes.key?(:'import_private_key_result')
|
438
473
|
self.import_private_key_result = attributes[:'import_private_key_result']
|
439
474
|
end
|
475
|
+
|
476
|
+
if attributes.key?(:'create_policies_result')
|
477
|
+
self.create_policies_result = attributes[:'create_policies_result']
|
478
|
+
end
|
479
|
+
|
480
|
+
if attributes.key?(:'sign_raw_payloads_result')
|
481
|
+
self.sign_raw_payloads_result = attributes[:'sign_raw_payloads_result']
|
482
|
+
end
|
483
|
+
|
484
|
+
if attributes.key?(:'create_read_only_session_result')
|
485
|
+
self.create_read_only_session_result = attributes[:'create_read_only_session_result']
|
486
|
+
end
|
487
|
+
|
488
|
+
if attributes.key?(:'create_oauth_providers_result')
|
489
|
+
self.create_oauth_providers_result = attributes[:'create_oauth_providers_result']
|
490
|
+
end
|
491
|
+
|
492
|
+
if attributes.key?(:'delete_oauth_providers_result')
|
493
|
+
self.delete_oauth_providers_result = attributes[:'delete_oauth_providers_result']
|
494
|
+
end
|
495
|
+
|
496
|
+
if attributes.key?(:'create_sub_organization_result_v5')
|
497
|
+
self.create_sub_organization_result_v5 = attributes[:'create_sub_organization_result_v5']
|
498
|
+
end
|
499
|
+
|
500
|
+
if attributes.key?(:'oauth_result')
|
501
|
+
self.oauth_result = attributes[:'oauth_result']
|
502
|
+
end
|
503
|
+
|
504
|
+
if attributes.key?(:'create_read_write_session_result')
|
505
|
+
self.create_read_write_session_result = attributes[:'create_read_write_session_result']
|
506
|
+
end
|
507
|
+
|
508
|
+
if attributes.key?(:'create_sub_organization_result_v6')
|
509
|
+
self.create_sub_organization_result_v6 = attributes[:'create_sub_organization_result_v6']
|
510
|
+
end
|
440
511
|
end
|
441
512
|
|
442
513
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -505,7 +576,16 @@ module TurnkeyClient
|
|
505
576
|
init_import_wallet_result == o.init_import_wallet_result &&
|
506
577
|
import_wallet_result == o.import_wallet_result &&
|
507
578
|
init_import_private_key_result == o.init_import_private_key_result &&
|
508
|
-
import_private_key_result == o.import_private_key_result
|
579
|
+
import_private_key_result == o.import_private_key_result &&
|
580
|
+
create_policies_result == o.create_policies_result &&
|
581
|
+
sign_raw_payloads_result == o.sign_raw_payloads_result &&
|
582
|
+
create_read_only_session_result == o.create_read_only_session_result &&
|
583
|
+
create_oauth_providers_result == o.create_oauth_providers_result &&
|
584
|
+
delete_oauth_providers_result == o.delete_oauth_providers_result &&
|
585
|
+
create_sub_organization_result_v5 == o.create_sub_organization_result_v5 &&
|
586
|
+
oauth_result == o.oauth_result &&
|
587
|
+
create_read_write_session_result == o.create_read_write_session_result &&
|
588
|
+
create_sub_organization_result_v6 == o.create_sub_organization_result_v6
|
509
589
|
end
|
510
590
|
|
511
591
|
# @see the `==` method
|
@@ -517,7 +597,7 @@ module TurnkeyClient
|
|
517
597
|
# Calculates hash code according to all attributes.
|
518
598
|
# @return [Integer] Hash code
|
519
599
|
def hash
|
520
|
-
[create_organization_result, create_authenticators_result, create_users_result, create_private_keys_result, create_invitations_result, accept_invitation_result, sign_raw_payload_result, create_policy_result, disable_private_key_result, delete_users_result, delete_authenticators_result, delete_invitation_result, delete_organization_result, delete_policy_result, create_user_tag_result, delete_user_tags_result, sign_transaction_result, delete_api_keys_result, create_api_keys_result, create_private_key_tag_result, delete_private_key_tags_result, set_payment_method_result, activate_billing_tier_result, delete_payment_method_result, create_api_only_users_result, update_root_quorum_result, update_user_tag_result, update_private_key_tag_result, create_sub_organization_result, update_allowed_origins_result, create_private_keys_result_v2, update_user_result, update_policy_result, create_sub_organization_result_v3, create_wallet_result, create_wallet_accounts_result, init_user_email_recovery_result, recover_user_result, set_organization_feature_result, remove_organization_feature_result, export_private_key_result, export_wallet_result, create_sub_organization_result_v4, email_auth_result, export_wallet_account_result, init_import_wallet_result, import_wallet_result, init_import_private_key_result, import_private_key_result].hash
|
600
|
+
[create_organization_result, create_authenticators_result, create_users_result, create_private_keys_result, create_invitations_result, accept_invitation_result, sign_raw_payload_result, create_policy_result, disable_private_key_result, delete_users_result, delete_authenticators_result, delete_invitation_result, delete_organization_result, delete_policy_result, create_user_tag_result, delete_user_tags_result, sign_transaction_result, delete_api_keys_result, create_api_keys_result, create_private_key_tag_result, delete_private_key_tags_result, set_payment_method_result, activate_billing_tier_result, delete_payment_method_result, create_api_only_users_result, update_root_quorum_result, update_user_tag_result, update_private_key_tag_result, create_sub_organization_result, update_allowed_origins_result, create_private_keys_result_v2, update_user_result, update_policy_result, create_sub_organization_result_v3, create_wallet_result, create_wallet_accounts_result, init_user_email_recovery_result, recover_user_result, set_organization_feature_result, remove_organization_feature_result, export_private_key_result, export_wallet_result, create_sub_organization_result_v4, email_auth_result, export_wallet_account_result, init_import_wallet_result, import_wallet_result, init_import_private_key_result, import_private_key_result, create_policies_result, sign_raw_payloads_result, create_read_only_session_result, create_oauth_providers_result, delete_oauth_providers_result, create_sub_organization_result_v5, oauth_result, create_read_write_session_result, create_sub_organization_result_v6].hash
|
521
601
|
end
|
522
602
|
|
523
603
|
# Builds the object from hash
|
@@ -0,0 +1,272 @@
|
|
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
|
+
=end
|
10
|
+
|
11
|
+
require 'date'
|
12
|
+
|
13
|
+
module TurnkeyClient
|
14
|
+
class RootUserParamsV2
|
15
|
+
# Human-readable name for a User.
|
16
|
+
attr_accessor :user_name
|
17
|
+
|
18
|
+
# The user's email address.
|
19
|
+
attr_accessor :user_email
|
20
|
+
|
21
|
+
# A list of API Key parameters.
|
22
|
+
attr_accessor :api_keys
|
23
|
+
|
24
|
+
# A list of Authenticator parameters.
|
25
|
+
attr_accessor :authenticators
|
26
|
+
|
27
|
+
# A list of Oauth providers.
|
28
|
+
attr_accessor :oauth_providers
|
29
|
+
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'user_name' => :'userName',
|
34
|
+
:'user_email' => :'userEmail',
|
35
|
+
:'api_keys' => :'apiKeys',
|
36
|
+
:'authenticators' => :'authenticators',
|
37
|
+
:'oauth_providers' => :'oauthProviders'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
def self.openapi_types
|
43
|
+
{
|
44
|
+
:'user_name' => :'Object',
|
45
|
+
:'user_email' => :'Object',
|
46
|
+
:'api_keys' => :'Object',
|
47
|
+
:'authenticators' => :'Object',
|
48
|
+
:'oauth_providers' => :'Object'
|
49
|
+
}
|
50
|
+
end
|
51
|
+
|
52
|
+
# List of attributes with nullable: true
|
53
|
+
def self.openapi_nullable
|
54
|
+
Set.new([
|
55
|
+
])
|
56
|
+
end
|
57
|
+
|
58
|
+
# Initializes the object
|
59
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
60
|
+
def initialize(attributes = {})
|
61
|
+
if (!attributes.is_a?(Hash))
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::RootUserParamsV2` initialize method"
|
63
|
+
end
|
64
|
+
|
65
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
67
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
68
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::RootUserParamsV2`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
69
|
+
end
|
70
|
+
h[k.to_sym] = v
|
71
|
+
}
|
72
|
+
|
73
|
+
if attributes.key?(:'user_name')
|
74
|
+
self.user_name = attributes[:'user_name']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'user_email')
|
78
|
+
self.user_email = attributes[:'user_email']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'api_keys')
|
82
|
+
if (value = attributes[:'api_keys']).is_a?(Array)
|
83
|
+
self.api_keys = value
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'authenticators')
|
88
|
+
if (value = attributes[:'authenticators']).is_a?(Array)
|
89
|
+
self.authenticators = value
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.key?(:'oauth_providers')
|
94
|
+
if (value = attributes[:'oauth_providers']).is_a?(Array)
|
95
|
+
self.oauth_providers = value
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
101
|
+
# @return Array for valid properties with the reasons
|
102
|
+
def list_invalid_properties
|
103
|
+
invalid_properties = Array.new
|
104
|
+
if @user_name.nil?
|
105
|
+
invalid_properties.push('invalid value for "user_name", user_name cannot be nil.')
|
106
|
+
end
|
107
|
+
|
108
|
+
if @api_keys.nil?
|
109
|
+
invalid_properties.push('invalid value for "api_keys", api_keys cannot be nil.')
|
110
|
+
end
|
111
|
+
|
112
|
+
if @authenticators.nil?
|
113
|
+
invalid_properties.push('invalid value for "authenticators", authenticators cannot be nil.')
|
114
|
+
end
|
115
|
+
|
116
|
+
if @oauth_providers.nil?
|
117
|
+
invalid_properties.push('invalid value for "oauth_providers", oauth_providers cannot be nil.')
|
118
|
+
end
|
119
|
+
|
120
|
+
invalid_properties
|
121
|
+
end
|
122
|
+
|
123
|
+
# Check to see if the all the properties in the model are valid
|
124
|
+
# @return true if the model is valid
|
125
|
+
def valid?
|
126
|
+
return false if @user_name.nil?
|
127
|
+
return false if @api_keys.nil?
|
128
|
+
return false if @authenticators.nil?
|
129
|
+
return false if @oauth_providers.nil?
|
130
|
+
true
|
131
|
+
end
|
132
|
+
|
133
|
+
# Checks equality by comparing each attribute.
|
134
|
+
# @param [Object] Object to be compared
|
135
|
+
def ==(o)
|
136
|
+
return true if self.equal?(o)
|
137
|
+
self.class == o.class &&
|
138
|
+
user_name == o.user_name &&
|
139
|
+
user_email == o.user_email &&
|
140
|
+
api_keys == o.api_keys &&
|
141
|
+
authenticators == o.authenticators &&
|
142
|
+
oauth_providers == o.oauth_providers
|
143
|
+
end
|
144
|
+
|
145
|
+
# @see the `==` method
|
146
|
+
# @param [Object] Object to be compared
|
147
|
+
def eql?(o)
|
148
|
+
self == o
|
149
|
+
end
|
150
|
+
|
151
|
+
# Calculates hash code according to all attributes.
|
152
|
+
# @return [Integer] Hash code
|
153
|
+
def hash
|
154
|
+
[user_name, user_email, api_keys, authenticators, oauth_providers].hash
|
155
|
+
end
|
156
|
+
|
157
|
+
# Builds the object from hash
|
158
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
159
|
+
# @return [Object] Returns the model itself
|
160
|
+
def self.build_from_hash(attributes)
|
161
|
+
new.build_from_hash(attributes)
|
162
|
+
end
|
163
|
+
|
164
|
+
# Builds the object from hash
|
165
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
166
|
+
# @return [Object] Returns the model itself
|
167
|
+
def build_from_hash(attributes)
|
168
|
+
return nil unless attributes.is_a?(Hash)
|
169
|
+
self.class.openapi_types.each_pair do |key, type|
|
170
|
+
if type =~ /\AArray<(.*)>/i
|
171
|
+
# check to ensure the input is an array given that the attribute
|
172
|
+
# is documented as an array but the input is not
|
173
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
174
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
175
|
+
end
|
176
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
177
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
178
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
179
|
+
self.send("#{key}=", nil)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
self
|
184
|
+
end
|
185
|
+
|
186
|
+
# Deserializes the data based on type
|
187
|
+
# @param string type Data type
|
188
|
+
# @param string value Value to be deserialized
|
189
|
+
# @return [Object] Deserialized data
|
190
|
+
def _deserialize(type, value)
|
191
|
+
case type.to_sym
|
192
|
+
when :DateTime
|
193
|
+
DateTime.parse(value)
|
194
|
+
when :Date
|
195
|
+
Date.parse(value)
|
196
|
+
when :String
|
197
|
+
value.to_s
|
198
|
+
when :Integer
|
199
|
+
value.to_i
|
200
|
+
when :Float
|
201
|
+
value.to_f
|
202
|
+
when :Boolean
|
203
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
204
|
+
true
|
205
|
+
else
|
206
|
+
false
|
207
|
+
end
|
208
|
+
when :Object
|
209
|
+
# generic object (usually a Hash), return directly
|
210
|
+
value
|
211
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
212
|
+
inner_type = Regexp.last_match[:inner_type]
|
213
|
+
value.map { |v| _deserialize(inner_type, v) }
|
214
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
215
|
+
k_type = Regexp.last_match[:k_type]
|
216
|
+
v_type = Regexp.last_match[:v_type]
|
217
|
+
{}.tap do |hash|
|
218
|
+
value.each do |k, v|
|
219
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
220
|
+
end
|
221
|
+
end
|
222
|
+
else # model
|
223
|
+
TurnkeyClient.const_get(type).build_from_hash(value)
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
# Returns the string representation of the object
|
228
|
+
# @return [String] String presentation of the object
|
229
|
+
def to_s
|
230
|
+
to_hash.to_s
|
231
|
+
end
|
232
|
+
|
233
|
+
# to_body is an alias to to_hash (backward compatibility)
|
234
|
+
# @return [Hash] Returns the object in the form of hash
|
235
|
+
def to_body
|
236
|
+
to_hash
|
237
|
+
end
|
238
|
+
|
239
|
+
# Returns the object in the form of hash
|
240
|
+
# @return [Hash] Returns the object in the form of hash
|
241
|
+
def to_hash
|
242
|
+
hash = {}
|
243
|
+
self.class.attribute_map.each_pair do |attr, param|
|
244
|
+
value = self.send(attr)
|
245
|
+
if value.nil?
|
246
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
247
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
248
|
+
end
|
249
|
+
|
250
|
+
hash[param] = _to_hash(value)
|
251
|
+
end
|
252
|
+
hash
|
253
|
+
end
|
254
|
+
|
255
|
+
# Outputs non-array value in the form of hash
|
256
|
+
# For object, use to_hash. Otherwise, just return the value
|
257
|
+
# @param [Object] value Any valid value
|
258
|
+
# @return [Hash] Returns the value in the form of hash
|
259
|
+
def _to_hash(value)
|
260
|
+
if value.is_a?(Array)
|
261
|
+
value.compact.map { |v| _to_hash(v) }
|
262
|
+
elsif value.is_a?(Hash)
|
263
|
+
{}.tap do |hash|
|
264
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
265
|
+
end
|
266
|
+
elsif value.respond_to? :to_hash
|
267
|
+
value.to_hash
|
268
|
+
else
|
269
|
+
value
|
270
|
+
end
|
271
|
+
end end
|
272
|
+
end
|
@@ -0,0 +1,272 @@
|
|
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
|
+
=end
|
10
|
+
|
11
|
+
require 'date'
|
12
|
+
|
13
|
+
module TurnkeyClient
|
14
|
+
class RootUserParamsV3
|
15
|
+
# Human-readable name for a User.
|
16
|
+
attr_accessor :user_name
|
17
|
+
|
18
|
+
# The user's email address.
|
19
|
+
attr_accessor :user_email
|
20
|
+
|
21
|
+
# A list of API Key parameters.
|
22
|
+
attr_accessor :api_keys
|
23
|
+
|
24
|
+
# A list of Authenticator parameters.
|
25
|
+
attr_accessor :authenticators
|
26
|
+
|
27
|
+
# A list of Oauth providers.
|
28
|
+
attr_accessor :oauth_providers
|
29
|
+
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'user_name' => :'userName',
|
34
|
+
:'user_email' => :'userEmail',
|
35
|
+
:'api_keys' => :'apiKeys',
|
36
|
+
:'authenticators' => :'authenticators',
|
37
|
+
:'oauth_providers' => :'oauthProviders'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
def self.openapi_types
|
43
|
+
{
|
44
|
+
:'user_name' => :'Object',
|
45
|
+
:'user_email' => :'Object',
|
46
|
+
:'api_keys' => :'Object',
|
47
|
+
:'authenticators' => :'Object',
|
48
|
+
:'oauth_providers' => :'Object'
|
49
|
+
}
|
50
|
+
end
|
51
|
+
|
52
|
+
# List of attributes with nullable: true
|
53
|
+
def self.openapi_nullable
|
54
|
+
Set.new([
|
55
|
+
])
|
56
|
+
end
|
57
|
+
|
58
|
+
# Initializes the object
|
59
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
60
|
+
def initialize(attributes = {})
|
61
|
+
if (!attributes.is_a?(Hash))
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::RootUserParamsV3` initialize method"
|
63
|
+
end
|
64
|
+
|
65
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
67
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
68
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::RootUserParamsV3`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
69
|
+
end
|
70
|
+
h[k.to_sym] = v
|
71
|
+
}
|
72
|
+
|
73
|
+
if attributes.key?(:'user_name')
|
74
|
+
self.user_name = attributes[:'user_name']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'user_email')
|
78
|
+
self.user_email = attributes[:'user_email']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'api_keys')
|
82
|
+
if (value = attributes[:'api_keys']).is_a?(Array)
|
83
|
+
self.api_keys = value
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'authenticators')
|
88
|
+
if (value = attributes[:'authenticators']).is_a?(Array)
|
89
|
+
self.authenticators = value
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.key?(:'oauth_providers')
|
94
|
+
if (value = attributes[:'oauth_providers']).is_a?(Array)
|
95
|
+
self.oauth_providers = value
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
101
|
+
# @return Array for valid properties with the reasons
|
102
|
+
def list_invalid_properties
|
103
|
+
invalid_properties = Array.new
|
104
|
+
if @user_name.nil?
|
105
|
+
invalid_properties.push('invalid value for "user_name", user_name cannot be nil.')
|
106
|
+
end
|
107
|
+
|
108
|
+
if @api_keys.nil?
|
109
|
+
invalid_properties.push('invalid value for "api_keys", api_keys cannot be nil.')
|
110
|
+
end
|
111
|
+
|
112
|
+
if @authenticators.nil?
|
113
|
+
invalid_properties.push('invalid value for "authenticators", authenticators cannot be nil.')
|
114
|
+
end
|
115
|
+
|
116
|
+
if @oauth_providers.nil?
|
117
|
+
invalid_properties.push('invalid value for "oauth_providers", oauth_providers cannot be nil.')
|
118
|
+
end
|
119
|
+
|
120
|
+
invalid_properties
|
121
|
+
end
|
122
|
+
|
123
|
+
# Check to see if the all the properties in the model are valid
|
124
|
+
# @return true if the model is valid
|
125
|
+
def valid?
|
126
|
+
return false if @user_name.nil?
|
127
|
+
return false if @api_keys.nil?
|
128
|
+
return false if @authenticators.nil?
|
129
|
+
return false if @oauth_providers.nil?
|
130
|
+
true
|
131
|
+
end
|
132
|
+
|
133
|
+
# Checks equality by comparing each attribute.
|
134
|
+
# @param [Object] Object to be compared
|
135
|
+
def ==(o)
|
136
|
+
return true if self.equal?(o)
|
137
|
+
self.class == o.class &&
|
138
|
+
user_name == o.user_name &&
|
139
|
+
user_email == o.user_email &&
|
140
|
+
api_keys == o.api_keys &&
|
141
|
+
authenticators == o.authenticators &&
|
142
|
+
oauth_providers == o.oauth_providers
|
143
|
+
end
|
144
|
+
|
145
|
+
# @see the `==` method
|
146
|
+
# @param [Object] Object to be compared
|
147
|
+
def eql?(o)
|
148
|
+
self == o
|
149
|
+
end
|
150
|
+
|
151
|
+
# Calculates hash code according to all attributes.
|
152
|
+
# @return [Integer] Hash code
|
153
|
+
def hash
|
154
|
+
[user_name, user_email, api_keys, authenticators, oauth_providers].hash
|
155
|
+
end
|
156
|
+
|
157
|
+
# Builds the object from hash
|
158
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
159
|
+
# @return [Object] Returns the model itself
|
160
|
+
def self.build_from_hash(attributes)
|
161
|
+
new.build_from_hash(attributes)
|
162
|
+
end
|
163
|
+
|
164
|
+
# Builds the object from hash
|
165
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
166
|
+
# @return [Object] Returns the model itself
|
167
|
+
def build_from_hash(attributes)
|
168
|
+
return nil unless attributes.is_a?(Hash)
|
169
|
+
self.class.openapi_types.each_pair do |key, type|
|
170
|
+
if type =~ /\AArray<(.*)>/i
|
171
|
+
# check to ensure the input is an array given that the attribute
|
172
|
+
# is documented as an array but the input is not
|
173
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
174
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
175
|
+
end
|
176
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
177
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
178
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
179
|
+
self.send("#{key}=", nil)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
self
|
184
|
+
end
|
185
|
+
|
186
|
+
# Deserializes the data based on type
|
187
|
+
# @param string type Data type
|
188
|
+
# @param string value Value to be deserialized
|
189
|
+
# @return [Object] Deserialized data
|
190
|
+
def _deserialize(type, value)
|
191
|
+
case type.to_sym
|
192
|
+
when :DateTime
|
193
|
+
DateTime.parse(value)
|
194
|
+
when :Date
|
195
|
+
Date.parse(value)
|
196
|
+
when :String
|
197
|
+
value.to_s
|
198
|
+
when :Integer
|
199
|
+
value.to_i
|
200
|
+
when :Float
|
201
|
+
value.to_f
|
202
|
+
when :Boolean
|
203
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
204
|
+
true
|
205
|
+
else
|
206
|
+
false
|
207
|
+
end
|
208
|
+
when :Object
|
209
|
+
# generic object (usually a Hash), return directly
|
210
|
+
value
|
211
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
212
|
+
inner_type = Regexp.last_match[:inner_type]
|
213
|
+
value.map { |v| _deserialize(inner_type, v) }
|
214
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
215
|
+
k_type = Regexp.last_match[:k_type]
|
216
|
+
v_type = Regexp.last_match[:v_type]
|
217
|
+
{}.tap do |hash|
|
218
|
+
value.each do |k, v|
|
219
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
220
|
+
end
|
221
|
+
end
|
222
|
+
else # model
|
223
|
+
TurnkeyClient.const_get(type).build_from_hash(value)
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
# Returns the string representation of the object
|
228
|
+
# @return [String] String presentation of the object
|
229
|
+
def to_s
|
230
|
+
to_hash.to_s
|
231
|
+
end
|
232
|
+
|
233
|
+
# to_body is an alias to to_hash (backward compatibility)
|
234
|
+
# @return [Hash] Returns the object in the form of hash
|
235
|
+
def to_body
|
236
|
+
to_hash
|
237
|
+
end
|
238
|
+
|
239
|
+
# Returns the object in the form of hash
|
240
|
+
# @return [Hash] Returns the object in the form of hash
|
241
|
+
def to_hash
|
242
|
+
hash = {}
|
243
|
+
self.class.attribute_map.each_pair do |attr, param|
|
244
|
+
value = self.send(attr)
|
245
|
+
if value.nil?
|
246
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
247
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
248
|
+
end
|
249
|
+
|
250
|
+
hash[param] = _to_hash(value)
|
251
|
+
end
|
252
|
+
hash
|
253
|
+
end
|
254
|
+
|
255
|
+
# Outputs non-array value in the form of hash
|
256
|
+
# For object, use to_hash. Otherwise, just return the value
|
257
|
+
# @param [Object] value Any valid value
|
258
|
+
# @return [Hash] Returns the value in the form of hash
|
259
|
+
def _to_hash(value)
|
260
|
+
if value.is_a?(Array)
|
261
|
+
value.compact.map { |v| _to_hash(v) }
|
262
|
+
elsif value.is_a?(Hash)
|
263
|
+
{}.tap do |hash|
|
264
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
265
|
+
end
|
266
|
+
elsif value.respond_to? :to_hash
|
267
|
+
value.to_hash
|
268
|
+
else
|
269
|
+
value
|
270
|
+
end
|
271
|
+
end end
|
272
|
+
end
|