turnkey_client 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +7 -0
- data/Rakefile +8 -0
- data/git_push.sh +55 -0
- data/lib/turnkey_client/api/activities_api.rb +136 -0
- data/lib/turnkey_client/api/api_keys_api.rb +252 -0
- data/lib/turnkey_client/api/authenticators_api.rb +252 -0
- data/lib/turnkey_client/api/consensus_api.rb +136 -0
- data/lib/turnkey_client/api/features_api.rb +136 -0
- data/lib/turnkey_client/api/invitations_api.rb +136 -0
- data/lib/turnkey_client/api/organizations_api.rb +194 -0
- data/lib/turnkey_client/api/policies_api.rb +310 -0
- data/lib/turnkey_client/api/private_key_tags_api.rb +194 -0
- data/lib/turnkey_client/api/private_keys_api.rb +252 -0
- data/lib/turnkey_client/api/public_api_service_api.rb +66 -0
- data/lib/turnkey_client/api/sessions_api.rb +78 -0
- data/lib/turnkey_client/api/signing_api.rb +136 -0
- data/lib/turnkey_client/api/user_auth_api.rb +78 -0
- data/lib/turnkey_client/api/user_recovery_api.rb +136 -0
- data/lib/turnkey_client/api/user_tags_api.rb +194 -0
- data/lib/turnkey_client/api/users_api.rb +310 -0
- data/lib/turnkey_client/api/wallets_api.rb +426 -0
- data/lib/turnkey_client/api_client.rb +446 -0
- data/lib/turnkey_client/api_error.rb +57 -0
- data/lib/turnkey_client/configuration.rb +216 -0
- data/lib/turnkey_client/models/datav1_tag.rb +269 -0
- data/lib/turnkey_client/models/externaldatav1_address.rb +215 -0
- data/lib/turnkey_client/models/externaldatav1_credential.rb +226 -0
- data/lib/turnkey_client/models/externaldatav1_quorum.rb +229 -0
- data/lib/turnkey_client/models/externaldatav1_timestamp.rb +225 -0
- data/lib/turnkey_client/models/immutableactivityv1_address.rb +215 -0
- data/lib/turnkey_client/models/protobuf_any.rb +201 -0
- data/lib/turnkey_client/models/rpc_status.rb +226 -0
- data/lib/turnkey_client/models/v1_accept_invitation_intent.rb +241 -0
- data/lib/turnkey_client/models/v1_accept_invitation_intent_v2.rb +241 -0
- data/lib/turnkey_client/models/v1_accept_invitation_result.rb +227 -0
- data/lib/turnkey_client/models/v1_access_type.rb +29 -0
- data/lib/turnkey_client/models/v1_activate_billing_tier_intent.rb +212 -0
- data/lib/turnkey_client/models/v1_activate_billing_tier_result.rb +212 -0
- data/lib/turnkey_client/models/v1_activity.rb +371 -0
- data/lib/turnkey_client/models/v1_activity_response.rb +211 -0
- data/lib/turnkey_client/models/v1_activity_status.rb +32 -0
- data/lib/turnkey_client/models/v1_activity_type.rb +83 -0
- data/lib/turnkey_client/models/v1_address_format.rb +31 -0
- data/lib/turnkey_client/models/v1_api_key.rb +279 -0
- data/lib/turnkey_client/models/v1_api_key_params.rb +237 -0
- data/lib/turnkey_client/models/v1_api_only_user_params.rb +256 -0
- data/lib/turnkey_client/models/v1_approve_activity_intent.rb +212 -0
- data/lib/turnkey_client/models/v1_approve_activity_request.rb +289 -0
- data/lib/turnkey_client/models/v1_attestation.rb +259 -0
- data/lib/turnkey_client/models/v1_authenticator.rb +345 -0
- data/lib/turnkey_client/models/v1_authenticator_attestation_response.rb +280 -0
- data/lib/turnkey_client/models/v1_authenticator_params.rb +256 -0
- data/lib/turnkey_client/models/v1_authenticator_params_v2.rb +241 -0
- data/lib/turnkey_client/models/v1_authenticator_transport.rb +31 -0
- data/lib/turnkey_client/models/v1_create_api_keys_intent.rb +229 -0
- data/lib/turnkey_client/models/v1_create_api_keys_request.rb +289 -0
- data/lib/turnkey_client/models/v1_create_api_keys_result.rb +214 -0
- data/lib/turnkey_client/models/v1_create_api_only_users_intent.rb +214 -0
- data/lib/turnkey_client/models/v1_create_api_only_users_request.rb +289 -0
- data/lib/turnkey_client/models/v1_create_api_only_users_result.rb +214 -0
- data/lib/turnkey_client/models/v1_create_authenticators_intent.rb +229 -0
- data/lib/turnkey_client/models/v1_create_authenticators_intent_v2.rb +229 -0
- data/lib/turnkey_client/models/v1_create_authenticators_request.rb +289 -0
- data/lib/turnkey_client/models/v1_create_authenticators_result.rb +214 -0
- data/lib/turnkey_client/models/v1_create_invitations_intent.rb +214 -0
- data/lib/turnkey_client/models/v1_create_invitations_request.rb +289 -0
- data/lib/turnkey_client/models/v1_create_invitations_result.rb +214 -0
- data/lib/turnkey_client/models/v1_create_organization_intent.rb +251 -0
- data/lib/turnkey_client/models/v1_create_organization_intent_v2.rb +251 -0
- data/lib/turnkey_client/models/v1_create_organization_result.rb +212 -0
- data/lib/turnkey_client/models/v1_create_policy_intent.rb +252 -0
- data/lib/turnkey_client/models/v1_create_policy_intent_v2.rb +252 -0
- data/lib/turnkey_client/models/v1_create_policy_intent_v3.rb +255 -0
- data/lib/turnkey_client/models/v1_create_policy_request.rb +289 -0
- data/lib/turnkey_client/models/v1_create_policy_result.rb +212 -0
- data/lib/turnkey_client/models/v1_create_private_key_tag_intent.rb +229 -0
- data/lib/turnkey_client/models/v1_create_private_key_tag_request.rb +289 -0
- data/lib/turnkey_client/models/v1_create_private_key_tag_result.rb +229 -0
- data/lib/turnkey_client/models/v1_create_private_keys_intent.rb +214 -0
- data/lib/turnkey_client/models/v1_create_private_keys_intent_v2.rb +214 -0
- data/lib/turnkey_client/models/v1_create_private_keys_request.rb +289 -0
- data/lib/turnkey_client/models/v1_create_private_keys_result.rb +214 -0
- data/lib/turnkey_client/models/v1_create_private_keys_result_v2.rb +214 -0
- data/lib/turnkey_client/models/v1_create_sub_organization_intent.rb +226 -0
- data/lib/turnkey_client/models/v1_create_sub_organization_intent_v2.rb +244 -0
- data/lib/turnkey_client/models/v1_create_sub_organization_intent_v3.rb +261 -0
- data/lib/turnkey_client/models/v1_create_sub_organization_intent_v4.rb +273 -0
- data/lib/turnkey_client/models/v1_create_sub_organization_request.rb +289 -0
- data/lib/turnkey_client/models/v1_create_sub_organization_result.rb +211 -0
- data/lib/turnkey_client/models/v1_create_sub_organization_result_v3.rb +228 -0
- data/lib/turnkey_client/models/v1_create_sub_organization_result_v4.rb +220 -0
- data/lib/turnkey_client/models/v1_create_user_tag_intent.rb +229 -0
- data/lib/turnkey_client/models/v1_create_user_tag_request.rb +289 -0
- data/lib/turnkey_client/models/v1_create_user_tag_result.rb +229 -0
- data/lib/turnkey_client/models/v1_create_users_intent.rb +214 -0
- data/lib/turnkey_client/models/v1_create_users_intent_v2.rb +214 -0
- data/lib/turnkey_client/models/v1_create_users_request.rb +289 -0
- data/lib/turnkey_client/models/v1_create_users_result.rb +214 -0
- data/lib/turnkey_client/models/v1_create_wallet_accounts_intent.rb +229 -0
- data/lib/turnkey_client/models/v1_create_wallet_accounts_request.rb +289 -0
- data/lib/turnkey_client/models/v1_create_wallet_accounts_result.rb +214 -0
- data/lib/turnkey_client/models/v1_create_wallet_intent.rb +239 -0
- data/lib/turnkey_client/models/v1_create_wallet_request.rb +289 -0
- data/lib/turnkey_client/models/v1_create_wallet_result.rb +229 -0
- data/lib/turnkey_client/models/v1_cred_props_authentication_extensions_client_outputs.rb +211 -0
- data/lib/turnkey_client/models/v1_credential_type.rb +29 -0
- data/lib/turnkey_client/models/v1_curve.rb +28 -0
- data/lib/turnkey_client/models/v1_delete_api_keys_intent.rb +229 -0
- data/lib/turnkey_client/models/v1_delete_api_keys_request.rb +289 -0
- data/lib/turnkey_client/models/v1_delete_api_keys_result.rb +214 -0
- data/lib/turnkey_client/models/v1_delete_authenticators_intent.rb +229 -0
- data/lib/turnkey_client/models/v1_delete_authenticators_request.rb +289 -0
- data/lib/turnkey_client/models/v1_delete_authenticators_result.rb +214 -0
- data/lib/turnkey_client/models/v1_delete_invitation_intent.rb +212 -0
- data/lib/turnkey_client/models/v1_delete_invitation_request.rb +289 -0
- data/lib/turnkey_client/models/v1_delete_invitation_result.rb +212 -0
- data/lib/turnkey_client/models/v1_delete_organization_intent.rb +212 -0
- data/lib/turnkey_client/models/v1_delete_organization_result.rb +212 -0
- data/lib/turnkey_client/models/v1_delete_payment_method_intent.rb +212 -0
- data/lib/turnkey_client/models/v1_delete_payment_method_result.rb +212 -0
- data/lib/turnkey_client/models/v1_delete_policy_intent.rb +212 -0
- data/lib/turnkey_client/models/v1_delete_policy_request.rb +289 -0
- data/lib/turnkey_client/models/v1_delete_policy_result.rb +212 -0
- data/lib/turnkey_client/models/v1_delete_private_key_tags_intent.rb +214 -0
- data/lib/turnkey_client/models/v1_delete_private_key_tags_result.rb +231 -0
- data/lib/turnkey_client/models/v1_delete_user_tags_intent.rb +214 -0
- data/lib/turnkey_client/models/v1_delete_user_tags_result.rb +231 -0
- data/lib/turnkey_client/models/v1_delete_users_intent.rb +214 -0
- data/lib/turnkey_client/models/v1_delete_users_result.rb +214 -0
- data/lib/turnkey_client/models/v1_disable_private_key_intent.rb +212 -0
- data/lib/turnkey_client/models/v1_disable_private_key_result.rb +212 -0
- data/lib/turnkey_client/models/v1_effect.rb +28 -0
- data/lib/turnkey_client/models/v1_email_auth_intent.rb +256 -0
- data/lib/turnkey_client/models/v1_email_auth_request.rb +289 -0
- data/lib/turnkey_client/models/v1_email_auth_result.rb +227 -0
- data/lib/turnkey_client/models/v1_email_customization.rb +233 -0
- data/lib/turnkey_client/models/v1_export_private_key_intent.rb +227 -0
- data/lib/turnkey_client/models/v1_export_private_key_request.rb +289 -0
- data/lib/turnkey_client/models/v1_export_private_key_result.rb +227 -0
- data/lib/turnkey_client/models/v1_export_wallet_account_intent.rb +227 -0
- data/lib/turnkey_client/models/v1_export_wallet_account_request.rb +289 -0
- data/lib/turnkey_client/models/v1_export_wallet_account_result.rb +227 -0
- data/lib/turnkey_client/models/v1_export_wallet_intent.rb +236 -0
- data/lib/turnkey_client/models/v1_export_wallet_request.rb +289 -0
- data/lib/turnkey_client/models/v1_export_wallet_result.rb +227 -0
- data/lib/turnkey_client/models/v1_feature.rb +215 -0
- data/lib/turnkey_client/models/v1_feature_name.rb +30 -0
- data/lib/turnkey_client/models/v1_get_activities_request.rb +245 -0
- data/lib/turnkey_client/models/v1_get_activities_response.rb +214 -0
- data/lib/turnkey_client/models/v1_get_activity_request.rb +227 -0
- data/lib/turnkey_client/models/v1_get_api_key_request.rb +227 -0
- data/lib/turnkey_client/models/v1_get_api_key_response.rb +211 -0
- data/lib/turnkey_client/models/v1_get_api_keys_request.rb +222 -0
- data/lib/turnkey_client/models/v1_get_api_keys_response.rb +214 -0
- data/lib/turnkey_client/models/v1_get_authenticator_request.rb +227 -0
- data/lib/turnkey_client/models/v1_get_authenticator_response.rb +211 -0
- data/lib/turnkey_client/models/v1_get_authenticators_request.rb +227 -0
- data/lib/turnkey_client/models/v1_get_authenticators_response.rb +214 -0
- data/lib/turnkey_client/models/v1_get_organization_request.rb +212 -0
- data/lib/turnkey_client/models/v1_get_organization_response.rb +211 -0
- data/lib/turnkey_client/models/v1_get_policies_request.rb +212 -0
- data/lib/turnkey_client/models/v1_get_policies_response.rb +214 -0
- data/lib/turnkey_client/models/v1_get_policy_request.rb +227 -0
- data/lib/turnkey_client/models/v1_get_policy_response.rb +211 -0
- data/lib/turnkey_client/models/v1_get_private_key_request.rb +227 -0
- data/lib/turnkey_client/models/v1_get_private_key_response.rb +211 -0
- data/lib/turnkey_client/models/v1_get_private_keys_request.rb +212 -0
- data/lib/turnkey_client/models/v1_get_private_keys_response.rb +214 -0
- data/lib/turnkey_client/models/v1_get_user_request.rb +227 -0
- data/lib/turnkey_client/models/v1_get_user_response.rb +211 -0
- data/lib/turnkey_client/models/v1_get_users_request.rb +212 -0
- data/lib/turnkey_client/models/v1_get_users_response.rb +214 -0
- data/lib/turnkey_client/models/v1_get_wallet_accounts_request.rb +227 -0
- data/lib/turnkey_client/models/v1_get_wallet_accounts_response.rb +214 -0
- data/lib/turnkey_client/models/v1_get_wallet_request.rb +227 -0
- data/lib/turnkey_client/models/v1_get_wallet_response.rb +211 -0
- data/lib/turnkey_client/models/v1_get_wallets_request.rb +212 -0
- data/lib/turnkey_client/models/v1_get_wallets_response.rb +214 -0
- data/lib/turnkey_client/models/v1_get_whoami_request.rb +212 -0
- data/lib/turnkey_client/models/v1_get_whoami_response.rb +257 -0
- data/lib/turnkey_client/models/v1_hash_function.rb +30 -0
- data/lib/turnkey_client/models/v1_init_user_email_recovery_intent.rb +237 -0
- data/lib/turnkey_client/models/v1_init_user_email_recovery_request.rb +289 -0
- data/lib/turnkey_client/models/v1_init_user_email_recovery_result.rb +212 -0
- data/lib/turnkey_client/models/v1_intent.rb +715 -0
- data/lib/turnkey_client/models/v1_invitation.rb +330 -0
- data/lib/turnkey_client/models/v1_invitation_params.rb +273 -0
- data/lib/turnkey_client/models/v1_invitation_status.rb +29 -0
- data/lib/turnkey_client/models/v1_list_private_key_tags_request.rb +212 -0
- data/lib/turnkey_client/models/v1_list_private_key_tags_response.rb +214 -0
- data/lib/turnkey_client/models/v1_list_user_tags_request.rb +212 -0
- data/lib/turnkey_client/models/v1_list_user_tags_response.rb +214 -0
- data/lib/turnkey_client/models/v1_mnemonic_language.rb +35 -0
- data/lib/turnkey_client/models/v1_noop_codegen_anchor_response.rb +211 -0
- data/lib/turnkey_client/models/v1_operator.rb +37 -0
- data/lib/turnkey_client/models/v1_organization_data.rb +301 -0
- data/lib/turnkey_client/models/v1_pagination.rb +227 -0
- data/lib/turnkey_client/models/v1_path_format.rb +27 -0
- data/lib/turnkey_client/models/v1_payload_encoding.rb +28 -0
- data/lib/turnkey_client/models/v1_policy.rb +314 -0
- data/lib/turnkey_client/models/v1_private_key.rb +333 -0
- data/lib/turnkey_client/models/v1_private_key_params.rb +260 -0
- data/lib/turnkey_client/models/v1_private_key_result.rb +217 -0
- data/lib/turnkey_client/models/v1_public_key_credential_with_attestation.rb +323 -0
- data/lib/turnkey_client/models/v1_recover_user_intent.rb +226 -0
- data/lib/turnkey_client/models/v1_recover_user_request.rb +289 -0
- data/lib/turnkey_client/models/v1_recover_user_result.rb +214 -0
- data/lib/turnkey_client/models/v1_reject_activity_intent.rb +212 -0
- data/lib/turnkey_client/models/v1_reject_activity_request.rb +289 -0
- data/lib/turnkey_client/models/v1_remove_organization_feature_intent.rb +211 -0
- data/lib/turnkey_client/models/v1_remove_organization_feature_request.rb +289 -0
- data/lib/turnkey_client/models/v1_remove_organization_feature_result.rb +214 -0
- data/lib/turnkey_client/models/v1_result.rb +602 -0
- data/lib/turnkey_client/models/v1_root_user_params.rb +256 -0
- data/lib/turnkey_client/models/v1_selector.rb +224 -0
- data/lib/turnkey_client/models/v1_selector_v2.rb +226 -0
- data/lib/turnkey_client/models/v1_set_organization_feature_intent.rb +226 -0
- data/lib/turnkey_client/models/v1_set_organization_feature_request.rb +289 -0
- data/lib/turnkey_client/models/v1_set_organization_feature_result.rb +214 -0
- data/lib/turnkey_client/models/v1_set_payment_method_intent.rb +287 -0
- data/lib/turnkey_client/models/v1_set_payment_method_intent_v2.rb +242 -0
- data/lib/turnkey_client/models/v1_set_payment_method_result.rb +242 -0
- data/lib/turnkey_client/models/v1_sign_raw_payload_intent.rb +255 -0
- data/lib/turnkey_client/models/v1_sign_raw_payload_intent_v2.rb +255 -0
- data/lib/turnkey_client/models/v1_sign_raw_payload_request.rb +289 -0
- data/lib/turnkey_client/models/v1_sign_raw_payload_result.rb +242 -0
- data/lib/turnkey_client/models/v1_sign_transaction_intent.rb +241 -0
- data/lib/turnkey_client/models/v1_sign_transaction_intent_v2.rb +241 -0
- data/lib/turnkey_client/models/v1_sign_transaction_request.rb +289 -0
- data/lib/turnkey_client/models/v1_sign_transaction_result.rb +211 -0
- data/lib/turnkey_client/models/v1_simple_client_extension_results.rb +224 -0
- data/lib/turnkey_client/models/v1_tag_type.rb +28 -0
- data/lib/turnkey_client/models/v1_transaction_type.rb +27 -0
- data/lib/turnkey_client/models/v1_update_allowed_origins_intent.rb +214 -0
- data/lib/turnkey_client/models/v1_update_allowed_origins_result.rb +197 -0
- data/lib/turnkey_client/models/v1_update_policy_intent.rb +261 -0
- data/lib/turnkey_client/models/v1_update_policy_request.rb +289 -0
- data/lib/turnkey_client/models/v1_update_policy_result.rb +212 -0
- data/lib/turnkey_client/models/v1_update_private_key_tag_intent.rb +256 -0
- data/lib/turnkey_client/models/v1_update_private_key_tag_request.rb +289 -0
- data/lib/turnkey_client/models/v1_update_private_key_tag_result.rb +212 -0
- data/lib/turnkey_client/models/v1_update_root_quorum_intent.rb +229 -0
- data/lib/turnkey_client/models/v1_update_root_quorum_request.rb +289 -0
- data/lib/turnkey_client/models/v1_update_root_quorum_result.rb +197 -0
- data/lib/turnkey_client/models/v1_update_user_intent.rb +244 -0
- data/lib/turnkey_client/models/v1_update_user_request.rb +289 -0
- data/lib/turnkey_client/models/v1_update_user_result.rb +212 -0
- data/lib/turnkey_client/models/v1_update_user_tag_intent.rb +256 -0
- data/lib/turnkey_client/models/v1_update_user_tag_request.rb +289 -0
- data/lib/turnkey_client/models/v1_update_user_tag_result.rb +212 -0
- data/lib/turnkey_client/models/v1_user.rb +316 -0
- data/lib/turnkey_client/models/v1_user_params.rb +287 -0
- data/lib/turnkey_client/models/v1_user_params_v2.rb +273 -0
- data/lib/turnkey_client/models/v1_vote.rb +378 -0
- data/lib/turnkey_client/models/v1_wallet.rb +270 -0
- data/lib/turnkey_client/models/v1_wallet_account.rb +342 -0
- data/lib/turnkey_client/models/v1_wallet_account_params.rb +254 -0
- data/lib/turnkey_client/models/v1_wallet_params.rb +239 -0
- data/lib/turnkey_client/models/v1_wallet_result.rb +228 -0
- data/lib/turnkey_client/models/v1_web_authn_stamp.rb +257 -0
- data/lib/turnkey_client/version.rb +14 -0
- data/lib/turnkey_client.rb +289 -0
- data/turnkey_client.gemspec +38 -0
- metadata +387 -0
|
@@ -0,0 +1,252 @@
|
|
|
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
|
+
module TurnkeyClient
|
|
13
|
+
class AuthenticatorsApi
|
|
14
|
+
attr_accessor :api_client
|
|
15
|
+
|
|
16
|
+
def initialize(api_client = ApiClient.default)
|
|
17
|
+
@api_client = api_client
|
|
18
|
+
end
|
|
19
|
+
# Create Authenticators
|
|
20
|
+
# Create Authenticators to authenticate requests to Turnkey
|
|
21
|
+
# @param body
|
|
22
|
+
# @param [Hash] opts the optional parameters
|
|
23
|
+
# @return [V1ActivityResponse]
|
|
24
|
+
def create_authenticators(body, opts = {})
|
|
25
|
+
data, _status_code, _headers = create_authenticators_with_http_info(body, opts)
|
|
26
|
+
data
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Create Authenticators
|
|
30
|
+
# Create Authenticators to authenticate requests to Turnkey
|
|
31
|
+
# @param body
|
|
32
|
+
# @param [Hash] opts the optional parameters
|
|
33
|
+
# @return [Array<(V1ActivityResponse, Integer, Hash)>] V1ActivityResponse data, response status code and response headers
|
|
34
|
+
def create_authenticators_with_http_info(body, opts = {})
|
|
35
|
+
if @api_client.config.debugging
|
|
36
|
+
@api_client.config.logger.debug 'Calling API: AuthenticatorsApi.create_authenticators ...'
|
|
37
|
+
end
|
|
38
|
+
# verify the required parameter 'body' is set
|
|
39
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
40
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AuthenticatorsApi.create_authenticators"
|
|
41
|
+
end
|
|
42
|
+
# resource path
|
|
43
|
+
local_var_path = '/public/v1/submit/create_authenticators'
|
|
44
|
+
|
|
45
|
+
# query parameters
|
|
46
|
+
query_params = opts[:query_params] || {}
|
|
47
|
+
|
|
48
|
+
# header parameters
|
|
49
|
+
header_params = opts[:header_params] || {}
|
|
50
|
+
# HTTP header 'Accept' (if needed)
|
|
51
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
52
|
+
# HTTP header 'Content-Type'
|
|
53
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
54
|
+
|
|
55
|
+
# form parameters
|
|
56
|
+
form_params = opts[:form_params] || {}
|
|
57
|
+
|
|
58
|
+
# http body (model)
|
|
59
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
60
|
+
|
|
61
|
+
return_type = opts[:return_type] || 'V1ActivityResponse'
|
|
62
|
+
|
|
63
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
64
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
65
|
+
:header_params => header_params,
|
|
66
|
+
:query_params => query_params,
|
|
67
|
+
:form_params => form_params,
|
|
68
|
+
:body => post_body,
|
|
69
|
+
:auth_names => auth_names,
|
|
70
|
+
:return_type => return_type)
|
|
71
|
+
|
|
72
|
+
if @api_client.config.debugging
|
|
73
|
+
@api_client.config.logger.debug "API called: AuthenticatorsApi#create_authenticators\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
74
|
+
end
|
|
75
|
+
return data, status_code, headers
|
|
76
|
+
end
|
|
77
|
+
# Delete Authenticators
|
|
78
|
+
# Remove authenticators from a User
|
|
79
|
+
# @param body
|
|
80
|
+
# @param [Hash] opts the optional parameters
|
|
81
|
+
# @return [V1ActivityResponse]
|
|
82
|
+
def delete_authenticators(body, opts = {})
|
|
83
|
+
data, _status_code, _headers = delete_authenticators_with_http_info(body, opts)
|
|
84
|
+
data
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Delete Authenticators
|
|
88
|
+
# Remove authenticators from a User
|
|
89
|
+
# @param body
|
|
90
|
+
# @param [Hash] opts the optional parameters
|
|
91
|
+
# @return [Array<(V1ActivityResponse, Integer, Hash)>] V1ActivityResponse data, response status code and response headers
|
|
92
|
+
def delete_authenticators_with_http_info(body, opts = {})
|
|
93
|
+
if @api_client.config.debugging
|
|
94
|
+
@api_client.config.logger.debug 'Calling API: AuthenticatorsApi.delete_authenticators ...'
|
|
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 AuthenticatorsApi.delete_authenticators"
|
|
99
|
+
end
|
|
100
|
+
# resource path
|
|
101
|
+
local_var_path = '/public/v1/submit/delete_authenticators'
|
|
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] || 'V1ActivityResponse'
|
|
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: AuthenticatorsApi#delete_authenticators\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
132
|
+
end
|
|
133
|
+
return data, status_code, headers
|
|
134
|
+
end
|
|
135
|
+
# Get Authenticator
|
|
136
|
+
# Get details about an authenticator
|
|
137
|
+
# @param body
|
|
138
|
+
# @param [Hash] opts the optional parameters
|
|
139
|
+
# @return [V1GetAuthenticatorResponse]
|
|
140
|
+
def get_authenticator(body, opts = {})
|
|
141
|
+
data, _status_code, _headers = get_authenticator_with_http_info(body, opts)
|
|
142
|
+
data
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Get Authenticator
|
|
146
|
+
# Get details about an authenticator
|
|
147
|
+
# @param body
|
|
148
|
+
# @param [Hash] opts the optional parameters
|
|
149
|
+
# @return [Array<(V1GetAuthenticatorResponse, Integer, Hash)>] V1GetAuthenticatorResponse data, response status code and response headers
|
|
150
|
+
def get_authenticator_with_http_info(body, opts = {})
|
|
151
|
+
if @api_client.config.debugging
|
|
152
|
+
@api_client.config.logger.debug 'Calling API: AuthenticatorsApi.get_authenticator ...'
|
|
153
|
+
end
|
|
154
|
+
# verify the required parameter 'body' is set
|
|
155
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
156
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AuthenticatorsApi.get_authenticator"
|
|
157
|
+
end
|
|
158
|
+
# resource path
|
|
159
|
+
local_var_path = '/public/v1/query/get_authenticator'
|
|
160
|
+
|
|
161
|
+
# query parameters
|
|
162
|
+
query_params = opts[:query_params] || {}
|
|
163
|
+
|
|
164
|
+
# header parameters
|
|
165
|
+
header_params = opts[:header_params] || {}
|
|
166
|
+
# HTTP header 'Accept' (if needed)
|
|
167
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
168
|
+
# HTTP header 'Content-Type'
|
|
169
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
170
|
+
|
|
171
|
+
# form parameters
|
|
172
|
+
form_params = opts[:form_params] || {}
|
|
173
|
+
|
|
174
|
+
# http body (model)
|
|
175
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
176
|
+
|
|
177
|
+
return_type = opts[:return_type] || 'V1GetAuthenticatorResponse'
|
|
178
|
+
|
|
179
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
180
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
181
|
+
:header_params => header_params,
|
|
182
|
+
:query_params => query_params,
|
|
183
|
+
:form_params => form_params,
|
|
184
|
+
:body => post_body,
|
|
185
|
+
:auth_names => auth_names,
|
|
186
|
+
:return_type => return_type)
|
|
187
|
+
|
|
188
|
+
if @api_client.config.debugging
|
|
189
|
+
@api_client.config.logger.debug "API called: AuthenticatorsApi#get_authenticator\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
190
|
+
end
|
|
191
|
+
return data, status_code, headers
|
|
192
|
+
end
|
|
193
|
+
# Get Authenticators
|
|
194
|
+
# Get details about authenticators for a user
|
|
195
|
+
# @param body
|
|
196
|
+
# @param [Hash] opts the optional parameters
|
|
197
|
+
# @return [V1GetAuthenticatorsResponse]
|
|
198
|
+
def get_authenticators(body, opts = {})
|
|
199
|
+
data, _status_code, _headers = get_authenticators_with_http_info(body, opts)
|
|
200
|
+
data
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Get Authenticators
|
|
204
|
+
# Get details about authenticators for a user
|
|
205
|
+
# @param body
|
|
206
|
+
# @param [Hash] opts the optional parameters
|
|
207
|
+
# @return [Array<(V1GetAuthenticatorsResponse, Integer, Hash)>] V1GetAuthenticatorsResponse data, response status code and response headers
|
|
208
|
+
def get_authenticators_with_http_info(body, opts = {})
|
|
209
|
+
if @api_client.config.debugging
|
|
210
|
+
@api_client.config.logger.debug 'Calling API: AuthenticatorsApi.get_authenticators ...'
|
|
211
|
+
end
|
|
212
|
+
# verify the required parameter 'body' is set
|
|
213
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
214
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AuthenticatorsApi.get_authenticators"
|
|
215
|
+
end
|
|
216
|
+
# resource path
|
|
217
|
+
local_var_path = '/public/v1/query/get_authenticators'
|
|
218
|
+
|
|
219
|
+
# query parameters
|
|
220
|
+
query_params = opts[:query_params] || {}
|
|
221
|
+
|
|
222
|
+
# header parameters
|
|
223
|
+
header_params = opts[:header_params] || {}
|
|
224
|
+
# HTTP header 'Accept' (if needed)
|
|
225
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
226
|
+
# HTTP header 'Content-Type'
|
|
227
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
228
|
+
|
|
229
|
+
# form parameters
|
|
230
|
+
form_params = opts[:form_params] || {}
|
|
231
|
+
|
|
232
|
+
# http body (model)
|
|
233
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
234
|
+
|
|
235
|
+
return_type = opts[:return_type] || 'V1GetAuthenticatorsResponse'
|
|
236
|
+
|
|
237
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
238
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
239
|
+
:header_params => header_params,
|
|
240
|
+
:query_params => query_params,
|
|
241
|
+
:form_params => form_params,
|
|
242
|
+
:body => post_body,
|
|
243
|
+
:auth_names => auth_names,
|
|
244
|
+
:return_type => return_type)
|
|
245
|
+
|
|
246
|
+
if @api_client.config.debugging
|
|
247
|
+
@api_client.config.logger.debug "API called: AuthenticatorsApi#get_authenticators\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
248
|
+
end
|
|
249
|
+
return data, status_code, headers
|
|
250
|
+
end
|
|
251
|
+
end
|
|
252
|
+
end
|
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
module TurnkeyClient
|
|
13
|
+
class ConsensusApi
|
|
14
|
+
attr_accessor :api_client
|
|
15
|
+
|
|
16
|
+
def initialize(api_client = ApiClient.default)
|
|
17
|
+
@api_client = api_client
|
|
18
|
+
end
|
|
19
|
+
# Approve Activity
|
|
20
|
+
# Approve an Activity
|
|
21
|
+
# @param body
|
|
22
|
+
# @param [Hash] opts the optional parameters
|
|
23
|
+
# @return [V1ActivityResponse]
|
|
24
|
+
def approve_activity(body, opts = {})
|
|
25
|
+
data, _status_code, _headers = approve_activity_with_http_info(body, opts)
|
|
26
|
+
data
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Approve Activity
|
|
30
|
+
# Approve an Activity
|
|
31
|
+
# @param body
|
|
32
|
+
# @param [Hash] opts the optional parameters
|
|
33
|
+
# @return [Array<(V1ActivityResponse, Integer, Hash)>] V1ActivityResponse data, response status code and response headers
|
|
34
|
+
def approve_activity_with_http_info(body, opts = {})
|
|
35
|
+
if @api_client.config.debugging
|
|
36
|
+
@api_client.config.logger.debug 'Calling API: ConsensusApi.approve_activity ...'
|
|
37
|
+
end
|
|
38
|
+
# verify the required parameter 'body' is set
|
|
39
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
40
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ConsensusApi.approve_activity"
|
|
41
|
+
end
|
|
42
|
+
# resource path
|
|
43
|
+
local_var_path = '/public/v1/submit/approve_activity'
|
|
44
|
+
|
|
45
|
+
# query parameters
|
|
46
|
+
query_params = opts[:query_params] || {}
|
|
47
|
+
|
|
48
|
+
# header parameters
|
|
49
|
+
header_params = opts[:header_params] || {}
|
|
50
|
+
# HTTP header 'Accept' (if needed)
|
|
51
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
52
|
+
# HTTP header 'Content-Type'
|
|
53
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
54
|
+
|
|
55
|
+
# form parameters
|
|
56
|
+
form_params = opts[:form_params] || {}
|
|
57
|
+
|
|
58
|
+
# http body (model)
|
|
59
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
60
|
+
|
|
61
|
+
return_type = opts[:return_type] || 'V1ActivityResponse'
|
|
62
|
+
|
|
63
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
64
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
65
|
+
:header_params => header_params,
|
|
66
|
+
:query_params => query_params,
|
|
67
|
+
:form_params => form_params,
|
|
68
|
+
:body => post_body,
|
|
69
|
+
:auth_names => auth_names,
|
|
70
|
+
:return_type => return_type)
|
|
71
|
+
|
|
72
|
+
if @api_client.config.debugging
|
|
73
|
+
@api_client.config.logger.debug "API called: ConsensusApi#approve_activity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
74
|
+
end
|
|
75
|
+
return data, status_code, headers
|
|
76
|
+
end
|
|
77
|
+
# Reject Activity
|
|
78
|
+
# Reject an Activity
|
|
79
|
+
# @param body
|
|
80
|
+
# @param [Hash] opts the optional parameters
|
|
81
|
+
# @return [V1ActivityResponse]
|
|
82
|
+
def reject_activity(body, opts = {})
|
|
83
|
+
data, _status_code, _headers = reject_activity_with_http_info(body, opts)
|
|
84
|
+
data
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Reject Activity
|
|
88
|
+
# Reject an Activity
|
|
89
|
+
# @param body
|
|
90
|
+
# @param [Hash] opts the optional parameters
|
|
91
|
+
# @return [Array<(V1ActivityResponse, Integer, Hash)>] V1ActivityResponse data, response status code and response headers
|
|
92
|
+
def reject_activity_with_http_info(body, opts = {})
|
|
93
|
+
if @api_client.config.debugging
|
|
94
|
+
@api_client.config.logger.debug 'Calling API: ConsensusApi.reject_activity ...'
|
|
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 ConsensusApi.reject_activity"
|
|
99
|
+
end
|
|
100
|
+
# resource path
|
|
101
|
+
local_var_path = '/public/v1/submit/reject_activity'
|
|
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] || 'V1ActivityResponse'
|
|
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: ConsensusApi#reject_activity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
132
|
+
end
|
|
133
|
+
return data, status_code, headers
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
module TurnkeyClient
|
|
13
|
+
class FeaturesApi
|
|
14
|
+
attr_accessor :api_client
|
|
15
|
+
|
|
16
|
+
def initialize(api_client = ApiClient.default)
|
|
17
|
+
@api_client = api_client
|
|
18
|
+
end
|
|
19
|
+
# Remove Organization Feature
|
|
20
|
+
# Removes an organization feature
|
|
21
|
+
# @param body
|
|
22
|
+
# @param [Hash] opts the optional parameters
|
|
23
|
+
# @return [V1ActivityResponse]
|
|
24
|
+
def remove_organization_feature(body, opts = {})
|
|
25
|
+
data, _status_code, _headers = remove_organization_feature_with_http_info(body, opts)
|
|
26
|
+
data
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Remove Organization Feature
|
|
30
|
+
# Removes an organization feature
|
|
31
|
+
# @param body
|
|
32
|
+
# @param [Hash] opts the optional parameters
|
|
33
|
+
# @return [Array<(V1ActivityResponse, Integer, Hash)>] V1ActivityResponse data, response status code and response headers
|
|
34
|
+
def remove_organization_feature_with_http_info(body, opts = {})
|
|
35
|
+
if @api_client.config.debugging
|
|
36
|
+
@api_client.config.logger.debug 'Calling API: FeaturesApi.remove_organization_feature ...'
|
|
37
|
+
end
|
|
38
|
+
# verify the required parameter 'body' is set
|
|
39
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
40
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling FeaturesApi.remove_organization_feature"
|
|
41
|
+
end
|
|
42
|
+
# resource path
|
|
43
|
+
local_var_path = '/public/v1/submit/remove_organization_feature'
|
|
44
|
+
|
|
45
|
+
# query parameters
|
|
46
|
+
query_params = opts[:query_params] || {}
|
|
47
|
+
|
|
48
|
+
# header parameters
|
|
49
|
+
header_params = opts[:header_params] || {}
|
|
50
|
+
# HTTP header 'Accept' (if needed)
|
|
51
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
52
|
+
# HTTP header 'Content-Type'
|
|
53
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
54
|
+
|
|
55
|
+
# form parameters
|
|
56
|
+
form_params = opts[:form_params] || {}
|
|
57
|
+
|
|
58
|
+
# http body (model)
|
|
59
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
60
|
+
|
|
61
|
+
return_type = opts[:return_type] || 'V1ActivityResponse'
|
|
62
|
+
|
|
63
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
64
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
65
|
+
:header_params => header_params,
|
|
66
|
+
:query_params => query_params,
|
|
67
|
+
:form_params => form_params,
|
|
68
|
+
:body => post_body,
|
|
69
|
+
:auth_names => auth_names,
|
|
70
|
+
:return_type => return_type)
|
|
71
|
+
|
|
72
|
+
if @api_client.config.debugging
|
|
73
|
+
@api_client.config.logger.debug "API called: FeaturesApi#remove_organization_feature\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
74
|
+
end
|
|
75
|
+
return data, status_code, headers
|
|
76
|
+
end
|
|
77
|
+
# Set Organization Feature
|
|
78
|
+
# Sets an organization feature
|
|
79
|
+
# @param body
|
|
80
|
+
# @param [Hash] opts the optional parameters
|
|
81
|
+
# @return [V1ActivityResponse]
|
|
82
|
+
def set_organization_feature(body, opts = {})
|
|
83
|
+
data, _status_code, _headers = set_organization_feature_with_http_info(body, opts)
|
|
84
|
+
data
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Set Organization Feature
|
|
88
|
+
# Sets an organization feature
|
|
89
|
+
# @param body
|
|
90
|
+
# @param [Hash] opts the optional parameters
|
|
91
|
+
# @return [Array<(V1ActivityResponse, Integer, Hash)>] V1ActivityResponse data, response status code and response headers
|
|
92
|
+
def set_organization_feature_with_http_info(body, opts = {})
|
|
93
|
+
if @api_client.config.debugging
|
|
94
|
+
@api_client.config.logger.debug 'Calling API: FeaturesApi.set_organization_feature ...'
|
|
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 FeaturesApi.set_organization_feature"
|
|
99
|
+
end
|
|
100
|
+
# resource path
|
|
101
|
+
local_var_path = '/public/v1/submit/set_organization_feature'
|
|
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] || 'V1ActivityResponse'
|
|
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: FeaturesApi#set_organization_feature\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
132
|
+
end
|
|
133
|
+
return data, status_code, headers
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
module TurnkeyClient
|
|
13
|
+
class InvitationsApi
|
|
14
|
+
attr_accessor :api_client
|
|
15
|
+
|
|
16
|
+
def initialize(api_client = ApiClient.default)
|
|
17
|
+
@api_client = api_client
|
|
18
|
+
end
|
|
19
|
+
# Create Invitations
|
|
20
|
+
# Create Invitations to join an existing Organization
|
|
21
|
+
# @param body
|
|
22
|
+
# @param [Hash] opts the optional parameters
|
|
23
|
+
# @return [V1ActivityResponse]
|
|
24
|
+
def create_invitations(body, opts = {})
|
|
25
|
+
data, _status_code, _headers = create_invitations_with_http_info(body, opts)
|
|
26
|
+
data
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Create Invitations
|
|
30
|
+
# Create Invitations to join an existing Organization
|
|
31
|
+
# @param body
|
|
32
|
+
# @param [Hash] opts the optional parameters
|
|
33
|
+
# @return [Array<(V1ActivityResponse, Integer, Hash)>] V1ActivityResponse data, response status code and response headers
|
|
34
|
+
def create_invitations_with_http_info(body, opts = {})
|
|
35
|
+
if @api_client.config.debugging
|
|
36
|
+
@api_client.config.logger.debug 'Calling API: InvitationsApi.create_invitations ...'
|
|
37
|
+
end
|
|
38
|
+
# verify the required parameter 'body' is set
|
|
39
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
40
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling InvitationsApi.create_invitations"
|
|
41
|
+
end
|
|
42
|
+
# resource path
|
|
43
|
+
local_var_path = '/public/v1/submit/create_invitations'
|
|
44
|
+
|
|
45
|
+
# query parameters
|
|
46
|
+
query_params = opts[:query_params] || {}
|
|
47
|
+
|
|
48
|
+
# header parameters
|
|
49
|
+
header_params = opts[:header_params] || {}
|
|
50
|
+
# HTTP header 'Accept' (if needed)
|
|
51
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
52
|
+
# HTTP header 'Content-Type'
|
|
53
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
54
|
+
|
|
55
|
+
# form parameters
|
|
56
|
+
form_params = opts[:form_params] || {}
|
|
57
|
+
|
|
58
|
+
# http body (model)
|
|
59
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
60
|
+
|
|
61
|
+
return_type = opts[:return_type] || 'V1ActivityResponse'
|
|
62
|
+
|
|
63
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
64
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
65
|
+
:header_params => header_params,
|
|
66
|
+
:query_params => query_params,
|
|
67
|
+
:form_params => form_params,
|
|
68
|
+
:body => post_body,
|
|
69
|
+
:auth_names => auth_names,
|
|
70
|
+
:return_type => return_type)
|
|
71
|
+
|
|
72
|
+
if @api_client.config.debugging
|
|
73
|
+
@api_client.config.logger.debug "API called: InvitationsApi#create_invitations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
74
|
+
end
|
|
75
|
+
return data, status_code, headers
|
|
76
|
+
end
|
|
77
|
+
# Delete Invitation
|
|
78
|
+
# Delete an existing Invitation
|
|
79
|
+
# @param body
|
|
80
|
+
# @param [Hash] opts the optional parameters
|
|
81
|
+
# @return [V1ActivityResponse]
|
|
82
|
+
def delete_invitation(body, opts = {})
|
|
83
|
+
data, _status_code, _headers = delete_invitation_with_http_info(body, opts)
|
|
84
|
+
data
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Delete Invitation
|
|
88
|
+
# Delete an existing Invitation
|
|
89
|
+
# @param body
|
|
90
|
+
# @param [Hash] opts the optional parameters
|
|
91
|
+
# @return [Array<(V1ActivityResponse, Integer, Hash)>] V1ActivityResponse data, response status code and response headers
|
|
92
|
+
def delete_invitation_with_http_info(body, opts = {})
|
|
93
|
+
if @api_client.config.debugging
|
|
94
|
+
@api_client.config.logger.debug 'Calling API: InvitationsApi.delete_invitation ...'
|
|
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 InvitationsApi.delete_invitation"
|
|
99
|
+
end
|
|
100
|
+
# resource path
|
|
101
|
+
local_var_path = '/public/v1/submit/delete_invitation'
|
|
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] || 'V1ActivityResponse'
|
|
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: InvitationsApi#delete_invitation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
132
|
+
end
|
|
133
|
+
return data, status_code, headers
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|