files.com 1.1.669 → 1.1.671
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 +4 -4
- data/README.md +1 -0
- data/_VERSION +1 -1
- data/docs/account.md +155 -0
- data/docs/action_log.md +21 -1
- data/docs/action_notification_export_result.md +17 -0
- data/docs/action_webhook_failure.md +28 -0
- data/docs/agent_proxy_identity.md +49 -0
- data/docs/agent_proxy_identity_endpoint.md +11 -0
- data/docs/agent_proxy_identity_result.md +24 -0
- data/docs/agent_v2_auth.md +17 -0
- data/docs/ai_assistant_personality.md +14 -0
- data/docs/ai_task.md +14 -0
- data/docs/announcement.md +57 -0
- data/docs/api_key.md +27 -1
- data/docs/api_request_log.md +21 -1
- data/docs/app.md +15 -0
- data/docs/as2_incoming_message.md +18 -0
- data/docs/as2_outgoing_message.md +18 -0
- data/docs/as2_partner.md +14 -0
- data/docs/as2_station.md +14 -0
- data/docs/automation.md +22 -1
- data/docs/automation_log.md +21 -1
- data/docs/automation_run.md +19 -0
- data/docs/bandwidth_snapshot.md +18 -0
- data/docs/behavior.md +14 -0
- data/docs/blog_post.md +57 -0
- data/docs/bundle.md +50 -1
- data/docs/bundle_action.md +25 -0
- data/docs/bundle_download.md +23 -0
- data/docs/bundle_notification.md +19 -0
- data/docs/bundle_recipient.md +21 -0
- data/docs/bundle_recipient_registration.md +39 -0
- data/docs/bundle_registration.md +61 -0
- data/docs/certificate.md +258 -0
- data/docs/chat_session.md +14 -0
- data/docs/child_site.md +583 -0
- data/docs/child_site_management_policy.md +9 -0
- data/docs/clickwrap.md +13 -0
- data/docs/clickwrap_acceptance.md +30 -0
- data/docs/client_log.md +17 -0
- data/docs/crash_report.md +50 -0
- data/docs/custom_domain.md +13 -0
- data/docs/custom_domain_for_proxy.md +23 -0
- data/docs/desktop_configuration_profile.md +14 -0
- data/docs/dns_record.md +9 -0
- data/docs/email_incoming_message.md +19 -0
- data/docs/email_log.md +20 -1
- data/docs/email_preference.md +108 -0
- data/docs/email_preference_bundle_notification.md +15 -0
- data/docs/email_preference_notification.md +17 -0
- data/docs/event_channel.md +14 -0
- data/docs/event_delivery_attempt.md +14 -0
- data/docs/event_record.md +19 -0
- data/docs/event_subscription.md +14 -0
- data/docs/event_target.md +14 -0
- data/docs/exavault_api_request_log.md +21 -1
- data/docs/expectation.md +14 -0
- data/docs/expectation_evaluation.md +14 -0
- data/docs/expectation_incident.md +14 -0
- data/docs/export.md +90 -0
- data/docs/external_event.md +18 -0
- data/docs/file.md +90 -2
- data/docs/file_migration.md +32 -0
- data/docs/file_migration_log.md +20 -1
- data/docs/file_upload_part.md +3 -1
- data/docs/folder.md +20 -0
- data/docs/form_field_set.md +15 -0
- data/docs/front_end_server.md +111 -0
- data/docs/frontend_metric.md +34 -0
- data/docs/ftp_action_log.md +21 -1
- data/docs/gpg_key.md +21 -0
- data/docs/group.md +19 -0
- data/docs/group_user.md +22 -2
- data/docs/history.md +85 -0
- data/docs/history_export_result.md +17 -0
- data/docs/holiday_region.md +9 -0
- data/docs/inbound_s3_log.md +21 -1
- data/docs/inbox.md +102 -0
- data/docs/inbox_recipient.md +19 -0
- data/docs/inbox_recipient_registration.md +35 -0
- data/docs/inbox_registration.md +57 -0
- data/docs/inbox_upload.md +18 -0
- data/docs/invoice.md +9 -0
- data/docs/ip.md +63 -0
- data/docs/ip_abuse_entry.md +47 -0
- data/docs/ip_address.md +59 -0
- data/docs/key_lifecycle_rule.md +14 -0
- data/docs/label.md +9 -0
- data/docs/lead.md +161 -0
- data/docs/lock.md +15 -0
- data/docs/message.md +17 -0
- data/docs/message_comment.md +18 -0
- data/docs/message_comment_reaction.md +18 -0
- data/docs/message_reaction.md +17 -0
- data/docs/metadata_category.md +13 -0
- data/docs/monitoring_stat.md +38 -0
- data/docs/monitoring_stats.md +15 -0
- data/docs/mover_package.md +68 -0
- data/docs/notification.md +20 -0
- data/docs/nps_response.md +75 -0
- data/docs/oauth_redirect.md +11 -0
- data/docs/outbound_connection_log.md +21 -1
- data/docs/paired_api_key.md +19 -0
- data/docs/partner.md +14 -0
- data/docs/partner_channel.md +14 -0
- data/docs/partner_site_request.md +14 -0
- data/docs/payment.md +9 -0
- data/docs/paypal_express_info.md +31 -0
- data/docs/paypal_express_url.md +11 -0
- data/docs/pending_work_event.md +18 -0
- data/docs/permission.md +22 -0
- data/docs/plan.md +107 -0
- data/docs/preview.md +57 -0
- data/docs/project.md +9 -0
- data/docs/public_hosting_request_log.md +21 -1
- data/docs/public_hosting_session_pairing.md +15 -0
- data/docs/public_inbox.md +121 -0
- data/docs/public_key.md +21 -0
- data/docs/public_url.md +59 -0
- data/docs/regional_migration.md +0 -0
- data/docs/release.md +83 -0
- data/docs/release_package.md +19 -0
- data/docs/remote_bandwidth_snapshot.md +18 -0
- data/docs/remote_mount_backend.md +13 -0
- data/docs/remote_server.md +233 -0
- data/docs/remote_server_credential.md +15 -0
- data/docs/request.md +17 -0
- data/docs/restore.md +14 -0
- data/docs/revision.md +40 -0
- data/docs/safe_plan.md +0 -0
- data/docs/scheduled_export.md +15 -0
- data/docs/scim_log.md +13 -0
- data/docs/session.md +232 -1
- data/docs/session_available_site.md +26 -0
- data/docs/setting.md +33 -0
- data/docs/settings.md +498 -0
- data/docs/settings_change.md +16 -0
- data/docs/sftp_action_log.md +21 -1
- data/docs/sftp_host_key.md +9 -0
- data/docs/share_group.md +15 -0
- data/docs/siem_http_destination.md +9 -0
- data/docs/siem_http_destination_event.md +18 -0
- data/docs/site.md +179 -0
- data/docs/site_subdomain_redirect.md +13 -0
- data/docs/snapshot.md +9 -0
- data/docs/ssl_certificate.md +37 -0
- data/docs/sso_event.md +19 -0
- data/docs/sso_strategy.md +406 -0
- data/docs/staging_site.md +591 -0
- data/docs/support_request.md +126 -0
- data/docs/sync.md +14 -0
- data/docs/sync_api_usage_snapshot.md +23 -0
- data/docs/sync_api_usage_snapshot_report.md +71 -0
- data/docs/sync_bandwidth_snapshot.md +48 -0
- data/docs/sync_log.md +20 -1
- data/docs/sync_run.md +21 -0
- data/docs/two_factor_authentication_method.md +169 -0
- data/docs/usage_daily_snapshot.md +18 -0
- data/docs/usage_snapshot.md +9 -0
- data/docs/user.md +49 -2
- data/docs/user_cipher_use.md +21 -0
- data/docs/user_lifecycle_rule.md +14 -0
- data/docs/user_request.md +9 -0
- data/docs/user_security_event.md +18 -0
- data/docs/user_sftp_client_use.md +15 -0
- data/docs/warning.md +36 -0
- data/docs/web_dav_action_log.md +21 -1
- data/docs/webauthn_sign_request.md +13 -0
- data/docs/workspace.md +15 -0
- data/docs/zip_download.md +32 -0
- data/docs/zip_download_file.md +45 -0
- data/docs/zip_download_files.md +23 -0
- data/lib/files.com/errors.rb +1 -0
- data/lib/files.com/models/account.rb +346 -0
- data/lib/files.com/models/action_log.rb +24 -0
- data/lib/files.com/models/action_notification_export_result.rb +12 -0
- data/lib/files.com/models/action_webhook_failure.rb +34 -0
- data/lib/files.com/models/agent_proxy_identity.rb +47 -0
- data/lib/files.com/models/agent_proxy_identity_endpoint.rb +17 -0
- data/lib/files.com/models/agent_proxy_identity_result.rb +27 -0
- data/lib/files.com/models/agent_v2_auth.rb +32 -0
- data/lib/files.com/models/ai_assistant_personality.rb +11 -0
- data/lib/files.com/models/ai_task.rb +11 -0
- data/lib/files.com/models/announcement.rb +89 -0
- data/lib/files.com/models/api_key.rb +39 -5
- data/lib/files.com/models/api_request_log.rb +24 -0
- data/lib/files.com/models/app.rb +13 -0
- data/lib/files.com/models/as2_incoming_message.rb +19 -0
- data/lib/files.com/models/as2_outgoing_message.rb +19 -0
- data/lib/files.com/models/as2_partner.rb +11 -0
- data/lib/files.com/models/as2_station.rb +11 -0
- data/lib/files.com/models/automation.rb +30 -0
- data/lib/files.com/models/automation_log.rb +24 -0
- data/lib/files.com/models/automation_run.rb +16 -0
- data/lib/files.com/models/bandwidth_snapshot.rb +19 -0
- data/lib/files.com/models/behavior.rb +11 -0
- data/lib/files.com/models/blog_post.rb +84 -0
- data/lib/files.com/models/bundle.rb +52 -0
- data/lib/files.com/models/bundle_action.rb +25 -0
- data/lib/files.com/models/bundle_download.rb +23 -0
- data/lib/files.com/models/bundle_notification.rb +15 -0
- data/lib/files.com/models/bundle_recipient.rb +27 -0
- data/lib/files.com/models/bundle_recipient_registration.rb +105 -0
- data/lib/files.com/models/bundle_registration.rb +125 -0
- data/lib/files.com/models/certificate.rb +455 -0
- data/lib/files.com/models/chat_session.rb +11 -0
- data/lib/files.com/models/child_site.rb +1756 -0
- data/lib/files.com/models/child_site_management_policy.rb +5 -0
- data/lib/files.com/models/clickwrap.rb +9 -0
- data/lib/files.com/models/clickwrap_acceptance.rb +56 -0
- data/lib/files.com/models/client_log.rb +25 -0
- data/lib/files.com/models/crash_report.rb +151 -0
- data/lib/files.com/models/custom_domain.rb +9 -0
- data/lib/files.com/models/custom_domain_for_proxy.rb +47 -0
- data/lib/files.com/models/desktop_configuration_profile.rb +11 -0
- data/lib/files.com/models/dns_record.rb +5 -0
- data/lib/files.com/models/email_incoming_message.rb +21 -0
- data/lib/files.com/models/email_log.rb +22 -0
- data/lib/files.com/models/email_preference.rb +124 -0
- data/lib/files.com/models/email_preference_bundle_notification.rb +27 -0
- data/lib/files.com/models/email_preference_notification.rb +32 -0
- data/lib/files.com/models/event_channel.rb +11 -0
- data/lib/files.com/models/event_delivery_attempt.rb +11 -0
- data/lib/files.com/models/event_record.rb +21 -0
- data/lib/files.com/models/event_subscription.rb +11 -0
- data/lib/files.com/models/event_target.rb +11 -0
- data/lib/files.com/models/exavault_api_request_log.rb +24 -0
- data/lib/files.com/models/expectation.rb +11 -0
- data/lib/files.com/models/expectation_evaluation.rb +11 -0
- data/lib/files.com/models/expectation_incident.rb +11 -0
- data/lib/files.com/models/export.rb +153 -0
- data/lib/files.com/models/external_event.rb +19 -0
- data/lib/files.com/models/file.rb +207 -0
- data/lib/files.com/models/file_migration.rb +27 -0
- data/lib/files.com/models/file_migration_log.rb +22 -0
- data/lib/files.com/models/file_upload_part.rb +5 -0
- data/lib/files.com/models/folder.rb +69 -0
- data/lib/files.com/models/form_field_set.rb +9 -0
- data/lib/files.com/models/front_end_server.rb +335 -0
- data/lib/files.com/models/frontend_metric.rb +65 -0
- data/lib/files.com/models/ftp_action_log.rb +24 -0
- data/lib/files.com/models/gpg_key.rb +21 -0
- data/lib/files.com/models/group.rb +16 -0
- data/lib/files.com/models/group_user.rb +21 -1
- data/lib/files.com/models/history.rb +94 -0
- data/lib/files.com/models/history_export_result.rb +12 -0
- data/lib/files.com/models/holiday_region.rb +5 -0
- data/lib/files.com/models/inbound_s3_log.rb +24 -0
- data/lib/files.com/models/inbox.rb +123 -0
- data/lib/files.com/models/inbox_recipient.rb +25 -0
- data/lib/files.com/models/inbox_recipient_registration.rb +87 -0
- data/lib/files.com/models/inbox_registration.rb +121 -0
- data/lib/files.com/models/inbox_upload.rb +19 -0
- data/lib/files.com/models/invoice.rb +5 -0
- data/lib/files.com/models/ip.rb +82 -0
- data/lib/files.com/models/ip_abuse_entry.rb +96 -0
- data/lib/files.com/models/ip_address.rb +37 -0
- data/lib/files.com/models/key_lifecycle_rule.rb +11 -0
- data/lib/files.com/models/label.rb +22 -0
- data/lib/files.com/models/lead.rb +434 -0
- data/lib/files.com/models/lock.rb +27 -0
- data/lib/files.com/models/message.rb +12 -0
- data/lib/files.com/models/message_comment.rb +14 -0
- data/lib/files.com/models/message_comment_reaction.rb +14 -0
- data/lib/files.com/models/message_reaction.rb +12 -0
- data/lib/files.com/models/metadata_category.rb +9 -0
- data/lib/files.com/models/monitoring_stat.rb +43 -0
- data/lib/files.com/models/monitoring_stats.rb +22 -0
- data/lib/files.com/models/mover_package.rb +80 -0
- data/lib/files.com/models/notification.rb +18 -0
- data/lib/files.com/models/nps_response.rb +128 -0
- data/lib/files.com/models/oauth_redirect.rb +17 -0
- data/lib/files.com/models/outbound_connection_log.rb +24 -0
- data/lib/files.com/models/paired_api_key.rb +37 -0
- data/lib/files.com/models/partner.rb +11 -0
- data/lib/files.com/models/partner_channel.rb +11 -0
- data/lib/files.com/models/partner_site_request.rb +11 -0
- data/lib/files.com/models/payment.rb +5 -0
- data/lib/files.com/models/paypal_express_info.rb +67 -0
- data/lib/files.com/models/paypal_express_url.rb +17 -0
- data/lib/files.com/models/pending_work_event.rb +19 -0
- data/lib/files.com/models/permission.rb +22 -0
- data/lib/files.com/models/plan.rb +209 -0
- data/lib/files.com/models/preview.rb +57 -0
- data/lib/files.com/models/project.rb +5 -0
- data/lib/files.com/models/public_hosting_request_log.rb +24 -0
- data/lib/files.com/models/public_hosting_session_pairing.rb +27 -0
- data/lib/files.com/models/public_inbox.rb +142 -0
- data/lib/files.com/models/public_key.rb +21 -0
- data/lib/files.com/models/public_url.rb +177 -0
- data/lib/files.com/models/regional_migration.rb +12 -0
- data/lib/files.com/models/release.rb +153 -0
- data/lib/files.com/models/release_package.rb +37 -0
- data/lib/files.com/models/remote_bandwidth_snapshot.rb +19 -0
- data/lib/files.com/models/remote_mount_backend.rb +9 -0
- data/lib/files.com/models/remote_server.rb +297 -0
- data/lib/files.com/models/remote_server_credential.rb +13 -0
- data/lib/files.com/models/request.rb +12 -0
- data/lib/files.com/models/restore.rb +11 -0
- data/lib/files.com/models/revision.rb +53 -0
- data/lib/files.com/models/safe_plan.rb +12 -0
- data/lib/files.com/models/scheduled_export.rb +13 -0
- data/lib/files.com/models/scim_log.rb +9 -0
- data/lib/files.com/models/session.rb +493 -0
- data/lib/files.com/models/session_available_site.rb +47 -0
- data/lib/files.com/models/setting.rb +36 -0
- data/lib/files.com/models/settings.rb +1072 -0
- data/lib/files.com/models/settings_change.rb +16 -0
- data/lib/files.com/models/sftp_action_log.rb +24 -0
- data/lib/files.com/models/sftp_host_key.rb +5 -0
- data/lib/files.com/models/share_group.rb +9 -0
- data/lib/files.com/models/siem_http_destination.rb +5 -0
- data/lib/files.com/models/siem_http_destination_event.rb +19 -0
- data/lib/files.com/models/site.rb +1021 -0
- data/lib/files.com/models/site_subdomain_redirect.rb +9 -0
- data/lib/files.com/models/snapshot.rb +5 -0
- data/lib/files.com/models/ssl_certificate.rb +77 -0
- data/lib/files.com/models/sso_event.rb +21 -0
- data/lib/files.com/models/sso_strategy.rb +632 -0
- data/lib/files.com/models/staging_site.rb +1781 -0
- data/lib/files.com/models/support_request.rb +209 -0
- data/lib/files.com/models/sync.rb +11 -0
- data/lib/files.com/models/sync_api_usage_snapshot.rb +47 -0
- data/lib/files.com/models/sync_api_usage_snapshot_report.rb +162 -0
- data/lib/files.com/models/sync_bandwidth_snapshot.rb +104 -0
- data/lib/files.com/models/sync_log.rb +22 -0
- data/lib/files.com/models/sync_run.rb +21 -0
- data/lib/files.com/models/two_factor_authentication_method.rb +250 -0
- data/lib/files.com/models/usage_daily_snapshot.rb +19 -0
- data/lib/files.com/models/usage_snapshot.rb +5 -0
- data/lib/files.com/models/user.rb +59 -0
- data/lib/files.com/models/user_cipher_use.rb +21 -0
- data/lib/files.com/models/user_lifecycle_rule.rb +11 -0
- data/lib/files.com/models/user_request.rb +5 -0
- data/lib/files.com/models/user_security_event.rb +19 -0
- data/lib/files.com/models/user_sftp_client_use.rb +9 -0
- data/lib/files.com/models/warning.rb +38 -0
- data/lib/files.com/models/web_dav_action_log.rb +24 -0
- data/lib/files.com/models/webauthn_sign_request.rb +17 -0
- data/lib/files.com/models/workspace.rb +13 -0
- data/lib/files.com/models/zip_download.rb +73 -0
- data/lib/files.com/models/zip_download_file.rb +111 -0
- data/lib/files.com/models/zip_download_files.rb +42 -0
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +59 -0
- metadata +120 -2
|
@@ -342,6 +342,15 @@ module Files
|
|
|
342
342
|
@attributes[:wasabi_access_key] = value
|
|
343
343
|
end
|
|
344
344
|
|
|
345
|
+
# string - Returns link to login with an Oauth provider
|
|
346
|
+
def auth_setup_link
|
|
347
|
+
@attributes[:auth_setup_link]
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
def auth_setup_link=(value)
|
|
351
|
+
@attributes[:auth_setup_link] = value
|
|
352
|
+
end
|
|
353
|
+
|
|
345
354
|
# string - Either `in_setup` or `complete`
|
|
346
355
|
def auth_status
|
|
347
356
|
@attributes[:auth_status]
|
|
@@ -848,6 +857,58 @@ module Files
|
|
|
848
857
|
Api.send_request("/remote_servers/#{@attributes[:id]}/agent_push_update", :post, params, @options)
|
|
849
858
|
end
|
|
850
859
|
|
|
860
|
+
# Disconnect a Files Agent Proxy
|
|
861
|
+
#
|
|
862
|
+
# Parameters:
|
|
863
|
+
# proxy_url - string - Files Agent Proxy URL
|
|
864
|
+
# proxy_host_header - string - Files Agent Proxy Host Header
|
|
865
|
+
def disconnect_agent(params = {})
|
|
866
|
+
params ||= {}
|
|
867
|
+
params[:id] = @attributes[:id]
|
|
868
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
869
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
870
|
+
raise InvalidParameterError.new("Bad parameter: proxy_url must be an String") if params[:proxy_url] and !params[:proxy_url].is_a?(String)
|
|
871
|
+
raise InvalidParameterError.new("Bad parameter: proxy_host_header must be an String") if params[:proxy_host_header] and !params[:proxy_host_header].is_a?(String)
|
|
872
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
873
|
+
|
|
874
|
+
Api.send_request("/remote_servers/#{@attributes[:id]}/disconnect_agent", :post, params, @options)
|
|
875
|
+
end
|
|
876
|
+
|
|
877
|
+
# Authenticate a Files Agent Proxy
|
|
878
|
+
#
|
|
879
|
+
# Parameters:
|
|
880
|
+
# signed_nonce - string - Signed nonce
|
|
881
|
+
# proxy_registration_refresh - boolean - Proxy is refreshing an already validated agent registration
|
|
882
|
+
# agent_version - string - Agent version
|
|
883
|
+
# peer_id - string - Peer ID
|
|
884
|
+
# proxy_url - string - Files Agent Proxy URL
|
|
885
|
+
# proxy_host_header - string - Files Agent Proxy Host Header
|
|
886
|
+
# root - string - Agent local root path
|
|
887
|
+
# agent_hostname - string - Agent local hostname used for system identification
|
|
888
|
+
# downstream_proxy_port - int64 - Agent downstream proxy port
|
|
889
|
+
# agent_platform - string - Agent Platform (OS/Architecture)
|
|
890
|
+
# permission_set - string - Permission set
|
|
891
|
+
# supports_push_updates - boolean - Agent supports push updates
|
|
892
|
+
def authenticate_agent(params = {})
|
|
893
|
+
params ||= {}
|
|
894
|
+
params[:id] = @attributes[:id]
|
|
895
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
896
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
897
|
+
raise InvalidParameterError.new("Bad parameter: signed_nonce must be an String") if params[:signed_nonce] and !params[:signed_nonce].is_a?(String)
|
|
898
|
+
raise InvalidParameterError.new("Bad parameter: agent_version must be an String") if params[:agent_version] and !params[:agent_version].is_a?(String)
|
|
899
|
+
raise InvalidParameterError.new("Bad parameter: peer_id must be an String") if params[:peer_id] and !params[:peer_id].is_a?(String)
|
|
900
|
+
raise InvalidParameterError.new("Bad parameter: proxy_url must be an String") if params[:proxy_url] and !params[:proxy_url].is_a?(String)
|
|
901
|
+
raise InvalidParameterError.new("Bad parameter: proxy_host_header must be an String") if params[:proxy_host_header] and !params[:proxy_host_header].is_a?(String)
|
|
902
|
+
raise InvalidParameterError.new("Bad parameter: root must be an String") if params[:root] and !params[:root].is_a?(String)
|
|
903
|
+
raise InvalidParameterError.new("Bad parameter: agent_hostname must be an String") if params[:agent_hostname] and !params[:agent_hostname].is_a?(String)
|
|
904
|
+
raise InvalidParameterError.new("Bad parameter: downstream_proxy_port must be an Integer") if params[:downstream_proxy_port] and !params[:downstream_proxy_port].is_a?(Integer)
|
|
905
|
+
raise InvalidParameterError.new("Bad parameter: agent_platform must be an String") if params[:agent_platform] and !params[:agent_platform].is_a?(String)
|
|
906
|
+
raise InvalidParameterError.new("Bad parameter: permission_set must be an String") if params[:permission_set] and !params[:permission_set].is_a?(String)
|
|
907
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
908
|
+
|
|
909
|
+
Api.send_request("/remote_servers/#{@attributes[:id]}/authenticate_agent", :post, params, @options)
|
|
910
|
+
end
|
|
911
|
+
|
|
851
912
|
# Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
|
|
852
913
|
#
|
|
853
914
|
# Parameters:
|
|
@@ -1089,6 +1150,18 @@ module Files
|
|
|
1089
1150
|
list(params, options)
|
|
1090
1151
|
end
|
|
1091
1152
|
|
|
1153
|
+
# Parameters:
|
|
1154
|
+
# id (required) - int64 - Remote Server ID.
|
|
1155
|
+
def self.find_ping_agent(id, params = {}, options = {})
|
|
1156
|
+
params ||= {}
|
|
1157
|
+
params[:id] = id
|
|
1158
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
1159
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
1160
|
+
|
|
1161
|
+
response, options = Api.send_request("/remote_servers/#{params[:id]}/ping_agent", :get, params, options)
|
|
1162
|
+
RemoteServer.new(response.data, options)
|
|
1163
|
+
end
|
|
1164
|
+
|
|
1092
1165
|
# Parameters:
|
|
1093
1166
|
# id (required) - int64 - Remote Server ID.
|
|
1094
1167
|
def self.find(id, params = {}, options = {})
|
|
@@ -1284,6 +1357,58 @@ module Files
|
|
|
1284
1357
|
AgentPushUpdate.new(response.data, options)
|
|
1285
1358
|
end
|
|
1286
1359
|
|
|
1360
|
+
# Disconnect a Files Agent Proxy
|
|
1361
|
+
#
|
|
1362
|
+
# Parameters:
|
|
1363
|
+
# proxy_url - string - Files Agent Proxy URL
|
|
1364
|
+
# proxy_host_header - string - Files Agent Proxy Host Header
|
|
1365
|
+
def self.disconnect_agent(id, params = {}, options = {})
|
|
1366
|
+
params ||= {}
|
|
1367
|
+
params[:id] = id
|
|
1368
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
1369
|
+
raise InvalidParameterError.new("Bad parameter: proxy_url must be an String") if params[:proxy_url] and !params[:proxy_url].is_a?(String)
|
|
1370
|
+
raise InvalidParameterError.new("Bad parameter: proxy_host_header must be an String") if params[:proxy_host_header] and !params[:proxy_host_header].is_a?(String)
|
|
1371
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
1372
|
+
|
|
1373
|
+
response, options = Api.send_request("/remote_servers/#{params[:id]}/disconnect_agent", :post, params, options)
|
|
1374
|
+
AgentV2Auth.new(response.data, options)
|
|
1375
|
+
end
|
|
1376
|
+
|
|
1377
|
+
# Authenticate a Files Agent Proxy
|
|
1378
|
+
#
|
|
1379
|
+
# Parameters:
|
|
1380
|
+
# signed_nonce - string - Signed nonce
|
|
1381
|
+
# proxy_registration_refresh - boolean - Proxy is refreshing an already validated agent registration
|
|
1382
|
+
# agent_version - string - Agent version
|
|
1383
|
+
# peer_id - string - Peer ID
|
|
1384
|
+
# proxy_url - string - Files Agent Proxy URL
|
|
1385
|
+
# proxy_host_header - string - Files Agent Proxy Host Header
|
|
1386
|
+
# root - string - Agent local root path
|
|
1387
|
+
# agent_hostname - string - Agent local hostname used for system identification
|
|
1388
|
+
# downstream_proxy_port - int64 - Agent downstream proxy port
|
|
1389
|
+
# agent_platform - string - Agent Platform (OS/Architecture)
|
|
1390
|
+
# permission_set - string - Permission set
|
|
1391
|
+
# supports_push_updates - boolean - Agent supports push updates
|
|
1392
|
+
def self.authenticate_agent(id, params = {}, options = {})
|
|
1393
|
+
params ||= {}
|
|
1394
|
+
params[:id] = id
|
|
1395
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
1396
|
+
raise InvalidParameterError.new("Bad parameter: signed_nonce must be an String") if params[:signed_nonce] and !params[:signed_nonce].is_a?(String)
|
|
1397
|
+
raise InvalidParameterError.new("Bad parameter: agent_version must be an String") if params[:agent_version] and !params[:agent_version].is_a?(String)
|
|
1398
|
+
raise InvalidParameterError.new("Bad parameter: peer_id must be an String") if params[:peer_id] and !params[:peer_id].is_a?(String)
|
|
1399
|
+
raise InvalidParameterError.new("Bad parameter: proxy_url must be an String") if params[:proxy_url] and !params[:proxy_url].is_a?(String)
|
|
1400
|
+
raise InvalidParameterError.new("Bad parameter: proxy_host_header must be an String") if params[:proxy_host_header] and !params[:proxy_host_header].is_a?(String)
|
|
1401
|
+
raise InvalidParameterError.new("Bad parameter: root must be an String") if params[:root] and !params[:root].is_a?(String)
|
|
1402
|
+
raise InvalidParameterError.new("Bad parameter: agent_hostname must be an String") if params[:agent_hostname] and !params[:agent_hostname].is_a?(String)
|
|
1403
|
+
raise InvalidParameterError.new("Bad parameter: downstream_proxy_port must be an Integer") if params[:downstream_proxy_port] and !params[:downstream_proxy_port].is_a?(Integer)
|
|
1404
|
+
raise InvalidParameterError.new("Bad parameter: agent_platform must be an String") if params[:agent_platform] and !params[:agent_platform].is_a?(String)
|
|
1405
|
+
raise InvalidParameterError.new("Bad parameter: permission_set must be an String") if params[:permission_set] and !params[:permission_set].is_a?(String)
|
|
1406
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
1407
|
+
|
|
1408
|
+
response, options = Api.send_request("/remote_servers/#{params[:id]}/authenticate_agent", :post, params, options)
|
|
1409
|
+
AgentV2Auth.new(response.data, options)
|
|
1410
|
+
end
|
|
1411
|
+
|
|
1287
1412
|
# Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
|
|
1288
1413
|
#
|
|
1289
1414
|
# Parameters:
|
|
@@ -1319,6 +1444,178 @@ module Files
|
|
|
1319
1444
|
RemoteServerConfigurationFile.new(response.data, options)
|
|
1320
1445
|
end
|
|
1321
1446
|
|
|
1447
|
+
# Parameters:
|
|
1448
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `name`, `server_type`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`.
|
|
1449
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name`, `server_type`, `workspace_id`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`. Valid field combinations are `[ server_type, name ]`, `[ workspace_id, name ]`, `[ backblaze_b2_bucket, name ]`, `[ google_cloud_storage_bucket, name ]`, `[ wasabi_bucket, name ]`, `[ s3_bucket, name ]`, `[ azure_blob_storage_container, name ]`, `[ azure_files_storage_share_name, name ]`, `[ s3_compatible_bucket, name ]`, `[ filebase_bucket, name ]`, `[ cloudflare_bucket, name ]`, `[ linode_bucket, name ]`, `[ workspace_id, server_type ]` or `[ workspace_id, server_type, name ]`.
|
|
1450
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`. Valid field combinations are `[ backblaze_b2_bucket, name ]`, `[ google_cloud_storage_bucket, name ]`, `[ wasabi_bucket, name ]`, `[ s3_bucket, name ]`, `[ azure_blob_storage_container, name ]`, `[ azure_files_storage_share_name, name ]`, `[ s3_compatible_bucket, name ]`, `[ filebase_bucket, name ]`, `[ cloudflare_bucket, name ]` or `[ linode_bucket, name ]`.
|
|
1451
|
+
def self.create_export(params = {}, options = {})
|
|
1452
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
1453
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
|
1454
|
+
raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
|
|
1455
|
+
|
|
1456
|
+
response, options = Api.send_request("/remote_servers/create_export", :post, params, options)
|
|
1457
|
+
Export.new(response.data, options)
|
|
1458
|
+
end
|
|
1459
|
+
|
|
1460
|
+
# Parameters:
|
|
1461
|
+
# aws_access_key - string - AWS: Access Key
|
|
1462
|
+
# aws_secret_key - string - AWS: Secret Key
|
|
1463
|
+
# azure_blob_storage_access_key - string - Azure Blob Storage: Secret Key
|
|
1464
|
+
# azure_blob_storage_account - string
|
|
1465
|
+
# azure_blob_storage_container - string
|
|
1466
|
+
# azure_blob_storage_dns_suffix - string
|
|
1467
|
+
# azure_blob_storage_hierarchical_namespace - boolean
|
|
1468
|
+
# azure_blob_storage_sas_token - string - Azure Blob Storage: Shared Access Signature (SAS) token
|
|
1469
|
+
# azure_files_storage_access_key - string - Azure Files: Access Key
|
|
1470
|
+
# azure_files_storage_account - string
|
|
1471
|
+
# azure_files_storage_dns_suffix - string
|
|
1472
|
+
# azure_files_storage_sas_token - string - Azure Files: Shared Access Signature (SAS) token
|
|
1473
|
+
# azure_files_storage_share_name - string
|
|
1474
|
+
# backblaze_b2_application_key - string - Backblaze B2 Cloud Storage: applicationKey
|
|
1475
|
+
# backblaze_b2_bucket - string
|
|
1476
|
+
# backblaze_b2_key_id - string - Backblaze B2 Cloud Storage: keyID
|
|
1477
|
+
# backblaze_b2_s3_endpoint - string
|
|
1478
|
+
# buffer_uploads - string - If set to always, uploads to this server will be uploaded first to Files.com before being sent to the remote server. This can improve performance in certain access patterns, such as high-latency connections. It will cause data to be temporarily stored in Files.com. If set to auto, we will perform this optimization if we believe it to be a benefit in a given situation.
|
|
1479
|
+
# cloudflare_access_key - string - Cloudflare: Access Key
|
|
1480
|
+
# cloudflare_bucket - string
|
|
1481
|
+
# cloudflare_endpoint - string
|
|
1482
|
+
# cloudflare_secret_key - string - Cloudflare: Secret Key
|
|
1483
|
+
# dropbox_teams - boolean
|
|
1484
|
+
# upload_staging_path - string - Upload staging path
|
|
1485
|
+
# enable_dedicated_ips - boolean
|
|
1486
|
+
# filebase_access_key - string - Filebase: Access Key
|
|
1487
|
+
# filebase_bucket - string
|
|
1488
|
+
# filebase_secret_key - string - Filebase: Secret Key
|
|
1489
|
+
# files_api_key - string - Files.com direct link: API key used once to pair the remote server.
|
|
1490
|
+
# files_agent_api_token - string
|
|
1491
|
+
# files_agent_public_key - string
|
|
1492
|
+
# files_agent_root - string
|
|
1493
|
+
# files_agent_version - string
|
|
1494
|
+
# outbound_agent_id - int64 - Route traffic to outbound on a files-agent
|
|
1495
|
+
# google_cloud_storage_authentication_method - string - Google Cloud Storage: Authentication method. Can be json, hmac, or oauth.
|
|
1496
|
+
# google_cloud_storage_bucket - string
|
|
1497
|
+
# google_cloud_storage_credentials_json - string - Google Cloud Storage: A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
|
|
1498
|
+
# google_cloud_storage_oauth_scope - string - Google Cloud Storage: OAuth scope. Can be https://www.googleapis.com/auth/devstorage.read_only or https://www.googleapis.com/auth/devstorage.read_write.
|
|
1499
|
+
# google_cloud_storage_project_id - string
|
|
1500
|
+
# google_cloud_storage_s3_compatible_access_key - string - Google Cloud Storage: S3-compatible access key
|
|
1501
|
+
# google_cloud_storage_s3_compatible_secret_key - string - Google Cloud Storage: S3-compatible secret key
|
|
1502
|
+
# hostname - string
|
|
1503
|
+
# linode_access_key - string - Linode: access key
|
|
1504
|
+
# linode_bucket - string
|
|
1505
|
+
# linode_region - string
|
|
1506
|
+
# linode_secret_key - string - Linode: secret key
|
|
1507
|
+
# max_connections - int64
|
|
1508
|
+
# name - string
|
|
1509
|
+
# one_drive_account_type - string
|
|
1510
|
+
# password - string - Password, if needed
|
|
1511
|
+
# pin_to_site_region - boolean - Pin to site region?
|
|
1512
|
+
# port - int64
|
|
1513
|
+
# private_key_passphrase - string - Passphrase for private key, if needed
|
|
1514
|
+
# private_key - string - Private key if needed.
|
|
1515
|
+
# remote_server_id - int64 - Remote Server ID
|
|
1516
|
+
# remote_server_credential_id - int64 - Remote Server Credential ID
|
|
1517
|
+
# reset_authentication - boolean - Reset authenticated account?
|
|
1518
|
+
# root - string - Remote path to list
|
|
1519
|
+
# s3_assume_role_arn - string
|
|
1520
|
+
# s3_assume_role_duration_seconds - int64
|
|
1521
|
+
# s3_bucket - string
|
|
1522
|
+
# s3_compatible_access_key - string
|
|
1523
|
+
# s3_compatible_bucket - string
|
|
1524
|
+
# s3_compatible_endpoint - string
|
|
1525
|
+
# s3_compatible_region - string
|
|
1526
|
+
# s3_compatible_virtual_hosted_style - boolean
|
|
1527
|
+
# s3_compatible_secret_key - string
|
|
1528
|
+
# s3_region - string
|
|
1529
|
+
# server_certificate - string
|
|
1530
|
+
# server_host_key - string
|
|
1531
|
+
# server_type - string
|
|
1532
|
+
# ssl_certificate - string - SSL client certificate.
|
|
1533
|
+
# ssl - string
|
|
1534
|
+
# username - string
|
|
1535
|
+
# wasabi_access_key - string - Wasabi: Access Key
|
|
1536
|
+
# wasabi_bucket - string
|
|
1537
|
+
# wasabi_region - string
|
|
1538
|
+
# wasabi_secret_key - string - Wasabi Secret Key
|
|
1539
|
+
# workspace_id - int64 - Workspace ID (0 for default workspace)
|
|
1540
|
+
def self.list_for_testing(params = {}, options = {})
|
|
1541
|
+
raise InvalidParameterError.new("Bad parameter: aws_access_key must be an String") if params[:aws_access_key] and !params[:aws_access_key].is_a?(String)
|
|
1542
|
+
raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params[:aws_secret_key] and !params[:aws_secret_key].is_a?(String)
|
|
1543
|
+
raise InvalidParameterError.new("Bad parameter: azure_blob_storage_access_key must be an String") if params[:azure_blob_storage_access_key] and !params[:azure_blob_storage_access_key].is_a?(String)
|
|
1544
|
+
raise InvalidParameterError.new("Bad parameter: azure_blob_storage_account must be an String") if params[:azure_blob_storage_account] and !params[:azure_blob_storage_account].is_a?(String)
|
|
1545
|
+
raise InvalidParameterError.new("Bad parameter: azure_blob_storage_container must be an String") if params[:azure_blob_storage_container] and !params[:azure_blob_storage_container].is_a?(String)
|
|
1546
|
+
raise InvalidParameterError.new("Bad parameter: azure_blob_storage_dns_suffix must be an String") if params[:azure_blob_storage_dns_suffix] and !params[:azure_blob_storage_dns_suffix].is_a?(String)
|
|
1547
|
+
raise InvalidParameterError.new("Bad parameter: azure_blob_storage_sas_token must be an String") if params[:azure_blob_storage_sas_token] and !params[:azure_blob_storage_sas_token].is_a?(String)
|
|
1548
|
+
raise InvalidParameterError.new("Bad parameter: azure_files_storage_access_key must be an String") if params[:azure_files_storage_access_key] and !params[:azure_files_storage_access_key].is_a?(String)
|
|
1549
|
+
raise InvalidParameterError.new("Bad parameter: azure_files_storage_account must be an String") if params[:azure_files_storage_account] and !params[:azure_files_storage_account].is_a?(String)
|
|
1550
|
+
raise InvalidParameterError.new("Bad parameter: azure_files_storage_dns_suffix must be an String") if params[:azure_files_storage_dns_suffix] and !params[:azure_files_storage_dns_suffix].is_a?(String)
|
|
1551
|
+
raise InvalidParameterError.new("Bad parameter: azure_files_storage_sas_token must be an String") if params[:azure_files_storage_sas_token] and !params[:azure_files_storage_sas_token].is_a?(String)
|
|
1552
|
+
raise InvalidParameterError.new("Bad parameter: azure_files_storage_share_name must be an String") if params[:azure_files_storage_share_name] and !params[:azure_files_storage_share_name].is_a?(String)
|
|
1553
|
+
raise InvalidParameterError.new("Bad parameter: backblaze_b2_application_key must be an String") if params[:backblaze_b2_application_key] and !params[:backblaze_b2_application_key].is_a?(String)
|
|
1554
|
+
raise InvalidParameterError.new("Bad parameter: backblaze_b2_bucket must be an String") if params[:backblaze_b2_bucket] and !params[:backblaze_b2_bucket].is_a?(String)
|
|
1555
|
+
raise InvalidParameterError.new("Bad parameter: backblaze_b2_key_id must be an String") if params[:backblaze_b2_key_id] and !params[:backblaze_b2_key_id].is_a?(String)
|
|
1556
|
+
raise InvalidParameterError.new("Bad parameter: backblaze_b2_s3_endpoint must be an String") if params[:backblaze_b2_s3_endpoint] and !params[:backblaze_b2_s3_endpoint].is_a?(String)
|
|
1557
|
+
raise InvalidParameterError.new("Bad parameter: buffer_uploads must be an String") if params[:buffer_uploads] and !params[:buffer_uploads].is_a?(String)
|
|
1558
|
+
raise InvalidParameterError.new("Bad parameter: cloudflare_access_key must be an String") if params[:cloudflare_access_key] and !params[:cloudflare_access_key].is_a?(String)
|
|
1559
|
+
raise InvalidParameterError.new("Bad parameter: cloudflare_bucket must be an String") if params[:cloudflare_bucket] and !params[:cloudflare_bucket].is_a?(String)
|
|
1560
|
+
raise InvalidParameterError.new("Bad parameter: cloudflare_endpoint must be an String") if params[:cloudflare_endpoint] and !params[:cloudflare_endpoint].is_a?(String)
|
|
1561
|
+
raise InvalidParameterError.new("Bad parameter: cloudflare_secret_key must be an String") if params[:cloudflare_secret_key] and !params[:cloudflare_secret_key].is_a?(String)
|
|
1562
|
+
raise InvalidParameterError.new("Bad parameter: upload_staging_path must be an String") if params[:upload_staging_path] and !params[:upload_staging_path].is_a?(String)
|
|
1563
|
+
raise InvalidParameterError.new("Bad parameter: filebase_access_key must be an String") if params[:filebase_access_key] and !params[:filebase_access_key].is_a?(String)
|
|
1564
|
+
raise InvalidParameterError.new("Bad parameter: filebase_bucket must be an String") if params[:filebase_bucket] and !params[:filebase_bucket].is_a?(String)
|
|
1565
|
+
raise InvalidParameterError.new("Bad parameter: filebase_secret_key must be an String") if params[:filebase_secret_key] and !params[:filebase_secret_key].is_a?(String)
|
|
1566
|
+
raise InvalidParameterError.new("Bad parameter: files_api_key must be an String") if params[:files_api_key] and !params[:files_api_key].is_a?(String)
|
|
1567
|
+
raise InvalidParameterError.new("Bad parameter: files_agent_api_token must be an String") if params[:files_agent_api_token] and !params[:files_agent_api_token].is_a?(String)
|
|
1568
|
+
raise InvalidParameterError.new("Bad parameter: files_agent_public_key must be an String") if params[:files_agent_public_key] and !params[:files_agent_public_key].is_a?(String)
|
|
1569
|
+
raise InvalidParameterError.new("Bad parameter: files_agent_root must be an String") if params[:files_agent_root] and !params[:files_agent_root].is_a?(String)
|
|
1570
|
+
raise InvalidParameterError.new("Bad parameter: files_agent_version must be an String") if params[:files_agent_version] and !params[:files_agent_version].is_a?(String)
|
|
1571
|
+
raise InvalidParameterError.new("Bad parameter: outbound_agent_id must be an Integer") if params[:outbound_agent_id] and !params[:outbound_agent_id].is_a?(Integer)
|
|
1572
|
+
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_authentication_method must be an String") if params[:google_cloud_storage_authentication_method] and !params[:google_cloud_storage_authentication_method].is_a?(String)
|
|
1573
|
+
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_bucket must be an String") if params[:google_cloud_storage_bucket] and !params[:google_cloud_storage_bucket].is_a?(String)
|
|
1574
|
+
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_credentials_json must be an String") if params[:google_cloud_storage_credentials_json] and !params[:google_cloud_storage_credentials_json].is_a?(String)
|
|
1575
|
+
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_oauth_scope must be an String") if params[:google_cloud_storage_oauth_scope] and !params[:google_cloud_storage_oauth_scope].is_a?(String)
|
|
1576
|
+
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_project_id must be an String") if params[:google_cloud_storage_project_id] and !params[:google_cloud_storage_project_id].is_a?(String)
|
|
1577
|
+
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_s3_compatible_access_key must be an String") if params[:google_cloud_storage_s3_compatible_access_key] and !params[:google_cloud_storage_s3_compatible_access_key].is_a?(String)
|
|
1578
|
+
raise InvalidParameterError.new("Bad parameter: google_cloud_storage_s3_compatible_secret_key must be an String") if params[:google_cloud_storage_s3_compatible_secret_key] and !params[:google_cloud_storage_s3_compatible_secret_key].is_a?(String)
|
|
1579
|
+
raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params[:hostname] and !params[:hostname].is_a?(String)
|
|
1580
|
+
raise InvalidParameterError.new("Bad parameter: linode_access_key must be an String") if params[:linode_access_key] and !params[:linode_access_key].is_a?(String)
|
|
1581
|
+
raise InvalidParameterError.new("Bad parameter: linode_bucket must be an String") if params[:linode_bucket] and !params[:linode_bucket].is_a?(String)
|
|
1582
|
+
raise InvalidParameterError.new("Bad parameter: linode_region must be an String") if params[:linode_region] and !params[:linode_region].is_a?(String)
|
|
1583
|
+
raise InvalidParameterError.new("Bad parameter: linode_secret_key must be an String") if params[:linode_secret_key] and !params[:linode_secret_key].is_a?(String)
|
|
1584
|
+
raise InvalidParameterError.new("Bad parameter: max_connections must be an Integer") if params[:max_connections] and !params[:max_connections].is_a?(Integer)
|
|
1585
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
1586
|
+
raise InvalidParameterError.new("Bad parameter: one_drive_account_type must be an String") if params[:one_drive_account_type] and !params[:one_drive_account_type].is_a?(String)
|
|
1587
|
+
raise InvalidParameterError.new("Bad parameter: password must be an String") if params[:password] and !params[:password].is_a?(String)
|
|
1588
|
+
raise InvalidParameterError.new("Bad parameter: port must be an Integer") if params[:port] and !params[:port].is_a?(Integer)
|
|
1589
|
+
raise InvalidParameterError.new("Bad parameter: private_key_passphrase must be an String") if params[:private_key_passphrase] and !params[:private_key_passphrase].is_a?(String)
|
|
1590
|
+
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String)
|
|
1591
|
+
raise InvalidParameterError.new("Bad parameter: remote_server_id must be an Integer") if params[:remote_server_id] and !params[:remote_server_id].is_a?(Integer)
|
|
1592
|
+
raise InvalidParameterError.new("Bad parameter: remote_server_credential_id must be an Integer") if params[:remote_server_credential_id] and !params[:remote_server_credential_id].is_a?(Integer)
|
|
1593
|
+
raise InvalidParameterError.new("Bad parameter: root must be an String") if params[:root] and !params[:root].is_a?(String)
|
|
1594
|
+
raise InvalidParameterError.new("Bad parameter: s3_assume_role_arn must be an String") if params[:s3_assume_role_arn] and !params[:s3_assume_role_arn].is_a?(String)
|
|
1595
|
+
raise InvalidParameterError.new("Bad parameter: s3_assume_role_duration_seconds must be an Integer") if params[:s3_assume_role_duration_seconds] and !params[:s3_assume_role_duration_seconds].is_a?(Integer)
|
|
1596
|
+
raise InvalidParameterError.new("Bad parameter: s3_bucket must be an String") if params[:s3_bucket] and !params[:s3_bucket].is_a?(String)
|
|
1597
|
+
raise InvalidParameterError.new("Bad parameter: s3_compatible_access_key must be an String") if params[:s3_compatible_access_key] and !params[:s3_compatible_access_key].is_a?(String)
|
|
1598
|
+
raise InvalidParameterError.new("Bad parameter: s3_compatible_bucket must be an String") if params[:s3_compatible_bucket] and !params[:s3_compatible_bucket].is_a?(String)
|
|
1599
|
+
raise InvalidParameterError.new("Bad parameter: s3_compatible_endpoint must be an String") if params[:s3_compatible_endpoint] and !params[:s3_compatible_endpoint].is_a?(String)
|
|
1600
|
+
raise InvalidParameterError.new("Bad parameter: s3_compatible_region must be an String") if params[:s3_compatible_region] and !params[:s3_compatible_region].is_a?(String)
|
|
1601
|
+
raise InvalidParameterError.new("Bad parameter: s3_compatible_secret_key must be an String") if params[:s3_compatible_secret_key] and !params[:s3_compatible_secret_key].is_a?(String)
|
|
1602
|
+
raise InvalidParameterError.new("Bad parameter: s3_region must be an String") if params[:s3_region] and !params[:s3_region].is_a?(String)
|
|
1603
|
+
raise InvalidParameterError.new("Bad parameter: server_certificate must be an String") if params[:server_certificate] and !params[:server_certificate].is_a?(String)
|
|
1604
|
+
raise InvalidParameterError.new("Bad parameter: server_host_key must be an String") if params[:server_host_key] and !params[:server_host_key].is_a?(String)
|
|
1605
|
+
raise InvalidParameterError.new("Bad parameter: server_type must be an String") if params[:server_type] and !params[:server_type].is_a?(String)
|
|
1606
|
+
raise InvalidParameterError.new("Bad parameter: ssl_certificate must be an String") if params[:ssl_certificate] and !params[:ssl_certificate].is_a?(String)
|
|
1607
|
+
raise InvalidParameterError.new("Bad parameter: ssl must be an String") if params[:ssl] and !params[:ssl].is_a?(String)
|
|
1608
|
+
raise InvalidParameterError.new("Bad parameter: username must be an String") if params[:username] and !params[:username].is_a?(String)
|
|
1609
|
+
raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params[:wasabi_access_key] and !params[:wasabi_access_key].is_a?(String)
|
|
1610
|
+
raise InvalidParameterError.new("Bad parameter: wasabi_bucket must be an String") if params[:wasabi_bucket] and !params[:wasabi_bucket].is_a?(String)
|
|
1611
|
+
raise InvalidParameterError.new("Bad parameter: wasabi_region must be an String") if params[:wasabi_region] and !params[:wasabi_region].is_a?(String)
|
|
1612
|
+
raise InvalidParameterError.new("Bad parameter: wasabi_secret_key must be an String") if params[:wasabi_secret_key] and !params[:wasabi_secret_key].is_a?(String)
|
|
1613
|
+
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
1614
|
+
|
|
1615
|
+
response, options = Api.send_request("/remote_servers/list_for_testing", :post, params, options)
|
|
1616
|
+
File.new(response.data, options)
|
|
1617
|
+
end
|
|
1618
|
+
|
|
1322
1619
|
# Parameters:
|
|
1323
1620
|
# password - string - Password, if needed.
|
|
1324
1621
|
# private_key - string - Private key, if needed.
|
|
@@ -521,6 +521,19 @@ module Files
|
|
|
521
521
|
RemoteServerCredential.new(response.data, options)
|
|
522
522
|
end
|
|
523
523
|
|
|
524
|
+
# Parameters:
|
|
525
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id` and `id`.
|
|
526
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `workspace_id` and `name`. Valid field combinations are `[ workspace_id, name ]`.
|
|
527
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`.
|
|
528
|
+
def self.create_export(params = {}, options = {})
|
|
529
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
530
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
|
531
|
+
raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
|
|
532
|
+
|
|
533
|
+
response, options = Api.send_request("/remote_server_credentials/create_export", :post, params, options)
|
|
534
|
+
Export.new(response.data, options)
|
|
535
|
+
end
|
|
536
|
+
|
|
524
537
|
# Parameters:
|
|
525
538
|
# name - string - Internal name for your reference
|
|
526
539
|
# description - string - Internal description for your reference
|
|
@@ -165,6 +165,18 @@ module Files
|
|
|
165
165
|
Request.new(response.data, options)
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
+
# Parameters:
|
|
169
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
170
|
+
# mine - boolean - Only show requests of the current user? (Defaults to true if current user is not a site admin.)
|
|
171
|
+
# path - string - Path to show requests for. If omitted, shows all paths. Send `/` to represent the root directory.
|
|
172
|
+
def self.create_export(params = {}, options = {})
|
|
173
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
174
|
+
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
175
|
+
|
|
176
|
+
response, options = Api.send_request("/requests/create_export", :post, params, options)
|
|
177
|
+
Export.new(response.data, options)
|
|
178
|
+
end
|
|
179
|
+
|
|
168
180
|
def self.delete(id, params = {}, options = {})
|
|
169
181
|
params ||= {}
|
|
170
182
|
params[:id] = id
|
|
@@ -256,5 +256,16 @@ module Files
|
|
|
256
256
|
response, options = Api.send_request("/restores", :post, params, options)
|
|
257
257
|
Restore.new(response.data, options)
|
|
258
258
|
end
|
|
259
|
+
|
|
260
|
+
# Parameters:
|
|
261
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`.
|
|
262
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `restoration_type`.
|
|
263
|
+
def self.create_export(params = {}, options = {})
|
|
264
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
265
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
|
266
|
+
|
|
267
|
+
response, options = Api.send_request("/restores/create_export", :post, params, options)
|
|
268
|
+
Export.new(response.data, options)
|
|
269
|
+
end
|
|
259
270
|
end
|
|
260
271
|
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Files
|
|
4
|
+
class Revision
|
|
5
|
+
attr_reader :options, :attributes
|
|
6
|
+
|
|
7
|
+
def initialize(attributes = {}, options = {})
|
|
8
|
+
@attributes = attributes || {}
|
|
9
|
+
@options = options || {}
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# string - The commit hash of the latest deployed revision.
|
|
13
|
+
def current
|
|
14
|
+
@attributes[:current]
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# string - The commit hash of the previously deployed revision.
|
|
18
|
+
def prior
|
|
19
|
+
@attributes[:prior]
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# string - The commit hash of the currently running revision.
|
|
23
|
+
def revision
|
|
24
|
+
@attributes[:revision]
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# boolean - True if the currently running revision is the latest deployed revision.
|
|
28
|
+
def up_to_date
|
|
29
|
+
@attributes[:up_to_date]
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Parameters:
|
|
33
|
+
# cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
34
|
+
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
35
|
+
def self.list(params = {}, options = {})
|
|
36
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
37
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
38
|
+
|
|
39
|
+
List.new(Revision, params) do
|
|
40
|
+
Api.send_request("/revisions", :get, params, options)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def self.all(params = {}, options = {})
|
|
45
|
+
list(params, options)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def self.create_export(params = {}, options = {})
|
|
49
|
+
response, options = Api.send_request("/revisions/create_export", :post, params, options)
|
|
50
|
+
Export.new(response.data, options)
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -301,6 +301,19 @@ module Files
|
|
|
301
301
|
ScheduledExport.new(response.data, options)
|
|
302
302
|
end
|
|
303
303
|
|
|
304
|
+
# Parameters:
|
|
305
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `export_type` or `disabled`.
|
|
306
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled` and `export_type`.
|
|
307
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `export_type`.
|
|
308
|
+
def self.create_export(params = {}, options = {})
|
|
309
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
310
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
|
311
|
+
raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
|
|
312
|
+
|
|
313
|
+
response, options = Api.send_request("/scheduled_exports/create_export", :post, params, options)
|
|
314
|
+
Export.new(response.data, options)
|
|
315
|
+
end
|
|
316
|
+
|
|
304
317
|
# Parameters:
|
|
305
318
|
# name - string - Name for this scheduled export.
|
|
306
319
|
# export_type - string - Export report type. Valid values: folder_size_audit, group_membership_audit, permission_audit, share_link_audit
|
|
@@ -82,5 +82,14 @@ module Files
|
|
|
82
82
|
def self.get(id, params = {}, options = {})
|
|
83
83
|
find(id, params, options)
|
|
84
84
|
end
|
|
85
|
+
|
|
86
|
+
# Parameters:
|
|
87
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
|
88
|
+
def self.create_export(params = {}, options = {})
|
|
89
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
90
|
+
|
|
91
|
+
response, options = Api.send_request("/scim_logs/create_export", :post, params, options)
|
|
92
|
+
Export.new(response.data, options)
|
|
93
|
+
end
|
|
85
94
|
end
|
|
86
95
|
end
|