yousign_client 1.0.0
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 +7 -0
- data/README.md +230 -0
- data/Rakefile +8 -0
- data/config.json +11 -0
- data/docs/AuthenticationEmailOutput.md +10 -0
- data/docs/AuthenticationInweboOutput.md +10 -0
- data/docs/AuthenticationSmsOutput.md +10 -0
- data/docs/AuthenticationsApi.md +320 -0
- data/docs/Body.md +8 -0
- data/docs/Body1.md +9 -0
- data/docs/Body2.md +9 -0
- data/docs/CheckDocumentBankAccountsInput.md +13 -0
- data/docs/CheckDocumentBankAccountsOutput.md +24 -0
- data/docs/CheckDocumentIdentitiesInput.md +11 -0
- data/docs/CheckDocumentIdentitiesOutput.md +28 -0
- data/docs/CheckDocumentsApi.md +210 -0
- data/docs/ConfigEmailTemplate.md +11 -0
- data/docs/ConfigWebhookTemplate.md +10 -0
- data/docs/ConsentProcessInput.md +14 -0
- data/docs/ConsentProcessOutput.md +15 -0
- data/docs/ConsentProcessValueInput.md +10 -0
- data/docs/ConsentProcessValueOutput.md +12 -0
- data/docs/ConsentProcessesApi.md +422 -0
- data/docs/FileInput.md +15 -0
- data/docs/FileInputMetadata.md +9 -0
- data/docs/FileObjectInput.md +21 -0
- data/docs/FileObjectInputWithoutFileReference.md +13 -0
- data/docs/FileObjectOutput.md +24 -0
- data/docs/FileObjectOutputWithoutFileReference.md +17 -0
- data/docs/FileObjectsApi.md +220 -0
- data/docs/FileOutput.md +19 -0
- data/docs/FilesApi.md +218 -0
- data/docs/InlineResponse400.md +8 -0
- data/docs/InweboUserRequest.md +8 -0
- data/docs/MemberInput.md +19 -0
- data/docs/MemberOutput.md +24 -0
- data/docs/MembersApi.md +272 -0
- data/docs/ModeSmsConfiguration.md +8 -0
- data/docs/OperationInput.md +14 -0
- data/docs/OperationOutput.md +15 -0
- data/docs/OperationOutputMetadata.md +9 -0
- data/docs/OperationsApi.md +109 -0
- data/docs/OrganizationBillingAddress.md +16 -0
- data/docs/OrganizationOutput.md +41 -0
- data/docs/OrganizationsApi.md +54 -0
- data/docs/ProcedureConfig.md +10 -0
- data/docs/ProcedureConfigEmail.md +15 -0
- data/docs/ProcedureConfigReminder.md +10 -0
- data/docs/ProcedureConfigReminderConfig.md +8 -0
- data/docs/ProcedureConfigReminderConfigEmail.md +8 -0
- data/docs/ProcedureConfigWebhook.md +15 -0
- data/docs/ProcedureDuplicateInput.md +9 -0
- data/docs/ProcedureInput.md +18 -0
- data/docs/ProcedureInputMetadata.md +9 -0
- data/docs/ProcedureOutput.md +27 -0
- data/docs/ProcedureOutputMetadata.md +9 -0
- data/docs/ProcedureRemindConfig.md +8 -0
- data/docs/ProcedureRemindConfigEmail.md +8 -0
- data/docs/ProcedureRemindInput.md +8 -0
- data/docs/ProceduresApi.md +527 -0
- data/docs/ServerStampConfig.md +8 -0
- data/docs/ServerStampConfigWebhook.md +8 -0
- data/docs/ServerStampInput.md +12 -0
- data/docs/ServerStampOutput.md +17 -0
- data/docs/ServerStampsApi.md +109 -0
- data/docs/SignatureUIsApi.md +545 -0
- data/docs/SignatureUiInput.md +28 -0
- data/docs/SignatureUiInputRedirectCancel.md +10 -0
- data/docs/SignatureUiInputRedirectError.md +10 -0
- data/docs/SignatureUiInputRedirectSuccess.md +10 -0
- data/docs/SignatureUiInputUpdate.md +27 -0
- data/docs/SignatureUiLabelInput.md +10 -0
- data/docs/SignatureUiLabelInputIncluded.md +9 -0
- data/docs/SignatureUiLabelOutput.md +14 -0
- data/docs/SignatureUiOutput.md +33 -0
- data/docs/SignatureUiOutputRedirectCancel.md +10 -0
- data/docs/SignatureUiOutputRedirectError.md +10 -0
- data/docs/SignatureUiOutputRedirectSuccess.md +10 -0
- data/docs/UserGroup.md +10 -0
- data/docs/UserGroupsApi.md +103 -0
- data/docs/UserInput.md +17 -0
- data/docs/UserInputNotifications.md +8 -0
- data/docs/UserOutput.md +29 -0
- data/docs/UserOutputNotifications.md +8 -0
- data/docs/UserWorkspaceOutput.md +9 -0
- data/docs/UsersApi.md +258 -0
- data/docs/WorkspaceConfig.md +10 -0
- data/docs/WorkspaceConfigEmail.md +15 -0
- data/docs/WorkspaceConfigProcedure.md +8 -0
- data/docs/WorkspaceOutput.md +16 -0
- data/docs/WorkspacesApi.md +54 -0
- data/git_push.sh +55 -0
- data/lib/yousign_client.rb +126 -0
- data/lib/yousign_client/api/authentications_api.rb +410 -0
- data/lib/yousign_client/api/check_documents_api.rb +269 -0
- data/lib/yousign_client/api/consent_processes_api.rb +528 -0
- data/lib/yousign_client/api/file_objects_api.rb +282 -0
- data/lib/yousign_client/api/files_api.rb +279 -0
- data/lib/yousign_client/api/members_api.rb +340 -0
- data/lib/yousign_client/api/operations_api.rb +148 -0
- data/lib/yousign_client/api/organizations_api.rb +76 -0
- data/lib/yousign_client/api/procedures_api.rb +680 -0
- data/lib/yousign_client/api/server_stamps_api.rb +146 -0
- data/lib/yousign_client/api/signature_u_is_api.rb +669 -0
- data/lib/yousign_client/api/user_groups_api.rb +135 -0
- data/lib/yousign_client/api/users_api.rb +327 -0
- data/lib/yousign_client/api/workspaces_api.rb +76 -0
- data/lib/yousign_client/api_client.rb +391 -0
- data/lib/yousign_client/api_error.rb +38 -0
- data/lib/yousign_client/configuration.rb +209 -0
- data/lib/yousign_client/models/authentication_email_output.rb +239 -0
- data/lib/yousign_client/models/authentication_inwebo_output.rb +239 -0
- data/lib/yousign_client/models/authentication_sms_output.rb +239 -0
- data/lib/yousign_client/models/body.rb +185 -0
- data/lib/yousign_client/models/body_1.rb +200 -0
- data/lib/yousign_client/models/body_2.rb +200 -0
- data/lib/yousign_client/models/check_document_bank_accounts_input.rb +240 -0
- data/lib/yousign_client/models/check_document_bank_accounts_output.rb +394 -0
- data/lib/yousign_client/models/check_document_identities_input.rb +222 -0
- data/lib/yousign_client/models/check_document_identities_output.rb +440 -0
- data/lib/yousign_client/models/config_email_template.rb +256 -0
- data/lib/yousign_client/models/config_webhook_template.rb +246 -0
- data/lib/yousign_client/models/consent_process_input.rb +293 -0
- data/lib/yousign_client/models/consent_process_output.rb +298 -0
- data/lib/yousign_client/models/consent_process_value_input.rb +215 -0
- data/lib/yousign_client/models/consent_process_value_output.rb +235 -0
- data/lib/yousign_client/models/file_input.rb +304 -0
- data/lib/yousign_client/models/file_input_metadata.rb +194 -0
- data/lib/yousign_client/models/file_object_input.rb +445 -0
- data/lib/yousign_client/models/file_object_input_without_file_reference.rb +252 -0
- data/lib/yousign_client/models/file_object_output.rb +489 -0
- data/lib/yousign_client/models/file_object_output_without_file_reference.rb +307 -0
- data/lib/yousign_client/models/file_output.rb +374 -0
- data/lib/yousign_client/models/inline_response_400.rb +185 -0
- data/lib/yousign_client/models/inwebo_user_request.rb +200 -0
- data/lib/yousign_client/models/member_input.rb +343 -0
- data/lib/yousign_client/models/member_output.rb +432 -0
- data/lib/yousign_client/models/mode_sms_configuration.rb +190 -0
- data/lib/yousign_client/models/operation_input.rb +313 -0
- data/lib/yousign_client/models/operation_output.rb +311 -0
- data/lib/yousign_client/models/operation_output_metadata.rb +194 -0
- data/lib/yousign_client/models/organization_billing_address.rb +256 -0
- data/lib/yousign_client/models/organization_output.rb +530 -0
- data/lib/yousign_client/models/procedure_config.rb +204 -0
- data/lib/yousign_client/models/procedure_config_email.rb +263 -0
- data/lib/yousign_client/models/procedure_config_reminder.rb +256 -0
- data/lib/yousign_client/models/procedure_config_reminder_config.rb +184 -0
- data/lib/yousign_client/models/procedure_config_reminder_config_email.rb +186 -0
- data/lib/yousign_client/models/procedure_config_webhook.rb +263 -0
- data/lib/yousign_client/models/procedure_duplicate_input.rb +197 -0
- data/lib/yousign_client/models/procedure_input.rb +289 -0
- data/lib/yousign_client/models/procedure_input_metadata.rb +194 -0
- data/lib/yousign_client/models/procedure_output.rb +457 -0
- data/lib/yousign_client/models/procedure_output_metadata.rb +194 -0
- data/lib/yousign_client/models/procedure_remind_config.rb +184 -0
- data/lib/yousign_client/models/procedure_remind_config_email.rb +186 -0
- data/lib/yousign_client/models/procedure_remind_input.rb +184 -0
- data/lib/yousign_client/models/server_stamp_config.rb +184 -0
- data/lib/yousign_client/models/server_stamp_config_webhook.rb +186 -0
- data/lib/yousign_client/models/server_stamp_input.rb +242 -0
- data/lib/yousign_client/models/server_stamp_output.rb +352 -0
- data/lib/yousign_client/models/signature_ui_input.rb +456 -0
- data/lib/yousign_client/models/signature_ui_input_redirect_cancel.rb +244 -0
- data/lib/yousign_client/models/signature_ui_input_redirect_error.rb +247 -0
- data/lib/yousign_client/models/signature_ui_input_redirect_success.rb +242 -0
- data/lib/yousign_client/models/signature_ui_input_update.rb +421 -0
- data/lib/yousign_client/models/signature_ui_label_input.rb +210 -0
- data/lib/yousign_client/models/signature_ui_label_input_included.rb +200 -0
- data/lib/yousign_client/models/signature_ui_label_output.rb +245 -0
- data/lib/yousign_client/models/signature_ui_output.rb +481 -0
- data/lib/yousign_client/models/signature_ui_output_redirect_cancel.rb +242 -0
- data/lib/yousign_client/models/signature_ui_output_redirect_error.rb +247 -0
- data/lib/yousign_client/models/signature_ui_output_redirect_success.rb +242 -0
- data/lib/yousign_client/models/user_group.rb +249 -0
- data/lib/yousign_client/models/user_input.rb +341 -0
- data/lib/yousign_client/models/user_input_notifications.rb +185 -0
- data/lib/yousign_client/models/user_output.rb +457 -0
- data/lib/yousign_client/models/user_output_notifications.rb +185 -0
- data/lib/yousign_client/models/user_workspace_output.rb +210 -0
- data/lib/yousign_client/models/workspace_config.rb +226 -0
- data/lib/yousign_client/models/workspace_config_email.rb +263 -0
- data/lib/yousign_client/models/workspace_config_procedure.rb +208 -0
- data/lib/yousign_client/models/workspace_output.rb +275 -0
- data/lib/yousign_client/version.rb +15 -0
- data/spec/api/authentications_api_spec.rb +113 -0
- data/spec/api/check_documents_api_spec.rb +85 -0
- data/spec/api/consent_processes_api_spec.rb +138 -0
- data/spec/api/file_objects_api_spec.rb +90 -0
- data/spec/api/files_api_spec.rb +89 -0
- data/spec/api/members_api_spec.rb +103 -0
- data/spec/api/operations_api_spec.rb +60 -0
- data/spec/api/organizations_api_spec.rb +46 -0
- data/spec/api/procedures_api_spec.rb +178 -0
- data/spec/api/server_stamps_api_spec.rb +60 -0
- data/spec/api/signature_u_is_api_spec.rb +170 -0
- data/spec/api/user_groups_api_spec.rb +58 -0
- data/spec/api/users_api_spec.rb +97 -0
- data/spec/api/workspaces_api_spec.rb +46 -0
- data/spec/api_client_spec.rb +243 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/authentication_email_output_spec.rb +57 -0
- data/spec/models/authentication_inwebo_output_spec.rb +57 -0
- data/spec/models/authentication_sms_output_spec.rb +57 -0
- data/spec/models/body_1_spec.rb +47 -0
- data/spec/models/body_2_spec.rb +47 -0
- data/spec/models/body_spec.rb +41 -0
- data/spec/models/check_document_bank_accounts_input_spec.rb +71 -0
- data/spec/models/check_document_bank_accounts_output_spec.rb +141 -0
- data/spec/models/check_document_identities_input_spec.rb +59 -0
- data/spec/models/check_document_identities_output_spec.rb +165 -0
- data/spec/models/config_email_template_spec.rb +63 -0
- data/spec/models/config_webhook_template_spec.rb +57 -0
- data/spec/models/consent_process_input_spec.rb +81 -0
- data/spec/models/consent_process_output_spec.rb +87 -0
- data/spec/models/consent_process_value_input_spec.rb +53 -0
- data/spec/models/consent_process_value_output_spec.rb +65 -0
- data/spec/models/file_input_metadata_spec.rb +47 -0
- data/spec/models/file_input_spec.rb +87 -0
- data/spec/models/file_object_input_spec.rb +127 -0
- data/spec/models/file_object_input_without_file_reference_spec.rb +71 -0
- data/spec/models/file_object_output_spec.rb +145 -0
- data/spec/models/file_object_output_without_file_reference_spec.rb +95 -0
- data/spec/models/file_output_spec.rb +111 -0
- data/spec/models/inline_response_400_spec.rb +41 -0
- data/spec/models/inwebo_user_request_spec.rb +41 -0
- data/spec/models/member_input_spec.rb +119 -0
- data/spec/models/member_output_spec.rb +153 -0
- data/spec/models/mode_sms_configuration_spec.rb +41 -0
- data/spec/models/operation_input_spec.rb +89 -0
- data/spec/models/operation_output_metadata_spec.rb +47 -0
- data/spec/models/operation_output_spec.rb +95 -0
- data/spec/models/organization_billing_address_spec.rb +89 -0
- data/spec/models/organization_output_spec.rb +239 -0
- data/spec/models/procedure_config_email_spec.rb +83 -0
- data/spec/models/procedure_config_reminder_config_email_spec.rb +41 -0
- data/spec/models/procedure_config_reminder_config_spec.rb +41 -0
- data/spec/models/procedure_config_reminder_spec.rb +53 -0
- data/spec/models/procedure_config_spec.rb +53 -0
- data/spec/models/procedure_config_webhook_spec.rb +83 -0
- data/spec/models/procedure_duplicate_input_spec.rb +47 -0
- data/spec/models/procedure_input_metadata_spec.rb +47 -0
- data/spec/models/procedure_input_spec.rb +101 -0
- data/spec/models/procedure_output_metadata_spec.rb +47 -0
- data/spec/models/procedure_output_spec.rb +159 -0
- data/spec/models/procedure_remind_config_email_spec.rb +41 -0
- data/spec/models/procedure_remind_config_spec.rb +41 -0
- data/spec/models/procedure_remind_input_spec.rb +41 -0
- data/spec/models/server_stamp_config_spec.rb +41 -0
- data/spec/models/server_stamp_config_webhook_spec.rb +41 -0
- data/spec/models/server_stamp_input_spec.rb +65 -0
- data/spec/models/server_stamp_output_spec.rb +99 -0
- data/spec/models/signature_ui_input_redirect_cancel_spec.rb +57 -0
- data/spec/models/signature_ui_input_redirect_error_spec.rb +57 -0
- data/spec/models/signature_ui_input_redirect_success_spec.rb +57 -0
- data/spec/models/signature_ui_input_spec.rb +165 -0
- data/spec/models/signature_ui_input_update_spec.rb +159 -0
- data/spec/models/signature_ui_label_input_included_spec.rb +47 -0
- data/spec/models/signature_ui_label_input_spec.rb +53 -0
- data/spec/models/signature_ui_label_output_spec.rb +77 -0
- data/spec/models/signature_ui_output_redirect_cancel_spec.rb +57 -0
- data/spec/models/signature_ui_output_redirect_error_spec.rb +57 -0
- data/spec/models/signature_ui_output_redirect_success_spec.rb +57 -0
- data/spec/models/signature_ui_output_spec.rb +195 -0
- data/spec/models/user_group_spec.rb +57 -0
- data/spec/models/user_input_notifications_spec.rb +41 -0
- data/spec/models/user_input_spec.rb +99 -0
- data/spec/models/user_output_notifications_spec.rb +41 -0
- data/spec/models/user_output_spec.rb +171 -0
- data/spec/models/user_workspace_output_spec.rb +47 -0
- data/spec/models/workspace_config_email_spec.rb +83 -0
- data/spec/models/workspace_config_procedure_spec.rb +45 -0
- data/spec/models/workspace_config_spec.rb +57 -0
- data/spec/models/workspace_output_spec.rb +89 -0
- data/spec/spec_helper.rb +111 -0
- data/update_client.sh +11 -0
- data/yousign_client.gemspec +45 -0
- data/yousign_openapi.json +5417 -0
- metadata +590 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Yousign API Swagger
|
|
3
|
+
|
|
4
|
+
#For your information, the Yousign API documentation is available at https://dev.yousign.com/
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.1
|
|
7
|
+
Contact: support@yousign.fr
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.14
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'uri'
|
|
14
|
+
|
|
15
|
+
module YousignClient
|
|
16
|
+
class UserGroupsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Get User Group list
|
|
23
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [Array<UserGroup>]
|
|
26
|
+
def user_groups_get(authorization, opts = {})
|
|
27
|
+
data, _status_code, _headers = user_groups_get_with_http_info(authorization, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Get User Group list
|
|
32
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(Array<UserGroup>, Fixnum, Hash)>] Array<UserGroup> data, response status code and response headers
|
|
35
|
+
def user_groups_get_with_http_info(authorization, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: UserGroupsApi.user_groups_get ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'authorization' is set
|
|
40
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling UserGroupsApi.user_groups_get"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/user_groups'
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = {}
|
|
51
|
+
# HTTP header 'Accept' (if needed)
|
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
53
|
+
# HTTP header 'Content-Type'
|
|
54
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
55
|
+
header_params[:'Authorization'] = authorization
|
|
56
|
+
|
|
57
|
+
# form parameters
|
|
58
|
+
form_params = {}
|
|
59
|
+
|
|
60
|
+
# http body (model)
|
|
61
|
+
post_body = nil
|
|
62
|
+
auth_names = []
|
|
63
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
64
|
+
:header_params => header_params,
|
|
65
|
+
:query_params => query_params,
|
|
66
|
+
:form_params => form_params,
|
|
67
|
+
:body => post_body,
|
|
68
|
+
:auth_names => auth_names,
|
|
69
|
+
:return_type => 'Array<UserGroup>')
|
|
70
|
+
if @api_client.config.debugging
|
|
71
|
+
@api_client.config.logger.debug "API called: UserGroupsApi#user_groups_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
72
|
+
end
|
|
73
|
+
return data, status_code, headers
|
|
74
|
+
end
|
|
75
|
+
# Find a User Group by ID
|
|
76
|
+
# @param id
|
|
77
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
78
|
+
# @param [Hash] opts the optional parameters
|
|
79
|
+
# @return [UserGroup]
|
|
80
|
+
def user_groups_id_get(id, authorization, opts = {})
|
|
81
|
+
data, _status_code, _headers = user_groups_id_get_with_http_info(id, authorization, opts)
|
|
82
|
+
data
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Find a User Group by ID
|
|
86
|
+
# @param id
|
|
87
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @return [Array<(UserGroup, Fixnum, Hash)>] UserGroup data, response status code and response headers
|
|
90
|
+
def user_groups_id_get_with_http_info(id, authorization, opts = {})
|
|
91
|
+
if @api_client.config.debugging
|
|
92
|
+
@api_client.config.logger.debug 'Calling API: UserGroupsApi.user_groups_id_get ...'
|
|
93
|
+
end
|
|
94
|
+
# verify the required parameter 'id' is set
|
|
95
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
96
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling UserGroupsApi.user_groups_id_get"
|
|
97
|
+
end
|
|
98
|
+
# verify the required parameter 'authorization' is set
|
|
99
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
100
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling UserGroupsApi.user_groups_id_get"
|
|
101
|
+
end
|
|
102
|
+
# resource path
|
|
103
|
+
local_var_path = '/user_groups/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
104
|
+
|
|
105
|
+
# query parameters
|
|
106
|
+
query_params = {}
|
|
107
|
+
|
|
108
|
+
# header parameters
|
|
109
|
+
header_params = {}
|
|
110
|
+
# HTTP header 'Accept' (if needed)
|
|
111
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
112
|
+
# HTTP header 'Content-Type'
|
|
113
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
114
|
+
header_params[:'Authorization'] = authorization
|
|
115
|
+
|
|
116
|
+
# form parameters
|
|
117
|
+
form_params = {}
|
|
118
|
+
|
|
119
|
+
# http body (model)
|
|
120
|
+
post_body = nil
|
|
121
|
+
auth_names = []
|
|
122
|
+
data, status_code, headers = @api_client.call_api(:GET, 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 => 'UserGroup')
|
|
129
|
+
if @api_client.config.debugging
|
|
130
|
+
@api_client.config.logger.debug "API called: UserGroupsApi#user_groups_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
131
|
+
end
|
|
132
|
+
return data, status_code, headers
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Yousign API Swagger
|
|
3
|
+
|
|
4
|
+
#For your information, the Yousign API documentation is available at https://dev.yousign.com/
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.1
|
|
7
|
+
Contact: support@yousign.fr
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.14
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'uri'
|
|
14
|
+
|
|
15
|
+
module YousignClient
|
|
16
|
+
class UsersApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# List all Users
|
|
23
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [Array<UserOutput>]
|
|
26
|
+
def users_get(authorization, opts = {})
|
|
27
|
+
data, _status_code, _headers = users_get_with_http_info(authorization, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# List all Users
|
|
32
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(Array<UserOutput>, Fixnum, Hash)>] Array<UserOutput> data, response status code and response headers
|
|
35
|
+
def users_get_with_http_info(authorization, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.users_get ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'authorization' is set
|
|
40
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling UsersApi.users_get"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/users'
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = {}
|
|
51
|
+
# HTTP header 'Accept' (if needed)
|
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
53
|
+
# HTTP header 'Content-Type'
|
|
54
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
55
|
+
header_params[:'Authorization'] = authorization
|
|
56
|
+
|
|
57
|
+
# form parameters
|
|
58
|
+
form_params = {}
|
|
59
|
+
|
|
60
|
+
# http body (model)
|
|
61
|
+
post_body = nil
|
|
62
|
+
auth_names = []
|
|
63
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
64
|
+
:header_params => header_params,
|
|
65
|
+
:query_params => query_params,
|
|
66
|
+
:form_params => form_params,
|
|
67
|
+
:body => post_body,
|
|
68
|
+
:auth_names => auth_names,
|
|
69
|
+
:return_type => 'Array<UserOutput>')
|
|
70
|
+
if @api_client.config.debugging
|
|
71
|
+
@api_client.config.logger.debug "API called: UsersApi#users_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
72
|
+
end
|
|
73
|
+
return data, status_code, headers
|
|
74
|
+
end
|
|
75
|
+
# Delete a User
|
|
76
|
+
# @param id
|
|
77
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
78
|
+
# @param [Hash] opts the optional parameters
|
|
79
|
+
# @return [nil]
|
|
80
|
+
def users_id_delete(id, authorization, opts = {})
|
|
81
|
+
users_id_delete_with_http_info(id, authorization, opts)
|
|
82
|
+
nil
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Delete a User
|
|
86
|
+
# @param id
|
|
87
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
90
|
+
def users_id_delete_with_http_info(id, authorization, opts = {})
|
|
91
|
+
if @api_client.config.debugging
|
|
92
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.users_id_delete ...'
|
|
93
|
+
end
|
|
94
|
+
# verify the required parameter 'id' is set
|
|
95
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
96
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_id_delete"
|
|
97
|
+
end
|
|
98
|
+
# verify the required parameter 'authorization' is set
|
|
99
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
100
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling UsersApi.users_id_delete"
|
|
101
|
+
end
|
|
102
|
+
# resource path
|
|
103
|
+
local_var_path = '/users/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
104
|
+
|
|
105
|
+
# query parameters
|
|
106
|
+
query_params = {}
|
|
107
|
+
|
|
108
|
+
# header parameters
|
|
109
|
+
header_params = {}
|
|
110
|
+
# HTTP header 'Accept' (if needed)
|
|
111
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
112
|
+
# HTTP header 'Content-Type'
|
|
113
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
114
|
+
header_params[:'Authorization'] = authorization
|
|
115
|
+
|
|
116
|
+
# form parameters
|
|
117
|
+
form_params = {}
|
|
118
|
+
|
|
119
|
+
# http body (model)
|
|
120
|
+
post_body = nil
|
|
121
|
+
auth_names = []
|
|
122
|
+
data, status_code, headers = @api_client.call_api(:DELETE, 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
|
+
if @api_client.config.debugging
|
|
129
|
+
@api_client.config.logger.debug "API called: UsersApi#users_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
130
|
+
end
|
|
131
|
+
return data, status_code, headers
|
|
132
|
+
end
|
|
133
|
+
# Find a User by ID
|
|
134
|
+
# @param id
|
|
135
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
136
|
+
# @param [Hash] opts the optional parameters
|
|
137
|
+
# @return [UserOutput]
|
|
138
|
+
def users_id_get(id, authorization, opts = {})
|
|
139
|
+
data, _status_code, _headers = users_id_get_with_http_info(id, authorization, opts)
|
|
140
|
+
data
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Find a User by ID
|
|
144
|
+
# @param id
|
|
145
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
146
|
+
# @param [Hash] opts the optional parameters
|
|
147
|
+
# @return [Array<(UserOutput, Fixnum, Hash)>] UserOutput data, response status code and response headers
|
|
148
|
+
def users_id_get_with_http_info(id, authorization, opts = {})
|
|
149
|
+
if @api_client.config.debugging
|
|
150
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.users_id_get ...'
|
|
151
|
+
end
|
|
152
|
+
# verify the required parameter 'id' is set
|
|
153
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
154
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_id_get"
|
|
155
|
+
end
|
|
156
|
+
# verify the required parameter 'authorization' is set
|
|
157
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
158
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling UsersApi.users_id_get"
|
|
159
|
+
end
|
|
160
|
+
# resource path
|
|
161
|
+
local_var_path = '/users/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
162
|
+
|
|
163
|
+
# query parameters
|
|
164
|
+
query_params = {}
|
|
165
|
+
|
|
166
|
+
# header parameters
|
|
167
|
+
header_params = {}
|
|
168
|
+
# HTTP header 'Accept' (if needed)
|
|
169
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
170
|
+
# HTTP header 'Content-Type'
|
|
171
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
172
|
+
header_params[:'Authorization'] = authorization
|
|
173
|
+
|
|
174
|
+
# form parameters
|
|
175
|
+
form_params = {}
|
|
176
|
+
|
|
177
|
+
# http body (model)
|
|
178
|
+
post_body = nil
|
|
179
|
+
auth_names = []
|
|
180
|
+
data, status_code, headers = @api_client.call_api(:GET, 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 => 'UserOutput')
|
|
187
|
+
if @api_client.config.debugging
|
|
188
|
+
@api_client.config.logger.debug "API called: UsersApi#users_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
189
|
+
end
|
|
190
|
+
return data, status_code, headers
|
|
191
|
+
end
|
|
192
|
+
# Update a User
|
|
193
|
+
# @param id
|
|
194
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
195
|
+
# @param content_type The MIME type of the body of the request
|
|
196
|
+
# @param body
|
|
197
|
+
# @param [Hash] opts the optional parameters
|
|
198
|
+
# @return [UserOutput]
|
|
199
|
+
def users_id_put(id, authorization, content_type, body, opts = {})
|
|
200
|
+
data, _status_code, _headers = users_id_put_with_http_info(id, authorization, content_type, body, opts)
|
|
201
|
+
data
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Update a User
|
|
205
|
+
# @param id
|
|
206
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
207
|
+
# @param content_type The MIME type of the body of the request
|
|
208
|
+
# @param body
|
|
209
|
+
# @param [Hash] opts the optional parameters
|
|
210
|
+
# @return [Array<(UserOutput, Fixnum, Hash)>] UserOutput data, response status code and response headers
|
|
211
|
+
def users_id_put_with_http_info(id, authorization, content_type, body, opts = {})
|
|
212
|
+
if @api_client.config.debugging
|
|
213
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.users_id_put ...'
|
|
214
|
+
end
|
|
215
|
+
# verify the required parameter 'id' is set
|
|
216
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
217
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_id_put"
|
|
218
|
+
end
|
|
219
|
+
# verify the required parameter 'authorization' is set
|
|
220
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
221
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling UsersApi.users_id_put"
|
|
222
|
+
end
|
|
223
|
+
# verify the required parameter 'content_type' is set
|
|
224
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
|
225
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling UsersApi.users_id_put"
|
|
226
|
+
end
|
|
227
|
+
# verify the required parameter 'body' is set
|
|
228
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
229
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.users_id_put"
|
|
230
|
+
end
|
|
231
|
+
# resource path
|
|
232
|
+
local_var_path = '/users/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
233
|
+
|
|
234
|
+
# query parameters
|
|
235
|
+
query_params = {}
|
|
236
|
+
|
|
237
|
+
# header parameters
|
|
238
|
+
header_params = {}
|
|
239
|
+
# HTTP header 'Accept' (if needed)
|
|
240
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
241
|
+
header_params[:'Authorization'] = authorization
|
|
242
|
+
header_params[:'Content-Type'] = content_type
|
|
243
|
+
|
|
244
|
+
# form parameters
|
|
245
|
+
form_params = {}
|
|
246
|
+
|
|
247
|
+
# http body (model)
|
|
248
|
+
post_body = @api_client.object_to_http_body(body)
|
|
249
|
+
auth_names = []
|
|
250
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
251
|
+
:header_params => header_params,
|
|
252
|
+
:query_params => query_params,
|
|
253
|
+
:form_params => form_params,
|
|
254
|
+
:body => post_body,
|
|
255
|
+
:auth_names => auth_names,
|
|
256
|
+
:return_type => 'UserOutput')
|
|
257
|
+
if @api_client.config.debugging
|
|
258
|
+
@api_client.config.logger.debug "API called: UsersApi#users_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
259
|
+
end
|
|
260
|
+
return data, status_code, headers
|
|
261
|
+
end
|
|
262
|
+
# Create a new User on Yousign application
|
|
263
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
264
|
+
# @param content_type The MIME type of the body of the request
|
|
265
|
+
# @param body
|
|
266
|
+
# @param [Hash] opts the optional parameters
|
|
267
|
+
# @return [UserOutput]
|
|
268
|
+
def users_post(authorization, content_type, body, opts = {})
|
|
269
|
+
data, _status_code, _headers = users_post_with_http_info(authorization, content_type, body, opts)
|
|
270
|
+
data
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# Create a new User on Yousign application
|
|
274
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
275
|
+
# @param content_type The MIME type of the body of the request
|
|
276
|
+
# @param body
|
|
277
|
+
# @param [Hash] opts the optional parameters
|
|
278
|
+
# @return [Array<(UserOutput, Fixnum, Hash)>] UserOutput data, response status code and response headers
|
|
279
|
+
def users_post_with_http_info(authorization, content_type, body, opts = {})
|
|
280
|
+
if @api_client.config.debugging
|
|
281
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.users_post ...'
|
|
282
|
+
end
|
|
283
|
+
# verify the required parameter 'authorization' is set
|
|
284
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
285
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling UsersApi.users_post"
|
|
286
|
+
end
|
|
287
|
+
# verify the required parameter 'content_type' is set
|
|
288
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
|
289
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling UsersApi.users_post"
|
|
290
|
+
end
|
|
291
|
+
# verify the required parameter 'body' is set
|
|
292
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
293
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.users_post"
|
|
294
|
+
end
|
|
295
|
+
# resource path
|
|
296
|
+
local_var_path = '/users'
|
|
297
|
+
|
|
298
|
+
# query parameters
|
|
299
|
+
query_params = {}
|
|
300
|
+
|
|
301
|
+
# header parameters
|
|
302
|
+
header_params = {}
|
|
303
|
+
# HTTP header 'Accept' (if needed)
|
|
304
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
305
|
+
header_params[:'Authorization'] = authorization
|
|
306
|
+
header_params[:'Content-Type'] = content_type
|
|
307
|
+
|
|
308
|
+
# form parameters
|
|
309
|
+
form_params = {}
|
|
310
|
+
|
|
311
|
+
# http body (model)
|
|
312
|
+
post_body = @api_client.object_to_http_body(body)
|
|
313
|
+
auth_names = []
|
|
314
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
315
|
+
:header_params => header_params,
|
|
316
|
+
:query_params => query_params,
|
|
317
|
+
:form_params => form_params,
|
|
318
|
+
:body => post_body,
|
|
319
|
+
:auth_names => auth_names,
|
|
320
|
+
:return_type => 'UserOutput')
|
|
321
|
+
if @api_client.config.debugging
|
|
322
|
+
@api_client.config.logger.debug "API called: UsersApi#users_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
323
|
+
end
|
|
324
|
+
return data, status_code, headers
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
end
|