files.com 1.1.671 → 1.1.673
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/_VERSION +1 -1
- data/docs/action_log.md +1 -21
- data/docs/action_notification_export_result.md +0 -17
- data/docs/ai_assistant_personality.md +0 -14
- data/docs/ai_task.md +0 -14
- data/docs/api_key.md +1 -27
- data/docs/api_request_log.md +1 -21
- data/docs/app.md +0 -15
- data/docs/as2_incoming_message.md +0 -18
- data/docs/as2_outgoing_message.md +0 -18
- data/docs/as2_partner.md +0 -14
- data/docs/as2_station.md +0 -14
- data/docs/automation.md +1 -22
- data/docs/automation_log.md +1 -21
- data/docs/automation_run.md +0 -19
- data/docs/bandwidth_snapshot.md +0 -18
- data/docs/behavior.md +0 -14
- data/docs/bundle.md +1 -50
- data/docs/bundle_action.md +0 -25
- data/docs/bundle_download.md +0 -23
- data/docs/bundle_notification.md +0 -19
- data/docs/bundle_recipient.md +0 -21
- data/docs/bundle_registration.md +0 -61
- data/docs/chat_session.md +2 -14
- data/docs/child_site_management_policy.md +0 -9
- data/docs/clickwrap.md +0 -13
- data/docs/custom_domain.md +0 -13
- data/docs/desktop_configuration_profile.md +0 -14
- data/docs/dns_record.md +0 -9
- data/docs/email_incoming_message.md +0 -19
- data/docs/email_log.md +1 -20
- data/docs/event_channel.md +0 -14
- data/docs/event_delivery_attempt.md +0 -14
- data/docs/event_record.md +0 -19
- data/docs/event_subscription.md +0 -14
- data/docs/event_target.md +0 -14
- data/docs/exavault_api_request_log.md +1 -21
- data/docs/expectation.md +0 -14
- data/docs/expectation_evaluation.md +0 -14
- data/docs/expectation_incident.md +0 -14
- data/docs/external_event.md +0 -18
- data/docs/file.md +2 -90
- data/docs/file_migration.md +0 -32
- data/docs/file_migration_log.md +1 -20
- data/docs/file_upload_part.md +1 -3
- data/docs/folder.md +0 -20
- data/docs/form_field_set.md +0 -15
- data/docs/ftp_action_log.md +1 -21
- data/docs/gpg_key.md +0 -21
- data/docs/group.md +0 -19
- data/docs/group_user.md +2 -22
- data/docs/history.md +0 -85
- data/docs/history_export_result.md +0 -17
- data/docs/holiday_region.md +0 -9
- data/docs/inbound_s3_log.md +1 -21
- data/docs/inbox_recipient.md +0 -19
- data/docs/inbox_registration.md +0 -57
- data/docs/inbox_upload.md +0 -18
- data/docs/invoice.md +0 -9
- data/docs/ip_address.md +0 -59
- data/docs/key_lifecycle_rule.md +0 -14
- data/docs/lock.md +0 -15
- data/docs/message.md +0 -17
- data/docs/message_comment.md +0 -18
- data/docs/message_comment_reaction.md +0 -18
- data/docs/message_reaction.md +0 -17
- data/docs/metadata_category.md +0 -13
- data/docs/notification.md +0 -20
- data/docs/outbound_connection_log.md +1 -21
- data/docs/partner.md +0 -14
- data/docs/partner_channel.md +0 -14
- data/docs/partner_site_request.md +0 -14
- data/docs/payment.md +0 -9
- data/docs/pending_work_event.md +0 -18
- data/docs/permission.md +0 -22
- data/docs/preview.md +0 -57
- data/docs/project.md +0 -9
- data/docs/public_hosting_request_log.md +1 -21
- data/docs/public_key.md +0 -21
- data/docs/remote_bandwidth_snapshot.md +0 -18
- data/docs/remote_mount_backend.md +0 -13
- data/docs/remote_server.md +0 -233
- data/docs/remote_server_credential.md +0 -15
- data/docs/request.md +0 -17
- data/docs/restore.md +0 -14
- data/docs/scheduled_export.md +0 -15
- data/docs/scim_log.md +0 -13
- data/docs/session.md +1 -232
- data/docs/settings_change.md +0 -16
- data/docs/sftp_action_log.md +1 -21
- data/docs/sftp_host_key.md +0 -9
- data/docs/share_group.md +0 -15
- data/docs/siem_http_destination.md +0 -9
- data/docs/siem_http_destination_event.md +0 -18
- data/docs/site.md +0 -179
- data/docs/site_subdomain_redirect.md +0 -13
- data/docs/snapshot.md +0 -9
- data/docs/sso_event.md +0 -19
- data/docs/sso_strategy.md +0 -406
- data/docs/sync.md +0 -14
- data/docs/sync_log.md +1 -20
- data/docs/sync_run.md +0 -21
- data/docs/usage_daily_snapshot.md +0 -18
- data/docs/usage_snapshot.md +0 -9
- data/docs/user.md +2 -49
- data/docs/user_cipher_use.md +0 -21
- data/docs/user_lifecycle_rule.md +0 -14
- data/docs/user_request.md +0 -9
- data/docs/user_security_event.md +0 -18
- data/docs/user_sftp_client_use.md +0 -15
- data/docs/web_dav_action_log.md +1 -21
- data/docs/workspace.md +0 -15
- data/lib/files.com/models/action_log.rb +0 -24
- data/lib/files.com/models/action_notification_export_result.rb +0 -12
- data/lib/files.com/models/ai_assistant_personality.rb +0 -11
- data/lib/files.com/models/ai_task.rb +0 -11
- data/lib/files.com/models/api_key.rb +5 -39
- data/lib/files.com/models/api_request_log.rb +0 -24
- data/lib/files.com/models/app.rb +0 -13
- data/lib/files.com/models/as2_incoming_message.rb +0 -19
- data/lib/files.com/models/as2_outgoing_message.rb +0 -19
- data/lib/files.com/models/as2_partner.rb +0 -11
- data/lib/files.com/models/as2_station.rb +0 -11
- data/lib/files.com/models/automation.rb +0 -30
- data/lib/files.com/models/automation_log.rb +0 -24
- data/lib/files.com/models/automation_run.rb +0 -16
- data/lib/files.com/models/bandwidth_snapshot.rb +0 -19
- data/lib/files.com/models/behavior.rb +0 -11
- data/lib/files.com/models/bundle.rb +0 -52
- data/lib/files.com/models/bundle_action.rb +0 -25
- data/lib/files.com/models/bundle_download.rb +0 -23
- data/lib/files.com/models/bundle_notification.rb +0 -15
- data/lib/files.com/models/bundle_recipient.rb +0 -27
- data/lib/files.com/models/bundle_registration.rb +0 -125
- data/lib/files.com/models/chat_session.rb +5 -11
- data/lib/files.com/models/child_site_management_policy.rb +0 -5
- data/lib/files.com/models/clickwrap.rb +0 -9
- data/lib/files.com/models/custom_domain.rb +0 -9
- data/lib/files.com/models/desktop_configuration_profile.rb +0 -11
- data/lib/files.com/models/dns_record.rb +0 -5
- data/lib/files.com/models/email_incoming_message.rb +0 -21
- data/lib/files.com/models/email_log.rb +0 -22
- data/lib/files.com/models/event_channel.rb +0 -11
- data/lib/files.com/models/event_delivery_attempt.rb +0 -11
- data/lib/files.com/models/event_record.rb +0 -21
- data/lib/files.com/models/event_subscription.rb +0 -11
- data/lib/files.com/models/event_target.rb +0 -11
- data/lib/files.com/models/exavault_api_request_log.rb +0 -24
- data/lib/files.com/models/expectation.rb +0 -11
- data/lib/files.com/models/expectation_evaluation.rb +0 -11
- data/lib/files.com/models/expectation_incident.rb +0 -11
- data/lib/files.com/models/external_event.rb +0 -19
- data/lib/files.com/models/file.rb +67 -207
- data/lib/files.com/models/file_migration.rb +0 -27
- data/lib/files.com/models/file_migration_log.rb +0 -22
- data/lib/files.com/models/file_upload_part.rb +0 -5
- data/lib/files.com/models/folder.rb +0 -69
- data/lib/files.com/models/form_field_set.rb +0 -9
- data/lib/files.com/models/ftp_action_log.rb +0 -24
- data/lib/files.com/models/gpg_key.rb +0 -21
- data/lib/files.com/models/group.rb +0 -16
- data/lib/files.com/models/group_user.rb +1 -21
- data/lib/files.com/models/history.rb +0 -94
- data/lib/files.com/models/history_export_result.rb +0 -12
- data/lib/files.com/models/holiday_region.rb +0 -5
- data/lib/files.com/models/inbound_s3_log.rb +0 -24
- data/lib/files.com/models/inbox_recipient.rb +0 -25
- data/lib/files.com/models/inbox_registration.rb +0 -121
- data/lib/files.com/models/inbox_upload.rb +0 -19
- data/lib/files.com/models/invoice.rb +0 -5
- data/lib/files.com/models/ip_address.rb +0 -37
- data/lib/files.com/models/key_lifecycle_rule.rb +0 -11
- data/lib/files.com/models/lock.rb +0 -27
- data/lib/files.com/models/message.rb +0 -12
- data/lib/files.com/models/message_comment.rb +0 -14
- data/lib/files.com/models/message_comment_reaction.rb +0 -14
- data/lib/files.com/models/message_reaction.rb +0 -12
- data/lib/files.com/models/metadata_category.rb +0 -9
- data/lib/files.com/models/notification.rb +0 -18
- data/lib/files.com/models/outbound_connection_log.rb +0 -24
- data/lib/files.com/models/partner.rb +0 -11
- data/lib/files.com/models/partner_channel.rb +0 -11
- data/lib/files.com/models/partner_site_request.rb +0 -11
- data/lib/files.com/models/payment.rb +0 -5
- data/lib/files.com/models/pending_work_event.rb +0 -19
- data/lib/files.com/models/permission.rb +0 -22
- data/lib/files.com/models/preview.rb +0 -57
- data/lib/files.com/models/project.rb +0 -5
- data/lib/files.com/models/public_hosting_request_log.rb +0 -24
- data/lib/files.com/models/public_key.rb +0 -21
- data/lib/files.com/models/remote_bandwidth_snapshot.rb +0 -19
- data/lib/files.com/models/remote_mount_backend.rb +0 -9
- data/lib/files.com/models/remote_server.rb +0 -297
- data/lib/files.com/models/remote_server_credential.rb +0 -13
- data/lib/files.com/models/request.rb +0 -12
- data/lib/files.com/models/restore.rb +0 -11
- data/lib/files.com/models/scheduled_export.rb +0 -13
- data/lib/files.com/models/scim_log.rb +0 -9
- data/lib/files.com/models/session.rb +0 -493
- data/lib/files.com/models/settings_change.rb +0 -16
- data/lib/files.com/models/sftp_action_log.rb +0 -24
- data/lib/files.com/models/sftp_host_key.rb +0 -5
- data/lib/files.com/models/share_group.rb +0 -9
- data/lib/files.com/models/siem_http_destination.rb +0 -5
- data/lib/files.com/models/siem_http_destination_event.rb +0 -19
- data/lib/files.com/models/site.rb +0 -1021
- data/lib/files.com/models/site_subdomain_redirect.rb +0 -9
- data/lib/files.com/models/snapshot.rb +0 -5
- data/lib/files.com/models/sso_event.rb +0 -21
- data/lib/files.com/models/sso_strategy.rb +0 -632
- data/lib/files.com/models/sync.rb +0 -11
- data/lib/files.com/models/sync_log.rb +0 -22
- data/lib/files.com/models/sync_run.rb +0 -21
- data/lib/files.com/models/usage_daily_snapshot.rb +0 -19
- data/lib/files.com/models/usage_snapshot.rb +0 -5
- data/lib/files.com/models/user.rb +0 -59
- data/lib/files.com/models/user_cipher_use.rb +0 -21
- data/lib/files.com/models/user_lifecycle_rule.rb +0 -11
- data/lib/files.com/models/user_request.rb +0 -5
- data/lib/files.com/models/user_security_event.rb +0 -19
- data/lib/files.com/models/user_sftp_client_use.rb +0 -9
- data/lib/files.com/models/web_dav_action_log.rb +0 -24
- data/lib/files.com/models/workspace.rb +0 -13
- data/lib/files.com/path_util.rb +1 -1
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +0 -59
- data/shared/normalization_for_comparison_test_data.json +3 -1
- data/spec/models/file_underscore_destinations_spec.rb +24 -0
- data/spec/path_util_spec.rb +5 -0
- metadata +2 -119
- data/docs/account.md +0 -155
- data/docs/action_webhook_failure.md +0 -28
- data/docs/agent_proxy_identity.md +0 -49
- data/docs/agent_proxy_identity_endpoint.md +0 -11
- data/docs/agent_proxy_identity_result.md +0 -24
- data/docs/agent_v2_auth.md +0 -17
- data/docs/announcement.md +0 -57
- data/docs/blog_post.md +0 -57
- data/docs/bundle_recipient_registration.md +0 -39
- data/docs/certificate.md +0 -258
- data/docs/child_site.md +0 -583
- data/docs/clickwrap_acceptance.md +0 -30
- data/docs/client_log.md +0 -17
- data/docs/crash_report.md +0 -50
- data/docs/custom_domain_for_proxy.md +0 -23
- data/docs/email_preference.md +0 -108
- data/docs/email_preference_bundle_notification.md +0 -15
- data/docs/email_preference_notification.md +0 -17
- data/docs/export.md +0 -90
- data/docs/front_end_server.md +0 -111
- data/docs/frontend_metric.md +0 -34
- data/docs/inbox.md +0 -102
- data/docs/inbox_recipient_registration.md +0 -35
- data/docs/ip.md +0 -63
- data/docs/ip_abuse_entry.md +0 -47
- data/docs/label.md +0 -9
- data/docs/lead.md +0 -161
- data/docs/monitoring_stat.md +0 -38
- data/docs/monitoring_stats.md +0 -15
- data/docs/mover_package.md +0 -68
- data/docs/nps_response.md +0 -75
- data/docs/oauth_redirect.md +0 -11
- data/docs/paired_api_key.md +0 -19
- data/docs/paypal_express_info.md +0 -31
- data/docs/paypal_express_url.md +0 -11
- data/docs/plan.md +0 -107
- data/docs/public_hosting_session_pairing.md +0 -15
- data/docs/public_inbox.md +0 -121
- data/docs/public_url.md +0 -59
- data/docs/regional_migration.md +0 -0
- data/docs/release.md +0 -83
- data/docs/release_package.md +0 -19
- data/docs/revision.md +0 -40
- data/docs/safe_plan.md +0 -0
- data/docs/session_available_site.md +0 -26
- data/docs/setting.md +0 -33
- data/docs/settings.md +0 -498
- data/docs/ssl_certificate.md +0 -37
- data/docs/staging_site.md +0 -591
- data/docs/support_request.md +0 -126
- data/docs/sync_api_usage_snapshot.md +0 -23
- data/docs/sync_api_usage_snapshot_report.md +0 -71
- data/docs/sync_bandwidth_snapshot.md +0 -48
- data/docs/two_factor_authentication_method.md +0 -169
- data/docs/warning.md +0 -36
- data/docs/webauthn_sign_request.md +0 -13
- data/docs/zip_download.md +0 -32
- data/docs/zip_download_file.md +0 -45
- data/docs/zip_download_files.md +0 -23
- data/lib/files.com/models/account.rb +0 -346
- data/lib/files.com/models/action_webhook_failure.rb +0 -34
- data/lib/files.com/models/agent_proxy_identity.rb +0 -47
- data/lib/files.com/models/agent_proxy_identity_endpoint.rb +0 -17
- data/lib/files.com/models/agent_proxy_identity_result.rb +0 -27
- data/lib/files.com/models/agent_v2_auth.rb +0 -32
- data/lib/files.com/models/announcement.rb +0 -89
- data/lib/files.com/models/blog_post.rb +0 -84
- data/lib/files.com/models/bundle_recipient_registration.rb +0 -105
- data/lib/files.com/models/certificate.rb +0 -455
- data/lib/files.com/models/child_site.rb +0 -1756
- data/lib/files.com/models/clickwrap_acceptance.rb +0 -56
- data/lib/files.com/models/client_log.rb +0 -25
- data/lib/files.com/models/crash_report.rb +0 -151
- data/lib/files.com/models/custom_domain_for_proxy.rb +0 -47
- data/lib/files.com/models/email_preference.rb +0 -124
- data/lib/files.com/models/email_preference_bundle_notification.rb +0 -27
- data/lib/files.com/models/email_preference_notification.rb +0 -32
- data/lib/files.com/models/export.rb +0 -153
- data/lib/files.com/models/front_end_server.rb +0 -335
- data/lib/files.com/models/frontend_metric.rb +0 -65
- data/lib/files.com/models/inbox.rb +0 -123
- data/lib/files.com/models/inbox_recipient_registration.rb +0 -87
- data/lib/files.com/models/ip.rb +0 -82
- data/lib/files.com/models/ip_abuse_entry.rb +0 -96
- data/lib/files.com/models/label.rb +0 -22
- data/lib/files.com/models/lead.rb +0 -434
- data/lib/files.com/models/monitoring_stat.rb +0 -43
- data/lib/files.com/models/monitoring_stats.rb +0 -22
- data/lib/files.com/models/mover_package.rb +0 -80
- data/lib/files.com/models/nps_response.rb +0 -128
- data/lib/files.com/models/oauth_redirect.rb +0 -17
- data/lib/files.com/models/paired_api_key.rb +0 -37
- data/lib/files.com/models/paypal_express_info.rb +0 -67
- data/lib/files.com/models/paypal_express_url.rb +0 -17
- data/lib/files.com/models/plan.rb +0 -209
- data/lib/files.com/models/public_hosting_session_pairing.rb +0 -27
- data/lib/files.com/models/public_inbox.rb +0 -142
- data/lib/files.com/models/public_url.rb +0 -177
- data/lib/files.com/models/regional_migration.rb +0 -12
- data/lib/files.com/models/release.rb +0 -153
- data/lib/files.com/models/release_package.rb +0 -37
- data/lib/files.com/models/revision.rb +0 -53
- data/lib/files.com/models/safe_plan.rb +0 -12
- data/lib/files.com/models/session_available_site.rb +0 -47
- data/lib/files.com/models/setting.rb +0 -36
- data/lib/files.com/models/settings.rb +0 -1072
- data/lib/files.com/models/ssl_certificate.rb +0 -77
- data/lib/files.com/models/staging_site.rb +0 -1781
- data/lib/files.com/models/support_request.rb +0 -209
- data/lib/files.com/models/sync_api_usage_snapshot.rb +0 -47
- data/lib/files.com/models/sync_api_usage_snapshot_report.rb +0 -162
- data/lib/files.com/models/sync_bandwidth_snapshot.rb +0 -104
- data/lib/files.com/models/two_factor_authentication_method.rb +0 -250
- data/lib/files.com/models/warning.rb +0 -38
- data/lib/files.com/models/webauthn_sign_request.rb +0 -17
- data/lib/files.com/models/zip_download.rb +0 -73
- data/lib/files.com/models/zip_download_file.rb +0 -111
- data/lib/files.com/models/zip_download_files.rb +0 -42
|
@@ -342,15 +342,6 @@ 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
|
-
|
|
354
345
|
# string - Either `in_setup` or `complete`
|
|
355
346
|
def auth_status
|
|
356
347
|
@attributes[:auth_status]
|
|
@@ -857,58 +848,6 @@ module Files
|
|
|
857
848
|
Api.send_request("/remote_servers/#{@attributes[:id]}/agent_push_update", :post, params, @options)
|
|
858
849
|
end
|
|
859
850
|
|
|
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
|
-
|
|
912
851
|
# Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
|
|
913
852
|
#
|
|
914
853
|
# Parameters:
|
|
@@ -1150,18 +1089,6 @@ module Files
|
|
|
1150
1089
|
list(params, options)
|
|
1151
1090
|
end
|
|
1152
1091
|
|
|
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
|
-
|
|
1165
1092
|
# Parameters:
|
|
1166
1093
|
# id (required) - int64 - Remote Server ID.
|
|
1167
1094
|
def self.find(id, params = {}, options = {})
|
|
@@ -1357,58 +1284,6 @@ module Files
|
|
|
1357
1284
|
AgentPushUpdate.new(response.data, options)
|
|
1358
1285
|
end
|
|
1359
1286
|
|
|
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
|
-
|
|
1412
1287
|
# Post local changes, check in, and download configuration file (used by some Remote Server integrations, such as the Files.com Agent)
|
|
1413
1288
|
#
|
|
1414
1289
|
# Parameters:
|
|
@@ -1444,178 +1319,6 @@ module Files
|
|
|
1444
1319
|
RemoteServerConfigurationFile.new(response.data, options)
|
|
1445
1320
|
end
|
|
1446
1321
|
|
|
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
|
-
|
|
1619
1322
|
# Parameters:
|
|
1620
1323
|
# password - string - Password, if needed.
|
|
1621
1324
|
# private_key - string - Private key, if needed.
|
|
@@ -521,19 +521,6 @@ 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
|
-
|
|
537
524
|
# Parameters:
|
|
538
525
|
# name - string - Internal name for your reference
|
|
539
526
|
# description - string - Internal description for your reference
|
|
@@ -165,18 +165,6 @@ 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
|
-
|
|
180
168
|
def self.delete(id, params = {}, options = {})
|
|
181
169
|
params ||= {}
|
|
182
170
|
params[:id] = id
|
|
@@ -256,16 +256,5 @@ 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
|
|
270
259
|
end
|
|
271
260
|
end
|
|
@@ -301,19 +301,6 @@ 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
|
-
|
|
317
304
|
# Parameters:
|
|
318
305
|
# name - string - Name for this scheduled export.
|
|
319
306
|
# export_type - string - Export report type. Valid values: folder_size_audit, group_membership_audit, permission_audit, share_link_audit
|
|
@@ -82,14 +82,5 @@ 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
|
|
94
85
|
end
|
|
95
86
|
end
|