turnkey_client 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (266) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +7 -0
  4. data/Rakefile +8 -0
  5. data/git_push.sh +55 -0
  6. data/lib/turnkey_client/api/activities_api.rb +136 -0
  7. data/lib/turnkey_client/api/api_keys_api.rb +252 -0
  8. data/lib/turnkey_client/api/authenticators_api.rb +252 -0
  9. data/lib/turnkey_client/api/consensus_api.rb +136 -0
  10. data/lib/turnkey_client/api/features_api.rb +136 -0
  11. data/lib/turnkey_client/api/invitations_api.rb +136 -0
  12. data/lib/turnkey_client/api/organizations_api.rb +194 -0
  13. data/lib/turnkey_client/api/policies_api.rb +310 -0
  14. data/lib/turnkey_client/api/private_key_tags_api.rb +194 -0
  15. data/lib/turnkey_client/api/private_keys_api.rb +252 -0
  16. data/lib/turnkey_client/api/public_api_service_api.rb +66 -0
  17. data/lib/turnkey_client/api/sessions_api.rb +78 -0
  18. data/lib/turnkey_client/api/signing_api.rb +136 -0
  19. data/lib/turnkey_client/api/user_auth_api.rb +78 -0
  20. data/lib/turnkey_client/api/user_recovery_api.rb +136 -0
  21. data/lib/turnkey_client/api/user_tags_api.rb +194 -0
  22. data/lib/turnkey_client/api/users_api.rb +310 -0
  23. data/lib/turnkey_client/api/wallets_api.rb +426 -0
  24. data/lib/turnkey_client/api_client.rb +446 -0
  25. data/lib/turnkey_client/api_error.rb +57 -0
  26. data/lib/turnkey_client/configuration.rb +216 -0
  27. data/lib/turnkey_client/models/datav1_tag.rb +269 -0
  28. data/lib/turnkey_client/models/externaldatav1_address.rb +215 -0
  29. data/lib/turnkey_client/models/externaldatav1_credential.rb +226 -0
  30. data/lib/turnkey_client/models/externaldatav1_quorum.rb +229 -0
  31. data/lib/turnkey_client/models/externaldatav1_timestamp.rb +225 -0
  32. data/lib/turnkey_client/models/immutableactivityv1_address.rb +215 -0
  33. data/lib/turnkey_client/models/protobuf_any.rb +201 -0
  34. data/lib/turnkey_client/models/rpc_status.rb +226 -0
  35. data/lib/turnkey_client/models/v1_accept_invitation_intent.rb +241 -0
  36. data/lib/turnkey_client/models/v1_accept_invitation_intent_v2.rb +241 -0
  37. data/lib/turnkey_client/models/v1_accept_invitation_result.rb +227 -0
  38. data/lib/turnkey_client/models/v1_access_type.rb +29 -0
  39. data/lib/turnkey_client/models/v1_activate_billing_tier_intent.rb +212 -0
  40. data/lib/turnkey_client/models/v1_activate_billing_tier_result.rb +212 -0
  41. data/lib/turnkey_client/models/v1_activity.rb +371 -0
  42. data/lib/turnkey_client/models/v1_activity_response.rb +211 -0
  43. data/lib/turnkey_client/models/v1_activity_status.rb +32 -0
  44. data/lib/turnkey_client/models/v1_activity_type.rb +83 -0
  45. data/lib/turnkey_client/models/v1_address_format.rb +31 -0
  46. data/lib/turnkey_client/models/v1_api_key.rb +279 -0
  47. data/lib/turnkey_client/models/v1_api_key_params.rb +237 -0
  48. data/lib/turnkey_client/models/v1_api_only_user_params.rb +256 -0
  49. data/lib/turnkey_client/models/v1_approve_activity_intent.rb +212 -0
  50. data/lib/turnkey_client/models/v1_approve_activity_request.rb +289 -0
  51. data/lib/turnkey_client/models/v1_attestation.rb +259 -0
  52. data/lib/turnkey_client/models/v1_authenticator.rb +345 -0
  53. data/lib/turnkey_client/models/v1_authenticator_attestation_response.rb +280 -0
  54. data/lib/turnkey_client/models/v1_authenticator_params.rb +256 -0
  55. data/lib/turnkey_client/models/v1_authenticator_params_v2.rb +241 -0
  56. data/lib/turnkey_client/models/v1_authenticator_transport.rb +31 -0
  57. data/lib/turnkey_client/models/v1_create_api_keys_intent.rb +229 -0
  58. data/lib/turnkey_client/models/v1_create_api_keys_request.rb +289 -0
  59. data/lib/turnkey_client/models/v1_create_api_keys_result.rb +214 -0
  60. data/lib/turnkey_client/models/v1_create_api_only_users_intent.rb +214 -0
  61. data/lib/turnkey_client/models/v1_create_api_only_users_request.rb +289 -0
  62. data/lib/turnkey_client/models/v1_create_api_only_users_result.rb +214 -0
  63. data/lib/turnkey_client/models/v1_create_authenticators_intent.rb +229 -0
  64. data/lib/turnkey_client/models/v1_create_authenticators_intent_v2.rb +229 -0
  65. data/lib/turnkey_client/models/v1_create_authenticators_request.rb +289 -0
  66. data/lib/turnkey_client/models/v1_create_authenticators_result.rb +214 -0
  67. data/lib/turnkey_client/models/v1_create_invitations_intent.rb +214 -0
  68. data/lib/turnkey_client/models/v1_create_invitations_request.rb +289 -0
  69. data/lib/turnkey_client/models/v1_create_invitations_result.rb +214 -0
  70. data/lib/turnkey_client/models/v1_create_organization_intent.rb +251 -0
  71. data/lib/turnkey_client/models/v1_create_organization_intent_v2.rb +251 -0
  72. data/lib/turnkey_client/models/v1_create_organization_result.rb +212 -0
  73. data/lib/turnkey_client/models/v1_create_policy_intent.rb +252 -0
  74. data/lib/turnkey_client/models/v1_create_policy_intent_v2.rb +252 -0
  75. data/lib/turnkey_client/models/v1_create_policy_intent_v3.rb +255 -0
  76. data/lib/turnkey_client/models/v1_create_policy_request.rb +289 -0
  77. data/lib/turnkey_client/models/v1_create_policy_result.rb +212 -0
  78. data/lib/turnkey_client/models/v1_create_private_key_tag_intent.rb +229 -0
  79. data/lib/turnkey_client/models/v1_create_private_key_tag_request.rb +289 -0
  80. data/lib/turnkey_client/models/v1_create_private_key_tag_result.rb +229 -0
  81. data/lib/turnkey_client/models/v1_create_private_keys_intent.rb +214 -0
  82. data/lib/turnkey_client/models/v1_create_private_keys_intent_v2.rb +214 -0
  83. data/lib/turnkey_client/models/v1_create_private_keys_request.rb +289 -0
  84. data/lib/turnkey_client/models/v1_create_private_keys_result.rb +214 -0
  85. data/lib/turnkey_client/models/v1_create_private_keys_result_v2.rb +214 -0
  86. data/lib/turnkey_client/models/v1_create_sub_organization_intent.rb +226 -0
  87. data/lib/turnkey_client/models/v1_create_sub_organization_intent_v2.rb +244 -0
  88. data/lib/turnkey_client/models/v1_create_sub_organization_intent_v3.rb +261 -0
  89. data/lib/turnkey_client/models/v1_create_sub_organization_intent_v4.rb +273 -0
  90. data/lib/turnkey_client/models/v1_create_sub_organization_request.rb +289 -0
  91. data/lib/turnkey_client/models/v1_create_sub_organization_result.rb +211 -0
  92. data/lib/turnkey_client/models/v1_create_sub_organization_result_v3.rb +228 -0
  93. data/lib/turnkey_client/models/v1_create_sub_organization_result_v4.rb +220 -0
  94. data/lib/turnkey_client/models/v1_create_user_tag_intent.rb +229 -0
  95. data/lib/turnkey_client/models/v1_create_user_tag_request.rb +289 -0
  96. data/lib/turnkey_client/models/v1_create_user_tag_result.rb +229 -0
  97. data/lib/turnkey_client/models/v1_create_users_intent.rb +214 -0
  98. data/lib/turnkey_client/models/v1_create_users_intent_v2.rb +214 -0
  99. data/lib/turnkey_client/models/v1_create_users_request.rb +289 -0
  100. data/lib/turnkey_client/models/v1_create_users_result.rb +214 -0
  101. data/lib/turnkey_client/models/v1_create_wallet_accounts_intent.rb +229 -0
  102. data/lib/turnkey_client/models/v1_create_wallet_accounts_request.rb +289 -0
  103. data/lib/turnkey_client/models/v1_create_wallet_accounts_result.rb +214 -0
  104. data/lib/turnkey_client/models/v1_create_wallet_intent.rb +239 -0
  105. data/lib/turnkey_client/models/v1_create_wallet_request.rb +289 -0
  106. data/lib/turnkey_client/models/v1_create_wallet_result.rb +229 -0
  107. data/lib/turnkey_client/models/v1_cred_props_authentication_extensions_client_outputs.rb +211 -0
  108. data/lib/turnkey_client/models/v1_credential_type.rb +29 -0
  109. data/lib/turnkey_client/models/v1_curve.rb +28 -0
  110. data/lib/turnkey_client/models/v1_delete_api_keys_intent.rb +229 -0
  111. data/lib/turnkey_client/models/v1_delete_api_keys_request.rb +289 -0
  112. data/lib/turnkey_client/models/v1_delete_api_keys_result.rb +214 -0
  113. data/lib/turnkey_client/models/v1_delete_authenticators_intent.rb +229 -0
  114. data/lib/turnkey_client/models/v1_delete_authenticators_request.rb +289 -0
  115. data/lib/turnkey_client/models/v1_delete_authenticators_result.rb +214 -0
  116. data/lib/turnkey_client/models/v1_delete_invitation_intent.rb +212 -0
  117. data/lib/turnkey_client/models/v1_delete_invitation_request.rb +289 -0
  118. data/lib/turnkey_client/models/v1_delete_invitation_result.rb +212 -0
  119. data/lib/turnkey_client/models/v1_delete_organization_intent.rb +212 -0
  120. data/lib/turnkey_client/models/v1_delete_organization_result.rb +212 -0
  121. data/lib/turnkey_client/models/v1_delete_payment_method_intent.rb +212 -0
  122. data/lib/turnkey_client/models/v1_delete_payment_method_result.rb +212 -0
  123. data/lib/turnkey_client/models/v1_delete_policy_intent.rb +212 -0
  124. data/lib/turnkey_client/models/v1_delete_policy_request.rb +289 -0
  125. data/lib/turnkey_client/models/v1_delete_policy_result.rb +212 -0
  126. data/lib/turnkey_client/models/v1_delete_private_key_tags_intent.rb +214 -0
  127. data/lib/turnkey_client/models/v1_delete_private_key_tags_result.rb +231 -0
  128. data/lib/turnkey_client/models/v1_delete_user_tags_intent.rb +214 -0
  129. data/lib/turnkey_client/models/v1_delete_user_tags_result.rb +231 -0
  130. data/lib/turnkey_client/models/v1_delete_users_intent.rb +214 -0
  131. data/lib/turnkey_client/models/v1_delete_users_result.rb +214 -0
  132. data/lib/turnkey_client/models/v1_disable_private_key_intent.rb +212 -0
  133. data/lib/turnkey_client/models/v1_disable_private_key_result.rb +212 -0
  134. data/lib/turnkey_client/models/v1_effect.rb +28 -0
  135. data/lib/turnkey_client/models/v1_email_auth_intent.rb +256 -0
  136. data/lib/turnkey_client/models/v1_email_auth_request.rb +289 -0
  137. data/lib/turnkey_client/models/v1_email_auth_result.rb +227 -0
  138. data/lib/turnkey_client/models/v1_email_customization.rb +233 -0
  139. data/lib/turnkey_client/models/v1_export_private_key_intent.rb +227 -0
  140. data/lib/turnkey_client/models/v1_export_private_key_request.rb +289 -0
  141. data/lib/turnkey_client/models/v1_export_private_key_result.rb +227 -0
  142. data/lib/turnkey_client/models/v1_export_wallet_account_intent.rb +227 -0
  143. data/lib/turnkey_client/models/v1_export_wallet_account_request.rb +289 -0
  144. data/lib/turnkey_client/models/v1_export_wallet_account_result.rb +227 -0
  145. data/lib/turnkey_client/models/v1_export_wallet_intent.rb +236 -0
  146. data/lib/turnkey_client/models/v1_export_wallet_request.rb +289 -0
  147. data/lib/turnkey_client/models/v1_export_wallet_result.rb +227 -0
  148. data/lib/turnkey_client/models/v1_feature.rb +215 -0
  149. data/lib/turnkey_client/models/v1_feature_name.rb +30 -0
  150. data/lib/turnkey_client/models/v1_get_activities_request.rb +245 -0
  151. data/lib/turnkey_client/models/v1_get_activities_response.rb +214 -0
  152. data/lib/turnkey_client/models/v1_get_activity_request.rb +227 -0
  153. data/lib/turnkey_client/models/v1_get_api_key_request.rb +227 -0
  154. data/lib/turnkey_client/models/v1_get_api_key_response.rb +211 -0
  155. data/lib/turnkey_client/models/v1_get_api_keys_request.rb +222 -0
  156. data/lib/turnkey_client/models/v1_get_api_keys_response.rb +214 -0
  157. data/lib/turnkey_client/models/v1_get_authenticator_request.rb +227 -0
  158. data/lib/turnkey_client/models/v1_get_authenticator_response.rb +211 -0
  159. data/lib/turnkey_client/models/v1_get_authenticators_request.rb +227 -0
  160. data/lib/turnkey_client/models/v1_get_authenticators_response.rb +214 -0
  161. data/lib/turnkey_client/models/v1_get_organization_request.rb +212 -0
  162. data/lib/turnkey_client/models/v1_get_organization_response.rb +211 -0
  163. data/lib/turnkey_client/models/v1_get_policies_request.rb +212 -0
  164. data/lib/turnkey_client/models/v1_get_policies_response.rb +214 -0
  165. data/lib/turnkey_client/models/v1_get_policy_request.rb +227 -0
  166. data/lib/turnkey_client/models/v1_get_policy_response.rb +211 -0
  167. data/lib/turnkey_client/models/v1_get_private_key_request.rb +227 -0
  168. data/lib/turnkey_client/models/v1_get_private_key_response.rb +211 -0
  169. data/lib/turnkey_client/models/v1_get_private_keys_request.rb +212 -0
  170. data/lib/turnkey_client/models/v1_get_private_keys_response.rb +214 -0
  171. data/lib/turnkey_client/models/v1_get_user_request.rb +227 -0
  172. data/lib/turnkey_client/models/v1_get_user_response.rb +211 -0
  173. data/lib/turnkey_client/models/v1_get_users_request.rb +212 -0
  174. data/lib/turnkey_client/models/v1_get_users_response.rb +214 -0
  175. data/lib/turnkey_client/models/v1_get_wallet_accounts_request.rb +227 -0
  176. data/lib/turnkey_client/models/v1_get_wallet_accounts_response.rb +214 -0
  177. data/lib/turnkey_client/models/v1_get_wallet_request.rb +227 -0
  178. data/lib/turnkey_client/models/v1_get_wallet_response.rb +211 -0
  179. data/lib/turnkey_client/models/v1_get_wallets_request.rb +212 -0
  180. data/lib/turnkey_client/models/v1_get_wallets_response.rb +214 -0
  181. data/lib/turnkey_client/models/v1_get_whoami_request.rb +212 -0
  182. data/lib/turnkey_client/models/v1_get_whoami_response.rb +257 -0
  183. data/lib/turnkey_client/models/v1_hash_function.rb +30 -0
  184. data/lib/turnkey_client/models/v1_init_user_email_recovery_intent.rb +237 -0
  185. data/lib/turnkey_client/models/v1_init_user_email_recovery_request.rb +289 -0
  186. data/lib/turnkey_client/models/v1_init_user_email_recovery_result.rb +212 -0
  187. data/lib/turnkey_client/models/v1_intent.rb +715 -0
  188. data/lib/turnkey_client/models/v1_invitation.rb +330 -0
  189. data/lib/turnkey_client/models/v1_invitation_params.rb +273 -0
  190. data/lib/turnkey_client/models/v1_invitation_status.rb +29 -0
  191. data/lib/turnkey_client/models/v1_list_private_key_tags_request.rb +212 -0
  192. data/lib/turnkey_client/models/v1_list_private_key_tags_response.rb +214 -0
  193. data/lib/turnkey_client/models/v1_list_user_tags_request.rb +212 -0
  194. data/lib/turnkey_client/models/v1_list_user_tags_response.rb +214 -0
  195. data/lib/turnkey_client/models/v1_mnemonic_language.rb +35 -0
  196. data/lib/turnkey_client/models/v1_noop_codegen_anchor_response.rb +211 -0
  197. data/lib/turnkey_client/models/v1_operator.rb +37 -0
  198. data/lib/turnkey_client/models/v1_organization_data.rb +301 -0
  199. data/lib/turnkey_client/models/v1_pagination.rb +227 -0
  200. data/lib/turnkey_client/models/v1_path_format.rb +27 -0
  201. data/lib/turnkey_client/models/v1_payload_encoding.rb +28 -0
  202. data/lib/turnkey_client/models/v1_policy.rb +314 -0
  203. data/lib/turnkey_client/models/v1_private_key.rb +333 -0
  204. data/lib/turnkey_client/models/v1_private_key_params.rb +260 -0
  205. data/lib/turnkey_client/models/v1_private_key_result.rb +217 -0
  206. data/lib/turnkey_client/models/v1_public_key_credential_with_attestation.rb +323 -0
  207. data/lib/turnkey_client/models/v1_recover_user_intent.rb +226 -0
  208. data/lib/turnkey_client/models/v1_recover_user_request.rb +289 -0
  209. data/lib/turnkey_client/models/v1_recover_user_result.rb +214 -0
  210. data/lib/turnkey_client/models/v1_reject_activity_intent.rb +212 -0
  211. data/lib/turnkey_client/models/v1_reject_activity_request.rb +289 -0
  212. data/lib/turnkey_client/models/v1_remove_organization_feature_intent.rb +211 -0
  213. data/lib/turnkey_client/models/v1_remove_organization_feature_request.rb +289 -0
  214. data/lib/turnkey_client/models/v1_remove_organization_feature_result.rb +214 -0
  215. data/lib/turnkey_client/models/v1_result.rb +602 -0
  216. data/lib/turnkey_client/models/v1_root_user_params.rb +256 -0
  217. data/lib/turnkey_client/models/v1_selector.rb +224 -0
  218. data/lib/turnkey_client/models/v1_selector_v2.rb +226 -0
  219. data/lib/turnkey_client/models/v1_set_organization_feature_intent.rb +226 -0
  220. data/lib/turnkey_client/models/v1_set_organization_feature_request.rb +289 -0
  221. data/lib/turnkey_client/models/v1_set_organization_feature_result.rb +214 -0
  222. data/lib/turnkey_client/models/v1_set_payment_method_intent.rb +287 -0
  223. data/lib/turnkey_client/models/v1_set_payment_method_intent_v2.rb +242 -0
  224. data/lib/turnkey_client/models/v1_set_payment_method_result.rb +242 -0
  225. data/lib/turnkey_client/models/v1_sign_raw_payload_intent.rb +255 -0
  226. data/lib/turnkey_client/models/v1_sign_raw_payload_intent_v2.rb +255 -0
  227. data/lib/turnkey_client/models/v1_sign_raw_payload_request.rb +289 -0
  228. data/lib/turnkey_client/models/v1_sign_raw_payload_result.rb +242 -0
  229. data/lib/turnkey_client/models/v1_sign_transaction_intent.rb +241 -0
  230. data/lib/turnkey_client/models/v1_sign_transaction_intent_v2.rb +241 -0
  231. data/lib/turnkey_client/models/v1_sign_transaction_request.rb +289 -0
  232. data/lib/turnkey_client/models/v1_sign_transaction_result.rb +211 -0
  233. data/lib/turnkey_client/models/v1_simple_client_extension_results.rb +224 -0
  234. data/lib/turnkey_client/models/v1_tag_type.rb +28 -0
  235. data/lib/turnkey_client/models/v1_transaction_type.rb +27 -0
  236. data/lib/turnkey_client/models/v1_update_allowed_origins_intent.rb +214 -0
  237. data/lib/turnkey_client/models/v1_update_allowed_origins_result.rb +197 -0
  238. data/lib/turnkey_client/models/v1_update_policy_intent.rb +261 -0
  239. data/lib/turnkey_client/models/v1_update_policy_request.rb +289 -0
  240. data/lib/turnkey_client/models/v1_update_policy_result.rb +212 -0
  241. data/lib/turnkey_client/models/v1_update_private_key_tag_intent.rb +256 -0
  242. data/lib/turnkey_client/models/v1_update_private_key_tag_request.rb +289 -0
  243. data/lib/turnkey_client/models/v1_update_private_key_tag_result.rb +212 -0
  244. data/lib/turnkey_client/models/v1_update_root_quorum_intent.rb +229 -0
  245. data/lib/turnkey_client/models/v1_update_root_quorum_request.rb +289 -0
  246. data/lib/turnkey_client/models/v1_update_root_quorum_result.rb +197 -0
  247. data/lib/turnkey_client/models/v1_update_user_intent.rb +244 -0
  248. data/lib/turnkey_client/models/v1_update_user_request.rb +289 -0
  249. data/lib/turnkey_client/models/v1_update_user_result.rb +212 -0
  250. data/lib/turnkey_client/models/v1_update_user_tag_intent.rb +256 -0
  251. data/lib/turnkey_client/models/v1_update_user_tag_request.rb +289 -0
  252. data/lib/turnkey_client/models/v1_update_user_tag_result.rb +212 -0
  253. data/lib/turnkey_client/models/v1_user.rb +316 -0
  254. data/lib/turnkey_client/models/v1_user_params.rb +287 -0
  255. data/lib/turnkey_client/models/v1_user_params_v2.rb +273 -0
  256. data/lib/turnkey_client/models/v1_vote.rb +378 -0
  257. data/lib/turnkey_client/models/v1_wallet.rb +270 -0
  258. data/lib/turnkey_client/models/v1_wallet_account.rb +342 -0
  259. data/lib/turnkey_client/models/v1_wallet_account_params.rb +254 -0
  260. data/lib/turnkey_client/models/v1_wallet_params.rb +239 -0
  261. data/lib/turnkey_client/models/v1_wallet_result.rb +228 -0
  262. data/lib/turnkey_client/models/v1_web_authn_stamp.rb +257 -0
  263. data/lib/turnkey_client/version.rb +14 -0
  264. data/lib/turnkey_client.rb +289 -0
  265. data/turnkey_client.gemspec +38 -0
  266. metadata +387 -0
@@ -0,0 +1,715 @@
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 V1Intent
16
+ attr_accessor :create_organization_intent
17
+
18
+ attr_accessor :create_authenticators_intent
19
+
20
+ attr_accessor :create_users_intent
21
+
22
+ attr_accessor :create_private_keys_intent
23
+
24
+ attr_accessor :sign_raw_payload_intent
25
+
26
+ attr_accessor :create_invitations_intent
27
+
28
+ attr_accessor :accept_invitation_intent
29
+
30
+ attr_accessor :create_policy_intent
31
+
32
+ attr_accessor :disable_private_key_intent
33
+
34
+ attr_accessor :delete_users_intent
35
+
36
+ attr_accessor :delete_authenticators_intent
37
+
38
+ attr_accessor :delete_invitation_intent
39
+
40
+ attr_accessor :delete_organization_intent
41
+
42
+ attr_accessor :delete_policy_intent
43
+
44
+ attr_accessor :create_user_tag_intent
45
+
46
+ attr_accessor :delete_user_tags_intent
47
+
48
+ attr_accessor :sign_transaction_intent
49
+
50
+ attr_accessor :create_api_keys_intent
51
+
52
+ attr_accessor :delete_api_keys_intent
53
+
54
+ attr_accessor :approve_activity_intent
55
+
56
+ attr_accessor :reject_activity_intent
57
+
58
+ attr_accessor :create_private_key_tag_intent
59
+
60
+ attr_accessor :delete_private_key_tags_intent
61
+
62
+ attr_accessor :create_policy_intent_v2
63
+
64
+ attr_accessor :set_payment_method_intent
65
+
66
+ attr_accessor :activate_billing_tier_intent
67
+
68
+ attr_accessor :delete_payment_method_intent
69
+
70
+ attr_accessor :create_policy_intent_v3
71
+
72
+ attr_accessor :create_api_only_users_intent
73
+
74
+ attr_accessor :update_root_quorum_intent
75
+
76
+ attr_accessor :update_user_tag_intent
77
+
78
+ attr_accessor :update_private_key_tag_intent
79
+
80
+ attr_accessor :create_authenticators_intent_v2
81
+
82
+ attr_accessor :accept_invitation_intent_v2
83
+
84
+ attr_accessor :create_organization_intent_v2
85
+
86
+ attr_accessor :create_users_intent_v2
87
+
88
+ attr_accessor :create_sub_organization_intent
89
+
90
+ attr_accessor :create_sub_organization_intent_v2
91
+
92
+ attr_accessor :update_allowed_origins_intent
93
+
94
+ attr_accessor :create_private_keys_intent_v2
95
+
96
+ attr_accessor :update_user_intent
97
+
98
+ attr_accessor :update_policy_intent
99
+
100
+ attr_accessor :set_payment_method_intent_v2
101
+
102
+ attr_accessor :create_sub_organization_intent_v3
103
+
104
+ attr_accessor :create_wallet_intent
105
+
106
+ attr_accessor :create_wallet_accounts_intent
107
+
108
+ attr_accessor :init_user_email_recovery_intent
109
+
110
+ attr_accessor :recover_user_intent
111
+
112
+ attr_accessor :set_organization_feature_intent
113
+
114
+ attr_accessor :remove_organization_feature_intent
115
+
116
+ attr_accessor :sign_raw_payload_intent_v2
117
+
118
+ attr_accessor :sign_transaction_intent_v2
119
+
120
+ attr_accessor :export_private_key_intent
121
+
122
+ attr_accessor :export_wallet_intent
123
+
124
+ attr_accessor :create_sub_organization_intent_v4
125
+
126
+ attr_accessor :email_auth_intent
127
+
128
+ attr_accessor :export_wallet_account_intent
129
+
130
+ # Attribute mapping from ruby-style variable name to JSON key.
131
+ def self.attribute_map
132
+ {
133
+ :'create_organization_intent' => :'createOrganizationIntent',
134
+ :'create_authenticators_intent' => :'createAuthenticatorsIntent',
135
+ :'create_users_intent' => :'createUsersIntent',
136
+ :'create_private_keys_intent' => :'createPrivateKeysIntent',
137
+ :'sign_raw_payload_intent' => :'signRawPayloadIntent',
138
+ :'create_invitations_intent' => :'createInvitationsIntent',
139
+ :'accept_invitation_intent' => :'acceptInvitationIntent',
140
+ :'create_policy_intent' => :'createPolicyIntent',
141
+ :'disable_private_key_intent' => :'disablePrivateKeyIntent',
142
+ :'delete_users_intent' => :'deleteUsersIntent',
143
+ :'delete_authenticators_intent' => :'deleteAuthenticatorsIntent',
144
+ :'delete_invitation_intent' => :'deleteInvitationIntent',
145
+ :'delete_organization_intent' => :'deleteOrganizationIntent',
146
+ :'delete_policy_intent' => :'deletePolicyIntent',
147
+ :'create_user_tag_intent' => :'createUserTagIntent',
148
+ :'delete_user_tags_intent' => :'deleteUserTagsIntent',
149
+ :'sign_transaction_intent' => :'signTransactionIntent',
150
+ :'create_api_keys_intent' => :'createApiKeysIntent',
151
+ :'delete_api_keys_intent' => :'deleteApiKeysIntent',
152
+ :'approve_activity_intent' => :'approveActivityIntent',
153
+ :'reject_activity_intent' => :'rejectActivityIntent',
154
+ :'create_private_key_tag_intent' => :'createPrivateKeyTagIntent',
155
+ :'delete_private_key_tags_intent' => :'deletePrivateKeyTagsIntent',
156
+ :'create_policy_intent_v2' => :'createPolicyIntentV2',
157
+ :'set_payment_method_intent' => :'setPaymentMethodIntent',
158
+ :'activate_billing_tier_intent' => :'activateBillingTierIntent',
159
+ :'delete_payment_method_intent' => :'deletePaymentMethodIntent',
160
+ :'create_policy_intent_v3' => :'createPolicyIntentV3',
161
+ :'create_api_only_users_intent' => :'createApiOnlyUsersIntent',
162
+ :'update_root_quorum_intent' => :'updateRootQuorumIntent',
163
+ :'update_user_tag_intent' => :'updateUserTagIntent',
164
+ :'update_private_key_tag_intent' => :'updatePrivateKeyTagIntent',
165
+ :'create_authenticators_intent_v2' => :'createAuthenticatorsIntentV2',
166
+ :'accept_invitation_intent_v2' => :'acceptInvitationIntentV2',
167
+ :'create_organization_intent_v2' => :'createOrganizationIntentV2',
168
+ :'create_users_intent_v2' => :'createUsersIntentV2',
169
+ :'create_sub_organization_intent' => :'createSubOrganizationIntent',
170
+ :'create_sub_organization_intent_v2' => :'createSubOrganizationIntentV2',
171
+ :'update_allowed_origins_intent' => :'updateAllowedOriginsIntent',
172
+ :'create_private_keys_intent_v2' => :'createPrivateKeysIntentV2',
173
+ :'update_user_intent' => :'updateUserIntent',
174
+ :'update_policy_intent' => :'updatePolicyIntent',
175
+ :'set_payment_method_intent_v2' => :'setPaymentMethodIntentV2',
176
+ :'create_sub_organization_intent_v3' => :'createSubOrganizationIntentV3',
177
+ :'create_wallet_intent' => :'createWalletIntent',
178
+ :'create_wallet_accounts_intent' => :'createWalletAccountsIntent',
179
+ :'init_user_email_recovery_intent' => :'initUserEmailRecoveryIntent',
180
+ :'recover_user_intent' => :'recoverUserIntent',
181
+ :'set_organization_feature_intent' => :'setOrganizationFeatureIntent',
182
+ :'remove_organization_feature_intent' => :'removeOrganizationFeatureIntent',
183
+ :'sign_raw_payload_intent_v2' => :'signRawPayloadIntentV2',
184
+ :'sign_transaction_intent_v2' => :'signTransactionIntentV2',
185
+ :'export_private_key_intent' => :'exportPrivateKeyIntent',
186
+ :'export_wallet_intent' => :'exportWalletIntent',
187
+ :'create_sub_organization_intent_v4' => :'createSubOrganizationIntentV4',
188
+ :'email_auth_intent' => :'emailAuthIntent',
189
+ :'export_wallet_account_intent' => :'exportWalletAccountIntent'
190
+ }
191
+ end
192
+
193
+ # Attribute type mapping.
194
+ def self.openapi_types
195
+ {
196
+ :'create_organization_intent' => :'Object',
197
+ :'create_authenticators_intent' => :'Object',
198
+ :'create_users_intent' => :'Object',
199
+ :'create_private_keys_intent' => :'Object',
200
+ :'sign_raw_payload_intent' => :'Object',
201
+ :'create_invitations_intent' => :'Object',
202
+ :'accept_invitation_intent' => :'Object',
203
+ :'create_policy_intent' => :'Object',
204
+ :'disable_private_key_intent' => :'Object',
205
+ :'delete_users_intent' => :'Object',
206
+ :'delete_authenticators_intent' => :'Object',
207
+ :'delete_invitation_intent' => :'Object',
208
+ :'delete_organization_intent' => :'Object',
209
+ :'delete_policy_intent' => :'Object',
210
+ :'create_user_tag_intent' => :'Object',
211
+ :'delete_user_tags_intent' => :'Object',
212
+ :'sign_transaction_intent' => :'Object',
213
+ :'create_api_keys_intent' => :'Object',
214
+ :'delete_api_keys_intent' => :'Object',
215
+ :'approve_activity_intent' => :'Object',
216
+ :'reject_activity_intent' => :'Object',
217
+ :'create_private_key_tag_intent' => :'Object',
218
+ :'delete_private_key_tags_intent' => :'Object',
219
+ :'create_policy_intent_v2' => :'Object',
220
+ :'set_payment_method_intent' => :'Object',
221
+ :'activate_billing_tier_intent' => :'Object',
222
+ :'delete_payment_method_intent' => :'Object',
223
+ :'create_policy_intent_v3' => :'Object',
224
+ :'create_api_only_users_intent' => :'Object',
225
+ :'update_root_quorum_intent' => :'Object',
226
+ :'update_user_tag_intent' => :'Object',
227
+ :'update_private_key_tag_intent' => :'Object',
228
+ :'create_authenticators_intent_v2' => :'Object',
229
+ :'accept_invitation_intent_v2' => :'Object',
230
+ :'create_organization_intent_v2' => :'Object',
231
+ :'create_users_intent_v2' => :'Object',
232
+ :'create_sub_organization_intent' => :'Object',
233
+ :'create_sub_organization_intent_v2' => :'Object',
234
+ :'update_allowed_origins_intent' => :'Object',
235
+ :'create_private_keys_intent_v2' => :'Object',
236
+ :'update_user_intent' => :'Object',
237
+ :'update_policy_intent' => :'Object',
238
+ :'set_payment_method_intent_v2' => :'Object',
239
+ :'create_sub_organization_intent_v3' => :'Object',
240
+ :'create_wallet_intent' => :'Object',
241
+ :'create_wallet_accounts_intent' => :'Object',
242
+ :'init_user_email_recovery_intent' => :'Object',
243
+ :'recover_user_intent' => :'Object',
244
+ :'set_organization_feature_intent' => :'Object',
245
+ :'remove_organization_feature_intent' => :'Object',
246
+ :'sign_raw_payload_intent_v2' => :'Object',
247
+ :'sign_transaction_intent_v2' => :'Object',
248
+ :'export_private_key_intent' => :'Object',
249
+ :'export_wallet_intent' => :'Object',
250
+ :'create_sub_organization_intent_v4' => :'Object',
251
+ :'email_auth_intent' => :'Object',
252
+ :'export_wallet_account_intent' => :'Object'
253
+ }
254
+ end
255
+
256
+ # List of attributes with nullable: true
257
+ def self.openapi_nullable
258
+ Set.new([
259
+ ])
260
+ end
261
+
262
+ # Initializes the object
263
+ # @param [Hash] attributes Model attributes in the form of hash
264
+ def initialize(attributes = {})
265
+ if (!attributes.is_a?(Hash))
266
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::V1Intent` initialize method"
267
+ end
268
+
269
+ # check to see if the attribute exists and convert string to symbol for hash key
270
+ attributes = attributes.each_with_object({}) { |(k, v), h|
271
+ if (!self.class.attribute_map.key?(k.to_sym))
272
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::V1Intent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
273
+ end
274
+ h[k.to_sym] = v
275
+ }
276
+
277
+ if attributes.key?(:'create_organization_intent')
278
+ self.create_organization_intent = attributes[:'create_organization_intent']
279
+ end
280
+
281
+ if attributes.key?(:'create_authenticators_intent')
282
+ self.create_authenticators_intent = attributes[:'create_authenticators_intent']
283
+ end
284
+
285
+ if attributes.key?(:'create_users_intent')
286
+ self.create_users_intent = attributes[:'create_users_intent']
287
+ end
288
+
289
+ if attributes.key?(:'create_private_keys_intent')
290
+ self.create_private_keys_intent = attributes[:'create_private_keys_intent']
291
+ end
292
+
293
+ if attributes.key?(:'sign_raw_payload_intent')
294
+ self.sign_raw_payload_intent = attributes[:'sign_raw_payload_intent']
295
+ end
296
+
297
+ if attributes.key?(:'create_invitations_intent')
298
+ self.create_invitations_intent = attributes[:'create_invitations_intent']
299
+ end
300
+
301
+ if attributes.key?(:'accept_invitation_intent')
302
+ self.accept_invitation_intent = attributes[:'accept_invitation_intent']
303
+ end
304
+
305
+ if attributes.key?(:'create_policy_intent')
306
+ self.create_policy_intent = attributes[:'create_policy_intent']
307
+ end
308
+
309
+ if attributes.key?(:'disable_private_key_intent')
310
+ self.disable_private_key_intent = attributes[:'disable_private_key_intent']
311
+ end
312
+
313
+ if attributes.key?(:'delete_users_intent')
314
+ self.delete_users_intent = attributes[:'delete_users_intent']
315
+ end
316
+
317
+ if attributes.key?(:'delete_authenticators_intent')
318
+ self.delete_authenticators_intent = attributes[:'delete_authenticators_intent']
319
+ end
320
+
321
+ if attributes.key?(:'delete_invitation_intent')
322
+ self.delete_invitation_intent = attributes[:'delete_invitation_intent']
323
+ end
324
+
325
+ if attributes.key?(:'delete_organization_intent')
326
+ self.delete_organization_intent = attributes[:'delete_organization_intent']
327
+ end
328
+
329
+ if attributes.key?(:'delete_policy_intent')
330
+ self.delete_policy_intent = attributes[:'delete_policy_intent']
331
+ end
332
+
333
+ if attributes.key?(:'create_user_tag_intent')
334
+ self.create_user_tag_intent = attributes[:'create_user_tag_intent']
335
+ end
336
+
337
+ if attributes.key?(:'delete_user_tags_intent')
338
+ self.delete_user_tags_intent = attributes[:'delete_user_tags_intent']
339
+ end
340
+
341
+ if attributes.key?(:'sign_transaction_intent')
342
+ self.sign_transaction_intent = attributes[:'sign_transaction_intent']
343
+ end
344
+
345
+ if attributes.key?(:'create_api_keys_intent')
346
+ self.create_api_keys_intent = attributes[:'create_api_keys_intent']
347
+ end
348
+
349
+ if attributes.key?(:'delete_api_keys_intent')
350
+ self.delete_api_keys_intent = attributes[:'delete_api_keys_intent']
351
+ end
352
+
353
+ if attributes.key?(:'approve_activity_intent')
354
+ self.approve_activity_intent = attributes[:'approve_activity_intent']
355
+ end
356
+
357
+ if attributes.key?(:'reject_activity_intent')
358
+ self.reject_activity_intent = attributes[:'reject_activity_intent']
359
+ end
360
+
361
+ if attributes.key?(:'create_private_key_tag_intent')
362
+ self.create_private_key_tag_intent = attributes[:'create_private_key_tag_intent']
363
+ end
364
+
365
+ if attributes.key?(:'delete_private_key_tags_intent')
366
+ self.delete_private_key_tags_intent = attributes[:'delete_private_key_tags_intent']
367
+ end
368
+
369
+ if attributes.key?(:'create_policy_intent_v2')
370
+ self.create_policy_intent_v2 = attributes[:'create_policy_intent_v2']
371
+ end
372
+
373
+ if attributes.key?(:'set_payment_method_intent')
374
+ self.set_payment_method_intent = attributes[:'set_payment_method_intent']
375
+ end
376
+
377
+ if attributes.key?(:'activate_billing_tier_intent')
378
+ self.activate_billing_tier_intent = attributes[:'activate_billing_tier_intent']
379
+ end
380
+
381
+ if attributes.key?(:'delete_payment_method_intent')
382
+ self.delete_payment_method_intent = attributes[:'delete_payment_method_intent']
383
+ end
384
+
385
+ if attributes.key?(:'create_policy_intent_v3')
386
+ self.create_policy_intent_v3 = attributes[:'create_policy_intent_v3']
387
+ end
388
+
389
+ if attributes.key?(:'create_api_only_users_intent')
390
+ self.create_api_only_users_intent = attributes[:'create_api_only_users_intent']
391
+ end
392
+
393
+ if attributes.key?(:'update_root_quorum_intent')
394
+ self.update_root_quorum_intent = attributes[:'update_root_quorum_intent']
395
+ end
396
+
397
+ if attributes.key?(:'update_user_tag_intent')
398
+ self.update_user_tag_intent = attributes[:'update_user_tag_intent']
399
+ end
400
+
401
+ if attributes.key?(:'update_private_key_tag_intent')
402
+ self.update_private_key_tag_intent = attributes[:'update_private_key_tag_intent']
403
+ end
404
+
405
+ if attributes.key?(:'create_authenticators_intent_v2')
406
+ self.create_authenticators_intent_v2 = attributes[:'create_authenticators_intent_v2']
407
+ end
408
+
409
+ if attributes.key?(:'accept_invitation_intent_v2')
410
+ self.accept_invitation_intent_v2 = attributes[:'accept_invitation_intent_v2']
411
+ end
412
+
413
+ if attributes.key?(:'create_organization_intent_v2')
414
+ self.create_organization_intent_v2 = attributes[:'create_organization_intent_v2']
415
+ end
416
+
417
+ if attributes.key?(:'create_users_intent_v2')
418
+ self.create_users_intent_v2 = attributes[:'create_users_intent_v2']
419
+ end
420
+
421
+ if attributes.key?(:'create_sub_organization_intent')
422
+ self.create_sub_organization_intent = attributes[:'create_sub_organization_intent']
423
+ end
424
+
425
+ if attributes.key?(:'create_sub_organization_intent_v2')
426
+ self.create_sub_organization_intent_v2 = attributes[:'create_sub_organization_intent_v2']
427
+ end
428
+
429
+ if attributes.key?(:'update_allowed_origins_intent')
430
+ self.update_allowed_origins_intent = attributes[:'update_allowed_origins_intent']
431
+ end
432
+
433
+ if attributes.key?(:'create_private_keys_intent_v2')
434
+ self.create_private_keys_intent_v2 = attributes[:'create_private_keys_intent_v2']
435
+ end
436
+
437
+ if attributes.key?(:'update_user_intent')
438
+ self.update_user_intent = attributes[:'update_user_intent']
439
+ end
440
+
441
+ if attributes.key?(:'update_policy_intent')
442
+ self.update_policy_intent = attributes[:'update_policy_intent']
443
+ end
444
+
445
+ if attributes.key?(:'set_payment_method_intent_v2')
446
+ self.set_payment_method_intent_v2 = attributes[:'set_payment_method_intent_v2']
447
+ end
448
+
449
+ if attributes.key?(:'create_sub_organization_intent_v3')
450
+ self.create_sub_organization_intent_v3 = attributes[:'create_sub_organization_intent_v3']
451
+ end
452
+
453
+ if attributes.key?(:'create_wallet_intent')
454
+ self.create_wallet_intent = attributes[:'create_wallet_intent']
455
+ end
456
+
457
+ if attributes.key?(:'create_wallet_accounts_intent')
458
+ self.create_wallet_accounts_intent = attributes[:'create_wallet_accounts_intent']
459
+ end
460
+
461
+ if attributes.key?(:'init_user_email_recovery_intent')
462
+ self.init_user_email_recovery_intent = attributes[:'init_user_email_recovery_intent']
463
+ end
464
+
465
+ if attributes.key?(:'recover_user_intent')
466
+ self.recover_user_intent = attributes[:'recover_user_intent']
467
+ end
468
+
469
+ if attributes.key?(:'set_organization_feature_intent')
470
+ self.set_organization_feature_intent = attributes[:'set_organization_feature_intent']
471
+ end
472
+
473
+ if attributes.key?(:'remove_organization_feature_intent')
474
+ self.remove_organization_feature_intent = attributes[:'remove_organization_feature_intent']
475
+ end
476
+
477
+ if attributes.key?(:'sign_raw_payload_intent_v2')
478
+ self.sign_raw_payload_intent_v2 = attributes[:'sign_raw_payload_intent_v2']
479
+ end
480
+
481
+ if attributes.key?(:'sign_transaction_intent_v2')
482
+ self.sign_transaction_intent_v2 = attributes[:'sign_transaction_intent_v2']
483
+ end
484
+
485
+ if attributes.key?(:'export_private_key_intent')
486
+ self.export_private_key_intent = attributes[:'export_private_key_intent']
487
+ end
488
+
489
+ if attributes.key?(:'export_wallet_intent')
490
+ self.export_wallet_intent = attributes[:'export_wallet_intent']
491
+ end
492
+
493
+ if attributes.key?(:'create_sub_organization_intent_v4')
494
+ self.create_sub_organization_intent_v4 = attributes[:'create_sub_organization_intent_v4']
495
+ end
496
+
497
+ if attributes.key?(:'email_auth_intent')
498
+ self.email_auth_intent = attributes[:'email_auth_intent']
499
+ end
500
+
501
+ if attributes.key?(:'export_wallet_account_intent')
502
+ self.export_wallet_account_intent = attributes[:'export_wallet_account_intent']
503
+ end
504
+ end
505
+
506
+ # Show invalid properties with the reasons. Usually used together with valid?
507
+ # @return Array for valid properties with the reasons
508
+ def list_invalid_properties
509
+ invalid_properties = Array.new
510
+ if @create_organization_intent.nil?
511
+ invalid_properties.push('invalid value for "create_organization_intent", create_organization_intent cannot be nil.')
512
+ end
513
+
514
+ invalid_properties
515
+ end
516
+
517
+ # Check to see if the all the properties in the model are valid
518
+ # @return true if the model is valid
519
+ def valid?
520
+ return false if @create_organization_intent.nil?
521
+ true
522
+ end
523
+
524
+ # Checks equality by comparing each attribute.
525
+ # @param [Object] Object to be compared
526
+ def ==(o)
527
+ return true if self.equal?(o)
528
+ self.class == o.class &&
529
+ create_organization_intent == o.create_organization_intent &&
530
+ create_authenticators_intent == o.create_authenticators_intent &&
531
+ create_users_intent == o.create_users_intent &&
532
+ create_private_keys_intent == o.create_private_keys_intent &&
533
+ sign_raw_payload_intent == o.sign_raw_payload_intent &&
534
+ create_invitations_intent == o.create_invitations_intent &&
535
+ accept_invitation_intent == o.accept_invitation_intent &&
536
+ create_policy_intent == o.create_policy_intent &&
537
+ disable_private_key_intent == o.disable_private_key_intent &&
538
+ delete_users_intent == o.delete_users_intent &&
539
+ delete_authenticators_intent == o.delete_authenticators_intent &&
540
+ delete_invitation_intent == o.delete_invitation_intent &&
541
+ delete_organization_intent == o.delete_organization_intent &&
542
+ delete_policy_intent == o.delete_policy_intent &&
543
+ create_user_tag_intent == o.create_user_tag_intent &&
544
+ delete_user_tags_intent == o.delete_user_tags_intent &&
545
+ sign_transaction_intent == o.sign_transaction_intent &&
546
+ create_api_keys_intent == o.create_api_keys_intent &&
547
+ delete_api_keys_intent == o.delete_api_keys_intent &&
548
+ approve_activity_intent == o.approve_activity_intent &&
549
+ reject_activity_intent == o.reject_activity_intent &&
550
+ create_private_key_tag_intent == o.create_private_key_tag_intent &&
551
+ delete_private_key_tags_intent == o.delete_private_key_tags_intent &&
552
+ create_policy_intent_v2 == o.create_policy_intent_v2 &&
553
+ set_payment_method_intent == o.set_payment_method_intent &&
554
+ activate_billing_tier_intent == o.activate_billing_tier_intent &&
555
+ delete_payment_method_intent == o.delete_payment_method_intent &&
556
+ create_policy_intent_v3 == o.create_policy_intent_v3 &&
557
+ create_api_only_users_intent == o.create_api_only_users_intent &&
558
+ update_root_quorum_intent == o.update_root_quorum_intent &&
559
+ update_user_tag_intent == o.update_user_tag_intent &&
560
+ update_private_key_tag_intent == o.update_private_key_tag_intent &&
561
+ create_authenticators_intent_v2 == o.create_authenticators_intent_v2 &&
562
+ accept_invitation_intent_v2 == o.accept_invitation_intent_v2 &&
563
+ create_organization_intent_v2 == o.create_organization_intent_v2 &&
564
+ create_users_intent_v2 == o.create_users_intent_v2 &&
565
+ create_sub_organization_intent == o.create_sub_organization_intent &&
566
+ create_sub_organization_intent_v2 == o.create_sub_organization_intent_v2 &&
567
+ update_allowed_origins_intent == o.update_allowed_origins_intent &&
568
+ create_private_keys_intent_v2 == o.create_private_keys_intent_v2 &&
569
+ update_user_intent == o.update_user_intent &&
570
+ update_policy_intent == o.update_policy_intent &&
571
+ set_payment_method_intent_v2 == o.set_payment_method_intent_v2 &&
572
+ create_sub_organization_intent_v3 == o.create_sub_organization_intent_v3 &&
573
+ create_wallet_intent == o.create_wallet_intent &&
574
+ create_wallet_accounts_intent == o.create_wallet_accounts_intent &&
575
+ init_user_email_recovery_intent == o.init_user_email_recovery_intent &&
576
+ recover_user_intent == o.recover_user_intent &&
577
+ set_organization_feature_intent == o.set_organization_feature_intent &&
578
+ remove_organization_feature_intent == o.remove_organization_feature_intent &&
579
+ sign_raw_payload_intent_v2 == o.sign_raw_payload_intent_v2 &&
580
+ sign_transaction_intent_v2 == o.sign_transaction_intent_v2 &&
581
+ export_private_key_intent == o.export_private_key_intent &&
582
+ export_wallet_intent == o.export_wallet_intent &&
583
+ create_sub_organization_intent_v4 == o.create_sub_organization_intent_v4 &&
584
+ email_auth_intent == o.email_auth_intent &&
585
+ export_wallet_account_intent == o.export_wallet_account_intent
586
+ end
587
+
588
+ # @see the `==` method
589
+ # @param [Object] Object to be compared
590
+ def eql?(o)
591
+ self == o
592
+ end
593
+
594
+ # Calculates hash code according to all attributes.
595
+ # @return [Integer] Hash code
596
+ def hash
597
+ [create_organization_intent, create_authenticators_intent, create_users_intent, create_private_keys_intent, sign_raw_payload_intent, create_invitations_intent, accept_invitation_intent, create_policy_intent, disable_private_key_intent, delete_users_intent, delete_authenticators_intent, delete_invitation_intent, delete_organization_intent, delete_policy_intent, create_user_tag_intent, delete_user_tags_intent, sign_transaction_intent, create_api_keys_intent, delete_api_keys_intent, approve_activity_intent, reject_activity_intent, create_private_key_tag_intent, delete_private_key_tags_intent, create_policy_intent_v2, set_payment_method_intent, activate_billing_tier_intent, delete_payment_method_intent, create_policy_intent_v3, create_api_only_users_intent, update_root_quorum_intent, update_user_tag_intent, update_private_key_tag_intent, create_authenticators_intent_v2, accept_invitation_intent_v2, create_organization_intent_v2, create_users_intent_v2, create_sub_organization_intent, create_sub_organization_intent_v2, update_allowed_origins_intent, create_private_keys_intent_v2, update_user_intent, update_policy_intent, set_payment_method_intent_v2, create_sub_organization_intent_v3, create_wallet_intent, create_wallet_accounts_intent, init_user_email_recovery_intent, recover_user_intent, set_organization_feature_intent, remove_organization_feature_intent, sign_raw_payload_intent_v2, sign_transaction_intent_v2, export_private_key_intent, export_wallet_intent, create_sub_organization_intent_v4, email_auth_intent, export_wallet_account_intent].hash
598
+ end
599
+
600
+ # Builds the object from hash
601
+ # @param [Hash] attributes Model attributes in the form of hash
602
+ # @return [Object] Returns the model itself
603
+ def self.build_from_hash(attributes)
604
+ new.build_from_hash(attributes)
605
+ end
606
+
607
+ # Builds the object from hash
608
+ # @param [Hash] attributes Model attributes in the form of hash
609
+ # @return [Object] Returns the model itself
610
+ def build_from_hash(attributes)
611
+ return nil unless attributes.is_a?(Hash)
612
+ self.class.openapi_types.each_pair do |key, type|
613
+ if type =~ /\AArray<(.*)>/i
614
+ # check to ensure the input is an array given that the attribute
615
+ # is documented as an array but the input is not
616
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
617
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
618
+ end
619
+ elsif !attributes[self.class.attribute_map[key]].nil?
620
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
621
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
622
+ self.send("#{key}=", nil)
623
+ end
624
+ end
625
+
626
+ self
627
+ end
628
+
629
+ # Deserializes the data based on type
630
+ # @param string type Data type
631
+ # @param string value Value to be deserialized
632
+ # @return [Object] Deserialized data
633
+ def _deserialize(type, value)
634
+ case type.to_sym
635
+ when :DateTime
636
+ DateTime.parse(value)
637
+ when :Date
638
+ Date.parse(value)
639
+ when :String
640
+ value.to_s
641
+ when :Integer
642
+ value.to_i
643
+ when :Float
644
+ value.to_f
645
+ when :Boolean
646
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
647
+ true
648
+ else
649
+ false
650
+ end
651
+ when :Object
652
+ # generic object (usually a Hash), return directly
653
+ value
654
+ when /\AArray<(?<inner_type>.+)>\z/
655
+ inner_type = Regexp.last_match[:inner_type]
656
+ value.map { |v| _deserialize(inner_type, v) }
657
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
658
+ k_type = Regexp.last_match[:k_type]
659
+ v_type = Regexp.last_match[:v_type]
660
+ {}.tap do |hash|
661
+ value.each do |k, v|
662
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
663
+ end
664
+ end
665
+ else # model
666
+ TurnkeyClient.const_get(type).build_from_hash(value)
667
+ end
668
+ end
669
+
670
+ # Returns the string representation of the object
671
+ # @return [String] String presentation of the object
672
+ def to_s
673
+ to_hash.to_s
674
+ end
675
+
676
+ # to_body is an alias to to_hash (backward compatibility)
677
+ # @return [Hash] Returns the object in the form of hash
678
+ def to_body
679
+ to_hash
680
+ end
681
+
682
+ # Returns the object in the form of hash
683
+ # @return [Hash] Returns the object in the form of hash
684
+ def to_hash
685
+ hash = {}
686
+ self.class.attribute_map.each_pair do |attr, param|
687
+ value = self.send(attr)
688
+ if value.nil?
689
+ is_nullable = self.class.openapi_nullable.include?(attr)
690
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
691
+ end
692
+
693
+ hash[param] = _to_hash(value)
694
+ end
695
+ hash
696
+ end
697
+
698
+ # Outputs non-array value in the form of hash
699
+ # For object, use to_hash. Otherwise, just return the value
700
+ # @param [Object] value Any valid value
701
+ # @return [Hash] Returns the value in the form of hash
702
+ def _to_hash(value)
703
+ if value.is_a?(Array)
704
+ value.compact.map { |v| _to_hash(v) }
705
+ elsif value.is_a?(Hash)
706
+ {}.tap do |hash|
707
+ value.each { |k, v| hash[k] = _to_hash(v) }
708
+ end
709
+ elsif value.respond_to? :to_hash
710
+ value.to_hash
711
+ else
712
+ value
713
+ end
714
+ end end
715
+ end