ragie_ruby_sdk 1.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 +291 -0
- data/Rakefile +10 -0
- data/docs/AccessTokenCredentials.md +18 -0
- data/docs/AsyncDocumentMetadataUpdate.md +18 -0
- data/docs/AudioModalityData.md +20 -0
- data/docs/AuthenticatorConfluenceConnection.md +22 -0
- data/docs/AuthenticatorDropboxConnection.md +24 -0
- data/docs/AuthenticatorGmailConnection.md +24 -0
- data/docs/AuthenticatorGoogleDriveConnection.md +24 -0
- data/docs/AuthenticatorHubspotConnection.md +26 -0
- data/docs/AuthenticatorJiraConnection.md +20 -0
- data/docs/AuthenticatorList.md +20 -0
- data/docs/AuthenticatorNotionConnection.md +26 -0
- data/docs/AuthenticatorOnedriveConnection.md +24 -0
- data/docs/AuthenticatorSalesforceConnection.md +24 -0
- data/docs/AuthenticatorSharepointConnection.md +24 -0
- data/docs/AuthenticatorSlackConnection.md +24 -0
- data/docs/AuthenticatorsApi.md +293 -0
- data/docs/BackblazeCredentials.md +24 -0
- data/docs/BaseGetAuthenticator.md +22 -0
- data/docs/BetaApi.md +363 -0
- data/docs/Body.md +22 -0
- data/docs/BodyCreateDocument.md +28 -0
- data/docs/BodyUpdateDocumentFile.md +20 -0
- data/docs/BucketData.md +22 -0
- data/docs/ConfluenceData.md +24 -0
- data/docs/Connection.md +44 -0
- data/docs/Connection1.md +106 -0
- data/docs/Connection2.md +91 -0
- data/docs/ConnectionBase.md +22 -0
- data/docs/ConnectionLimitExceededWebhook.md +22 -0
- data/docs/ConnectionLimitExceededWebhookPayload.md +24 -0
- data/docs/ConnectionLimitParams.md +18 -0
- data/docs/ConnectionList.md +20 -0
- data/docs/ConnectionStats.md +20 -0
- data/docs/ConnectionSyncFinishedWebhook.md +22 -0
- data/docs/ConnectionSyncFinishedWebhookPayload.md +24 -0
- data/docs/ConnectionSyncProgressWebhook.md +22 -0
- data/docs/ConnectionSyncProgressWebhookPayload.md +42 -0
- data/docs/ConnectionSyncStartedWebhook.md +22 -0
- data/docs/ConnectionSyncStartedWebhookPayload.md +32 -0
- data/docs/ConnectionsApi.md +790 -0
- data/docs/ConnectorSource.md +15 -0
- data/docs/ConnectorSourceTypeInfo.md +24 -0
- data/docs/CreateAuthenticatorConnection.md +28 -0
- data/docs/CreateDocumentFromUrlParams.md +28 -0
- data/docs/CreateDocumentRawParams.md +26 -0
- data/docs/CreateGoogleAuthenticator.md +28 -0
- data/docs/CreateInstructionParams.md +30 -0
- data/docs/CreatePartitionParams.md +42 -0
- data/docs/Data.md +15 -0
- data/docs/DefaultApi.md +77 -0
- data/docs/DeleteConnectionPayload.md +18 -0
- data/docs/Document.md +36 -0
- data/docs/DocumentChunk.md +26 -0
- data/docs/DocumentChunkDetail.md +28 -0
- data/docs/DocumentChunkDetailModalityData.md +79 -0
- data/docs/DocumentChunkList.md +20 -0
- data/docs/DocumentDelete.md +18 -0
- data/docs/DocumentDeleteWebhook.md +22 -0
- data/docs/DocumentDeleteWebhookPayload.md +30 -0
- data/docs/DocumentFileUpdate.md +18 -0
- data/docs/DocumentGet.md +38 -0
- data/docs/DocumentList.md +20 -0
- data/docs/DocumentMetadataUpdate.md +18 -0
- data/docs/DocumentRawUpdate.md +18 -0
- data/docs/DocumentSummary.md +20 -0
- data/docs/DocumentUpdateWebhook.md +22 -0
- data/docs/DocumentUpdateWebhookPayload.md +34 -0
- data/docs/DocumentUrlUpdate.md +18 -0
- data/docs/DocumentWithContent.md +38 -0
- data/docs/DocumentsApi.md +1221 -0
- data/docs/EnterpriseApi.md +363 -0
- data/docs/EntitiesApi.md +436 -0
- data/docs/Entity.md +30 -0
- data/docs/EntityExtractedWebhook.md +22 -0
- data/docs/EntityExtractedWebhookPayload.md +34 -0
- data/docs/EntityList.md +20 -0
- data/docs/ErrorMessage.md +18 -0
- data/docs/FolderData.md +20 -0
- data/docs/FreshdeskCredentials.md +20 -0
- data/docs/FreshdeskData.md +20 -0
- data/docs/GmailData.md +18 -0
- data/docs/GoogleFolderData.md +22 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/HubspotData.md +30 -0
- data/docs/Instruction.md +36 -0
- data/docs/IntercomCredentials.md +22 -0
- data/docs/IntercomData.md +28 -0
- data/docs/Link.md +20 -0
- data/docs/ListConnectorSourceTypeInfo.md +18 -0
- data/docs/MediaModeParam.md +22 -0
- data/docs/MediaType.md +15 -0
- data/docs/MetadataValue.md +15 -0
- data/docs/MetadataValue1.md +53 -0
- data/docs/Mode.md +22 -0
- data/docs/Mode1.md +22 -0
- data/docs/Mode2.md +49 -0
- data/docs/Mode2OneOf.md +22 -0
- data/docs/OAuthCredentials.md +26 -0
- data/docs/OAuthRefreshTokenCredentials.md +18 -0
- data/docs/OAuthUrlCreate.md +34 -0
- data/docs/OAuthUrlResponse.md +18 -0
- data/docs/OnedriveData.md +22 -0
- data/docs/Pagination.md +20 -0
- data/docs/Partition.md +24 -0
- data/docs/PartitionDetail.md +26 -0
- data/docs/PartitionLimitExceededWebhook.md +22 -0
- data/docs/PartitionLimitExceededWebhookPayload.md +20 -0
- data/docs/PartitionLimitParams.md +40 -0
- data/docs/PartitionLimitResetWebhook.md +22 -0
- data/docs/PartitionLimitResetWebhookPayload.md +18 -0
- data/docs/PartitionLimits.md +40 -0
- data/docs/PartitionList.md +20 -0
- data/docs/PartitionStats.md +42 -0
- data/docs/PartitionStrategy.md +22 -0
- data/docs/PartitionsApi.md +363 -0
- data/docs/PatchDocumentMetadataParams.md +20 -0
- data/docs/Payload.md +84 -0
- data/docs/PublicBackblazeConnection.md +22 -0
- data/docs/PublicCreateConnection.md +28 -0
- data/docs/PublicFreshdeskConnection.md +24 -0
- data/docs/PublicGCSConnection.md +22 -0
- data/docs/PublicIntercomConnection.md +22 -0
- data/docs/PublicS3CompatibleConnection.md +22 -0
- data/docs/PublicZendeskConnection.md +22 -0
- data/docs/ResponseOK.md +18 -0
- data/docs/ResponsePatchdocumentmetadata.md +20 -0
- data/docs/Retrieval.md +18 -0
- data/docs/RetrievalsApi.md +75 -0
- data/docs/RetrieveParams.md +30 -0
- data/docs/S3CompatibleCredentials.md +24 -0
- data/docs/ScoredChunk.md +34 -0
- data/docs/SetConnectionEnabledPayload.md +20 -0
- data/docs/SharepointData.md +20 -0
- data/docs/SharepointFileData.md +22 -0
- data/docs/SharepointSiteData.md +20 -0
- data/docs/SlackData.md +20 -0
- data/docs/Source.md +15 -0
- data/docs/Status.md +15 -0
- data/docs/UpdateDocumentFromUrlParams.md +20 -0
- data/docs/UpdateDocumentRawParams.md +18 -0
- data/docs/UpdateInstructionParams.md +18 -0
- data/docs/ValidationError.md +22 -0
- data/docs/ValidationErrorLocInner.md +15 -0
- data/docs/VideoModalityData.md +20 -0
- data/docs/WordTimestamp.md +24 -0
- data/docs/ZendeskCredentials.md +22 -0
- data/docs/ZendeskData.md +18 -0
- data/git_push.sh +57 -0
- data/lib/ragie_ruby_sdk/api/authenticators_api.rb +298 -0
- data/lib/ragie_ruby_sdk/api/beta_api.rb +366 -0
- data/lib/ragie_ruby_sdk/api/connections_api.rb +777 -0
- data/lib/ragie_ruby_sdk/api/default_api.rb +90 -0
- data/lib/ragie_ruby_sdk/api/documents_api.rb +1206 -0
- data/lib/ragie_ruby_sdk/api/enterprise_api.rb +366 -0
- data/lib/ragie_ruby_sdk/api/entities_api.rb +438 -0
- data/lib/ragie_ruby_sdk/api/partitions_api.rb +361 -0
- data/lib/ragie_ruby_sdk/api/retrievals_api.rb +88 -0
- data/lib/ragie_ruby_sdk/api_client.rb +393 -0
- data/lib/ragie_ruby_sdk/api_error.rb +58 -0
- data/lib/ragie_ruby_sdk/configuration.rb +308 -0
- data/lib/ragie_ruby_sdk/models/access_token_credentials.rb +237 -0
- data/lib/ragie_ruby_sdk/models/async_document_metadata_update.rb +237 -0
- data/lib/ragie_ruby_sdk/models/audio_modality_data.rb +267 -0
- data/lib/ragie_ruby_sdk/models/authenticator_confluence_connection.rb +315 -0
- data/lib/ragie_ruby_sdk/models/authenticator_dropbox_connection.rb +340 -0
- data/lib/ragie_ruby_sdk/models/authenticator_gmail_connection.rb +340 -0
- data/lib/ragie_ruby_sdk/models/authenticator_google_drive_connection.rb +342 -0
- data/lib/ragie_ruby_sdk/models/authenticator_hubspot_connection.rb +365 -0
- data/lib/ragie_ruby_sdk/models/authenticator_jira_connection.rb +287 -0
- data/lib/ragie_ruby_sdk/models/authenticator_list.rb +265 -0
- data/lib/ragie_ruby_sdk/models/authenticator_notion_connection.rb +366 -0
- data/lib/ragie_ruby_sdk/models/authenticator_onedrive_connection.rb +340 -0
- data/lib/ragie_ruby_sdk/models/authenticator_salesforce_connection.rb +341 -0
- data/lib/ragie_ruby_sdk/models/authenticator_sharepoint_connection.rb +340 -0
- data/lib/ragie_ruby_sdk/models/authenticator_slack_connection.rb +340 -0
- data/lib/ragie_ruby_sdk/models/backblaze_credentials.rb +315 -0
- data/lib/ragie_ruby_sdk/models/base_get_authenticator.rb +290 -0
- data/lib/ragie_ruby_sdk/models/body.rb +111 -0
- data/lib/ragie_ruby_sdk/models/body_create_document.rb +292 -0
- data/lib/ragie_ruby_sdk/models/body_update_document_file.rb +250 -0
- data/lib/ragie_ruby_sdk/models/bucket_data.rb +258 -0
- data/lib/ragie_ruby_sdk/models/confluence_data.rb +315 -0
- data/lib/ragie_ruby_sdk/models/connection.rb +521 -0
- data/lib/ragie_ruby_sdk/models/connection1.rb +73 -0
- data/lib/ragie_ruby_sdk/models/connection2.rb +63 -0
- data/lib/ragie_ruby_sdk/models/connection_base.rb +274 -0
- data/lib/ragie_ruby_sdk/models/connection_limit_exceeded_webhook.rb +313 -0
- data/lib/ragie_ruby_sdk/models/connection_limit_exceeded_webhook_payload.rb +327 -0
- data/lib/ragie_ruby_sdk/models/connection_limit_params.rb +236 -0
- data/lib/ragie_ruby_sdk/models/connection_list.rb +265 -0
- data/lib/ragie_ruby_sdk/models/connection_stats.rb +263 -0
- data/lib/ragie_ruby_sdk/models/connection_sync_finished_webhook.rb +313 -0
- data/lib/ragie_ruby_sdk/models/connection_sync_finished_webhook_payload.rb +317 -0
- data/lib/ragie_ruby_sdk/models/connection_sync_progress_webhook.rb +313 -0
- data/lib/ragie_ruby_sdk/models/connection_sync_progress_webhook_payload.rb +551 -0
- data/lib/ragie_ruby_sdk/models/connection_sync_started_webhook.rb +313 -0
- data/lib/ragie_ruby_sdk/models/connection_sync_started_webhook_payload.rb +421 -0
- data/lib/ragie_ruby_sdk/models/connector_source.rb +55 -0
- data/lib/ragie_ruby_sdk/models/connector_source_type_info.rb +337 -0
- data/lib/ragie_ruby_sdk/models/create_authenticator_connection.rb +307 -0
- data/lib/ragie_ruby_sdk/models/create_document_from_url_params.rb +306 -0
- data/lib/ragie_ruby_sdk/models/create_document_raw_params.rb +279 -0
- data/lib/ragie_ruby_sdk/models/create_google_authenticator.rb +360 -0
- data/lib/ragie_ruby_sdk/models/create_instruction_params.rb +373 -0
- data/lib/ragie_ruby_sdk/models/create_partition_params.rb +537 -0
- data/lib/ragie_ruby_sdk/models/data.rb +105 -0
- data/lib/ragie_ruby_sdk/models/delete_connection_payload.rb +237 -0
- data/lib/ragie_ruby_sdk/models/document.rb +425 -0
- data/lib/ragie_ruby_sdk/models/document_chunk.rb +313 -0
- data/lib/ragie_ruby_sdk/models/document_chunk_detail.rb +323 -0
- data/lib/ragie_ruby_sdk/models/document_chunk_detail_modality_data.rb +55 -0
- data/lib/ragie_ruby_sdk/models/document_chunk_list.rb +265 -0
- data/lib/ragie_ruby_sdk/models/document_delete.rb +237 -0
- data/lib/ragie_ruby_sdk/models/document_delete_webhook.rb +313 -0
- data/lib/ragie_ruby_sdk/models/document_delete_webhook_payload.rb +353 -0
- data/lib/ragie_ruby_sdk/models/document_file_update.rb +237 -0
- data/lib/ragie_ruby_sdk/models/document_get.rb +453 -0
- data/lib/ragie_ruby_sdk/models/document_list.rb +265 -0
- data/lib/ragie_ruby_sdk/models/document_metadata_update.rb +240 -0
- data/lib/ragie_ruby_sdk/models/document_raw_update.rb +237 -0
- data/lib/ragie_ruby_sdk/models/document_summary.rb +263 -0
- data/lib/ragie_ruby_sdk/models/document_update_webhook.rb +313 -0
- data/lib/ragie_ruby_sdk/models/document_update_webhook_payload.rb +391 -0
- data/lib/ragie_ruby_sdk/models/document_url_update.rb +237 -0
- data/lib/ragie_ruby_sdk/models/document_with_content.rb +451 -0
- data/lib/ragie_ruby_sdk/models/entity.rb +381 -0
- data/lib/ragie_ruby_sdk/models/entity_extracted_webhook.rb +313 -0
- data/lib/ragie_ruby_sdk/models/entity_extracted_webhook_payload.rb +421 -0
- data/lib/ragie_ruby_sdk/models/entity_list.rb +265 -0
- data/lib/ragie_ruby_sdk/models/error_message.rb +237 -0
- data/lib/ragie_ruby_sdk/models/folder_data.rb +263 -0
- data/lib/ragie_ruby_sdk/models/freshdesk_credentials.rb +263 -0
- data/lib/ragie_ruby_sdk/models/freshdesk_data.rb +263 -0
- data/lib/ragie_ruby_sdk/models/gmail_data.rb +221 -0
- data/lib/ragie_ruby_sdk/models/google_folder_data.rb +289 -0
- data/lib/ragie_ruby_sdk/models/http_validation_error.rb +222 -0
- data/lib/ragie_ruby_sdk/models/hubspot_data.rb +393 -0
- data/lib/ragie_ruby_sdk/models/instruction.rb +451 -0
- data/lib/ragie_ruby_sdk/models/intercom_credentials.rb +290 -0
- data/lib/ragie_ruby_sdk/models/intercom_data.rb +367 -0
- data/lib/ragie_ruby_sdk/models/link.rb +263 -0
- data/lib/ragie_ruby_sdk/models/list_connector_source_type_info.rb +239 -0
- data/lib/ragie_ruby_sdk/models/media_mode_param.rb +287 -0
- data/lib/ragie_ruby_sdk/models/media_type.rb +104 -0
- data/lib/ragie_ruby_sdk/models/metadata_value.rb +106 -0
- data/lib/ragie_ruby_sdk/models/metadata_value1.rb +107 -0
- data/lib/ragie_ruby_sdk/models/mode.rb +105 -0
- data/lib/ragie_ruby_sdk/models/mode1.rb +104 -0
- data/lib/ragie_ruby_sdk/models/mode2.rb +106 -0
- data/lib/ragie_ruby_sdk/models/mode2_one_of.rb +287 -0
- data/lib/ragie_ruby_sdk/models/o_auth_credentials.rb +350 -0
- data/lib/ragie_ruby_sdk/models/o_auth_refresh_token_credentials.rb +237 -0
- data/lib/ragie_ruby_sdk/models/o_auth_url_create.rb +370 -0
- data/lib/ragie_ruby_sdk/models/o_auth_url_response.rb +237 -0
- data/lib/ragie_ruby_sdk/models/onedrive_data.rb +289 -0
- data/lib/ragie_ruby_sdk/models/pagination.rb +247 -0
- data/lib/ragie_ruby_sdk/models/partition.rb +299 -0
- data/lib/ragie_ruby_sdk/models/partition_detail.rb +325 -0
- data/lib/ragie_ruby_sdk/models/partition_limit_exceeded_webhook.rb +313 -0
- data/lib/ragie_ruby_sdk/models/partition_limit_exceeded_webhook_payload.rb +287 -0
- data/lib/ragie_ruby_sdk/models/partition_limit_params.rb +511 -0
- data/lib/ragie_ruby_sdk/models/partition_limit_reset_webhook.rb +313 -0
- data/lib/ragie_ruby_sdk/models/partition_limit_reset_webhook_payload.rb +237 -0
- data/lib/ragie_ruby_sdk/models/partition_limits.rb +511 -0
- data/lib/ragie_ruby_sdk/models/partition_list.rb +265 -0
- data/lib/ragie_ruby_sdk/models/partition_stats.rb +562 -0
- data/lib/ragie_ruby_sdk/models/partition_strategy.rb +104 -0
- data/lib/ragie_ruby_sdk/models/patch_document_metadata_params.rb +252 -0
- data/lib/ragie_ruby_sdk/models/payload.rb +60 -0
- data/lib/ragie_ruby_sdk/models/public_backblaze_connection.rb +313 -0
- data/lib/ragie_ruby_sdk/models/public_create_connection.rb +307 -0
- data/lib/ragie_ruby_sdk/models/public_freshdesk_connection.rb +340 -0
- data/lib/ragie_ruby_sdk/models/public_gcs_connection.rb +315 -0
- data/lib/ragie_ruby_sdk/models/public_intercom_connection.rb +313 -0
- data/lib/ragie_ruby_sdk/models/public_s3_compatible_connection.rb +313 -0
- data/lib/ragie_ruby_sdk/models/public_zendesk_connection.rb +313 -0
- data/lib/ragie_ruby_sdk/models/response_ok.rb +222 -0
- data/lib/ragie_ruby_sdk/models/response_patchdocumentmetadata.rb +104 -0
- data/lib/ragie_ruby_sdk/models/retrieval.rb +239 -0
- data/lib/ragie_ruby_sdk/models/retrieve_params.rb +305 -0
- data/lib/ragie_ruby_sdk/models/s3_compatible_credentials.rb +299 -0
- data/lib/ragie_ruby_sdk/models/scored_chunk.rb +434 -0
- data/lib/ragie_ruby_sdk/models/set_connection_enabled_payload.rb +281 -0
- data/lib/ragie_ruby_sdk/models/sharepoint_data.rb +265 -0
- data/lib/ragie_ruby_sdk/models/sharepoint_file_data.rb +313 -0
- data/lib/ragie_ruby_sdk/models/sharepoint_site_data.rb +263 -0
- data/lib/ragie_ruby_sdk/models/slack_data.rb +263 -0
- data/lib/ragie_ruby_sdk/models/source.rb +105 -0
- data/lib/ragie_ruby_sdk/models/status.rb +103 -0
- data/lib/ragie_ruby_sdk/models/update_document_from_url_params.rb +247 -0
- data/lib/ragie_ruby_sdk/models/update_document_raw_params.rb +237 -0
- data/lib/ragie_ruby_sdk/models/update_instruction_params.rb +238 -0
- data/lib/ragie_ruby_sdk/models/validation_error.rb +291 -0
- data/lib/ragie_ruby_sdk/models/validation_error_loc_inner.rb +104 -0
- data/lib/ragie_ruby_sdk/models/video_modality_data.rb +267 -0
- data/lib/ragie_ruby_sdk/models/word_timestamp.rb +315 -0
- data/lib/ragie_ruby_sdk/models/zendesk_credentials.rb +289 -0
- data/lib/ragie_ruby_sdk/models/zendesk_data.rb +237 -0
- data/lib/ragie_ruby_sdk/version.rb +15 -0
- data/lib/ragie_ruby_sdk.rb +185 -0
- data/ragie_ruby_sdk.gemspec +39 -0
- data/spec/api/authenticators_api_spec.rb +85 -0
- data/spec/api/beta_api_spec.rb +97 -0
- data/spec/api/connections_api_spec.rb +173 -0
- data/spec/api/default_api_spec.rb +47 -0
- data/spec/api/documents_api_spec.rb +260 -0
- data/spec/api/enterprise_api_spec.rb +97 -0
- data/spec/api/entities_api_spec.rb +110 -0
- data/spec/api/partitions_api_spec.rb +97 -0
- data/spec/api/retrievals_api_spec.rb +46 -0
- data/spec/models/access_token_credentials_spec.rb +36 -0
- data/spec/models/async_document_metadata_update_spec.rb +36 -0
- data/spec/models/audio_modality_data_spec.rb +46 -0
- data/spec/models/authenticator_confluence_connection_spec.rb +52 -0
- data/spec/models/authenticator_dropbox_connection_spec.rb +58 -0
- data/spec/models/authenticator_gmail_connection_spec.rb +58 -0
- data/spec/models/authenticator_google_drive_connection_spec.rb +58 -0
- data/spec/models/authenticator_hubspot_connection_spec.rb +64 -0
- data/spec/models/authenticator_jira_connection_spec.rb +46 -0
- data/spec/models/authenticator_list_spec.rb +42 -0
- data/spec/models/authenticator_notion_connection_spec.rb +64 -0
- data/spec/models/authenticator_onedrive_connection_spec.rb +58 -0
- data/spec/models/authenticator_salesforce_connection_spec.rb +58 -0
- data/spec/models/authenticator_sharepoint_connection_spec.rb +58 -0
- data/spec/models/authenticator_slack_connection_spec.rb +58 -0
- data/spec/models/backblaze_credentials_spec.rb +54 -0
- data/spec/models/base_get_authenticator_spec.rb +48 -0
- data/spec/models/body_create_document_spec.rb +66 -0
- data/spec/models/body_spec.rb +21 -0
- data/spec/models/body_update_document_file_spec.rb +42 -0
- data/spec/models/bucket_data_spec.rb +48 -0
- data/spec/models/confluence_data_spec.rb +54 -0
- data/spec/models/connection1_spec.rb +44 -0
- data/spec/models/connection2_spec.rb +44 -0
- data/spec/models/connection_base_spec.rb +48 -0
- data/spec/models/connection_limit_exceeded_webhook_payload_spec.rb +58 -0
- data/spec/models/connection_limit_exceeded_webhook_spec.rb +52 -0
- data/spec/models/connection_limit_params_spec.rb +36 -0
- data/spec/models/connection_list_spec.rb +42 -0
- data/spec/models/connection_spec.rb +118 -0
- data/spec/models/connection_stats_spec.rb +42 -0
- data/spec/models/connection_sync_finished_webhook_payload_spec.rb +54 -0
- data/spec/models/connection_sync_finished_webhook_spec.rb +52 -0
- data/spec/models/connection_sync_progress_webhook_payload_spec.rb +108 -0
- data/spec/models/connection_sync_progress_webhook_spec.rb +52 -0
- data/spec/models/connection_sync_started_webhook_payload_spec.rb +78 -0
- data/spec/models/connection_sync_started_webhook_spec.rb +52 -0
- data/spec/models/connector_source_spec.rb +30 -0
- data/spec/models/connector_source_type_info_spec.rb +54 -0
- data/spec/models/create_authenticator_connection_spec.rb +66 -0
- data/spec/models/create_document_from_url_params_spec.rb +66 -0
- data/spec/models/create_document_raw_params_spec.rb +60 -0
- data/spec/models/create_google_authenticator_spec.rb +70 -0
- data/spec/models/create_instruction_params_spec.rb +76 -0
- data/spec/models/create_partition_params_spec.rb +108 -0
- data/spec/models/data_spec.rb +21 -0
- data/spec/models/delete_connection_payload_spec.rb +36 -0
- data/spec/models/document_chunk_detail_modality_data_spec.rb +44 -0
- data/spec/models/document_chunk_detail_spec.rb +66 -0
- data/spec/models/document_chunk_list_spec.rb +42 -0
- data/spec/models/document_chunk_spec.rb +60 -0
- data/spec/models/document_delete_spec.rb +36 -0
- data/spec/models/document_delete_webhook_payload_spec.rb +72 -0
- data/spec/models/document_delete_webhook_spec.rb +52 -0
- data/spec/models/document_file_update_spec.rb +36 -0
- data/spec/models/document_get_spec.rb +96 -0
- data/spec/models/document_list_spec.rb +42 -0
- data/spec/models/document_metadata_update_spec.rb +36 -0
- data/spec/models/document_raw_update_spec.rb +36 -0
- data/spec/models/document_spec.rb +90 -0
- data/spec/models/document_summary_spec.rb +42 -0
- data/spec/models/document_update_webhook_payload_spec.rb +84 -0
- data/spec/models/document_update_webhook_spec.rb +52 -0
- data/spec/models/document_url_update_spec.rb +36 -0
- data/spec/models/document_with_content_spec.rb +96 -0
- data/spec/models/entity_extracted_webhook_payload_spec.rb +84 -0
- data/spec/models/entity_extracted_webhook_spec.rb +52 -0
- data/spec/models/entity_list_spec.rb +42 -0
- data/spec/models/entity_spec.rb +72 -0
- data/spec/models/error_message_spec.rb +36 -0
- data/spec/models/folder_data_spec.rb +42 -0
- data/spec/models/freshdesk_credentials_spec.rb +42 -0
- data/spec/models/freshdesk_data_spec.rb +42 -0
- data/spec/models/gmail_data_spec.rb +36 -0
- data/spec/models/google_folder_data_spec.rb +48 -0
- data/spec/models/http_validation_error_spec.rb +36 -0
- data/spec/models/hubspot_data_spec.rb +72 -0
- data/spec/models/instruction_spec.rb +94 -0
- data/spec/models/intercom_credentials_spec.rb +48 -0
- data/spec/models/intercom_data_spec.rb +66 -0
- data/spec/models/link_spec.rb +42 -0
- data/spec/models/list_connector_source_type_info_spec.rb +36 -0
- data/spec/models/media_mode_param_spec.rb +56 -0
- data/spec/models/media_type_spec.rb +21 -0
- data/spec/models/metadata_value1_spec.rb +32 -0
- data/spec/models/metadata_value_spec.rb +21 -0
- data/spec/models/mode1_spec.rb +21 -0
- data/spec/models/mode2_one_of_spec.rb +56 -0
- data/spec/models/mode2_spec.rb +32 -0
- data/spec/models/mode_spec.rb +21 -0
- data/spec/models/o_auth_credentials_spec.rb +64 -0
- data/spec/models/o_auth_refresh_token_credentials_spec.rb +36 -0
- data/spec/models/o_auth_url_create_spec.rb +88 -0
- data/spec/models/o_auth_url_response_spec.rb +36 -0
- data/spec/models/onedrive_data_spec.rb +48 -0
- data/spec/models/pagination_spec.rb +42 -0
- data/spec/models/partition_detail_spec.rb +60 -0
- data/spec/models/partition_limit_exceeded_webhook_payload_spec.rb +46 -0
- data/spec/models/partition_limit_exceeded_webhook_spec.rb +52 -0
- data/spec/models/partition_limit_params_spec.rb +102 -0
- data/spec/models/partition_limit_reset_webhook_payload_spec.rb +36 -0
- data/spec/models/partition_limit_reset_webhook_spec.rb +52 -0
- data/spec/models/partition_limits_spec.rb +102 -0
- data/spec/models/partition_list_spec.rb +42 -0
- data/spec/models/partition_spec.rb +54 -0
- data/spec/models/partition_stats_spec.rb +108 -0
- data/spec/models/partition_strategy_spec.rb +21 -0
- data/spec/models/patch_document_metadata_params_spec.rb +42 -0
- data/spec/models/payload_spec.rb +44 -0
- data/spec/models/public_backblaze_connection_spec.rb +52 -0
- data/spec/models/public_create_connection_spec.rb +66 -0
- data/spec/models/public_freshdesk_connection_spec.rb +58 -0
- data/spec/models/public_gcs_connection_spec.rb +52 -0
- data/spec/models/public_intercom_connection_spec.rb +52 -0
- data/spec/models/public_s3_compatible_connection_spec.rb +52 -0
- data/spec/models/public_zendesk_connection_spec.rb +52 -0
- data/spec/models/response_ok_spec.rb +36 -0
- data/spec/models/response_patchdocumentmetadata_spec.rb +21 -0
- data/spec/models/retrieval_spec.rb +36 -0
- data/spec/models/retrieve_params_spec.rb +72 -0
- data/spec/models/s3_compatible_credentials_spec.rb +54 -0
- data/spec/models/scored_chunk_spec.rb +84 -0
- data/spec/models/set_connection_enabled_payload_spec.rb +46 -0
- data/spec/models/sharepoint_data_spec.rb +42 -0
- data/spec/models/sharepoint_file_data_spec.rb +52 -0
- data/spec/models/sharepoint_site_data_spec.rb +42 -0
- data/spec/models/slack_data_spec.rb +42 -0
- data/spec/models/source_spec.rb +21 -0
- data/spec/models/status_spec.rb +21 -0
- data/spec/models/update_document_from_url_params_spec.rb +42 -0
- data/spec/models/update_document_raw_params_spec.rb +36 -0
- data/spec/models/update_instruction_params_spec.rb +36 -0
- data/spec/models/validation_error_loc_inner_spec.rb +21 -0
- data/spec/models/validation_error_spec.rb +48 -0
- data/spec/models/video_modality_data_spec.rb +46 -0
- data/spec/models/word_timestamp_spec.rb +54 -0
- data/spec/models/zendesk_credentials_spec.rb +48 -0
- data/spec/models/zendesk_data_spec.rb +36 -0
- data/spec/spec_helper.rb +111 -0
- metadata +680 -0
|
@@ -0,0 +1,790 @@
|
|
|
1
|
+
# RagieRubySdk::ConnectionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.ragie.ai*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**create_connection**](ConnectionsApi.md#create_connection) | **POST** /connection | Create Connection |
|
|
8
|
+
| [**create_oauth_redirect_url_connections_oauth_post**](ConnectionsApi.md#create_oauth_redirect_url_connections_oauth_post) | **POST** /connections/oauth | Create Oauth Redirect Url |
|
|
9
|
+
| [**delete_connection_connections_connection_id_delete_post**](ConnectionsApi.md#delete_connection_connections_connection_id_delete_post) | **POST** /connections/{connection_id}/delete | Delete Connection |
|
|
10
|
+
| [**get_connection_connections_connection_id_get**](ConnectionsApi.md#get_connection_connections_connection_id_get) | **GET** /connections/{connection_id} | Get Connection |
|
|
11
|
+
| [**get_connection_stats_connections_connection_id_stats_get**](ConnectionsApi.md#get_connection_stats_connections_connection_id_stats_get) | **GET** /connections/{connection_id}/stats | Get Connection Stats |
|
|
12
|
+
| [**list_connection_source_types_connections_source_type_get**](ConnectionsApi.md#list_connection_source_types_connections_source_type_get) | **GET** /connections/source-type | List Connection Source Types |
|
|
13
|
+
| [**list_connections_connections_get**](ConnectionsApi.md#list_connections_connections_get) | **GET** /connections | List Connections |
|
|
14
|
+
| [**set_connection_enabled_connections_connection_id_enabled_put**](ConnectionsApi.md#set_connection_enabled_connections_connection_id_enabled_put) | **PUT** /connections/{connection_id}/enabled | Set Connection Enabled |
|
|
15
|
+
| [**set_connection_limits_connections_connection_id_limit_put**](ConnectionsApi.md#set_connection_limits_connections_connection_id_limit_put) | **PUT** /connections/{connection_id}/limit | Set Connection Limits |
|
|
16
|
+
| [**sync_connection**](ConnectionsApi.md#sync_connection) | **POST** /connections/{connection_id}/sync | Sync Connection |
|
|
17
|
+
| [**update_connection_connections_connection_id_put**](ConnectionsApi.md#update_connection_connections_connection_id_put) | **PUT** /connections/{connection_id} | Update Connection |
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## create_connection
|
|
21
|
+
|
|
22
|
+
> <Connection> create_connection(public_create_connection)
|
|
23
|
+
|
|
24
|
+
Create Connection
|
|
25
|
+
|
|
26
|
+
Create a connection. This is only for non-oauth connections such as S3 compatible connections, Freshdesk, and Zendesk.
|
|
27
|
+
|
|
28
|
+
### Examples
|
|
29
|
+
|
|
30
|
+
```ruby
|
|
31
|
+
require 'time'
|
|
32
|
+
require 'ragie_ruby_sdk'
|
|
33
|
+
# setup authorization
|
|
34
|
+
RagieRubySdk.configure do |config|
|
|
35
|
+
# Configure Bearer authorization: auth
|
|
36
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
api_instance = RagieRubySdk::ConnectionsApi.new
|
|
40
|
+
public_create_connection = RagieRubySdk::PublicCreateConnection.new({partition_strategy: RagieRubySdk::MediaModeParam.new, connection: RagieRubySdk::PublicBackblazeConnection.new({provider: 'backblaze', data: RagieRubySdk::BucketData.new({bucket: 'bucket_example'}), credentials: RagieRubySdk::BackblazeCredentials.new({key_id: 'key_id_example', application_key: 'application_key_example', region: 'region_example', endpoint: 'endpoint_example'})})}) # PublicCreateConnection |
|
|
41
|
+
|
|
42
|
+
begin
|
|
43
|
+
# Create Connection
|
|
44
|
+
result = api_instance.create_connection(public_create_connection)
|
|
45
|
+
p result
|
|
46
|
+
rescue RagieRubySdk::ApiError => e
|
|
47
|
+
puts "Error when calling ConnectionsApi->create_connection: #{e}"
|
|
48
|
+
end
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
#### Using the create_connection_with_http_info variant
|
|
52
|
+
|
|
53
|
+
This returns an Array which contains the response data, status code and headers.
|
|
54
|
+
|
|
55
|
+
> <Array(<Connection>, Integer, Hash)> create_connection_with_http_info(public_create_connection)
|
|
56
|
+
|
|
57
|
+
```ruby
|
|
58
|
+
begin
|
|
59
|
+
# Create Connection
|
|
60
|
+
data, status_code, headers = api_instance.create_connection_with_http_info(public_create_connection)
|
|
61
|
+
p status_code # => 2xx
|
|
62
|
+
p headers # => { ... }
|
|
63
|
+
p data # => <Connection>
|
|
64
|
+
rescue RagieRubySdk::ApiError => e
|
|
65
|
+
puts "Error when calling ConnectionsApi->create_connection_with_http_info: #{e}"
|
|
66
|
+
end
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Parameters
|
|
70
|
+
|
|
71
|
+
| Name | Type | Description | Notes |
|
|
72
|
+
| ---- | ---- | ----------- | ----- |
|
|
73
|
+
| **public_create_connection** | [**PublicCreateConnection**](PublicCreateConnection.md) | | |
|
|
74
|
+
|
|
75
|
+
### Return type
|
|
76
|
+
|
|
77
|
+
[**Connection**](Connection.md)
|
|
78
|
+
|
|
79
|
+
### Authorization
|
|
80
|
+
|
|
81
|
+
[auth](../README.md#auth)
|
|
82
|
+
|
|
83
|
+
### HTTP request headers
|
|
84
|
+
|
|
85
|
+
- **Content-Type**: application/json
|
|
86
|
+
- **Accept**: application/json
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
## create_oauth_redirect_url_connections_oauth_post
|
|
90
|
+
|
|
91
|
+
> <OAuthUrlResponse> create_oauth_redirect_url_connections_oauth_post(o_auth_url_create)
|
|
92
|
+
|
|
93
|
+
Create Oauth Redirect Url
|
|
94
|
+
|
|
95
|
+
Creates a redirect url to redirect the user to when initializing an embedded connector.
|
|
96
|
+
|
|
97
|
+
### Examples
|
|
98
|
+
|
|
99
|
+
```ruby
|
|
100
|
+
require 'time'
|
|
101
|
+
require 'ragie_ruby_sdk'
|
|
102
|
+
# setup authorization
|
|
103
|
+
RagieRubySdk.configure do |config|
|
|
104
|
+
# Configure Bearer authorization: auth
|
|
105
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
api_instance = RagieRubySdk::ConnectionsApi.new
|
|
109
|
+
o_auth_url_create = RagieRubySdk::OAuthUrlCreate.new({redirect_uri: 'redirect_uri_example'}) # OAuthUrlCreate |
|
|
110
|
+
|
|
111
|
+
begin
|
|
112
|
+
# Create Oauth Redirect Url
|
|
113
|
+
result = api_instance.create_oauth_redirect_url_connections_oauth_post(o_auth_url_create)
|
|
114
|
+
p result
|
|
115
|
+
rescue RagieRubySdk::ApiError => e
|
|
116
|
+
puts "Error when calling ConnectionsApi->create_oauth_redirect_url_connections_oauth_post: #{e}"
|
|
117
|
+
end
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
#### Using the create_oauth_redirect_url_connections_oauth_post_with_http_info variant
|
|
121
|
+
|
|
122
|
+
This returns an Array which contains the response data, status code and headers.
|
|
123
|
+
|
|
124
|
+
> <Array(<OAuthUrlResponse>, Integer, Hash)> create_oauth_redirect_url_connections_oauth_post_with_http_info(o_auth_url_create)
|
|
125
|
+
|
|
126
|
+
```ruby
|
|
127
|
+
begin
|
|
128
|
+
# Create Oauth Redirect Url
|
|
129
|
+
data, status_code, headers = api_instance.create_oauth_redirect_url_connections_oauth_post_with_http_info(o_auth_url_create)
|
|
130
|
+
p status_code # => 2xx
|
|
131
|
+
p headers # => { ... }
|
|
132
|
+
p data # => <OAuthUrlResponse>
|
|
133
|
+
rescue RagieRubySdk::ApiError => e
|
|
134
|
+
puts "Error when calling ConnectionsApi->create_oauth_redirect_url_connections_oauth_post_with_http_info: #{e}"
|
|
135
|
+
end
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Parameters
|
|
139
|
+
|
|
140
|
+
| Name | Type | Description | Notes |
|
|
141
|
+
| ---- | ---- | ----------- | ----- |
|
|
142
|
+
| **o_auth_url_create** | [**OAuthUrlCreate**](OAuthUrlCreate.md) | | |
|
|
143
|
+
|
|
144
|
+
### Return type
|
|
145
|
+
|
|
146
|
+
[**OAuthUrlResponse**](OAuthUrlResponse.md)
|
|
147
|
+
|
|
148
|
+
### Authorization
|
|
149
|
+
|
|
150
|
+
[auth](../README.md#auth)
|
|
151
|
+
|
|
152
|
+
### HTTP request headers
|
|
153
|
+
|
|
154
|
+
- **Content-Type**: application/json
|
|
155
|
+
- **Accept**: application/json
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
## delete_connection_connections_connection_id_delete_post
|
|
159
|
+
|
|
160
|
+
> Hash<String, String> delete_connection_connections_connection_id_delete_post(connection_id, delete_connection_payload)
|
|
161
|
+
|
|
162
|
+
Delete Connection
|
|
163
|
+
|
|
164
|
+
Schedules a connection to be deleted. You can choose to keep the files from the connection or delete them all. If you keep the files, they will no longer be associated to the connection. Deleting can take some time, so you will still see files for a bit after this is called.
|
|
165
|
+
|
|
166
|
+
### Examples
|
|
167
|
+
|
|
168
|
+
```ruby
|
|
169
|
+
require 'time'
|
|
170
|
+
require 'ragie_ruby_sdk'
|
|
171
|
+
# setup authorization
|
|
172
|
+
RagieRubySdk.configure do |config|
|
|
173
|
+
# Configure Bearer authorization: auth
|
|
174
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
api_instance = RagieRubySdk::ConnectionsApi.new
|
|
178
|
+
connection_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
179
|
+
delete_connection_payload = RagieRubySdk::DeleteConnectionPayload.new({keep_files: false}) # DeleteConnectionPayload |
|
|
180
|
+
|
|
181
|
+
begin
|
|
182
|
+
# Delete Connection
|
|
183
|
+
result = api_instance.delete_connection_connections_connection_id_delete_post(connection_id, delete_connection_payload)
|
|
184
|
+
p result
|
|
185
|
+
rescue RagieRubySdk::ApiError => e
|
|
186
|
+
puts "Error when calling ConnectionsApi->delete_connection_connections_connection_id_delete_post: #{e}"
|
|
187
|
+
end
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
#### Using the delete_connection_connections_connection_id_delete_post_with_http_info variant
|
|
191
|
+
|
|
192
|
+
This returns an Array which contains the response data, status code and headers.
|
|
193
|
+
|
|
194
|
+
> <Array(Hash<String, String>, Integer, Hash)> delete_connection_connections_connection_id_delete_post_with_http_info(connection_id, delete_connection_payload)
|
|
195
|
+
|
|
196
|
+
```ruby
|
|
197
|
+
begin
|
|
198
|
+
# Delete Connection
|
|
199
|
+
data, status_code, headers = api_instance.delete_connection_connections_connection_id_delete_post_with_http_info(connection_id, delete_connection_payload)
|
|
200
|
+
p status_code # => 2xx
|
|
201
|
+
p headers # => { ... }
|
|
202
|
+
p data # => Hash<String, String>
|
|
203
|
+
rescue RagieRubySdk::ApiError => e
|
|
204
|
+
puts "Error when calling ConnectionsApi->delete_connection_connections_connection_id_delete_post_with_http_info: #{e}"
|
|
205
|
+
end
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Parameters
|
|
209
|
+
|
|
210
|
+
| Name | Type | Description | Notes |
|
|
211
|
+
| ---- | ---- | ----------- | ----- |
|
|
212
|
+
| **connection_id** | **String** | | |
|
|
213
|
+
| **delete_connection_payload** | [**DeleteConnectionPayload**](DeleteConnectionPayload.md) | | |
|
|
214
|
+
|
|
215
|
+
### Return type
|
|
216
|
+
|
|
217
|
+
**Hash<String, String>**
|
|
218
|
+
|
|
219
|
+
### Authorization
|
|
220
|
+
|
|
221
|
+
[auth](../README.md#auth)
|
|
222
|
+
|
|
223
|
+
### HTTP request headers
|
|
224
|
+
|
|
225
|
+
- **Content-Type**: application/json
|
|
226
|
+
- **Accept**: application/json
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
## get_connection_connections_connection_id_get
|
|
230
|
+
|
|
231
|
+
> <Connection> get_connection_connections_connection_id_get(connection_id)
|
|
232
|
+
|
|
233
|
+
Get Connection
|
|
234
|
+
|
|
235
|
+
Get a connection.
|
|
236
|
+
|
|
237
|
+
### Examples
|
|
238
|
+
|
|
239
|
+
```ruby
|
|
240
|
+
require 'time'
|
|
241
|
+
require 'ragie_ruby_sdk'
|
|
242
|
+
# setup authorization
|
|
243
|
+
RagieRubySdk.configure do |config|
|
|
244
|
+
# Configure Bearer authorization: auth
|
|
245
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
api_instance = RagieRubySdk::ConnectionsApi.new
|
|
249
|
+
connection_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
250
|
+
|
|
251
|
+
begin
|
|
252
|
+
# Get Connection
|
|
253
|
+
result = api_instance.get_connection_connections_connection_id_get(connection_id)
|
|
254
|
+
p result
|
|
255
|
+
rescue RagieRubySdk::ApiError => e
|
|
256
|
+
puts "Error when calling ConnectionsApi->get_connection_connections_connection_id_get: #{e}"
|
|
257
|
+
end
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
#### Using the get_connection_connections_connection_id_get_with_http_info variant
|
|
261
|
+
|
|
262
|
+
This returns an Array which contains the response data, status code and headers.
|
|
263
|
+
|
|
264
|
+
> <Array(<Connection>, Integer, Hash)> get_connection_connections_connection_id_get_with_http_info(connection_id)
|
|
265
|
+
|
|
266
|
+
```ruby
|
|
267
|
+
begin
|
|
268
|
+
# Get Connection
|
|
269
|
+
data, status_code, headers = api_instance.get_connection_connections_connection_id_get_with_http_info(connection_id)
|
|
270
|
+
p status_code # => 2xx
|
|
271
|
+
p headers # => { ... }
|
|
272
|
+
p data # => <Connection>
|
|
273
|
+
rescue RagieRubySdk::ApiError => e
|
|
274
|
+
puts "Error when calling ConnectionsApi->get_connection_connections_connection_id_get_with_http_info: #{e}"
|
|
275
|
+
end
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
### Parameters
|
|
279
|
+
|
|
280
|
+
| Name | Type | Description | Notes |
|
|
281
|
+
| ---- | ---- | ----------- | ----- |
|
|
282
|
+
| **connection_id** | **String** | | |
|
|
283
|
+
|
|
284
|
+
### Return type
|
|
285
|
+
|
|
286
|
+
[**Connection**](Connection.md)
|
|
287
|
+
|
|
288
|
+
### Authorization
|
|
289
|
+
|
|
290
|
+
[auth](../README.md#auth)
|
|
291
|
+
|
|
292
|
+
### HTTP request headers
|
|
293
|
+
|
|
294
|
+
- **Content-Type**: Not defined
|
|
295
|
+
- **Accept**: application/json
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
## get_connection_stats_connections_connection_id_stats_get
|
|
299
|
+
|
|
300
|
+
> <ConnectionStats> get_connection_stats_connections_connection_id_stats_get(connection_id)
|
|
301
|
+
|
|
302
|
+
Get Connection Stats
|
|
303
|
+
|
|
304
|
+
Lists connection stats: total documents active documents, total active pages.
|
|
305
|
+
|
|
306
|
+
### Examples
|
|
307
|
+
|
|
308
|
+
```ruby
|
|
309
|
+
require 'time'
|
|
310
|
+
require 'ragie_ruby_sdk'
|
|
311
|
+
# setup authorization
|
|
312
|
+
RagieRubySdk.configure do |config|
|
|
313
|
+
# Configure Bearer authorization: auth
|
|
314
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
api_instance = RagieRubySdk::ConnectionsApi.new
|
|
318
|
+
connection_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
319
|
+
|
|
320
|
+
begin
|
|
321
|
+
# Get Connection Stats
|
|
322
|
+
result = api_instance.get_connection_stats_connections_connection_id_stats_get(connection_id)
|
|
323
|
+
p result
|
|
324
|
+
rescue RagieRubySdk::ApiError => e
|
|
325
|
+
puts "Error when calling ConnectionsApi->get_connection_stats_connections_connection_id_stats_get: #{e}"
|
|
326
|
+
end
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
#### Using the get_connection_stats_connections_connection_id_stats_get_with_http_info variant
|
|
330
|
+
|
|
331
|
+
This returns an Array which contains the response data, status code and headers.
|
|
332
|
+
|
|
333
|
+
> <Array(<ConnectionStats>, Integer, Hash)> get_connection_stats_connections_connection_id_stats_get_with_http_info(connection_id)
|
|
334
|
+
|
|
335
|
+
```ruby
|
|
336
|
+
begin
|
|
337
|
+
# Get Connection Stats
|
|
338
|
+
data, status_code, headers = api_instance.get_connection_stats_connections_connection_id_stats_get_with_http_info(connection_id)
|
|
339
|
+
p status_code # => 2xx
|
|
340
|
+
p headers # => { ... }
|
|
341
|
+
p data # => <ConnectionStats>
|
|
342
|
+
rescue RagieRubySdk::ApiError => e
|
|
343
|
+
puts "Error when calling ConnectionsApi->get_connection_stats_connections_connection_id_stats_get_with_http_info: #{e}"
|
|
344
|
+
end
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
### Parameters
|
|
348
|
+
|
|
349
|
+
| Name | Type | Description | Notes |
|
|
350
|
+
| ---- | ---- | ----------- | ----- |
|
|
351
|
+
| **connection_id** | **String** | | |
|
|
352
|
+
|
|
353
|
+
### Return type
|
|
354
|
+
|
|
355
|
+
[**ConnectionStats**](ConnectionStats.md)
|
|
356
|
+
|
|
357
|
+
### Authorization
|
|
358
|
+
|
|
359
|
+
[auth](../README.md#auth)
|
|
360
|
+
|
|
361
|
+
### HTTP request headers
|
|
362
|
+
|
|
363
|
+
- **Content-Type**: Not defined
|
|
364
|
+
- **Accept**: application/json
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
## list_connection_source_types_connections_source_type_get
|
|
368
|
+
|
|
369
|
+
> <ListConnectorSourceTypeInfo> list_connection_source_types_connections_source_type_get
|
|
370
|
+
|
|
371
|
+
List Connection Source Types
|
|
372
|
+
|
|
373
|
+
List available connection source types like 'google_drive' and 'notion' along with their metadata
|
|
374
|
+
|
|
375
|
+
### Examples
|
|
376
|
+
|
|
377
|
+
```ruby
|
|
378
|
+
require 'time'
|
|
379
|
+
require 'ragie_ruby_sdk'
|
|
380
|
+
# setup authorization
|
|
381
|
+
RagieRubySdk.configure do |config|
|
|
382
|
+
# Configure Bearer authorization: auth
|
|
383
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
api_instance = RagieRubySdk::ConnectionsApi.new
|
|
387
|
+
|
|
388
|
+
begin
|
|
389
|
+
# List Connection Source Types
|
|
390
|
+
result = api_instance.list_connection_source_types_connections_source_type_get
|
|
391
|
+
p result
|
|
392
|
+
rescue RagieRubySdk::ApiError => e
|
|
393
|
+
puts "Error when calling ConnectionsApi->list_connection_source_types_connections_source_type_get: #{e}"
|
|
394
|
+
end
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
#### Using the list_connection_source_types_connections_source_type_get_with_http_info variant
|
|
398
|
+
|
|
399
|
+
This returns an Array which contains the response data, status code and headers.
|
|
400
|
+
|
|
401
|
+
> <Array(<ListConnectorSourceTypeInfo>, Integer, Hash)> list_connection_source_types_connections_source_type_get_with_http_info
|
|
402
|
+
|
|
403
|
+
```ruby
|
|
404
|
+
begin
|
|
405
|
+
# List Connection Source Types
|
|
406
|
+
data, status_code, headers = api_instance.list_connection_source_types_connections_source_type_get_with_http_info
|
|
407
|
+
p status_code # => 2xx
|
|
408
|
+
p headers # => { ... }
|
|
409
|
+
p data # => <ListConnectorSourceTypeInfo>
|
|
410
|
+
rescue RagieRubySdk::ApiError => e
|
|
411
|
+
puts "Error when calling ConnectionsApi->list_connection_source_types_connections_source_type_get_with_http_info: #{e}"
|
|
412
|
+
end
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
### Parameters
|
|
416
|
+
|
|
417
|
+
This endpoint does not need any parameter.
|
|
418
|
+
|
|
419
|
+
### Return type
|
|
420
|
+
|
|
421
|
+
[**ListConnectorSourceTypeInfo**](ListConnectorSourceTypeInfo.md)
|
|
422
|
+
|
|
423
|
+
### Authorization
|
|
424
|
+
|
|
425
|
+
[auth](../README.md#auth)
|
|
426
|
+
|
|
427
|
+
### HTTP request headers
|
|
428
|
+
|
|
429
|
+
- **Content-Type**: Not defined
|
|
430
|
+
- **Accept**: application/json
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
## list_connections_connections_get
|
|
434
|
+
|
|
435
|
+
> <ConnectionList> list_connections_connections_get(opts)
|
|
436
|
+
|
|
437
|
+
List Connections
|
|
438
|
+
|
|
439
|
+
List all connections sorted by created_at in descending order. Results are paginated with a max limit of 100. When more documents are available, a `cursor` will be provided. Use the `cursor` parameter to retrieve the subsequent page.
|
|
440
|
+
|
|
441
|
+
### Examples
|
|
442
|
+
|
|
443
|
+
```ruby
|
|
444
|
+
require 'time'
|
|
445
|
+
require 'ragie_ruby_sdk'
|
|
446
|
+
# setup authorization
|
|
447
|
+
RagieRubySdk.configure do |config|
|
|
448
|
+
# Configure Bearer authorization: auth
|
|
449
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
api_instance = RagieRubySdk::ConnectionsApi.new
|
|
453
|
+
opts = {
|
|
454
|
+
cursor: 'cursor_example', # String | An opaque cursor for pagination
|
|
455
|
+
page_size: 56, # Integer | The number of items per page (must be greater than 0 and less than or equal to 100)
|
|
456
|
+
filter: 'filter_example', # String | The metadata search filter. Returns only items which match the filter. The following filter operators are supported: $eq - Equal to (number, string, boolean), $ne - Not equal to (number, string, boolean), $gt - Greater than (number), $gte - Greater than or equal to (number), $lt - Less than (number), $lte - Less than or equal to (number), $in - In array (string or number), $nin - Not in array (string or number). The operators can be combined with AND and OR. Read [Metadata & Filters guide](https://docs.ragie.ai/docs/metadata-filters) for more details and examples.
|
|
457
|
+
partition: 'partition_example' # String | An optional partition to scope the request to. If omitted, the request will be scoped to the default partition.
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
begin
|
|
461
|
+
# List Connections
|
|
462
|
+
result = api_instance.list_connections_connections_get(opts)
|
|
463
|
+
p result
|
|
464
|
+
rescue RagieRubySdk::ApiError => e
|
|
465
|
+
puts "Error when calling ConnectionsApi->list_connections_connections_get: #{e}"
|
|
466
|
+
end
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
#### Using the list_connections_connections_get_with_http_info variant
|
|
470
|
+
|
|
471
|
+
This returns an Array which contains the response data, status code and headers.
|
|
472
|
+
|
|
473
|
+
> <Array(<ConnectionList>, Integer, Hash)> list_connections_connections_get_with_http_info(opts)
|
|
474
|
+
|
|
475
|
+
```ruby
|
|
476
|
+
begin
|
|
477
|
+
# List Connections
|
|
478
|
+
data, status_code, headers = api_instance.list_connections_connections_get_with_http_info(opts)
|
|
479
|
+
p status_code # => 2xx
|
|
480
|
+
p headers # => { ... }
|
|
481
|
+
p data # => <ConnectionList>
|
|
482
|
+
rescue RagieRubySdk::ApiError => e
|
|
483
|
+
puts "Error when calling ConnectionsApi->list_connections_connections_get_with_http_info: #{e}"
|
|
484
|
+
end
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
### Parameters
|
|
488
|
+
|
|
489
|
+
| Name | Type | Description | Notes |
|
|
490
|
+
| ---- | ---- | ----------- | ----- |
|
|
491
|
+
| **cursor** | **String** | An opaque cursor for pagination | [optional] |
|
|
492
|
+
| **page_size** | **Integer** | The number of items per page (must be greater than 0 and less than or equal to 100) | [optional][default to 10] |
|
|
493
|
+
| **filter** | **String** | The metadata search filter. Returns only items which match the filter. The following filter operators are supported: $eq - Equal to (number, string, boolean), $ne - Not equal to (number, string, boolean), $gt - Greater than (number), $gte - Greater than or equal to (number), $lt - Less than (number), $lte - Less than or equal to (number), $in - In array (string or number), $nin - Not in array (string or number). The operators can be combined with AND and OR. Read [Metadata & Filters guide](https://docs.ragie.ai/docs/metadata-filters) for more details and examples. | [optional] |
|
|
494
|
+
| **partition** | **String** | An optional partition to scope the request to. If omitted, the request will be scoped to the default partition. | [optional] |
|
|
495
|
+
|
|
496
|
+
### Return type
|
|
497
|
+
|
|
498
|
+
[**ConnectionList**](ConnectionList.md)
|
|
499
|
+
|
|
500
|
+
### Authorization
|
|
501
|
+
|
|
502
|
+
[auth](../README.md#auth)
|
|
503
|
+
|
|
504
|
+
### HTTP request headers
|
|
505
|
+
|
|
506
|
+
- **Content-Type**: Not defined
|
|
507
|
+
- **Accept**: application/json
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
## set_connection_enabled_connections_connection_id_enabled_put
|
|
511
|
+
|
|
512
|
+
> <Connection> set_connection_enabled_connections_connection_id_enabled_put(connection_id, set_connection_enabled_payload)
|
|
513
|
+
|
|
514
|
+
Set Connection Enabled
|
|
515
|
+
|
|
516
|
+
Enable or disable the connection. A disabled connection won't sync.
|
|
517
|
+
|
|
518
|
+
### Examples
|
|
519
|
+
|
|
520
|
+
```ruby
|
|
521
|
+
require 'time'
|
|
522
|
+
require 'ragie_ruby_sdk'
|
|
523
|
+
# setup authorization
|
|
524
|
+
RagieRubySdk.configure do |config|
|
|
525
|
+
# Configure Bearer authorization: auth
|
|
526
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
api_instance = RagieRubySdk::ConnectionsApi.new
|
|
530
|
+
connection_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
531
|
+
set_connection_enabled_payload = RagieRubySdk::SetConnectionEnabledPayload.new({enabled: false}) # SetConnectionEnabledPayload |
|
|
532
|
+
|
|
533
|
+
begin
|
|
534
|
+
# Set Connection Enabled
|
|
535
|
+
result = api_instance.set_connection_enabled_connections_connection_id_enabled_put(connection_id, set_connection_enabled_payload)
|
|
536
|
+
p result
|
|
537
|
+
rescue RagieRubySdk::ApiError => e
|
|
538
|
+
puts "Error when calling ConnectionsApi->set_connection_enabled_connections_connection_id_enabled_put: #{e}"
|
|
539
|
+
end
|
|
540
|
+
```
|
|
541
|
+
|
|
542
|
+
#### Using the set_connection_enabled_connections_connection_id_enabled_put_with_http_info variant
|
|
543
|
+
|
|
544
|
+
This returns an Array which contains the response data, status code and headers.
|
|
545
|
+
|
|
546
|
+
> <Array(<Connection>, Integer, Hash)> set_connection_enabled_connections_connection_id_enabled_put_with_http_info(connection_id, set_connection_enabled_payload)
|
|
547
|
+
|
|
548
|
+
```ruby
|
|
549
|
+
begin
|
|
550
|
+
# Set Connection Enabled
|
|
551
|
+
data, status_code, headers = api_instance.set_connection_enabled_connections_connection_id_enabled_put_with_http_info(connection_id, set_connection_enabled_payload)
|
|
552
|
+
p status_code # => 2xx
|
|
553
|
+
p headers # => { ... }
|
|
554
|
+
p data # => <Connection>
|
|
555
|
+
rescue RagieRubySdk::ApiError => e
|
|
556
|
+
puts "Error when calling ConnectionsApi->set_connection_enabled_connections_connection_id_enabled_put_with_http_info: #{e}"
|
|
557
|
+
end
|
|
558
|
+
```
|
|
559
|
+
|
|
560
|
+
### Parameters
|
|
561
|
+
|
|
562
|
+
| Name | Type | Description | Notes |
|
|
563
|
+
| ---- | ---- | ----------- | ----- |
|
|
564
|
+
| **connection_id** | **String** | | |
|
|
565
|
+
| **set_connection_enabled_payload** | [**SetConnectionEnabledPayload**](SetConnectionEnabledPayload.md) | | |
|
|
566
|
+
|
|
567
|
+
### Return type
|
|
568
|
+
|
|
569
|
+
[**Connection**](Connection.md)
|
|
570
|
+
|
|
571
|
+
### Authorization
|
|
572
|
+
|
|
573
|
+
[auth](../README.md#auth)
|
|
574
|
+
|
|
575
|
+
### HTTP request headers
|
|
576
|
+
|
|
577
|
+
- **Content-Type**: application/json
|
|
578
|
+
- **Accept**: application/json
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
## set_connection_limits_connections_connection_id_limit_put
|
|
582
|
+
|
|
583
|
+
> <Connection> set_connection_limits_connections_connection_id_limit_put(connection_id, connection_limit_params)
|
|
584
|
+
|
|
585
|
+
Set Connection Limits
|
|
586
|
+
|
|
587
|
+
Sets limits on a connection. Limits can be set on the total number of pages a connection can sync. When the limit is reached, the connection will be disabled. Limit may be removed by setting it to `null`.
|
|
588
|
+
|
|
589
|
+
### Examples
|
|
590
|
+
|
|
591
|
+
```ruby
|
|
592
|
+
require 'time'
|
|
593
|
+
require 'ragie_ruby_sdk'
|
|
594
|
+
# setup authorization
|
|
595
|
+
RagieRubySdk.configure do |config|
|
|
596
|
+
# Configure Bearer authorization: auth
|
|
597
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
598
|
+
end
|
|
599
|
+
|
|
600
|
+
api_instance = RagieRubySdk::ConnectionsApi.new
|
|
601
|
+
connection_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
602
|
+
connection_limit_params = RagieRubySdk::ConnectionLimitParams.new # ConnectionLimitParams |
|
|
603
|
+
|
|
604
|
+
begin
|
|
605
|
+
# Set Connection Limits
|
|
606
|
+
result = api_instance.set_connection_limits_connections_connection_id_limit_put(connection_id, connection_limit_params)
|
|
607
|
+
p result
|
|
608
|
+
rescue RagieRubySdk::ApiError => e
|
|
609
|
+
puts "Error when calling ConnectionsApi->set_connection_limits_connections_connection_id_limit_put: #{e}"
|
|
610
|
+
end
|
|
611
|
+
```
|
|
612
|
+
|
|
613
|
+
#### Using the set_connection_limits_connections_connection_id_limit_put_with_http_info variant
|
|
614
|
+
|
|
615
|
+
This returns an Array which contains the response data, status code and headers.
|
|
616
|
+
|
|
617
|
+
> <Array(<Connection>, Integer, Hash)> set_connection_limits_connections_connection_id_limit_put_with_http_info(connection_id, connection_limit_params)
|
|
618
|
+
|
|
619
|
+
```ruby
|
|
620
|
+
begin
|
|
621
|
+
# Set Connection Limits
|
|
622
|
+
data, status_code, headers = api_instance.set_connection_limits_connections_connection_id_limit_put_with_http_info(connection_id, connection_limit_params)
|
|
623
|
+
p status_code # => 2xx
|
|
624
|
+
p headers # => { ... }
|
|
625
|
+
p data # => <Connection>
|
|
626
|
+
rescue RagieRubySdk::ApiError => e
|
|
627
|
+
puts "Error when calling ConnectionsApi->set_connection_limits_connections_connection_id_limit_put_with_http_info: #{e}"
|
|
628
|
+
end
|
|
629
|
+
```
|
|
630
|
+
|
|
631
|
+
### Parameters
|
|
632
|
+
|
|
633
|
+
| Name | Type | Description | Notes |
|
|
634
|
+
| ---- | ---- | ----------- | ----- |
|
|
635
|
+
| **connection_id** | **String** | | |
|
|
636
|
+
| **connection_limit_params** | [**ConnectionLimitParams**](ConnectionLimitParams.md) | | |
|
|
637
|
+
|
|
638
|
+
### Return type
|
|
639
|
+
|
|
640
|
+
[**Connection**](Connection.md)
|
|
641
|
+
|
|
642
|
+
### Authorization
|
|
643
|
+
|
|
644
|
+
[auth](../README.md#auth)
|
|
645
|
+
|
|
646
|
+
### HTTP request headers
|
|
647
|
+
|
|
648
|
+
- **Content-Type**: application/json
|
|
649
|
+
- **Accept**: application/json
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
## sync_connection
|
|
653
|
+
|
|
654
|
+
> <ResponseOK> sync_connection(connection_id)
|
|
655
|
+
|
|
656
|
+
Sync Connection
|
|
657
|
+
|
|
658
|
+
Schedules a connector to sync as soon as possible.
|
|
659
|
+
|
|
660
|
+
### Examples
|
|
661
|
+
|
|
662
|
+
```ruby
|
|
663
|
+
require 'time'
|
|
664
|
+
require 'ragie_ruby_sdk'
|
|
665
|
+
# setup authorization
|
|
666
|
+
RagieRubySdk.configure do |config|
|
|
667
|
+
# Configure Bearer authorization: auth
|
|
668
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
669
|
+
end
|
|
670
|
+
|
|
671
|
+
api_instance = RagieRubySdk::ConnectionsApi.new
|
|
672
|
+
connection_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
673
|
+
|
|
674
|
+
begin
|
|
675
|
+
# Sync Connection
|
|
676
|
+
result = api_instance.sync_connection(connection_id)
|
|
677
|
+
p result
|
|
678
|
+
rescue RagieRubySdk::ApiError => e
|
|
679
|
+
puts "Error when calling ConnectionsApi->sync_connection: #{e}"
|
|
680
|
+
end
|
|
681
|
+
```
|
|
682
|
+
|
|
683
|
+
#### Using the sync_connection_with_http_info variant
|
|
684
|
+
|
|
685
|
+
This returns an Array which contains the response data, status code and headers.
|
|
686
|
+
|
|
687
|
+
> <Array(<ResponseOK>, Integer, Hash)> sync_connection_with_http_info(connection_id)
|
|
688
|
+
|
|
689
|
+
```ruby
|
|
690
|
+
begin
|
|
691
|
+
# Sync Connection
|
|
692
|
+
data, status_code, headers = api_instance.sync_connection_with_http_info(connection_id)
|
|
693
|
+
p status_code # => 2xx
|
|
694
|
+
p headers # => { ... }
|
|
695
|
+
p data # => <ResponseOK>
|
|
696
|
+
rescue RagieRubySdk::ApiError => e
|
|
697
|
+
puts "Error when calling ConnectionsApi->sync_connection_with_http_info: #{e}"
|
|
698
|
+
end
|
|
699
|
+
```
|
|
700
|
+
|
|
701
|
+
### Parameters
|
|
702
|
+
|
|
703
|
+
| Name | Type | Description | Notes |
|
|
704
|
+
| ---- | ---- | ----------- | ----- |
|
|
705
|
+
| **connection_id** | **String** | | |
|
|
706
|
+
|
|
707
|
+
### Return type
|
|
708
|
+
|
|
709
|
+
[**ResponseOK**](ResponseOK.md)
|
|
710
|
+
|
|
711
|
+
### Authorization
|
|
712
|
+
|
|
713
|
+
[auth](../README.md#auth)
|
|
714
|
+
|
|
715
|
+
### HTTP request headers
|
|
716
|
+
|
|
717
|
+
- **Content-Type**: Not defined
|
|
718
|
+
- **Accept**: application/json
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
## update_connection_connections_connection_id_put
|
|
722
|
+
|
|
723
|
+
> <Connection> update_connection_connections_connection_id_put(connection_id, connection_base)
|
|
724
|
+
|
|
725
|
+
Update Connection
|
|
726
|
+
|
|
727
|
+
Updates a connections metadata or mode. These changes will be seen after the next sync.
|
|
728
|
+
|
|
729
|
+
### Examples
|
|
730
|
+
|
|
731
|
+
```ruby
|
|
732
|
+
require 'time'
|
|
733
|
+
require 'ragie_ruby_sdk'
|
|
734
|
+
# setup authorization
|
|
735
|
+
RagieRubySdk.configure do |config|
|
|
736
|
+
# Configure Bearer authorization: auth
|
|
737
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
api_instance = RagieRubySdk::ConnectionsApi.new
|
|
741
|
+
connection_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
742
|
+
connection_base = RagieRubySdk::ConnectionBase.new({partition_strategy: RagieRubySdk::PartitionStrategy.new}) # ConnectionBase |
|
|
743
|
+
|
|
744
|
+
begin
|
|
745
|
+
# Update Connection
|
|
746
|
+
result = api_instance.update_connection_connections_connection_id_put(connection_id, connection_base)
|
|
747
|
+
p result
|
|
748
|
+
rescue RagieRubySdk::ApiError => e
|
|
749
|
+
puts "Error when calling ConnectionsApi->update_connection_connections_connection_id_put: #{e}"
|
|
750
|
+
end
|
|
751
|
+
```
|
|
752
|
+
|
|
753
|
+
#### Using the update_connection_connections_connection_id_put_with_http_info variant
|
|
754
|
+
|
|
755
|
+
This returns an Array which contains the response data, status code and headers.
|
|
756
|
+
|
|
757
|
+
> <Array(<Connection>, Integer, Hash)> update_connection_connections_connection_id_put_with_http_info(connection_id, connection_base)
|
|
758
|
+
|
|
759
|
+
```ruby
|
|
760
|
+
begin
|
|
761
|
+
# Update Connection
|
|
762
|
+
data, status_code, headers = api_instance.update_connection_connections_connection_id_put_with_http_info(connection_id, connection_base)
|
|
763
|
+
p status_code # => 2xx
|
|
764
|
+
p headers # => { ... }
|
|
765
|
+
p data # => <Connection>
|
|
766
|
+
rescue RagieRubySdk::ApiError => e
|
|
767
|
+
puts "Error when calling ConnectionsApi->update_connection_connections_connection_id_put_with_http_info: #{e}"
|
|
768
|
+
end
|
|
769
|
+
```
|
|
770
|
+
|
|
771
|
+
### Parameters
|
|
772
|
+
|
|
773
|
+
| Name | Type | Description | Notes |
|
|
774
|
+
| ---- | ---- | ----------- | ----- |
|
|
775
|
+
| **connection_id** | **String** | | |
|
|
776
|
+
| **connection_base** | [**ConnectionBase**](ConnectionBase.md) | | |
|
|
777
|
+
|
|
778
|
+
### Return type
|
|
779
|
+
|
|
780
|
+
[**Connection**](Connection.md)
|
|
781
|
+
|
|
782
|
+
### Authorization
|
|
783
|
+
|
|
784
|
+
[auth](../README.md#auth)
|
|
785
|
+
|
|
786
|
+
### HTTP request headers
|
|
787
|
+
|
|
788
|
+
- **Content-Type**: application/json
|
|
789
|
+
- **Accept**: application/json
|
|
790
|
+
|