files.com 1.1.670 → 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/_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/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
|
@@ -566,6 +566,15 @@ module Files
|
|
|
566
566
|
@write_io.write_nonblock *args
|
|
567
567
|
end
|
|
568
568
|
|
|
569
|
+
# int64 - File/Folder ID. Used only for ExaVault compatibility API. Do not use for other purposes, as this value will not always be set.
|
|
570
|
+
def id
|
|
571
|
+
@attributes[:id]
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
def id=(value)
|
|
575
|
+
@attributes[:id] = value
|
|
576
|
+
end
|
|
577
|
+
|
|
569
578
|
# string - File/Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
570
579
|
def path
|
|
571
580
|
@attributes[:path]
|
|
@@ -575,6 +584,15 @@ module Files
|
|
|
575
584
|
@attributes[:path] = value
|
|
576
585
|
end
|
|
577
586
|
|
|
587
|
+
# string - File/Folder absolute path for Bundle Trusted Relay use
|
|
588
|
+
def path_absolute
|
|
589
|
+
@attributes[:path_absolute]
|
|
590
|
+
end
|
|
591
|
+
|
|
592
|
+
def path_absolute=(value)
|
|
593
|
+
@attributes[:path_absolute] = value
|
|
594
|
+
end
|
|
595
|
+
|
|
578
596
|
# int64 - User ID of the User who created the file/folder
|
|
579
597
|
def created_by_id
|
|
580
598
|
@attributes[:created_by_id]
|
|
@@ -841,6 +859,42 @@ module Files
|
|
|
841
859
|
@attributes[:is_locked] = value
|
|
842
860
|
end
|
|
843
861
|
|
|
862
|
+
# int64 - Used for internal bandwidth tracking
|
|
863
|
+
def remote_server_id
|
|
864
|
+
@attributes[:remote_server_id]
|
|
865
|
+
end
|
|
866
|
+
|
|
867
|
+
def remote_server_id=(value)
|
|
868
|
+
@attributes[:remote_server_id] = value
|
|
869
|
+
end
|
|
870
|
+
|
|
871
|
+
# object - Used for internal url management
|
|
872
|
+
def headers
|
|
873
|
+
@attributes[:headers]
|
|
874
|
+
end
|
|
875
|
+
|
|
876
|
+
def headers=(value)
|
|
877
|
+
@attributes[:headers] = value
|
|
878
|
+
end
|
|
879
|
+
|
|
880
|
+
# array(string) - Used for internal url management
|
|
881
|
+
def socks_ips
|
|
882
|
+
@attributes[:socks_ips]
|
|
883
|
+
end
|
|
884
|
+
|
|
885
|
+
def socks_ips=(value)
|
|
886
|
+
@attributes[:socks_ips] = value
|
|
887
|
+
end
|
|
888
|
+
|
|
889
|
+
# string - For use with internal services and should also be with headers and socks_ips
|
|
890
|
+
def internal_download_uri
|
|
891
|
+
@attributes[:internal_download_uri]
|
|
892
|
+
end
|
|
893
|
+
|
|
894
|
+
def internal_download_uri=(value)
|
|
895
|
+
@attributes[:internal_download_uri] = value
|
|
896
|
+
end
|
|
897
|
+
|
|
844
898
|
# string - Link to download file. Provided only in response to a download request.
|
|
845
899
|
def download_uri
|
|
846
900
|
@attributes[:download_uri]
|
|
@@ -877,6 +931,24 @@ module Files
|
|
|
877
931
|
@attributes[:preview] = value
|
|
878
932
|
end
|
|
879
933
|
|
|
934
|
+
# string
|
|
935
|
+
def copy_destination
|
|
936
|
+
@attributes[:copy_destination]
|
|
937
|
+
end
|
|
938
|
+
|
|
939
|
+
def copy_destination=(value)
|
|
940
|
+
@attributes[:copy_destination] = value
|
|
941
|
+
end
|
|
942
|
+
|
|
943
|
+
# string
|
|
944
|
+
def move_destination
|
|
945
|
+
@attributes[:move_destination]
|
|
946
|
+
end
|
|
947
|
+
|
|
948
|
+
def move_destination=(value)
|
|
949
|
+
@attributes[:move_destination] = value
|
|
950
|
+
end
|
|
951
|
+
|
|
880
952
|
# string - The action to perform. Can be `append`, `attachment`, `end`, `upload`, `put`, or may not exist
|
|
881
953
|
def action
|
|
882
954
|
@attributes[:action]
|
|
@@ -886,6 +958,33 @@ module Files
|
|
|
886
958
|
@attributes[:action] = value
|
|
887
959
|
end
|
|
888
960
|
|
|
961
|
+
# object - Attributes to pass through for recording the Action. Used for overriding action types (i.e. representing copy/move)
|
|
962
|
+
def action_attributes
|
|
963
|
+
@attributes[:action_attributes]
|
|
964
|
+
end
|
|
965
|
+
|
|
966
|
+
def action_attributes=(value)
|
|
967
|
+
@attributes[:action_attributes] = value
|
|
968
|
+
end
|
|
969
|
+
|
|
970
|
+
# object
|
|
971
|
+
def file
|
|
972
|
+
@attributes[:file]
|
|
973
|
+
end
|
|
974
|
+
|
|
975
|
+
def file=(value)
|
|
976
|
+
@attributes[:file] = value
|
|
977
|
+
end
|
|
978
|
+
|
|
979
|
+
# string
|
|
980
|
+
def crc32b
|
|
981
|
+
@attributes[:crc32b]
|
|
982
|
+
end
|
|
983
|
+
|
|
984
|
+
def crc32b=(value)
|
|
985
|
+
@attributes[:crc32b] = value
|
|
986
|
+
end
|
|
987
|
+
|
|
889
988
|
# int64 - Length of file.
|
|
890
989
|
def length
|
|
891
990
|
@attributes[:length]
|
|
@@ -904,6 +1003,15 @@ module Files
|
|
|
904
1003
|
@attributes[:mkdir_parents] = value
|
|
905
1004
|
end
|
|
906
1005
|
|
|
1006
|
+
# boolean - Overwrite existing file(s) in the destination?
|
|
1007
|
+
def overwrite
|
|
1008
|
+
@attributes[:overwrite]
|
|
1009
|
+
end
|
|
1010
|
+
|
|
1011
|
+
def overwrite=(value)
|
|
1012
|
+
@attributes[:overwrite] = value
|
|
1013
|
+
end
|
|
1014
|
+
|
|
907
1015
|
# int64 - Part if uploading a part.
|
|
908
1016
|
def part
|
|
909
1017
|
@attributes[:part]
|
|
@@ -922,6 +1030,15 @@ module Files
|
|
|
922
1030
|
@attributes[:parts] = value
|
|
923
1031
|
end
|
|
924
1032
|
|
|
1033
|
+
# boolean
|
|
1034
|
+
def prefer_spdy
|
|
1035
|
+
@attributes[:prefer_spdy]
|
|
1036
|
+
end
|
|
1037
|
+
|
|
1038
|
+
def prefer_spdy=(value)
|
|
1039
|
+
@attributes[:prefer_spdy] = value
|
|
1040
|
+
end
|
|
1041
|
+
|
|
925
1042
|
# string -
|
|
926
1043
|
def ref
|
|
927
1044
|
@attributes[:ref]
|
|
@@ -967,6 +1084,24 @@ module Files
|
|
|
967
1084
|
@attributes[:with_rename] = value
|
|
968
1085
|
end
|
|
969
1086
|
|
|
1087
|
+
# string
|
|
1088
|
+
def inbox_registration_code
|
|
1089
|
+
@attributes[:inbox_registration_code]
|
|
1090
|
+
end
|
|
1091
|
+
|
|
1092
|
+
def inbox_registration_code=(value)
|
|
1093
|
+
@attributes[:inbox_registration_code] = value
|
|
1094
|
+
end
|
|
1095
|
+
|
|
1096
|
+
# string
|
|
1097
|
+
def bundle_registration_code
|
|
1098
|
+
@attributes[:bundle_registration_code]
|
|
1099
|
+
end
|
|
1100
|
+
|
|
1101
|
+
def bundle_registration_code=(value)
|
|
1102
|
+
@attributes[:bundle_registration_code] = value
|
|
1103
|
+
end
|
|
1104
|
+
|
|
970
1105
|
# boolean - If true, and the path refers to a destination not stored on Files.com (such as a remote server mount), the upload will be uploaded first to Files.com before being sent to the remote server mount. This can allow clients to upload using parallel parts to a remote server destination that does not offer parallel parts support natively.
|
|
971
1106
|
def buffered_upload
|
|
972
1107
|
@attributes[:buffered_upload]
|
|
@@ -980,15 +1115,19 @@ module Files
|
|
|
980
1115
|
#
|
|
981
1116
|
# Parameters:
|
|
982
1117
|
# action - string - Can be blank, `redirect` or `stat`. If set to `stat`, we will return file information but without a download URL, and without logging a download. If set to `redirect` we will serve a 302 redirect directly to the file. This is used for integrations with Zapier, and is not recommended for most integrations.
|
|
1118
|
+
# bundle_registration_code - string
|
|
1119
|
+
# prefer_spdy - boolean
|
|
983
1120
|
# preview_size - string - Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
|
|
984
1121
|
# with_previews - boolean - Include file preview information?
|
|
985
1122
|
# with_priority_color - boolean - Include file priority color information?
|
|
1123
|
+
# full_document_preview - boolean - If true, always return a proxied download uri
|
|
986
1124
|
def download(params = {})
|
|
987
1125
|
params ||= {}
|
|
988
1126
|
params[:path] = @attributes[:path]
|
|
989
1127
|
raise MissingParameterError.new("Current object doesn't have a path") unless @attributes[:path]
|
|
990
1128
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
991
1129
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
|
|
1130
|
+
raise InvalidParameterError.new("Bad parameter: bundle_registration_code must be an String") if params[:bundle_registration_code] and !params[:bundle_registration_code].is_a?(String)
|
|
992
1131
|
raise InvalidParameterError.new("Bad parameter: preview_size must be an String") if params[:preview_size] and !params[:preview_size].is_a?(String)
|
|
993
1132
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
|
994
1133
|
|
|
@@ -1013,11 +1152,13 @@ module Files
|
|
|
1013
1152
|
|
|
1014
1153
|
# Parameters:
|
|
1015
1154
|
# recursive - boolean - If true, will recursively delete folders. Otherwise, will error on non-empty folders.
|
|
1155
|
+
# bundle_registration_code - string
|
|
1016
1156
|
def delete(params = {})
|
|
1017
1157
|
params ||= {}
|
|
1018
1158
|
params[:path] = @attributes[:path]
|
|
1019
1159
|
raise MissingParameterError.new("Current object doesn't have a path") unless @attributes[:path]
|
|
1020
1160
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
1161
|
+
raise InvalidParameterError.new("Bad parameter: bundle_registration_code must be an String") if params[:bundle_registration_code] and !params[:bundle_registration_code].is_a?(String)
|
|
1021
1162
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
|
1022
1163
|
|
|
1023
1164
|
Api.send_request("/files/#{@attributes[:path]}", :delete, params, @options)
|
|
@@ -1046,12 +1187,14 @@ module Files
|
|
|
1046
1187
|
# copy_behaviors - boolean - If copying a folder, also copy supported behaviors to the destination folder tree?
|
|
1047
1188
|
# structure - boolean - Copy structure only?
|
|
1048
1189
|
# overwrite - boolean - Overwrite existing file(s) in the destination?
|
|
1190
|
+
# bundle_registration_code - string
|
|
1049
1191
|
def copy(params = {})
|
|
1050
1192
|
params ||= {}
|
|
1051
1193
|
params[:path] = @attributes[:path]
|
|
1052
1194
|
raise MissingParameterError.new("Current object doesn't have a path") unless @attributes[:path]
|
|
1053
1195
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
1054
1196
|
raise InvalidParameterError.new("Bad parameter: destination must be an String") if params[:destination] and !params[:destination].is_a?(String)
|
|
1197
|
+
raise InvalidParameterError.new("Bad parameter: bundle_registration_code must be an String") if params[:bundle_registration_code] and !params[:bundle_registration_code].is_a?(String)
|
|
1055
1198
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
|
1056
1199
|
raise MissingParameterError.new("Parameter missing: destination") unless params[:destination]
|
|
1057
1200
|
|
|
@@ -1063,12 +1206,14 @@ module Files
|
|
|
1063
1206
|
# Parameters:
|
|
1064
1207
|
# destination (required) - string - Move destination path.
|
|
1065
1208
|
# overwrite - boolean - Overwrite existing file(s) in the destination?
|
|
1209
|
+
# bundle_registration_code - string
|
|
1066
1210
|
def move(params = {})
|
|
1067
1211
|
params ||= {}
|
|
1068
1212
|
params[:path] = @attributes[:path]
|
|
1069
1213
|
raise MissingParameterError.new("Current object doesn't have a path") unless @attributes[:path]
|
|
1070
1214
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
1071
1215
|
raise InvalidParameterError.new("Bad parameter: destination must be an String") if params[:destination] and !params[:destination].is_a?(String)
|
|
1216
|
+
raise InvalidParameterError.new("Bad parameter: bundle_registration_code must be an String") if params[:bundle_registration_code] and !params[:bundle_registration_code].is_a?(String)
|
|
1072
1217
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
|
1073
1218
|
raise MissingParameterError.new("Parameter missing: destination") unless params[:destination]
|
|
1074
1219
|
|
|
@@ -1176,10 +1321,13 @@ module Files
|
|
|
1176
1321
|
# mkdir_parents - boolean - Create parent directories if they do not exist?
|
|
1177
1322
|
# part - int64 - Part if uploading a part.
|
|
1178
1323
|
# parts - int64 - How many parts to fetch?
|
|
1324
|
+
# prefer_spdy - boolean
|
|
1179
1325
|
# ref - string -
|
|
1180
1326
|
# restart - int64 - File byte offset to restart from.
|
|
1181
1327
|
# size - int64 - Total bytes of file being uploaded (include bytes being retained if appending/restarting).
|
|
1182
1328
|
# with_rename - boolean - Allow file rename instead of overwrite?
|
|
1329
|
+
# action - string
|
|
1330
|
+
# bundle_registration_code - string
|
|
1183
1331
|
# buffered_upload - boolean - If true, and the path refers to a destination not stored on Files.com (such as a remote server mount), the upload will be uploaded first to Files.com before being sent to the remote server mount. This can allow clients to upload using parallel parts to a remote server destination that does not offer parallel parts support natively.
|
|
1184
1332
|
def begin_upload(params = {})
|
|
1185
1333
|
params ||= {}
|
|
@@ -1191,6 +1339,8 @@ module Files
|
|
|
1191
1339
|
raise InvalidParameterError.new("Bad parameter: ref must be an String") if params[:ref] and !params[:ref].is_a?(String)
|
|
1192
1340
|
raise InvalidParameterError.new("Bad parameter: restart must be an Integer") if params[:restart] and !params[:restart].is_a?(Integer)
|
|
1193
1341
|
raise InvalidParameterError.new("Bad parameter: size must be an Integer") if params[:size] and !params[:size].is_a?(Integer)
|
|
1342
|
+
raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
|
|
1343
|
+
raise InvalidParameterError.new("Bad parameter: bundle_registration_code must be an String") if params[:bundle_registration_code] and !params[:bundle_registration_code].is_a?(String)
|
|
1194
1344
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
|
1195
1345
|
|
|
1196
1346
|
Api.send_request("/file_actions/begin_upload/#{@attributes[:path]}", :post, params, @options)
|
|
@@ -1206,14 +1356,18 @@ module Files
|
|
|
1206
1356
|
#
|
|
1207
1357
|
# Parameters:
|
|
1208
1358
|
# action - string - Can be blank, `redirect` or `stat`. If set to `stat`, we will return file information but without a download URL, and without logging a download. If set to `redirect` we will serve a 302 redirect directly to the file. This is used for integrations with Zapier, and is not recommended for most integrations.
|
|
1359
|
+
# bundle_registration_code - string
|
|
1360
|
+
# prefer_spdy - boolean
|
|
1209
1361
|
# preview_size - string - Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
|
|
1210
1362
|
# with_previews - boolean - Include file preview information?
|
|
1211
1363
|
# with_priority_color - boolean - Include file priority color information?
|
|
1364
|
+
# full_document_preview - boolean - If true, always return a proxied download uri
|
|
1212
1365
|
def self.download(path, params = {}, options = {})
|
|
1213
1366
|
params ||= {}
|
|
1214
1367
|
params[:path] = path
|
|
1215
1368
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
1216
1369
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
|
|
1370
|
+
raise InvalidParameterError.new("Bad parameter: bundle_registration_code must be an String") if params[:bundle_registration_code] and !params[:bundle_registration_code].is_a?(String)
|
|
1217
1371
|
raise InvalidParameterError.new("Bad parameter: preview_size must be an String") if params[:preview_size] and !params[:preview_size].is_a?(String)
|
|
1218
1372
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
|
1219
1373
|
|
|
@@ -1223,34 +1377,58 @@ module Files
|
|
|
1223
1377
|
|
|
1224
1378
|
# Parameters:
|
|
1225
1379
|
# path (required) - string - Path to operate on.
|
|
1380
|
+
# copy_destination - string
|
|
1381
|
+
# move_destination - string
|
|
1226
1382
|
# action - string - The action to perform. Can be `append`, `attachment`, `end`, `upload`, `put`, or may not exist
|
|
1383
|
+
# action_attributes - object - Attributes to pass through for recording the Action. Used for overriding action types (i.e. representing copy/move)
|
|
1384
|
+
# file - object
|
|
1385
|
+
# crc32 - string
|
|
1386
|
+
# crc32b - string
|
|
1227
1387
|
# etags[etag] (required) - array(string) - etag identifier.
|
|
1228
1388
|
# etags[part] (required) - array(int64) - Part number.
|
|
1229
1389
|
# length - int64 - Length of file.
|
|
1390
|
+
# md5 - string
|
|
1230
1391
|
# mkdir_parents - boolean - Create parent directories if they do not exist?
|
|
1392
|
+
# overwrite - boolean - Overwrite existing file(s) in the destination?
|
|
1231
1393
|
# part - int64 - Part if uploading a part.
|
|
1232
1394
|
# parts - int64 - How many parts to fetch?
|
|
1395
|
+
# prefer_spdy - boolean
|
|
1233
1396
|
# provided_mtime - string - User provided modification time.
|
|
1234
1397
|
# ref - string -
|
|
1235
1398
|
# restart - int64 - File byte offset to restart from.
|
|
1399
|
+
# sha1 - string
|
|
1400
|
+
# sha256 - string
|
|
1236
1401
|
# size - int64 - Size of file.
|
|
1237
1402
|
# copy_behaviors - boolean - If copying a folder, also copy supported behaviors to the destination folder tree?
|
|
1238
1403
|
# structure - string - If copying folder, copy just the structure?
|
|
1239
1404
|
# with_rename - boolean - Allow file rename instead of overwrite?
|
|
1405
|
+
# inbox_registration_code - string
|
|
1406
|
+
# bundle_registration_code - string
|
|
1240
1407
|
# buffered_upload - boolean - If true, and the path refers to a destination not stored on Files.com (such as a remote server mount), the upload will be uploaded first to Files.com before being sent to the remote server mount. This can allow clients to upload using parallel parts to a remote server destination that does not offer parallel parts support natively.
|
|
1241
1408
|
def self.create(path, params = {}, options = {})
|
|
1242
1409
|
params ||= {}
|
|
1243
1410
|
params[:path] = path
|
|
1244
1411
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
1412
|
+
raise InvalidParameterError.new("Bad parameter: copy_destination must be an String") if params[:copy_destination] and !params[:copy_destination].is_a?(String)
|
|
1413
|
+
raise InvalidParameterError.new("Bad parameter: move_destination must be an String") if params[:move_destination] and !params[:move_destination].is_a?(String)
|
|
1245
1414
|
raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
|
|
1415
|
+
raise InvalidParameterError.new("Bad parameter: action_attributes must be an Hash") if params[:action_attributes] and !params[:action_attributes].is_a?(Hash)
|
|
1416
|
+
raise InvalidParameterError.new("Bad parameter: file must be an Hash") if params[:file] and !params[:file].is_a?(Hash)
|
|
1417
|
+
raise InvalidParameterError.new("Bad parameter: crc32 must be an String") if params[:crc32] and !params[:crc32].is_a?(String)
|
|
1418
|
+
raise InvalidParameterError.new("Bad parameter: crc32b must be an String") if params[:crc32b] and !params[:crc32b].is_a?(String)
|
|
1246
1419
|
raise InvalidParameterError.new("Bad parameter: length must be an Integer") if params[:length] and !params[:length].is_a?(Integer)
|
|
1420
|
+
raise InvalidParameterError.new("Bad parameter: md5 must be an String") if params[:md5] and !params[:md5].is_a?(String)
|
|
1247
1421
|
raise InvalidParameterError.new("Bad parameter: part must be an Integer") if params[:part] and !params[:part].is_a?(Integer)
|
|
1248
1422
|
raise InvalidParameterError.new("Bad parameter: parts must be an Integer") if params[:parts] and !params[:parts].is_a?(Integer)
|
|
1249
1423
|
raise InvalidParameterError.new("Bad parameter: provided_mtime must be an String") if params[:provided_mtime] and !params[:provided_mtime].is_a?(String)
|
|
1250
1424
|
raise InvalidParameterError.new("Bad parameter: ref must be an String") if params[:ref] and !params[:ref].is_a?(String)
|
|
1251
1425
|
raise InvalidParameterError.new("Bad parameter: restart must be an Integer") if params[:restart] and !params[:restart].is_a?(Integer)
|
|
1426
|
+
raise InvalidParameterError.new("Bad parameter: sha1 must be an String") if params[:sha1] and !params[:sha1].is_a?(String)
|
|
1427
|
+
raise InvalidParameterError.new("Bad parameter: sha256 must be an String") if params[:sha256] and !params[:sha256].is_a?(String)
|
|
1252
1428
|
raise InvalidParameterError.new("Bad parameter: size must be an Integer") if params[:size] and !params[:size].is_a?(Integer)
|
|
1253
1429
|
raise InvalidParameterError.new("Bad parameter: structure must be an String") if params[:structure] and !params[:structure].is_a?(String)
|
|
1430
|
+
raise InvalidParameterError.new("Bad parameter: inbox_registration_code must be an String") if params[:inbox_registration_code] and !params[:inbox_registration_code].is_a?(String)
|
|
1431
|
+
raise InvalidParameterError.new("Bad parameter: bundle_registration_code must be an String") if params[:bundle_registration_code] and !params[:bundle_registration_code].is_a?(String)
|
|
1254
1432
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
|
1255
1433
|
|
|
1256
1434
|
response, options = Api.send_request("/files/#{params[:path]}", :post, params, options)
|
|
@@ -1276,10 +1454,12 @@ module Files
|
|
|
1276
1454
|
|
|
1277
1455
|
# Parameters:
|
|
1278
1456
|
# recursive - boolean - If true, will recursively delete folders. Otherwise, will error on non-empty folders.
|
|
1457
|
+
# bundle_registration_code - string
|
|
1279
1458
|
def self.delete(path, params = {}, options = {})
|
|
1280
1459
|
params ||= {}
|
|
1281
1460
|
params[:path] = path
|
|
1282
1461
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
1462
|
+
raise InvalidParameterError.new("Bad parameter: bundle_registration_code must be an String") if params[:bundle_registration_code] and !params[:bundle_registration_code].is_a?(String)
|
|
1283
1463
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
|
1284
1464
|
|
|
1285
1465
|
Api.send_request("/files/#{params[:path]}", :delete, params, options)
|
|
@@ -1291,16 +1471,34 @@ module Files
|
|
|
1291
1471
|
nil
|
|
1292
1472
|
end
|
|
1293
1473
|
|
|
1474
|
+
# Parameters:
|
|
1475
|
+
# id (required) - int64 - File/Folder ID
|
|
1476
|
+
# preview_size - string - Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
|
|
1477
|
+
# with_previews - boolean - Include file preview information?
|
|
1478
|
+
# with_priority_color - boolean - Include file priority color information?
|
|
1479
|
+
def self.find_id(id, params = {}, options = {})
|
|
1480
|
+
params ||= {}
|
|
1481
|
+
params[:id] = id
|
|
1482
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
1483
|
+
raise InvalidParameterError.new("Bad parameter: preview_size must be an String") if params[:preview_size] and !params[:preview_size].is_a?(String)
|
|
1484
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
1485
|
+
|
|
1486
|
+
response, options = Api.send_request("/file_actions/id/#{params[:id]}", :get, params, options)
|
|
1487
|
+
File.new(response.data, options)
|
|
1488
|
+
end
|
|
1489
|
+
|
|
1294
1490
|
# Parameters:
|
|
1295
1491
|
# path (required) - string - Path to operate on.
|
|
1296
1492
|
# preview_size - string - Request a preview size. Can be `small` (default), `large`, `xlarge`, or `pdf`.
|
|
1297
1493
|
# with_previews - boolean - Include file preview information?
|
|
1298
1494
|
# with_priority_color - boolean - Include file priority color information?
|
|
1495
|
+
# bundle_registration_code - string
|
|
1299
1496
|
def self.find(path, params = {}, options = {})
|
|
1300
1497
|
params ||= {}
|
|
1301
1498
|
params[:path] = path
|
|
1302
1499
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
1303
1500
|
raise InvalidParameterError.new("Bad parameter: preview_size must be an String") if params[:preview_size] and !params[:preview_size].is_a?(String)
|
|
1501
|
+
raise InvalidParameterError.new("Bad parameter: bundle_registration_code must be an String") if params[:bundle_registration_code] and !params[:bundle_registration_code].is_a?(String)
|
|
1304
1502
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
|
1305
1503
|
|
|
1306
1504
|
response, options = Api.send_request("/file_actions/metadata/#{params[:path]}", :get, params, options)
|
|
@@ -1331,11 +1529,13 @@ module Files
|
|
|
1331
1529
|
# copy_behaviors - boolean - If copying a folder, also copy supported behaviors to the destination folder tree?
|
|
1332
1530
|
# structure - boolean - Copy structure only?
|
|
1333
1531
|
# overwrite - boolean - Overwrite existing file(s) in the destination?
|
|
1532
|
+
# bundle_registration_code - string
|
|
1334
1533
|
def self.copy(path, params = {}, options = {})
|
|
1335
1534
|
params ||= {}
|
|
1336
1535
|
params[:path] = path
|
|
1337
1536
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
1338
1537
|
raise InvalidParameterError.new("Bad parameter: destination must be an String") if params[:destination] and !params[:destination].is_a?(String)
|
|
1538
|
+
raise InvalidParameterError.new("Bad parameter: bundle_registration_code must be an String") if params[:bundle_registration_code] and !params[:bundle_registration_code].is_a?(String)
|
|
1339
1539
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
|
1340
1540
|
raise MissingParameterError.new("Parameter missing: destination") unless params[:destination]
|
|
1341
1541
|
|
|
@@ -1348,11 +1548,13 @@ module Files
|
|
|
1348
1548
|
# Parameters:
|
|
1349
1549
|
# destination (required) - string - Move destination path.
|
|
1350
1550
|
# overwrite - boolean - Overwrite existing file(s) in the destination?
|
|
1551
|
+
# bundle_registration_code - string
|
|
1351
1552
|
def self.move(path, params = {}, options = {})
|
|
1352
1553
|
params ||= {}
|
|
1353
1554
|
params[:path] = path
|
|
1354
1555
|
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
1355
1556
|
raise InvalidParameterError.new("Bad parameter: destination must be an String") if params[:destination] and !params[:destination].is_a?(String)
|
|
1557
|
+
raise InvalidParameterError.new("Bad parameter: bundle_registration_code must be an String") if params[:bundle_registration_code] and !params[:bundle_registration_code].is_a?(String)
|
|
1356
1558
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
|
1357
1559
|
raise MissingParameterError.new("Parameter missing: destination") unless params[:destination]
|
|
1358
1560
|
|
|
@@ -1475,10 +1677,13 @@ module Files
|
|
|
1475
1677
|
# mkdir_parents - boolean - Create parent directories if they do not exist?
|
|
1476
1678
|
# part - int64 - Part if uploading a part.
|
|
1477
1679
|
# parts - int64 - How many parts to fetch?
|
|
1680
|
+
# prefer_spdy - boolean
|
|
1478
1681
|
# ref - string -
|
|
1479
1682
|
# restart - int64 - File byte offset to restart from.
|
|
1480
1683
|
# size - int64 - Total bytes of file being uploaded (include bytes being retained if appending/restarting).
|
|
1481
1684
|
# with_rename - boolean - Allow file rename instead of overwrite?
|
|
1685
|
+
# action - string
|
|
1686
|
+
# bundle_registration_code - string
|
|
1482
1687
|
# buffered_upload - boolean - If true, and the path refers to a destination not stored on Files.com (such as a remote server mount), the upload will be uploaded first to Files.com before being sent to the remote server mount. This can allow clients to upload using parallel parts to a remote server destination that does not offer parallel parts support natively.
|
|
1483
1688
|
def self.begin_upload(path, params = {}, options = {})
|
|
1484
1689
|
params ||= {}
|
|
@@ -1489,6 +1694,8 @@ module Files
|
|
|
1489
1694
|
raise InvalidParameterError.new("Bad parameter: ref must be an String") if params[:ref] and !params[:ref].is_a?(String)
|
|
1490
1695
|
raise InvalidParameterError.new("Bad parameter: restart must be an Integer") if params[:restart] and !params[:restart].is_a?(Integer)
|
|
1491
1696
|
raise InvalidParameterError.new("Bad parameter: size must be an Integer") if params[:size] and !params[:size].is_a?(Integer)
|
|
1697
|
+
raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
|
|
1698
|
+
raise InvalidParameterError.new("Bad parameter: bundle_registration_code must be an String") if params[:bundle_registration_code] and !params[:bundle_registration_code].is_a?(String)
|
|
1492
1699
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
|
1493
1700
|
|
|
1494
1701
|
response, options = Api.send_request("/file_actions/begin_upload/#{params[:path]}", :post, params, options)
|
|
@@ -59,6 +59,24 @@ module Files
|
|
|
59
59
|
@attributes[:log_url]
|
|
60
60
|
end
|
|
61
61
|
|
|
62
|
+
# Parameters:
|
|
63
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
64
|
+
# 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.
|
|
65
|
+
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
66
|
+
def self.list(params = {}, options = {})
|
|
67
|
+
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
68
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
69
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
70
|
+
|
|
71
|
+
List.new(FileMigration, params) do
|
|
72
|
+
Api.send_request("/file_migrations", :get, params, options)
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
def self.all(params = {}, options = {})
|
|
77
|
+
list(params, options)
|
|
78
|
+
end
|
|
79
|
+
|
|
62
80
|
# Parameters:
|
|
63
81
|
# id (required) - int64 - File Migration ID.
|
|
64
82
|
def self.find(id, params = {}, options = {})
|
|
@@ -74,5 +92,14 @@ module Files
|
|
|
74
92
|
def self.get(id, params = {}, options = {})
|
|
75
93
|
find(id, params, options)
|
|
76
94
|
end
|
|
95
|
+
|
|
96
|
+
# Parameters:
|
|
97
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
98
|
+
def self.create_export(params = {}, options = {})
|
|
99
|
+
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
100
|
+
|
|
101
|
+
response, options = Api.send_request("/file_migrations/create_export", :post, params, options)
|
|
102
|
+
Export.new(response.data, options)
|
|
103
|
+
end
|
|
77
104
|
end
|
|
78
105
|
end
|
|
@@ -54,6 +54,11 @@ module Files
|
|
|
54
54
|
@attributes[:created_at]
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
+
# string - Log Type
|
|
58
|
+
def log_type
|
|
59
|
+
@attributes[:log_type]
|
|
60
|
+
end
|
|
61
|
+
|
|
57
62
|
# Parameters:
|
|
58
63
|
# 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.
|
|
59
64
|
# per_page - int64 - Number of records to show per page. (Max: 2000, 1,000 or less is recommended).
|
|
@@ -79,5 +84,22 @@ module Files
|
|
|
79
84
|
def self.all(params = {}, options = {})
|
|
80
85
|
list(params, options)
|
|
81
86
|
end
|
|
87
|
+
|
|
88
|
+
# Parameters:
|
|
89
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `file_migration_id`, `operation`, `status`, `type` or `created_at`. Valid field combinations are `[ file_migration_id ]`, `[ operation ]`, `[ status ]`, `[ type ]`, `[ created_at ]`, `[ file_migration_id, operation ]`, `[ file_migration_id, status ]`, `[ file_migration_id, type ]`, `[ file_migration_id, created_at ]`, `[ operation, status ]`, `[ operation, type ]`, `[ operation, created_at ]`, `[ status, type ]`, `[ status, created_at ]`, `[ type, created_at ]`, `[ file_migration_id, operation, status ]`, `[ file_migration_id, operation, type ]`, `[ file_migration_id, operation, created_at ]`, `[ file_migration_id, status, type ]`, `[ file_migration_id, status, created_at ]`, `[ file_migration_id, type, created_at ]`, `[ operation, status, type ]`, `[ operation, status, created_at ]`, `[ operation, type, created_at ]`, `[ status, type, created_at ]`, `[ file_migration_id, operation, status, type ]`, `[ file_migration_id, operation, status, created_at ]`, `[ file_migration_id, operation, type, created_at ]`, `[ file_migration_id, status, type, created_at ]`, `[ operation, status, type, created_at ]` or `[ file_migration_id, operation, status, type, created_at ]`.
|
|
90
|
+
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`. Valid field combinations are `[ file_migration_id ]`, `[ operation ]`, `[ status ]`, `[ type ]`, `[ created_at ]`, `[ file_migration_id, operation ]`, `[ file_migration_id, status ]`, `[ file_migration_id, type ]`, `[ file_migration_id, created_at ]`, `[ operation, status ]`, `[ operation, type ]`, `[ operation, created_at ]`, `[ status, type ]`, `[ status, created_at ]`, `[ type, created_at ]`, `[ file_migration_id, operation, status ]`, `[ file_migration_id, operation, type ]`, `[ file_migration_id, operation, created_at ]`, `[ file_migration_id, status, type ]`, `[ file_migration_id, status, created_at ]`, `[ file_migration_id, type, created_at ]`, `[ operation, status, type ]`, `[ operation, status, created_at ]`, `[ operation, type, created_at ]`, `[ status, type, created_at ]`, `[ file_migration_id, operation, status, type ]`, `[ file_migration_id, operation, status, created_at ]`, `[ file_migration_id, operation, type, created_at ]`, `[ file_migration_id, status, type, created_at ]`, `[ operation, status, type, created_at ]` or `[ file_migration_id, operation, status, type, created_at ]`.
|
|
91
|
+
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`. Valid field combinations are `[ file_migration_id ]`, `[ operation ]`, `[ status ]`, `[ type ]`, `[ created_at ]`, `[ file_migration_id, operation ]`, `[ file_migration_id, status ]`, `[ file_migration_id, type ]`, `[ file_migration_id, created_at ]`, `[ operation, status ]`, `[ operation, type ]`, `[ operation, created_at ]`, `[ status, type ]`, `[ status, created_at ]`, `[ type, created_at ]`, `[ file_migration_id, operation, status ]`, `[ file_migration_id, operation, type ]`, `[ file_migration_id, operation, created_at ]`, `[ file_migration_id, status, type ]`, `[ file_migration_id, status, created_at ]`, `[ file_migration_id, type, created_at ]`, `[ operation, status, type ]`, `[ operation, status, created_at ]`, `[ operation, type, created_at ]`, `[ status, type, created_at ]`, `[ file_migration_id, operation, status, type ]`, `[ file_migration_id, operation, status, created_at ]`, `[ file_migration_id, operation, type, created_at ]`, `[ file_migration_id, status, type, created_at ]`, `[ operation, status, type, created_at ]` or `[ file_migration_id, operation, status, type, created_at ]`.
|
|
92
|
+
# filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`. Valid field combinations are `[ file_migration_id ]`, `[ operation ]`, `[ status ]`, `[ type ]`, `[ created_at ]`, `[ file_migration_id, operation ]`, `[ file_migration_id, status ]`, `[ file_migration_id, type ]`, `[ file_migration_id, created_at ]`, `[ operation, status ]`, `[ operation, type ]`, `[ operation, created_at ]`, `[ status, type ]`, `[ status, created_at ]`, `[ type, created_at ]`, `[ file_migration_id, operation, status ]`, `[ file_migration_id, operation, type ]`, `[ file_migration_id, operation, created_at ]`, `[ file_migration_id, status, type ]`, `[ file_migration_id, status, created_at ]`, `[ file_migration_id, type, created_at ]`, `[ operation, status, type ]`, `[ operation, status, created_at ]`, `[ operation, type, created_at ]`, `[ status, type, created_at ]`, `[ file_migration_id, operation, status, type ]`, `[ file_migration_id, operation, status, created_at ]`, `[ file_migration_id, operation, type, created_at ]`, `[ file_migration_id, status, type, created_at ]`, `[ operation, status, type, created_at ]` or `[ file_migration_id, operation, status, type, created_at ]`.
|
|
93
|
+
# filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`. Valid field combinations are `[ file_migration_id ]`, `[ operation ]`, `[ status ]`, `[ type ]`, `[ created_at ]`, `[ file_migration_id, operation ]`, `[ file_migration_id, status ]`, `[ file_migration_id, type ]`, `[ file_migration_id, created_at ]`, `[ operation, status ]`, `[ operation, type ]`, `[ operation, created_at ]`, `[ status, type ]`, `[ status, created_at ]`, `[ type, created_at ]`, `[ file_migration_id, operation, status ]`, `[ file_migration_id, operation, type ]`, `[ file_migration_id, operation, created_at ]`, `[ file_migration_id, status, type ]`, `[ file_migration_id, status, created_at ]`, `[ file_migration_id, type, created_at ]`, `[ operation, status, type ]`, `[ operation, status, created_at ]`, `[ operation, type, created_at ]`, `[ status, type, created_at ]`, `[ file_migration_id, operation, status, type ]`, `[ file_migration_id, operation, status, created_at ]`, `[ file_migration_id, operation, type, created_at ]`, `[ file_migration_id, status, type, created_at ]`, `[ operation, status, type, created_at ]` or `[ file_migration_id, operation, status, type, created_at ]`.
|
|
94
|
+
def self.create_export(params = {}, options = {})
|
|
95
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
|
96
|
+
raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
|
|
97
|
+
raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
|
|
98
|
+
raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
|
|
99
|
+
raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
|
|
100
|
+
|
|
101
|
+
response, options = Api.send_request("/file_migration_logs/create_export", :post, params, options)
|
|
102
|
+
Export.new(response.data, options)
|
|
103
|
+
end
|
|
82
104
|
end
|
|
83
105
|
end
|