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
@@ -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 CreateSubOrganizationIntentV5
|
15
|
+
# Name for this sub-organization
|
16
|
+
attr_accessor :sub_organization_name
|
17
|
+
|
18
|
+
# Root users to create within this sub-organization
|
19
|
+
attr_accessor :root_users
|
20
|
+
|
21
|
+
# The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users
|
22
|
+
attr_accessor :root_quorum_threshold
|
23
|
+
|
24
|
+
attr_accessor :wallet
|
25
|
+
|
26
|
+
# Disable email recovery for the sub-organization
|
27
|
+
attr_accessor :disable_email_recovery
|
28
|
+
|
29
|
+
# Disable email auth for the sub-organization
|
30
|
+
attr_accessor :disable_email_auth
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
def self.attribute_map
|
34
|
+
{
|
35
|
+
:'sub_organization_name' => :'subOrganizationName',
|
36
|
+
:'root_users' => :'rootUsers',
|
37
|
+
:'root_quorum_threshold' => :'rootQuorumThreshold',
|
38
|
+
:'wallet' => :'wallet',
|
39
|
+
:'disable_email_recovery' => :'disableEmailRecovery',
|
40
|
+
:'disable_email_auth' => :'disableEmailAuth'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# Attribute type mapping.
|
45
|
+
def self.openapi_types
|
46
|
+
{
|
47
|
+
:'sub_organization_name' => :'Object',
|
48
|
+
:'root_users' => :'Object',
|
49
|
+
:'root_quorum_threshold' => :'Object',
|
50
|
+
:'wallet' => :'Object',
|
51
|
+
:'disable_email_recovery' => :'Object',
|
52
|
+
:'disable_email_auth' => :'Object'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# List of attributes with nullable: true
|
57
|
+
def self.openapi_nullable
|
58
|
+
Set.new([
|
59
|
+
])
|
60
|
+
end
|
61
|
+
|
62
|
+
# Initializes the object
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
64
|
+
def initialize(attributes = {})
|
65
|
+
if (!attributes.is_a?(Hash))
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::CreateSubOrganizationIntentV5` initialize method"
|
67
|
+
end
|
68
|
+
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::CreateSubOrganizationIntentV5`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
73
|
+
end
|
74
|
+
h[k.to_sym] = v
|
75
|
+
}
|
76
|
+
|
77
|
+
if attributes.key?(:'sub_organization_name')
|
78
|
+
self.sub_organization_name = attributes[:'sub_organization_name']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'root_users')
|
82
|
+
if (value = attributes[:'root_users']).is_a?(Array)
|
83
|
+
self.root_users = value
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'root_quorum_threshold')
|
88
|
+
self.root_quorum_threshold = attributes[:'root_quorum_threshold']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.key?(:'wallet')
|
92
|
+
self.wallet = attributes[:'wallet']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.key?(:'disable_email_recovery')
|
96
|
+
self.disable_email_recovery = attributes[:'disable_email_recovery']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.key?(:'disable_email_auth')
|
100
|
+
self.disable_email_auth = attributes[:'disable_email_auth']
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
105
|
+
# @return Array for valid properties with the reasons
|
106
|
+
def list_invalid_properties
|
107
|
+
invalid_properties = Array.new
|
108
|
+
if @sub_organization_name.nil?
|
109
|
+
invalid_properties.push('invalid value for "sub_organization_name", sub_organization_name cannot be nil.')
|
110
|
+
end
|
111
|
+
|
112
|
+
if @root_users.nil?
|
113
|
+
invalid_properties.push('invalid value for "root_users", root_users cannot be nil.')
|
114
|
+
end
|
115
|
+
|
116
|
+
if @root_quorum_threshold.nil?
|
117
|
+
invalid_properties.push('invalid value for "root_quorum_threshold", root_quorum_threshold 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 @sub_organization_name.nil?
|
127
|
+
return false if @root_users.nil?
|
128
|
+
return false if @root_quorum_threshold.nil?
|
129
|
+
true
|
130
|
+
end
|
131
|
+
|
132
|
+
# Checks equality by comparing each attribute.
|
133
|
+
# @param [Object] Object to be compared
|
134
|
+
def ==(o)
|
135
|
+
return true if self.equal?(o)
|
136
|
+
self.class == o.class &&
|
137
|
+
sub_organization_name == o.sub_organization_name &&
|
138
|
+
root_users == o.root_users &&
|
139
|
+
root_quorum_threshold == o.root_quorum_threshold &&
|
140
|
+
wallet == o.wallet &&
|
141
|
+
disable_email_recovery == o.disable_email_recovery &&
|
142
|
+
disable_email_auth == o.disable_email_auth
|
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
|
+
[sub_organization_name, root_users, root_quorum_threshold, wallet, disable_email_recovery, disable_email_auth].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 CreateSubOrganizationIntentV6
|
15
|
+
# Name for this sub-organization
|
16
|
+
attr_accessor :sub_organization_name
|
17
|
+
|
18
|
+
# Root users to create within this sub-organization
|
19
|
+
attr_accessor :root_users
|
20
|
+
|
21
|
+
# The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users
|
22
|
+
attr_accessor :root_quorum_threshold
|
23
|
+
|
24
|
+
attr_accessor :wallet
|
25
|
+
|
26
|
+
# Disable email recovery for the sub-organization
|
27
|
+
attr_accessor :disable_email_recovery
|
28
|
+
|
29
|
+
# Disable email auth for the sub-organization
|
30
|
+
attr_accessor :disable_email_auth
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
def self.attribute_map
|
34
|
+
{
|
35
|
+
:'sub_organization_name' => :'subOrganizationName',
|
36
|
+
:'root_users' => :'rootUsers',
|
37
|
+
:'root_quorum_threshold' => :'rootQuorumThreshold',
|
38
|
+
:'wallet' => :'wallet',
|
39
|
+
:'disable_email_recovery' => :'disableEmailRecovery',
|
40
|
+
:'disable_email_auth' => :'disableEmailAuth'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# Attribute type mapping.
|
45
|
+
def self.openapi_types
|
46
|
+
{
|
47
|
+
:'sub_organization_name' => :'Object',
|
48
|
+
:'root_users' => :'Object',
|
49
|
+
:'root_quorum_threshold' => :'Object',
|
50
|
+
:'wallet' => :'Object',
|
51
|
+
:'disable_email_recovery' => :'Object',
|
52
|
+
:'disable_email_auth' => :'Object'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# List of attributes with nullable: true
|
57
|
+
def self.openapi_nullable
|
58
|
+
Set.new([
|
59
|
+
])
|
60
|
+
end
|
61
|
+
|
62
|
+
# Initializes the object
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
64
|
+
def initialize(attributes = {})
|
65
|
+
if (!attributes.is_a?(Hash))
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::CreateSubOrganizationIntentV6` initialize method"
|
67
|
+
end
|
68
|
+
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::CreateSubOrganizationIntentV6`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
73
|
+
end
|
74
|
+
h[k.to_sym] = v
|
75
|
+
}
|
76
|
+
|
77
|
+
if attributes.key?(:'sub_organization_name')
|
78
|
+
self.sub_organization_name = attributes[:'sub_organization_name']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'root_users')
|
82
|
+
if (value = attributes[:'root_users']).is_a?(Array)
|
83
|
+
self.root_users = value
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'root_quorum_threshold')
|
88
|
+
self.root_quorum_threshold = attributes[:'root_quorum_threshold']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.key?(:'wallet')
|
92
|
+
self.wallet = attributes[:'wallet']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.key?(:'disable_email_recovery')
|
96
|
+
self.disable_email_recovery = attributes[:'disable_email_recovery']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.key?(:'disable_email_auth')
|
100
|
+
self.disable_email_auth = attributes[:'disable_email_auth']
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
105
|
+
# @return Array for valid properties with the reasons
|
106
|
+
def list_invalid_properties
|
107
|
+
invalid_properties = Array.new
|
108
|
+
if @sub_organization_name.nil?
|
109
|
+
invalid_properties.push('invalid value for "sub_organization_name", sub_organization_name cannot be nil.')
|
110
|
+
end
|
111
|
+
|
112
|
+
if @root_users.nil?
|
113
|
+
invalid_properties.push('invalid value for "root_users", root_users cannot be nil.')
|
114
|
+
end
|
115
|
+
|
116
|
+
if @root_quorum_threshold.nil?
|
117
|
+
invalid_properties.push('invalid value for "root_quorum_threshold", root_quorum_threshold 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 @sub_organization_name.nil?
|
127
|
+
return false if @root_users.nil?
|
128
|
+
return false if @root_quorum_threshold.nil?
|
129
|
+
true
|
130
|
+
end
|
131
|
+
|
132
|
+
# Checks equality by comparing each attribute.
|
133
|
+
# @param [Object] Object to be compared
|
134
|
+
def ==(o)
|
135
|
+
return true if self.equal?(o)
|
136
|
+
self.class == o.class &&
|
137
|
+
sub_organization_name == o.sub_organization_name &&
|
138
|
+
root_users == o.root_users &&
|
139
|
+
root_quorum_threshold == o.root_quorum_threshold &&
|
140
|
+
wallet == o.wallet &&
|
141
|
+
disable_email_recovery == o.disable_email_recovery &&
|
142
|
+
disable_email_auth == o.disable_email_auth
|
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
|
+
[sub_organization_name, root_users, root_quorum_threshold, wallet, disable_email_recovery, disable_email_auth].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
|
@@ -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'
|
@@ -130,7 +129,7 @@ module TurnkeyClient
|
|
130
129
|
# @return true if the model is valid
|
131
130
|
def valid?
|
132
131
|
return false if @type.nil?
|
133
|
-
type_validator = EnumAttributeValidator.new('Object', ['
|
132
|
+
type_validator = EnumAttributeValidator.new('Object', ['ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6'])
|
134
133
|
return false unless type_validator.valid?(@type)
|
135
134
|
return false if @timestamp_ms.nil?
|
136
135
|
return false if @organization_id.nil?
|
@@ -141,7 +140,7 @@ module TurnkeyClient
|
|
141
140
|
# Custom attribute writer method checking allowed values (enum).
|
142
141
|
# @param [Object] type Object to be assigned
|
143
142
|
def type=(type)
|
144
|
-
validator = EnumAttributeValidator.new('Object', ['
|
143
|
+
validator = EnumAttributeValidator.new('Object', ['ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6'])
|
145
144
|
unless validator.valid?(type)
|
146
145
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
147
146
|
end
|