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.
- checksums.yaml +4 -4
- data/lib/turnkey_client/api/activities_api.rb +1 -1
- data/lib/turnkey_client/api/api_keys_api.rb +1 -1
- data/lib/turnkey_client/api/authenticators_api.rb +1 -1
- data/lib/turnkey_client/api/consensus_api.rb +1 -1
- data/lib/turnkey_client/api/features_api.rb +1 -1
- data/lib/turnkey_client/api/invitations_api.rb +1 -1
- data/lib/turnkey_client/api/organizations_api.rb +59 -1
- data/lib/turnkey_client/api/policies_api.rb +1 -1
- data/lib/turnkey_client/api/private_key_tags_api.rb +1 -1
- data/lib/turnkey_client/api/private_keys_api.rb +117 -1
- data/lib/turnkey_client/api/sessions_api.rb +1 -1
- data/lib/turnkey_client/api/signing_api.rb +1 -1
- data/lib/turnkey_client/api/user_auth_api.rb +1 -1
- data/lib/turnkey_client/api/user_recovery_api.rb +1 -1
- data/lib/turnkey_client/api/user_tags_api.rb +1 -1
- data/lib/turnkey_client/api/users_api.rb +1 -1
- data/lib/turnkey_client/api/wallets_api.rb +1 -1
- data/lib/turnkey_client/api_client.rb +1 -1
- data/lib/turnkey_client/api_error.rb +1 -1
- data/lib/turnkey_client/configuration.rb +1 -1
- data/lib/turnkey_client/models/accept_invitation_intent.rb +1 -1
- data/lib/turnkey_client/models/accept_invitation_intent_v2.rb +1 -1
- data/lib/turnkey_client/models/accept_invitation_result.rb +1 -1
- data/lib/turnkey_client/models/access_type.rb +1 -1
- data/lib/turnkey_client/models/activate_billing_tier_intent.rb +1 -1
- data/lib/turnkey_client/models/activate_billing_tier_result.rb +1 -1
- data/lib/turnkey_client/models/activity.rb +1 -1
- data/lib/turnkey_client/models/activity_response.rb +1 -1
- data/lib/turnkey_client/models/activity_status.rb +1 -1
- data/lib/turnkey_client/models/activity_type.rb +3 -1
- data/lib/turnkey_client/models/activity_v1_address.rb +1 -1
- data/lib/turnkey_client/models/address_format.rb +1 -1
- data/lib/turnkey_client/models/api_key.rb +1 -1
- data/lib/turnkey_client/models/api_key_params.rb +1 -1
- data/lib/turnkey_client/models/api_only_user_params.rb +1 -1
- data/lib/turnkey_client/models/approve_activity_intent.rb +1 -1
- data/lib/turnkey_client/models/approve_activity_request.rb +1 -1
- data/lib/turnkey_client/models/attestation.rb +1 -1
- data/lib/turnkey_client/models/authenticator.rb +1 -1
- data/lib/turnkey_client/models/authenticator_attestation_response.rb +1 -1
- data/lib/turnkey_client/models/authenticator_params.rb +1 -1
- data/lib/turnkey_client/models/authenticator_params_v2.rb +1 -1
- data/lib/turnkey_client/models/authenticator_transport.rb +1 -1
- data/lib/turnkey_client/models/create_api_keys_intent.rb +1 -1
- data/lib/turnkey_client/models/create_api_keys_request.rb +1 -1
- data/lib/turnkey_client/models/create_api_keys_result.rb +1 -1
- data/lib/turnkey_client/models/create_api_only_users_intent.rb +1 -1
- data/lib/turnkey_client/models/create_api_only_users_result.rb +1 -1
- data/lib/turnkey_client/models/create_authenticators_intent.rb +1 -1
- data/lib/turnkey_client/models/create_authenticators_intent_v2.rb +1 -1
- data/lib/turnkey_client/models/create_authenticators_request.rb +1 -1
- data/lib/turnkey_client/models/create_authenticators_result.rb +1 -1
- data/lib/turnkey_client/models/create_invitations_intent.rb +1 -1
- data/lib/turnkey_client/models/create_invitations_request.rb +1 -1
- data/lib/turnkey_client/models/create_invitations_result.rb +1 -1
- data/lib/turnkey_client/models/create_organization_intent.rb +1 -1
- data/lib/turnkey_client/models/create_organization_intent_v2.rb +1 -1
- data/lib/turnkey_client/models/create_organization_result.rb +1 -1
- data/lib/turnkey_client/models/create_policy_intent.rb +1 -1
- data/lib/turnkey_client/models/create_policy_intent_v2.rb +1 -1
- data/lib/turnkey_client/models/create_policy_intent_v3.rb +1 -1
- data/lib/turnkey_client/models/create_policy_request.rb +1 -1
- data/lib/turnkey_client/models/create_policy_result.rb +1 -1
- data/lib/turnkey_client/models/create_private_key_tag_intent.rb +1 -1
- data/lib/turnkey_client/models/create_private_key_tag_request.rb +1 -1
- data/lib/turnkey_client/models/create_private_key_tag_result.rb +1 -1
- data/lib/turnkey_client/models/create_private_keys_intent.rb +1 -1
- data/lib/turnkey_client/models/create_private_keys_intent_v2.rb +1 -1
- data/lib/turnkey_client/models/create_private_keys_request.rb +1 -1
- data/lib/turnkey_client/models/create_private_keys_result.rb +1 -1
- data/lib/turnkey_client/models/create_private_keys_result_v2.rb +1 -1
- data/lib/turnkey_client/models/create_sub_organization_intent.rb +1 -1
- data/lib/turnkey_client/models/create_sub_organization_intent_v2.rb +1 -1
- data/lib/turnkey_client/models/create_sub_organization_intent_v3.rb +1 -1
- data/lib/turnkey_client/models/create_sub_organization_intent_v4.rb +1 -1
- data/lib/turnkey_client/models/create_sub_organization_request.rb +1 -1
- data/lib/turnkey_client/models/create_sub_organization_result.rb +16 -5
- data/lib/turnkey_client/models/create_sub_organization_result_v3.rb +16 -5
- data/lib/turnkey_client/models/create_sub_organization_result_v4.rb +16 -5
- data/lib/turnkey_client/models/create_user_tag_intent.rb +1 -1
- data/lib/turnkey_client/models/create_user_tag_request.rb +1 -1
- data/lib/turnkey_client/models/create_user_tag_result.rb +1 -1
- data/lib/turnkey_client/models/create_users_intent.rb +1 -1
- data/lib/turnkey_client/models/create_users_intent_v2.rb +1 -1
- data/lib/turnkey_client/models/create_users_request.rb +1 -1
- data/lib/turnkey_client/models/create_users_result.rb +1 -1
- data/lib/turnkey_client/models/create_wallet_accounts_intent.rb +1 -1
- data/lib/turnkey_client/models/create_wallet_accounts_request.rb +1 -1
- data/lib/turnkey_client/models/create_wallet_accounts_result.rb +1 -1
- data/lib/turnkey_client/models/create_wallet_intent.rb +1 -1
- data/lib/turnkey_client/models/create_wallet_request.rb +1 -1
- data/lib/turnkey_client/models/create_wallet_result.rb +1 -1
- data/lib/turnkey_client/models/cred_props_authentication_extensions_client_outputs.rb +1 -1
- data/lib/turnkey_client/models/credential_type.rb +1 -1
- data/lib/turnkey_client/models/curve.rb +1 -1
- data/lib/turnkey_client/models/data_v1_address.rb +1 -1
- data/lib/turnkey_client/models/delete_api_keys_intent.rb +1 -1
- data/lib/turnkey_client/models/delete_api_keys_request.rb +1 -1
- data/lib/turnkey_client/models/delete_api_keys_result.rb +1 -1
- data/lib/turnkey_client/models/delete_authenticators_intent.rb +1 -1
- data/lib/turnkey_client/models/delete_authenticators_request.rb +1 -1
- data/lib/turnkey_client/models/delete_authenticators_result.rb +1 -1
- data/lib/turnkey_client/models/delete_invitation_intent.rb +1 -1
- data/lib/turnkey_client/models/delete_invitation_request.rb +1 -1
- data/lib/turnkey_client/models/delete_invitation_result.rb +1 -1
- data/lib/turnkey_client/models/delete_organization_intent.rb +1 -1
- data/lib/turnkey_client/models/delete_organization_result.rb +1 -1
- data/lib/turnkey_client/models/delete_payment_method_intent.rb +1 -1
- data/lib/turnkey_client/models/delete_payment_method_result.rb +1 -1
- data/lib/turnkey_client/models/delete_policy_intent.rb +1 -1
- data/lib/turnkey_client/models/delete_policy_request.rb +1 -1
- data/lib/turnkey_client/models/delete_policy_result.rb +1 -1
- data/lib/turnkey_client/models/delete_private_key_tags_intent.rb +1 -1
- data/lib/turnkey_client/models/delete_private_key_tags_request.rb +1 -1
- data/lib/turnkey_client/models/delete_private_key_tags_result.rb +1 -1
- data/lib/turnkey_client/models/delete_user_tags_intent.rb +1 -1
- data/lib/turnkey_client/models/delete_user_tags_request.rb +1 -1
- data/lib/turnkey_client/models/delete_user_tags_result.rb +1 -1
- data/lib/turnkey_client/models/delete_users_intent.rb +1 -1
- data/lib/turnkey_client/models/delete_users_request.rb +1 -1
- data/lib/turnkey_client/models/delete_users_result.rb +1 -1
- data/lib/turnkey_client/models/disable_private_key_intent.rb +1 -1
- data/lib/turnkey_client/models/disable_private_key_result.rb +1 -1
- data/lib/turnkey_client/models/effect.rb +1 -1
- data/lib/turnkey_client/models/email_auth_intent.rb +1 -1
- data/lib/turnkey_client/models/email_auth_request.rb +1 -1
- data/lib/turnkey_client/models/email_auth_result.rb +1 -1
- data/lib/turnkey_client/models/email_customization_params.rb +1 -1
- data/lib/turnkey_client/models/export_private_key_intent.rb +1 -1
- data/lib/turnkey_client/models/export_private_key_request.rb +1 -1
- data/lib/turnkey_client/models/export_private_key_result.rb +1 -1
- data/lib/turnkey_client/models/export_wallet_account_intent.rb +1 -1
- data/lib/turnkey_client/models/export_wallet_account_request.rb +1 -1
- data/lib/turnkey_client/models/export_wallet_account_result.rb +1 -1
- data/lib/turnkey_client/models/export_wallet_intent.rb +1 -1
- data/lib/turnkey_client/models/export_wallet_request.rb +1 -1
- data/lib/turnkey_client/models/export_wallet_result.rb +1 -1
- data/lib/turnkey_client/models/external_data_v1_credential.rb +1 -1
- data/lib/turnkey_client/models/external_data_v1_timestamp.rb +1 -1
- data/lib/turnkey_client/models/feature.rb +1 -1
- data/lib/turnkey_client/models/feature_name.rb +2 -1
- data/lib/turnkey_client/models/get_activities_request.rb +1 -1
- data/lib/turnkey_client/models/get_activities_response.rb +1 -1
- data/lib/turnkey_client/models/get_activity_request.rb +1 -1
- data/lib/turnkey_client/models/get_api_key_request.rb +1 -1
- data/lib/turnkey_client/models/get_api_key_response.rb +1 -1
- data/lib/turnkey_client/models/get_api_keys_request.rb +1 -1
- data/lib/turnkey_client/models/get_api_keys_response.rb +1 -1
- data/lib/turnkey_client/models/get_authenticator_request.rb +1 -1
- data/lib/turnkey_client/models/get_authenticator_response.rb +1 -1
- data/lib/turnkey_client/models/get_authenticators_request.rb +1 -1
- data/lib/turnkey_client/models/get_authenticators_response.rb +1 -1
- data/lib/turnkey_client/models/get_policies_request.rb +1 -1
- data/lib/turnkey_client/models/get_policies_response.rb +1 -1
- data/lib/turnkey_client/models/get_policy_request.rb +1 -1
- data/lib/turnkey_client/models/get_policy_response.rb +1 -1
- data/lib/turnkey_client/models/get_private_key_request.rb +1 -1
- data/lib/turnkey_client/models/get_private_key_response.rb +1 -1
- data/lib/turnkey_client/models/get_private_keys_request.rb +1 -1
- data/lib/turnkey_client/models/get_private_keys_response.rb +1 -1
- data/lib/turnkey_client/models/get_sub_org_ids_request.rb +232 -0
- data/lib/turnkey_client/models/get_sub_org_ids_response.rb +214 -0
- data/lib/turnkey_client/models/get_user_request.rb +1 -1
- data/lib/turnkey_client/models/get_user_response.rb +1 -1
- data/lib/turnkey_client/models/get_users_request.rb +1 -1
- data/lib/turnkey_client/models/get_users_response.rb +1 -1
- data/lib/turnkey_client/models/get_wallet_accounts_request.rb +1 -1
- data/lib/turnkey_client/models/get_wallet_accounts_response.rb +1 -1
- data/lib/turnkey_client/models/get_wallet_request.rb +1 -1
- data/lib/turnkey_client/models/get_wallet_response.rb +1 -1
- data/lib/turnkey_client/models/get_wallets_request.rb +1 -1
- data/lib/turnkey_client/models/get_wallets_response.rb +1 -1
- data/lib/turnkey_client/models/get_whoami_request.rb +1 -1
- data/lib/turnkey_client/models/get_whoami_response.rb +1 -1
- data/lib/turnkey_client/models/hash_function.rb +1 -1
- data/lib/turnkey_client/models/import_private_key_intent.rb +273 -0
- data/lib/turnkey_client/models/import_private_key_request.rb +289 -0
- data/lib/turnkey_client/models/import_private_key_result.rb +229 -0
- data/lib/turnkey_client/models/import_wallet_intent.rb +1 -1
- data/lib/turnkey_client/models/import_wallet_request.rb +1 -1
- data/lib/turnkey_client/models/import_wallet_result.rb +1 -1
- data/lib/turnkey_client/models/init_import_private_key_intent.rb +212 -0
- data/lib/turnkey_client/models/init_import_private_key_request.rb +289 -0
- data/lib/turnkey_client/models/init_import_private_key_result.rb +212 -0
- data/lib/turnkey_client/models/init_import_wallet_intent.rb +1 -1
- data/lib/turnkey_client/models/init_import_wallet_request.rb +1 -1
- data/lib/turnkey_client/models/init_import_wallet_result.rb +1 -1
- data/lib/turnkey_client/models/init_user_email_recovery_intent.rb +14 -5
- data/lib/turnkey_client/models/init_user_email_recovery_request.rb +1 -1
- data/lib/turnkey_client/models/init_user_email_recovery_result.rb +1 -1
- data/lib/turnkey_client/models/intent.rb +23 -5
- data/lib/turnkey_client/models/invitation_params.rb +1 -1
- data/lib/turnkey_client/models/list_private_key_tags_request.rb +1 -1
- data/lib/turnkey_client/models/list_private_key_tags_response.rb +1 -1
- data/lib/turnkey_client/models/list_user_tags_request.rb +1 -1
- data/lib/turnkey_client/models/list_user_tags_response.rb +1 -1
- data/lib/turnkey_client/models/mnemonic_language.rb +1 -1
- data/lib/turnkey_client/models/operator.rb +1 -1
- data/lib/turnkey_client/models/pagination.rb +1 -1
- data/lib/turnkey_client/models/path_format.rb +1 -1
- data/lib/turnkey_client/models/payload_encoding.rb +1 -1
- data/lib/turnkey_client/models/policy.rb +1 -1
- data/lib/turnkey_client/models/private_key.rb +20 -5
- data/lib/turnkey_client/models/private_key_params.rb +1 -1
- data/lib/turnkey_client/models/private_key_result.rb +1 -1
- data/lib/turnkey_client/models/public_key_credential_with_attestation.rb +1 -1
- data/lib/turnkey_client/models/recover_user_intent.rb +1 -1
- data/lib/turnkey_client/models/recover_user_request.rb +1 -1
- data/lib/turnkey_client/models/recover_user_result.rb +1 -1
- data/lib/turnkey_client/models/reject_activity_intent.rb +1 -1
- data/lib/turnkey_client/models/reject_activity_request.rb +1 -1
- data/lib/turnkey_client/models/remove_organization_feature_intent.rb +1 -1
- data/lib/turnkey_client/models/remove_organization_feature_request.rb +1 -1
- data/lib/turnkey_client/models/remove_organization_feature_result.rb +1 -1
- data/lib/turnkey_client/models/result.rb +23 -5
- data/lib/turnkey_client/models/root_user_params.rb +1 -1
- data/lib/turnkey_client/models/selector.rb +1 -1
- data/lib/turnkey_client/models/selector_v2.rb +1 -1
- data/lib/turnkey_client/models/set_organization_feature_intent.rb +1 -1
- data/lib/turnkey_client/models/set_organization_feature_request.rb +1 -1
- data/lib/turnkey_client/models/set_organization_feature_result.rb +1 -1
- data/lib/turnkey_client/models/set_payment_method_intent.rb +1 -1
- data/lib/turnkey_client/models/set_payment_method_intent_v2.rb +1 -1
- data/lib/turnkey_client/models/set_payment_method_result.rb +1 -1
- data/lib/turnkey_client/models/sign_raw_payload_intent.rb +1 -1
- data/lib/turnkey_client/models/sign_raw_payload_intent_v2.rb +1 -1
- data/lib/turnkey_client/models/sign_raw_payload_request.rb +1 -1
- data/lib/turnkey_client/models/sign_raw_payload_result.rb +1 -1
- data/lib/turnkey_client/models/sign_transaction_intent.rb +1 -1
- data/lib/turnkey_client/models/sign_transaction_intent_v2.rb +1 -1
- data/lib/turnkey_client/models/sign_transaction_request.rb +1 -1
- data/lib/turnkey_client/models/sign_transaction_result.rb +1 -1
- data/lib/turnkey_client/models/simple_client_extension_results.rb +1 -1
- data/lib/turnkey_client/models/tag_type.rb +1 -1
- data/lib/turnkey_client/models/transaction_type.rb +1 -1
- data/lib/turnkey_client/models/update_allowed_origins_intent.rb +1 -1
- data/lib/turnkey_client/models/update_allowed_origins_result.rb +1 -1
- data/lib/turnkey_client/models/update_policy_intent.rb +1 -1
- data/lib/turnkey_client/models/update_policy_request.rb +1 -1
- data/lib/turnkey_client/models/update_policy_result.rb +1 -1
- data/lib/turnkey_client/models/update_private_key_tag_intent.rb +1 -1
- data/lib/turnkey_client/models/update_private_key_tag_request.rb +1 -1
- data/lib/turnkey_client/models/update_private_key_tag_result.rb +1 -1
- data/lib/turnkey_client/models/update_root_quorum_intent.rb +1 -1
- data/lib/turnkey_client/models/update_root_quorum_request.rb +1 -1
- data/lib/turnkey_client/models/update_root_quorum_result.rb +1 -1
- data/lib/turnkey_client/models/update_user_intent.rb +1 -1
- data/lib/turnkey_client/models/update_user_request.rb +1 -1
- data/lib/turnkey_client/models/update_user_result.rb +1 -1
- data/lib/turnkey_client/models/update_user_tag_intent.rb +1 -1
- data/lib/turnkey_client/models/update_user_tag_request.rb +1 -1
- data/lib/turnkey_client/models/update_user_tag_result.rb +1 -1
- data/lib/turnkey_client/models/user.rb +1 -1
- data/lib/turnkey_client/models/user_params.rb +1 -1
- data/lib/turnkey_client/models/user_params_v2.rb +1 -1
- data/lib/turnkey_client/models/v1_tag.rb +1 -1
- data/lib/turnkey_client/models/vote.rb +1 -1
- data/lib/turnkey_client/models/wallet.rb +1 -1
- data/lib/turnkey_client/models/wallet_account.rb +1 -1
- data/lib/turnkey_client/models/wallet_account_params.rb +1 -1
- data/lib/turnkey_client/models/wallet_params.rb +1 -1
- data/lib/turnkey_client/models/wallet_result.rb +1 -1
- data/lib/turnkey_client/version.rb +2 -2
- data/lib/turnkey_client.rb +9 -1
- data/turnkey_client-0.0.2.gem +0 -0
- data/turnkey_client.gemspec +1 -1
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6bdb62bf21800b904edf5ce53a56a147bbb31b03fca85a82bfaaef6b168f817
|
4
|
+
data.tar.gz: aa1e79010d172b5b652c5e69c8d611e59764b9dfb63b799aff2d689c300cdaf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc17326b490e336ba2b9edc3989c2c575160d298ba3f4f486b869a9565fe379ee9bb67960eacfa57558facc8f55a60c54891051cad7763b662f99362304314e8
|
7
|
+
data.tar.gz: 2ecddd60d15c9eaa2b42b4bfdc8f68852f0095bb6c58e82915ba3998392b780c5092e2acb92f02e1f306ca91dba304311ade0f9f1e843f79cb32a4f2b1c47718
|
@@ -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.
|
9
|
+
Swagger Codegen version: 3.0.54
|
10
10
|
=end
|
11
11
|
|
12
12
|
module TurnkeyClient
|
@@ -74,6 +74,64 @@ module TurnkeyClient
|
|
74
74
|
end
|
75
75
|
return data, status_code, headers
|
76
76
|
end
|
77
|
+
# Get Suborgs
|
78
|
+
# Get all suborg IDs associated given a parent org ID and an optional filter.
|
79
|
+
# @param body
|
80
|
+
# @param [Hash] opts the optional parameters
|
81
|
+
# @return [GetSubOrgIdsResponse]
|
82
|
+
def get_sub_org_ids(body, opts = {})
|
83
|
+
data, _status_code, _headers = get_sub_org_ids_with_http_info(body, opts)
|
84
|
+
data
|
85
|
+
end
|
86
|
+
|
87
|
+
# Get Suborgs
|
88
|
+
# Get all suborg IDs associated given a parent org ID and an optional filter.
|
89
|
+
# @param body
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @return [Array<(GetSubOrgIdsResponse, Integer, Hash)>] GetSubOrgIdsResponse data, response status code and response headers
|
92
|
+
def get_sub_org_ids_with_http_info(body, opts = {})
|
93
|
+
if @api_client.config.debugging
|
94
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_sub_org_ids ...'
|
95
|
+
end
|
96
|
+
# verify the required parameter 'body' is set
|
97
|
+
if @api_client.config.client_side_validation && body.nil?
|
98
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationsApi.get_sub_org_ids"
|
99
|
+
end
|
100
|
+
# resource path
|
101
|
+
local_var_path = '/public/v1/query/list_suborgs'
|
102
|
+
|
103
|
+
# query parameters
|
104
|
+
query_params = opts[:query_params] || {}
|
105
|
+
|
106
|
+
# header parameters
|
107
|
+
header_params = opts[:header_params] || {}
|
108
|
+
# HTTP header 'Accept' (if needed)
|
109
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
110
|
+
# HTTP header 'Content-Type'
|
111
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
112
|
+
|
113
|
+
# form parameters
|
114
|
+
form_params = opts[:form_params] || {}
|
115
|
+
|
116
|
+
# http body (model)
|
117
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
118
|
+
|
119
|
+
return_type = opts[:return_type] || 'GetSubOrgIdsResponse'
|
120
|
+
|
121
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
122
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
123
|
+
:header_params => header_params,
|
124
|
+
:query_params => query_params,
|
125
|
+
:form_params => form_params,
|
126
|
+
:body => post_body,
|
127
|
+
:auth_names => auth_names,
|
128
|
+
:return_type => return_type)
|
129
|
+
|
130
|
+
if @api_client.config.debugging
|
131
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_sub_org_ids\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
132
|
+
end
|
133
|
+
return data, status_code, headers
|
134
|
+
end
|
77
135
|
# Update Root Quorum
|
78
136
|
# Set the threshold and members of the root quorum. This must be approved by the current root quorum.
|
79
137
|
# @param body
|
@@ -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.
|
9
|
+
Swagger Codegen version: 3.0.54
|
10
10
|
=end
|
11
11
|
|
12
12
|
module TurnkeyClient
|
@@ -248,5 +248,121 @@ module TurnkeyClient
|
|
248
248
|
end
|
249
249
|
return data, status_code, headers
|
250
250
|
end
|
251
|
+
# Import Private Key
|
252
|
+
# Imports a private key
|
253
|
+
# @param body
|
254
|
+
# @param [Hash] opts the optional parameters
|
255
|
+
# @return [ActivityResponse]
|
256
|
+
def import_private_key(body, opts = {})
|
257
|
+
data, _status_code, _headers = import_private_key_with_http_info(body, opts)
|
258
|
+
data
|
259
|
+
end
|
260
|
+
|
261
|
+
# Import Private Key
|
262
|
+
# Imports a private key
|
263
|
+
# @param body
|
264
|
+
# @param [Hash] opts the optional parameters
|
265
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
266
|
+
def import_private_key_with_http_info(body, opts = {})
|
267
|
+
if @api_client.config.debugging
|
268
|
+
@api_client.config.logger.debug 'Calling API: PrivateKeysApi.import_private_key ...'
|
269
|
+
end
|
270
|
+
# verify the required parameter 'body' is set
|
271
|
+
if @api_client.config.client_side_validation && body.nil?
|
272
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling PrivateKeysApi.import_private_key"
|
273
|
+
end
|
274
|
+
# resource path
|
275
|
+
local_var_path = '/public/v1/submit/import_private_key'
|
276
|
+
|
277
|
+
# query parameters
|
278
|
+
query_params = opts[:query_params] || {}
|
279
|
+
|
280
|
+
# header parameters
|
281
|
+
header_params = opts[:header_params] || {}
|
282
|
+
# HTTP header 'Accept' (if needed)
|
283
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
284
|
+
# HTTP header 'Content-Type'
|
285
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
286
|
+
|
287
|
+
# form parameters
|
288
|
+
form_params = opts[:form_params] || {}
|
289
|
+
|
290
|
+
# http body (model)
|
291
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
292
|
+
|
293
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
294
|
+
|
295
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
296
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
297
|
+
:header_params => header_params,
|
298
|
+
:query_params => query_params,
|
299
|
+
:form_params => form_params,
|
300
|
+
:body => post_body,
|
301
|
+
:auth_names => auth_names,
|
302
|
+
:return_type => return_type)
|
303
|
+
|
304
|
+
if @api_client.config.debugging
|
305
|
+
@api_client.config.logger.debug "API called: PrivateKeysApi#import_private_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
306
|
+
end
|
307
|
+
return data, status_code, headers
|
308
|
+
end
|
309
|
+
# Init Import Private Key
|
310
|
+
# Initializes a new private key import
|
311
|
+
# @param body
|
312
|
+
# @param [Hash] opts the optional parameters
|
313
|
+
# @return [ActivityResponse]
|
314
|
+
def init_import_private_key(body, opts = {})
|
315
|
+
data, _status_code, _headers = init_import_private_key_with_http_info(body, opts)
|
316
|
+
data
|
317
|
+
end
|
318
|
+
|
319
|
+
# Init Import Private Key
|
320
|
+
# Initializes a new private key import
|
321
|
+
# @param body
|
322
|
+
# @param [Hash] opts the optional parameters
|
323
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
324
|
+
def init_import_private_key_with_http_info(body, opts = {})
|
325
|
+
if @api_client.config.debugging
|
326
|
+
@api_client.config.logger.debug 'Calling API: PrivateKeysApi.init_import_private_key ...'
|
327
|
+
end
|
328
|
+
# verify the required parameter 'body' is set
|
329
|
+
if @api_client.config.client_side_validation && body.nil?
|
330
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling PrivateKeysApi.init_import_private_key"
|
331
|
+
end
|
332
|
+
# resource path
|
333
|
+
local_var_path = '/public/v1/submit/init_import_private_key'
|
334
|
+
|
335
|
+
# query parameters
|
336
|
+
query_params = opts[:query_params] || {}
|
337
|
+
|
338
|
+
# header parameters
|
339
|
+
header_params = opts[:header_params] || {}
|
340
|
+
# HTTP header 'Accept' (if needed)
|
341
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
342
|
+
# HTTP header 'Content-Type'
|
343
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
344
|
+
|
345
|
+
# form parameters
|
346
|
+
form_params = opts[:form_params] || {}
|
347
|
+
|
348
|
+
# http body (model)
|
349
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
350
|
+
|
351
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
352
|
+
|
353
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
354
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
355
|
+
:header_params => header_params,
|
356
|
+
:query_params => query_params,
|
357
|
+
:form_params => form_params,
|
358
|
+
:body => post_body,
|
359
|
+
:auth_names => auth_names,
|
360
|
+
:return_type => return_type)
|
361
|
+
|
362
|
+
if @api_client.config.debugging
|
363
|
+
@api_client.config.logger.debug "API called: PrivateKeysApi#init_import_private_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
364
|
+
end
|
365
|
+
return data, status_code, headers
|
366
|
+
end
|
251
367
|
end
|
252
368
|
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.
|
9
|
+
Swagger Codegen version: 3.0.54
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
@@ -72,6 +72,8 @@ module TurnkeyClient
|
|
72
72
|
EXPORT_WALLET_ACCOUNT = 'ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT'.freeze
|
73
73
|
INIT_IMPORT_WALLET = 'ACTIVITY_TYPE_INIT_IMPORT_WALLET'.freeze
|
74
74
|
IMPORT_WALLET = 'ACTIVITY_TYPE_IMPORT_WALLET'.freeze
|
75
|
+
INIT_IMPORT_PRIVATE_KEY = 'ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY'.freeze
|
76
|
+
IMPORT_PRIVATE_KEY = 'ACTIVITY_TYPE_IMPORT_PRIVATE_KEY'.freeze
|
75
77
|
|
76
78
|
# Builds the enum from string
|
77
79
|
# @param [String] The enum value in the form of the string
|