turnkey_client 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (268) hide show
  1. checksums.yaml +4 -4
  2. data/lib/turnkey_client/api/activities_api.rb +1 -1
  3. data/lib/turnkey_client/api/api_keys_api.rb +1 -1
  4. data/lib/turnkey_client/api/authenticators_api.rb +1 -1
  5. data/lib/turnkey_client/api/consensus_api.rb +1 -1
  6. data/lib/turnkey_client/api/features_api.rb +1 -1
  7. data/lib/turnkey_client/api/invitations_api.rb +1 -1
  8. data/lib/turnkey_client/api/organizations_api.rb +59 -1
  9. data/lib/turnkey_client/api/policies_api.rb +1 -1
  10. data/lib/turnkey_client/api/private_key_tags_api.rb +1 -1
  11. data/lib/turnkey_client/api/private_keys_api.rb +117 -1
  12. data/lib/turnkey_client/api/sessions_api.rb +1 -1
  13. data/lib/turnkey_client/api/signing_api.rb +1 -1
  14. data/lib/turnkey_client/api/user_auth_api.rb +1 -1
  15. data/lib/turnkey_client/api/user_recovery_api.rb +1 -1
  16. data/lib/turnkey_client/api/user_tags_api.rb +1 -1
  17. data/lib/turnkey_client/api/users_api.rb +1 -1
  18. data/lib/turnkey_client/api/wallets_api.rb +1 -1
  19. data/lib/turnkey_client/api_client.rb +1 -1
  20. data/lib/turnkey_client/api_error.rb +1 -1
  21. data/lib/turnkey_client/configuration.rb +1 -1
  22. data/lib/turnkey_client/models/accept_invitation_intent.rb +1 -1
  23. data/lib/turnkey_client/models/accept_invitation_intent_v2.rb +1 -1
  24. data/lib/turnkey_client/models/accept_invitation_result.rb +1 -1
  25. data/lib/turnkey_client/models/access_type.rb +1 -1
  26. data/lib/turnkey_client/models/activate_billing_tier_intent.rb +1 -1
  27. data/lib/turnkey_client/models/activate_billing_tier_result.rb +1 -1
  28. data/lib/turnkey_client/models/activity.rb +1 -1
  29. data/lib/turnkey_client/models/activity_response.rb +1 -1
  30. data/lib/turnkey_client/models/activity_status.rb +1 -1
  31. data/lib/turnkey_client/models/activity_type.rb +3 -1
  32. data/lib/turnkey_client/models/activity_v1_address.rb +1 -1
  33. data/lib/turnkey_client/models/address_format.rb +1 -1
  34. data/lib/turnkey_client/models/api_key.rb +1 -1
  35. data/lib/turnkey_client/models/api_key_params.rb +1 -1
  36. data/lib/turnkey_client/models/api_only_user_params.rb +1 -1
  37. data/lib/turnkey_client/models/approve_activity_intent.rb +1 -1
  38. data/lib/turnkey_client/models/approve_activity_request.rb +1 -1
  39. data/lib/turnkey_client/models/attestation.rb +1 -1
  40. data/lib/turnkey_client/models/authenticator.rb +1 -1
  41. data/lib/turnkey_client/models/authenticator_attestation_response.rb +1 -1
  42. data/lib/turnkey_client/models/authenticator_params.rb +1 -1
  43. data/lib/turnkey_client/models/authenticator_params_v2.rb +1 -1
  44. data/lib/turnkey_client/models/authenticator_transport.rb +1 -1
  45. data/lib/turnkey_client/models/create_api_keys_intent.rb +1 -1
  46. data/lib/turnkey_client/models/create_api_keys_request.rb +1 -1
  47. data/lib/turnkey_client/models/create_api_keys_result.rb +1 -1
  48. data/lib/turnkey_client/models/create_api_only_users_intent.rb +1 -1
  49. data/lib/turnkey_client/models/create_api_only_users_result.rb +1 -1
  50. data/lib/turnkey_client/models/create_authenticators_intent.rb +1 -1
  51. data/lib/turnkey_client/models/create_authenticators_intent_v2.rb +1 -1
  52. data/lib/turnkey_client/models/create_authenticators_request.rb +1 -1
  53. data/lib/turnkey_client/models/create_authenticators_result.rb +1 -1
  54. data/lib/turnkey_client/models/create_invitations_intent.rb +1 -1
  55. data/lib/turnkey_client/models/create_invitations_request.rb +1 -1
  56. data/lib/turnkey_client/models/create_invitations_result.rb +1 -1
  57. data/lib/turnkey_client/models/create_organization_intent.rb +1 -1
  58. data/lib/turnkey_client/models/create_organization_intent_v2.rb +1 -1
  59. data/lib/turnkey_client/models/create_organization_result.rb +1 -1
  60. data/lib/turnkey_client/models/create_policy_intent.rb +1 -1
  61. data/lib/turnkey_client/models/create_policy_intent_v2.rb +1 -1
  62. data/lib/turnkey_client/models/create_policy_intent_v3.rb +1 -1
  63. data/lib/turnkey_client/models/create_policy_request.rb +1 -1
  64. data/lib/turnkey_client/models/create_policy_result.rb +1 -1
  65. data/lib/turnkey_client/models/create_private_key_tag_intent.rb +1 -1
  66. data/lib/turnkey_client/models/create_private_key_tag_request.rb +1 -1
  67. data/lib/turnkey_client/models/create_private_key_tag_result.rb +1 -1
  68. data/lib/turnkey_client/models/create_private_keys_intent.rb +1 -1
  69. data/lib/turnkey_client/models/create_private_keys_intent_v2.rb +1 -1
  70. data/lib/turnkey_client/models/create_private_keys_request.rb +1 -1
  71. data/lib/turnkey_client/models/create_private_keys_result.rb +1 -1
  72. data/lib/turnkey_client/models/create_private_keys_result_v2.rb +1 -1
  73. data/lib/turnkey_client/models/create_sub_organization_intent.rb +1 -1
  74. data/lib/turnkey_client/models/create_sub_organization_intent_v2.rb +1 -1
  75. data/lib/turnkey_client/models/create_sub_organization_intent_v3.rb +1 -1
  76. data/lib/turnkey_client/models/create_sub_organization_intent_v4.rb +1 -1
  77. data/lib/turnkey_client/models/create_sub_organization_request.rb +1 -1
  78. data/lib/turnkey_client/models/create_sub_organization_result.rb +16 -5
  79. data/lib/turnkey_client/models/create_sub_organization_result_v3.rb +16 -5
  80. data/lib/turnkey_client/models/create_sub_organization_result_v4.rb +16 -5
  81. data/lib/turnkey_client/models/create_user_tag_intent.rb +1 -1
  82. data/lib/turnkey_client/models/create_user_tag_request.rb +1 -1
  83. data/lib/turnkey_client/models/create_user_tag_result.rb +1 -1
  84. data/lib/turnkey_client/models/create_users_intent.rb +1 -1
  85. data/lib/turnkey_client/models/create_users_intent_v2.rb +1 -1
  86. data/lib/turnkey_client/models/create_users_request.rb +1 -1
  87. data/lib/turnkey_client/models/create_users_result.rb +1 -1
  88. data/lib/turnkey_client/models/create_wallet_accounts_intent.rb +1 -1
  89. data/lib/turnkey_client/models/create_wallet_accounts_request.rb +1 -1
  90. data/lib/turnkey_client/models/create_wallet_accounts_result.rb +1 -1
  91. data/lib/turnkey_client/models/create_wallet_intent.rb +1 -1
  92. data/lib/turnkey_client/models/create_wallet_request.rb +1 -1
  93. data/lib/turnkey_client/models/create_wallet_result.rb +1 -1
  94. data/lib/turnkey_client/models/cred_props_authentication_extensions_client_outputs.rb +1 -1
  95. data/lib/turnkey_client/models/credential_type.rb +1 -1
  96. data/lib/turnkey_client/models/curve.rb +1 -1
  97. data/lib/turnkey_client/models/data_v1_address.rb +1 -1
  98. data/lib/turnkey_client/models/delete_api_keys_intent.rb +1 -1
  99. data/lib/turnkey_client/models/delete_api_keys_request.rb +1 -1
  100. data/lib/turnkey_client/models/delete_api_keys_result.rb +1 -1
  101. data/lib/turnkey_client/models/delete_authenticators_intent.rb +1 -1
  102. data/lib/turnkey_client/models/delete_authenticators_request.rb +1 -1
  103. data/lib/turnkey_client/models/delete_authenticators_result.rb +1 -1
  104. data/lib/turnkey_client/models/delete_invitation_intent.rb +1 -1
  105. data/lib/turnkey_client/models/delete_invitation_request.rb +1 -1
  106. data/lib/turnkey_client/models/delete_invitation_result.rb +1 -1
  107. data/lib/turnkey_client/models/delete_organization_intent.rb +1 -1
  108. data/lib/turnkey_client/models/delete_organization_result.rb +1 -1
  109. data/lib/turnkey_client/models/delete_payment_method_intent.rb +1 -1
  110. data/lib/turnkey_client/models/delete_payment_method_result.rb +1 -1
  111. data/lib/turnkey_client/models/delete_policy_intent.rb +1 -1
  112. data/lib/turnkey_client/models/delete_policy_request.rb +1 -1
  113. data/lib/turnkey_client/models/delete_policy_result.rb +1 -1
  114. data/lib/turnkey_client/models/delete_private_key_tags_intent.rb +1 -1
  115. data/lib/turnkey_client/models/delete_private_key_tags_request.rb +1 -1
  116. data/lib/turnkey_client/models/delete_private_key_tags_result.rb +1 -1
  117. data/lib/turnkey_client/models/delete_user_tags_intent.rb +1 -1
  118. data/lib/turnkey_client/models/delete_user_tags_request.rb +1 -1
  119. data/lib/turnkey_client/models/delete_user_tags_result.rb +1 -1
  120. data/lib/turnkey_client/models/delete_users_intent.rb +1 -1
  121. data/lib/turnkey_client/models/delete_users_request.rb +1 -1
  122. data/lib/turnkey_client/models/delete_users_result.rb +1 -1
  123. data/lib/turnkey_client/models/disable_private_key_intent.rb +1 -1
  124. data/lib/turnkey_client/models/disable_private_key_result.rb +1 -1
  125. data/lib/turnkey_client/models/effect.rb +1 -1
  126. data/lib/turnkey_client/models/email_auth_intent.rb +1 -1
  127. data/lib/turnkey_client/models/email_auth_request.rb +1 -1
  128. data/lib/turnkey_client/models/email_auth_result.rb +1 -1
  129. data/lib/turnkey_client/models/email_customization_params.rb +1 -1
  130. data/lib/turnkey_client/models/export_private_key_intent.rb +1 -1
  131. data/lib/turnkey_client/models/export_private_key_request.rb +1 -1
  132. data/lib/turnkey_client/models/export_private_key_result.rb +1 -1
  133. data/lib/turnkey_client/models/export_wallet_account_intent.rb +1 -1
  134. data/lib/turnkey_client/models/export_wallet_account_request.rb +1 -1
  135. data/lib/turnkey_client/models/export_wallet_account_result.rb +1 -1
  136. data/lib/turnkey_client/models/export_wallet_intent.rb +1 -1
  137. data/lib/turnkey_client/models/export_wallet_request.rb +1 -1
  138. data/lib/turnkey_client/models/export_wallet_result.rb +1 -1
  139. data/lib/turnkey_client/models/external_data_v1_credential.rb +1 -1
  140. data/lib/turnkey_client/models/external_data_v1_timestamp.rb +1 -1
  141. data/lib/turnkey_client/models/feature.rb +1 -1
  142. data/lib/turnkey_client/models/feature_name.rb +2 -1
  143. data/lib/turnkey_client/models/get_activities_request.rb +1 -1
  144. data/lib/turnkey_client/models/get_activities_response.rb +1 -1
  145. data/lib/turnkey_client/models/get_activity_request.rb +1 -1
  146. data/lib/turnkey_client/models/get_api_key_request.rb +1 -1
  147. data/lib/turnkey_client/models/get_api_key_response.rb +1 -1
  148. data/lib/turnkey_client/models/get_api_keys_request.rb +1 -1
  149. data/lib/turnkey_client/models/get_api_keys_response.rb +1 -1
  150. data/lib/turnkey_client/models/get_authenticator_request.rb +1 -1
  151. data/lib/turnkey_client/models/get_authenticator_response.rb +1 -1
  152. data/lib/turnkey_client/models/get_authenticators_request.rb +1 -1
  153. data/lib/turnkey_client/models/get_authenticators_response.rb +1 -1
  154. data/lib/turnkey_client/models/get_policies_request.rb +1 -1
  155. data/lib/turnkey_client/models/get_policies_response.rb +1 -1
  156. data/lib/turnkey_client/models/get_policy_request.rb +1 -1
  157. data/lib/turnkey_client/models/get_policy_response.rb +1 -1
  158. data/lib/turnkey_client/models/get_private_key_request.rb +1 -1
  159. data/lib/turnkey_client/models/get_private_key_response.rb +1 -1
  160. data/lib/turnkey_client/models/get_private_keys_request.rb +1 -1
  161. data/lib/turnkey_client/models/get_private_keys_response.rb +1 -1
  162. data/lib/turnkey_client/models/get_sub_org_ids_request.rb +232 -0
  163. data/lib/turnkey_client/models/get_sub_org_ids_response.rb +214 -0
  164. data/lib/turnkey_client/models/get_user_request.rb +1 -1
  165. data/lib/turnkey_client/models/get_user_response.rb +1 -1
  166. data/lib/turnkey_client/models/get_users_request.rb +1 -1
  167. data/lib/turnkey_client/models/get_users_response.rb +1 -1
  168. data/lib/turnkey_client/models/get_wallet_accounts_request.rb +1 -1
  169. data/lib/turnkey_client/models/get_wallet_accounts_response.rb +1 -1
  170. data/lib/turnkey_client/models/get_wallet_request.rb +1 -1
  171. data/lib/turnkey_client/models/get_wallet_response.rb +1 -1
  172. data/lib/turnkey_client/models/get_wallets_request.rb +1 -1
  173. data/lib/turnkey_client/models/get_wallets_response.rb +1 -1
  174. data/lib/turnkey_client/models/get_whoami_request.rb +1 -1
  175. data/lib/turnkey_client/models/get_whoami_response.rb +1 -1
  176. data/lib/turnkey_client/models/hash_function.rb +1 -1
  177. data/lib/turnkey_client/models/import_private_key_intent.rb +273 -0
  178. data/lib/turnkey_client/models/import_private_key_request.rb +289 -0
  179. data/lib/turnkey_client/models/import_private_key_result.rb +229 -0
  180. data/lib/turnkey_client/models/import_wallet_intent.rb +1 -1
  181. data/lib/turnkey_client/models/import_wallet_request.rb +1 -1
  182. data/lib/turnkey_client/models/import_wallet_result.rb +1 -1
  183. data/lib/turnkey_client/models/init_import_private_key_intent.rb +212 -0
  184. data/lib/turnkey_client/models/init_import_private_key_request.rb +289 -0
  185. data/lib/turnkey_client/models/init_import_private_key_result.rb +212 -0
  186. data/lib/turnkey_client/models/init_import_wallet_intent.rb +1 -1
  187. data/lib/turnkey_client/models/init_import_wallet_request.rb +1 -1
  188. data/lib/turnkey_client/models/init_import_wallet_result.rb +1 -1
  189. data/lib/turnkey_client/models/init_user_email_recovery_intent.rb +14 -5
  190. data/lib/turnkey_client/models/init_user_email_recovery_request.rb +1 -1
  191. data/lib/turnkey_client/models/init_user_email_recovery_result.rb +1 -1
  192. data/lib/turnkey_client/models/intent.rb +23 -5
  193. data/lib/turnkey_client/models/invitation_params.rb +1 -1
  194. data/lib/turnkey_client/models/list_private_key_tags_request.rb +1 -1
  195. data/lib/turnkey_client/models/list_private_key_tags_response.rb +1 -1
  196. data/lib/turnkey_client/models/list_user_tags_request.rb +1 -1
  197. data/lib/turnkey_client/models/list_user_tags_response.rb +1 -1
  198. data/lib/turnkey_client/models/mnemonic_language.rb +1 -1
  199. data/lib/turnkey_client/models/operator.rb +1 -1
  200. data/lib/turnkey_client/models/pagination.rb +1 -1
  201. data/lib/turnkey_client/models/path_format.rb +1 -1
  202. data/lib/turnkey_client/models/payload_encoding.rb +1 -1
  203. data/lib/turnkey_client/models/policy.rb +1 -1
  204. data/lib/turnkey_client/models/private_key.rb +20 -5
  205. data/lib/turnkey_client/models/private_key_params.rb +1 -1
  206. data/lib/turnkey_client/models/private_key_result.rb +1 -1
  207. data/lib/turnkey_client/models/public_key_credential_with_attestation.rb +1 -1
  208. data/lib/turnkey_client/models/recover_user_intent.rb +1 -1
  209. data/lib/turnkey_client/models/recover_user_request.rb +1 -1
  210. data/lib/turnkey_client/models/recover_user_result.rb +1 -1
  211. data/lib/turnkey_client/models/reject_activity_intent.rb +1 -1
  212. data/lib/turnkey_client/models/reject_activity_request.rb +1 -1
  213. data/lib/turnkey_client/models/remove_organization_feature_intent.rb +1 -1
  214. data/lib/turnkey_client/models/remove_organization_feature_request.rb +1 -1
  215. data/lib/turnkey_client/models/remove_organization_feature_result.rb +1 -1
  216. data/lib/turnkey_client/models/result.rb +23 -5
  217. data/lib/turnkey_client/models/root_user_params.rb +1 -1
  218. data/lib/turnkey_client/models/selector.rb +1 -1
  219. data/lib/turnkey_client/models/selector_v2.rb +1 -1
  220. data/lib/turnkey_client/models/set_organization_feature_intent.rb +1 -1
  221. data/lib/turnkey_client/models/set_organization_feature_request.rb +1 -1
  222. data/lib/turnkey_client/models/set_organization_feature_result.rb +1 -1
  223. data/lib/turnkey_client/models/set_payment_method_intent.rb +1 -1
  224. data/lib/turnkey_client/models/set_payment_method_intent_v2.rb +1 -1
  225. data/lib/turnkey_client/models/set_payment_method_result.rb +1 -1
  226. data/lib/turnkey_client/models/sign_raw_payload_intent.rb +1 -1
  227. data/lib/turnkey_client/models/sign_raw_payload_intent_v2.rb +1 -1
  228. data/lib/turnkey_client/models/sign_raw_payload_request.rb +1 -1
  229. data/lib/turnkey_client/models/sign_raw_payload_result.rb +1 -1
  230. data/lib/turnkey_client/models/sign_transaction_intent.rb +1 -1
  231. data/lib/turnkey_client/models/sign_transaction_intent_v2.rb +1 -1
  232. data/lib/turnkey_client/models/sign_transaction_request.rb +1 -1
  233. data/lib/turnkey_client/models/sign_transaction_result.rb +1 -1
  234. data/lib/turnkey_client/models/simple_client_extension_results.rb +1 -1
  235. data/lib/turnkey_client/models/tag_type.rb +1 -1
  236. data/lib/turnkey_client/models/transaction_type.rb +1 -1
  237. data/lib/turnkey_client/models/update_allowed_origins_intent.rb +1 -1
  238. data/lib/turnkey_client/models/update_allowed_origins_result.rb +1 -1
  239. data/lib/turnkey_client/models/update_policy_intent.rb +1 -1
  240. data/lib/turnkey_client/models/update_policy_request.rb +1 -1
  241. data/lib/turnkey_client/models/update_policy_result.rb +1 -1
  242. data/lib/turnkey_client/models/update_private_key_tag_intent.rb +1 -1
  243. data/lib/turnkey_client/models/update_private_key_tag_request.rb +1 -1
  244. data/lib/turnkey_client/models/update_private_key_tag_result.rb +1 -1
  245. data/lib/turnkey_client/models/update_root_quorum_intent.rb +1 -1
  246. data/lib/turnkey_client/models/update_root_quorum_request.rb +1 -1
  247. data/lib/turnkey_client/models/update_root_quorum_result.rb +1 -1
  248. data/lib/turnkey_client/models/update_user_intent.rb +1 -1
  249. data/lib/turnkey_client/models/update_user_request.rb +1 -1
  250. data/lib/turnkey_client/models/update_user_result.rb +1 -1
  251. data/lib/turnkey_client/models/update_user_tag_intent.rb +1 -1
  252. data/lib/turnkey_client/models/update_user_tag_request.rb +1 -1
  253. data/lib/turnkey_client/models/update_user_tag_result.rb +1 -1
  254. data/lib/turnkey_client/models/user.rb +1 -1
  255. data/lib/turnkey_client/models/user_params.rb +1 -1
  256. data/lib/turnkey_client/models/user_params_v2.rb +1 -1
  257. data/lib/turnkey_client/models/v1_tag.rb +1 -1
  258. data/lib/turnkey_client/models/vote.rb +1 -1
  259. data/lib/turnkey_client/models/wallet.rb +1 -1
  260. data/lib/turnkey_client/models/wallet_account.rb +1 -1
  261. data/lib/turnkey_client/models/wallet_account_params.rb +1 -1
  262. data/lib/turnkey_client/models/wallet_params.rb +1 -1
  263. data/lib/turnkey_client/models/wallet_result.rb +1 -1
  264. data/lib/turnkey_client/version.rb +2 -2
  265. data/lib/turnkey_client.rb +9 -1
  266. data/turnkey_client-0.0.2.gem +0 -0
  267. data/turnkey_client.gemspec +1 -1
  268. metadata +11 -2
@@ -6,7 +6,7 @@
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.53
9
+ Swagger Codegen version: 3.0.54
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,7 +6,7 @@
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.53
9
+ Swagger Codegen version: 3.0.54
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,7 +6,7 @@
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.53
9
+ Swagger Codegen version: 3.0.54
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,7 +6,7 @@
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.53
9
+ Swagger Codegen version: 3.0.54
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,7 +6,7 @@
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.53
9
+ Swagger Codegen version: 3.0.54
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -0,0 +1,232 @@
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.54
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module TurnkeyClient
15
+ class GetSubOrgIdsRequest
16
+ # Unique identifier for the parent Organization. This is used to find sub-organizations within it.
17
+ attr_accessor :organization_id
18
+
19
+ # Specifies the type of filter to apply, i.e 'CREDENTIAL_ID', 'NAME', 'USERNAME', 'EMAIL' or 'PUBLIC_KEY'
20
+ attr_accessor :filter_type
21
+
22
+ # The value of the filter to apply for the specified type. For example, a specific email or name string.
23
+ attr_accessor :filter_value
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'organization_id' => :'organizationId',
29
+ :'filter_type' => :'filterType',
30
+ :'filter_value' => :'filterValue'
31
+ }
32
+ end
33
+
34
+ # Attribute type mapping.
35
+ def self.openapi_types
36
+ {
37
+ :'organization_id' => :'Object',
38
+ :'filter_type' => :'Object',
39
+ :'filter_value' => :'Object'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::GetSubOrgIdsRequest` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::GetSubOrgIdsRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'organization_id')
65
+ self.organization_id = attributes[:'organization_id']
66
+ end
67
+
68
+ if attributes.key?(:'filter_type')
69
+ self.filter_type = attributes[:'filter_type']
70
+ end
71
+
72
+ if attributes.key?(:'filter_value')
73
+ self.filter_value = attributes[:'filter_value']
74
+ end
75
+ end
76
+
77
+ # Show invalid properties with the reasons. Usually used together with valid?
78
+ # @return Array for valid properties with the reasons
79
+ def list_invalid_properties
80
+ invalid_properties = Array.new
81
+ if @organization_id.nil?
82
+ invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.')
83
+ end
84
+
85
+ invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ return false if @organization_id.nil?
92
+ true
93
+ end
94
+
95
+ # Checks equality by comparing each attribute.
96
+ # @param [Object] Object to be compared
97
+ def ==(o)
98
+ return true if self.equal?(o)
99
+ self.class == o.class &&
100
+ organization_id == o.organization_id &&
101
+ filter_type == o.filter_type &&
102
+ filter_value == o.filter_value
103
+ end
104
+
105
+ # @see the `==` method
106
+ # @param [Object] Object to be compared
107
+ def eql?(o)
108
+ self == o
109
+ end
110
+
111
+ # Calculates hash code according to all attributes.
112
+ # @return [Integer] Hash code
113
+ def hash
114
+ [organization_id, filter_type, filter_value].hash
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def self.build_from_hash(attributes)
121
+ new.build_from_hash(attributes)
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ self.class.openapi_types.each_pair do |key, type|
130
+ if type =~ /\AArray<(.*)>/i
131
+ # check to ensure the input is an array given that the attribute
132
+ # is documented as an array but the input is not
133
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
134
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
135
+ end
136
+ elsif !attributes[self.class.attribute_map[key]].nil?
137
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
138
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
139
+ self.send("#{key}=", nil)
140
+ end
141
+ end
142
+
143
+ self
144
+ end
145
+
146
+ # Deserializes the data based on type
147
+ # @param string type Data type
148
+ # @param string value Value to be deserialized
149
+ # @return [Object] Deserialized data
150
+ def _deserialize(type, value)
151
+ case type.to_sym
152
+ when :DateTime
153
+ DateTime.parse(value)
154
+ when :Date
155
+ Date.parse(value)
156
+ when :String
157
+ value.to_s
158
+ when :Integer
159
+ value.to_i
160
+ when :Float
161
+ value.to_f
162
+ when :Boolean
163
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
164
+ true
165
+ else
166
+ false
167
+ end
168
+ when :Object
169
+ # generic object (usually a Hash), return directly
170
+ value
171
+ when /\AArray<(?<inner_type>.+)>\z/
172
+ inner_type = Regexp.last_match[:inner_type]
173
+ value.map { |v| _deserialize(inner_type, v) }
174
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
175
+ k_type = Regexp.last_match[:k_type]
176
+ v_type = Regexp.last_match[:v_type]
177
+ {}.tap do |hash|
178
+ value.each do |k, v|
179
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
180
+ end
181
+ end
182
+ else # model
183
+ TurnkeyClient.const_get(type).build_from_hash(value)
184
+ end
185
+ end
186
+
187
+ # Returns the string representation of the object
188
+ # @return [String] String presentation of the object
189
+ def to_s
190
+ to_hash.to_s
191
+ end
192
+
193
+ # to_body is an alias to to_hash (backward compatibility)
194
+ # @return [Hash] Returns the object in the form of hash
195
+ def to_body
196
+ to_hash
197
+ end
198
+
199
+ # Returns the object in the form of hash
200
+ # @return [Hash] Returns the object in the form of hash
201
+ def to_hash
202
+ hash = {}
203
+ self.class.attribute_map.each_pair do |attr, param|
204
+ value = self.send(attr)
205
+ if value.nil?
206
+ is_nullable = self.class.openapi_nullable.include?(attr)
207
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
208
+ end
209
+
210
+ hash[param] = _to_hash(value)
211
+ end
212
+ hash
213
+ end
214
+
215
+ # Outputs non-array value in the form of hash
216
+ # For object, use to_hash. Otherwise, just return the value
217
+ # @param [Object] value Any valid value
218
+ # @return [Hash] Returns the value in the form of hash
219
+ def _to_hash(value)
220
+ if value.is_a?(Array)
221
+ value.compact.map { |v| _to_hash(v) }
222
+ elsif value.is_a?(Hash)
223
+ {}.tap do |hash|
224
+ value.each { |k, v| hash[k] = _to_hash(v) }
225
+ end
226
+ elsif value.respond_to? :to_hash
227
+ value.to_hash
228
+ else
229
+ value
230
+ end
231
+ end end
232
+ end
@@ -0,0 +1,214 @@
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.54
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module TurnkeyClient
15
+ class GetSubOrgIdsResponse
16
+ # List of unique identifiers for the matching sub-organizations.
17
+ attr_accessor :organization_ids
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'organization_ids' => :'organizationIds'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.openapi_types
28
+ {
29
+ :'organization_ids' => :'Object'
30
+ }
31
+ end
32
+
33
+ # List of attributes with nullable: true
34
+ def self.openapi_nullable
35
+ Set.new([
36
+ ])
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ if (!attributes.is_a?(Hash))
43
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::GetSubOrgIdsResponse` initialize method"
44
+ end
45
+
46
+ # check to see if the attribute exists and convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}) { |(k, v), h|
48
+ if (!self.class.attribute_map.key?(k.to_sym))
49
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::GetSubOrgIdsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ end
51
+ h[k.to_sym] = v
52
+ }
53
+
54
+ if attributes.key?(:'organization_ids')
55
+ if (value = attributes[:'organization_ids']).is_a?(Array)
56
+ self.organization_ids = value
57
+ end
58
+ end
59
+ end
60
+
61
+ # Show invalid properties with the reasons. Usually used together with valid?
62
+ # @return Array for valid properties with the reasons
63
+ def list_invalid_properties
64
+ invalid_properties = Array.new
65
+ if @organization_ids.nil?
66
+ invalid_properties.push('invalid value for "organization_ids", organization_ids cannot be nil.')
67
+ end
68
+
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ return false if @organization_ids.nil?
76
+ true
77
+ end
78
+
79
+ # Checks equality by comparing each attribute.
80
+ # @param [Object] Object to be compared
81
+ def ==(o)
82
+ return true if self.equal?(o)
83
+ self.class == o.class &&
84
+ organization_ids == o.organization_ids
85
+ end
86
+
87
+ # @see the `==` method
88
+ # @param [Object] Object to be compared
89
+ def eql?(o)
90
+ self == o
91
+ end
92
+
93
+ # Calculates hash code according to all attributes.
94
+ # @return [Integer] Hash code
95
+ def hash
96
+ [organization_ids].hash
97
+ end
98
+
99
+ # Builds the object from hash
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ # @return [Object] Returns the model itself
102
+ def self.build_from_hash(attributes)
103
+ new.build_from_hash(attributes)
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def build_from_hash(attributes)
110
+ return nil unless attributes.is_a?(Hash)
111
+ self.class.openapi_types.each_pair do |key, type|
112
+ if type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the attribute
114
+ # is documented as an array but the input is not
115
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
116
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
117
+ end
118
+ elsif !attributes[self.class.attribute_map[key]].nil?
119
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
121
+ self.send("#{key}=", nil)
122
+ end
123
+ end
124
+
125
+ self
126
+ end
127
+
128
+ # Deserializes the data based on type
129
+ # @param string type Data type
130
+ # @param string value Value to be deserialized
131
+ # @return [Object] Deserialized data
132
+ def _deserialize(type, value)
133
+ case type.to_sym
134
+ when :DateTime
135
+ DateTime.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :Boolean
145
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
+ true
147
+ else
148
+ false
149
+ end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ TurnkeyClient.const_get(type).build_from_hash(value)
166
+ end
167
+ end
168
+
169
+ # Returns the string representation of the object
170
+ # @return [String] String presentation of the object
171
+ def to_s
172
+ to_hash.to_s
173
+ end
174
+
175
+ # to_body is an alias to to_hash (backward compatibility)
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_body
178
+ to_hash
179
+ end
180
+
181
+ # Returns the object in the form of hash
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_hash
184
+ hash = {}
185
+ self.class.attribute_map.each_pair do |attr, param|
186
+ value = self.send(attr)
187
+ if value.nil?
188
+ is_nullable = self.class.openapi_nullable.include?(attr)
189
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
190
+ end
191
+
192
+ hash[param] = _to_hash(value)
193
+ end
194
+ hash
195
+ end
196
+
197
+ # Outputs non-array value in the form of hash
198
+ # For object, use to_hash. Otherwise, just return the value
199
+ # @param [Object] value Any valid value
200
+ # @return [Hash] Returns the value in the form of hash
201
+ def _to_hash(value)
202
+ if value.is_a?(Array)
203
+ value.compact.map { |v| _to_hash(v) }
204
+ elsif value.is_a?(Hash)
205
+ {}.tap do |hash|
206
+ value.each { |k, v| hash[k] = _to_hash(v) }
207
+ end
208
+ elsif value.respond_to? :to_hash
209
+ value.to_hash
210
+ else
211
+ value
212
+ end
213
+ end end
214
+ end
@@ -6,7 +6,7 @@
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.53
9
+ Swagger Codegen version: 3.0.54
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,7 +6,7 @@
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.53
9
+ Swagger Codegen version: 3.0.54
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,7 +6,7 @@
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.53
9
+ Swagger Codegen version: 3.0.54
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,7 +6,7 @@
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.53
9
+ Swagger Codegen version: 3.0.54
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,7 +6,7 @@
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.53
9
+ Swagger Codegen version: 3.0.54
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,7 +6,7 @@
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.53
9
+ Swagger Codegen version: 3.0.54
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,7 +6,7 @@
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.53
9
+ Swagger Codegen version: 3.0.54
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,7 +6,7 @@
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.53
9
+ Swagger Codegen version: 3.0.54
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,7 +6,7 @@
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.53
9
+ Swagger Codegen version: 3.0.54
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,7 +6,7 @@
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.53
9
+ Swagger Codegen version: 3.0.54
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,7 +6,7 @@
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.53
9
+ Swagger Codegen version: 3.0.54
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,7 +6,7 @@
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.53
9
+ Swagger Codegen version: 3.0.54
10
10
  =end
11
11
 
12
12
  require 'date'
@@ -6,7 +6,7 @@
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.53
9
+ Swagger Codegen version: 3.0.54
10
10
  =end
11
11
 
12
12
  require 'date'