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
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Files
|
|
4
|
+
class PublicInbox
|
|
5
|
+
attr_reader :options, :attributes
|
|
6
|
+
|
|
7
|
+
def initialize(attributes = {}, options = {})
|
|
8
|
+
@attributes = attributes || {}
|
|
9
|
+
@options = options || {}
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# string - Page link and button color
|
|
13
|
+
def color_left
|
|
14
|
+
@attributes[:color_left]
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# string - Top bar link color
|
|
18
|
+
def color_link
|
|
19
|
+
@attributes[:color_link]
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# string - Page link and button color
|
|
23
|
+
def color_text
|
|
24
|
+
@attributes[:color_text]
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# string - Top bar background color
|
|
28
|
+
def color_top
|
|
29
|
+
@attributes[:color_top]
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# string - Top bar text color
|
|
33
|
+
def color_top_text
|
|
34
|
+
@attributes[:color_top_text]
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# string - Inbox title
|
|
38
|
+
def title
|
|
39
|
+
@attributes[:title]
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# string - User description
|
|
43
|
+
def description
|
|
44
|
+
@attributes[:description]
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# string - Text that will be shown to the users on the Inbox. Use this field to provide custom instructions.
|
|
48
|
+
def help_text
|
|
49
|
+
@attributes[:help_text]
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# string - Unique key for inbox
|
|
53
|
+
def key
|
|
54
|
+
@attributes[:key]
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# boolean - Show this inbox on site login page?
|
|
58
|
+
def show_on_login_page
|
|
59
|
+
@attributes[:show_on_login_page]
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# boolean - Is this inbox password protected?
|
|
63
|
+
def has_password
|
|
64
|
+
@attributes[:has_password]
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# boolean - Does this inbox require registration?
|
|
68
|
+
def require_registration
|
|
69
|
+
@attributes[:require_registration]
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# boolean - Should folder uploads be prevented?
|
|
73
|
+
def dont_allow_folders_in_uploads
|
|
74
|
+
@attributes[:dont_allow_folders_in_uploads]
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# string - Legal text that must be agreed to prior to accessing Inbox.
|
|
78
|
+
def clickwrap_body
|
|
79
|
+
@attributes[:clickwrap_body]
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# FormFieldSet - Custom Form to use
|
|
83
|
+
def form_field_set
|
|
84
|
+
@attributes[:form_field_set]
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# boolean - If true, we will hide the 'Remember Me' box on the Inbox registration page, requiring that the user logout and log back in every time they visit the page.
|
|
88
|
+
def require_logout
|
|
89
|
+
@attributes[:require_logout]
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Image - Custom logo for Inbox folder
|
|
93
|
+
def logo
|
|
94
|
+
@attributes[:logo]
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# string - URL to open when a public visitor clicks the custom logo
|
|
98
|
+
def logo_click_href
|
|
99
|
+
@attributes[:logo_click_href]
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Image - Custom logo thumbnail for Inbox folder
|
|
103
|
+
def thumbnail
|
|
104
|
+
@attributes[:thumbnail]
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Parameters:
|
|
108
|
+
# 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.
|
|
109
|
+
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
110
|
+
def self.list(params = {}, options = {})
|
|
111
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
112
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
113
|
+
|
|
114
|
+
List.new(PublicInbox, params) do
|
|
115
|
+
Api.send_request("/public_inboxes", :get, params, options)
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
def self.all(params = {}, options = {})
|
|
120
|
+
list(params, options)
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Parameters:
|
|
124
|
+
# key (required) - string - Unique key for inbox
|
|
125
|
+
# recipient_code - string - Inbox recipient code
|
|
126
|
+
def self.get_key(key, params = {}, options = {})
|
|
127
|
+
params ||= {}
|
|
128
|
+
params[:key] = key
|
|
129
|
+
raise InvalidParameterError.new("Bad parameter: key must be an String") if params[:key] and !params[:key].is_a?(String)
|
|
130
|
+
raise InvalidParameterError.new("Bad parameter: recipient_code must be an String") if params[:recipient_code] and !params[:recipient_code].is_a?(String)
|
|
131
|
+
raise MissingParameterError.new("Parameter missing: key") unless params[:key]
|
|
132
|
+
|
|
133
|
+
response, options = Api.send_request("/public_inboxes/key/#{params[:key]}", :get, params, options)
|
|
134
|
+
PublicInbox.new(response.data, options)
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
def self.create_export(params = {}, options = {})
|
|
138
|
+
response, options = Api.send_request("/public_inboxes/create_export", :post, params, options)
|
|
139
|
+
Export.new(response.data, options)
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
@@ -283,6 +283,27 @@ module Files
|
|
|
283
283
|
PublicKey.new(response.data, options)
|
|
284
284
|
end
|
|
285
285
|
|
|
286
|
+
# Parameters:
|
|
287
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
288
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `user_id`, `title` or `created_at`.
|
|
289
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at` and `workspace_id`.
|
|
290
|
+
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
291
|
+
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
|
292
|
+
# filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
|
293
|
+
# filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
|
294
|
+
def self.create_export(params = {}, options = {})
|
|
295
|
+
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
296
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
297
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
|
298
|
+
raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
|
|
299
|
+
raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
|
|
300
|
+
raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
|
|
301
|
+
raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
|
|
302
|
+
|
|
303
|
+
response, options = Api.send_request("/public_keys/create_export", :post, params, options)
|
|
304
|
+
Export.new(response.data, options)
|
|
305
|
+
end
|
|
306
|
+
|
|
286
307
|
# Parameters:
|
|
287
308
|
# title (required) - string - Internal reference for key.
|
|
288
309
|
def self.update(id, params = {}, options = {})
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Files
|
|
4
|
+
class PublicUrl
|
|
5
|
+
attr_reader :options, :attributes
|
|
6
|
+
|
|
7
|
+
def initialize(attributes = {}, options = {})
|
|
8
|
+
@attributes = attributes || {}
|
|
9
|
+
@options = options || {}
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# int64 - Response HTTP code
|
|
13
|
+
def http_code
|
|
14
|
+
@attributes[:http - code]
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def http_code=(value)
|
|
18
|
+
@attributes[:http - code] = value
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# string - A short string representing which error happened, if any
|
|
22
|
+
def type
|
|
23
|
+
@attributes[:type]
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def type=(value)
|
|
27
|
+
@attributes[:type] = value
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# object - Headers to include with the response
|
|
31
|
+
def http_headers
|
|
32
|
+
@attributes[:http_headers]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def http_headers=(value)
|
|
36
|
+
@attributes[:http_headers] = value
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# string - Body of the response, if a folder listing was requested
|
|
40
|
+
def body
|
|
41
|
+
@attributes[:body]
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def body=(value)
|
|
45
|
+
@attributes[:body] = value
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# string - Signed URL allowing access to the requested file
|
|
49
|
+
def download_uri
|
|
50
|
+
@attributes[:download_uri]
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def download_uri=(value)
|
|
54
|
+
@attributes[:download_uri] = value
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# string - For use with internal services and should also be with headers and socks_ips
|
|
58
|
+
def internal_download_uri
|
|
59
|
+
@attributes[:internal_download_uri]
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def internal_download_uri=(value)
|
|
63
|
+
@attributes[:internal_download_uri] = value
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# string - URL where this request should be redirected, if necessary
|
|
67
|
+
def redirect
|
|
68
|
+
@attributes[:redirect]
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def redirect=(value)
|
|
72
|
+
@attributes[:redirect] = value
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# string - Used for response content-type
|
|
76
|
+
def mime_type
|
|
77
|
+
@attributes[:mime_type]
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def mime_type=(value)
|
|
81
|
+
@attributes[:mime_type] = value
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# int64 - Site id
|
|
85
|
+
def site_id
|
|
86
|
+
@attributes[:site_id]
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
def site_id=(value)
|
|
90
|
+
@attributes[:site_id] = value
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# int64 - Used for internal bandwidth tracking
|
|
94
|
+
def remote_server_id
|
|
95
|
+
@attributes[:remote_server_id]
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
def remote_server_id=(value)
|
|
99
|
+
@attributes[:remote_server_id] = value
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# object - Used for internal url management
|
|
103
|
+
def headers
|
|
104
|
+
@attributes[:headers]
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
def headers=(value)
|
|
108
|
+
@attributes[:headers] = value
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# array(string) - Used for internal url management
|
|
112
|
+
def socks_ips
|
|
113
|
+
@attributes[:socks_ips]
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
def socks_ips=(value)
|
|
117
|
+
@attributes[:socks_ips] = value
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# string - The actual path of the file or folder being accessed. Used for caching.
|
|
121
|
+
def true_path
|
|
122
|
+
@attributes[:true_path]
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
def true_path=(value)
|
|
126
|
+
@attributes[:true_path] = value
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# int64 - Indicates how long the response should be cached, in seconds.
|
|
130
|
+
def cache_for_seconds
|
|
131
|
+
@attributes[:cache_for_seconds]
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
def cache_for_seconds=(value)
|
|
135
|
+
@attributes[:cache_for_seconds] = value
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# string - Hostname used to request the publicly shared resource.
|
|
139
|
+
def hostname
|
|
140
|
+
@attributes[:hostname]
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
def hostname=(value)
|
|
144
|
+
@attributes[:hostname] = value
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# string - Path of the resource being requested.
|
|
148
|
+
def path
|
|
149
|
+
@attributes[:path]
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
def path=(value)
|
|
153
|
+
@attributes[:path] = value
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
def save
|
|
157
|
+
new_obj = PublicUrl.create(path, @attributes, @options)
|
|
158
|
+
@attributes = new_obj.attributes
|
|
159
|
+
true
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Parameters:
|
|
163
|
+
# hostname (required) - string - Hostname used to request the publicly shared resource.
|
|
164
|
+
# path (required) - string - Path of the resource being requested.
|
|
165
|
+
def self.create(path, params = {}, options = {})
|
|
166
|
+
params ||= {}
|
|
167
|
+
params[:path] = path
|
|
168
|
+
raise InvalidParameterError.new("Bad parameter: hostname must be an String") if params[:hostname] and !params[:hostname].is_a?(String)
|
|
169
|
+
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
170
|
+
raise MissingParameterError.new("Parameter missing: hostname") unless params[:hostname]
|
|
171
|
+
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
|
172
|
+
|
|
173
|
+
response, options = Api.send_request("/public_urls", :post, params, options)
|
|
174
|
+
PublicUrl.new(response.data, options)
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
end
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Files
|
|
4
|
+
class Release
|
|
5
|
+
attr_reader :options, :attributes
|
|
6
|
+
|
|
7
|
+
def initialize(attributes = {}, options = {})
|
|
8
|
+
@attributes = attributes || {}
|
|
9
|
+
@options = options || {}
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# string - Native release version
|
|
13
|
+
def version
|
|
14
|
+
@attributes[:version]
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def version=(value)
|
|
18
|
+
@attributes[:version] = value
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# string - Native release description
|
|
22
|
+
def description
|
|
23
|
+
@attributes[:description]
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def description=(value)
|
|
27
|
+
@attributes[:description] = value
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# array(object) - A list of native release packages
|
|
31
|
+
def native_release_packages
|
|
32
|
+
@attributes[:native_release_packages]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def native_release_packages=(value)
|
|
36
|
+
@attributes[:native_release_packages] = value
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# string - Native release title
|
|
40
|
+
def title
|
|
41
|
+
@attributes[:title]
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def title=(value)
|
|
45
|
+
@attributes[:title] = value
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# string - Native release product
|
|
49
|
+
def product
|
|
50
|
+
@attributes[:product]
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def product=(value)
|
|
54
|
+
@attributes[:product] = value
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# int64
|
|
58
|
+
def version_major
|
|
59
|
+
@attributes[:version_major]
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def version_major=(value)
|
|
63
|
+
@attributes[:version_major] = value
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# int64
|
|
67
|
+
def version_minor
|
|
68
|
+
@attributes[:version_minor]
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def version_minor=(value)
|
|
72
|
+
@attributes[:version_minor] = value
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# int64
|
|
76
|
+
def version_patch
|
|
77
|
+
@attributes[:version_patch]
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def version_patch=(value)
|
|
81
|
+
@attributes[:version_patch] = value
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# int64
|
|
85
|
+
def version_build
|
|
86
|
+
@attributes[:version_build]
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
def version_build=(value)
|
|
90
|
+
@attributes[:version_build] = value
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# string
|
|
94
|
+
def oem
|
|
95
|
+
@attributes[:oem]
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
def oem=(value)
|
|
99
|
+
@attributes[:oem] = value
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
def save
|
|
103
|
+
if @attributes[:id]
|
|
104
|
+
raise NotImplementedError.new("The Release object doesn't support updates.")
|
|
105
|
+
else
|
|
106
|
+
new_obj = Release.create(@attributes, @options)
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
@attributes = new_obj.attributes
|
|
110
|
+
true
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Parameters:
|
|
114
|
+
# product - string
|
|
115
|
+
# platform - string
|
|
116
|
+
# architecture - string
|
|
117
|
+
# ext - string
|
|
118
|
+
def self.get_latest(params = {}, options = {})
|
|
119
|
+
raise InvalidParameterError.new("Bad parameter: product must be an String") if params[:product] and !params[:product].is_a?(String)
|
|
120
|
+
raise InvalidParameterError.new("Bad parameter: platform must be an String") if params[:platform] and !params[:platform].is_a?(String)
|
|
121
|
+
raise InvalidParameterError.new("Bad parameter: architecture must be an String") if params[:architecture] and !params[:architecture].is_a?(String)
|
|
122
|
+
raise InvalidParameterError.new("Bad parameter: ext must be an String") if params[:ext] and !params[:ext].is_a?(String)
|
|
123
|
+
|
|
124
|
+
response, options = Api.send_request("/releases/latest", :get, params, options)
|
|
125
|
+
Release.new(response.data, options)
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Parameters:
|
|
129
|
+
# title - string
|
|
130
|
+
# description - string
|
|
131
|
+
# version_major - int64
|
|
132
|
+
# version_minor - int64
|
|
133
|
+
# version_patch - int64
|
|
134
|
+
# version_build - int64
|
|
135
|
+
# oem - string
|
|
136
|
+
# product - string
|
|
137
|
+
# native_release_packages - array(object)
|
|
138
|
+
def self.create(params = {}, options = {})
|
|
139
|
+
raise InvalidParameterError.new("Bad parameter: title must be an String") if params[:title] and !params[:title].is_a?(String)
|
|
140
|
+
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
|
141
|
+
raise InvalidParameterError.new("Bad parameter: version_major must be an Integer") if params[:version_major] and !params[:version_major].is_a?(Integer)
|
|
142
|
+
raise InvalidParameterError.new("Bad parameter: version_minor must be an Integer") if params[:version_minor] and !params[:version_minor].is_a?(Integer)
|
|
143
|
+
raise InvalidParameterError.new("Bad parameter: version_patch must be an Integer") if params[:version_patch] and !params[:version_patch].is_a?(Integer)
|
|
144
|
+
raise InvalidParameterError.new("Bad parameter: version_build must be an Integer") if params[:version_build] and !params[:version_build].is_a?(Integer)
|
|
145
|
+
raise InvalidParameterError.new("Bad parameter: oem must be an String") if params[:oem] and !params[:oem].is_a?(String)
|
|
146
|
+
raise InvalidParameterError.new("Bad parameter: product must be an String") if params[:product] and !params[:product].is_a?(String)
|
|
147
|
+
raise InvalidParameterError.new("Bad parameter: native_release_packages must be an Array") if params[:native_release_packages] and !params[:native_release_packages].is_a?(Array)
|
|
148
|
+
|
|
149
|
+
response, options = Api.send_request("/releases", :post, params, options)
|
|
150
|
+
Release.new(response.data, options)
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Files
|
|
4
|
+
class ReleasePackage
|
|
5
|
+
attr_reader :options, :attributes
|
|
6
|
+
|
|
7
|
+
def initialize(attributes = {}, options = {})
|
|
8
|
+
@attributes = attributes || {}
|
|
9
|
+
@options = options || {}
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# string - Link to the package
|
|
13
|
+
def package_link
|
|
14
|
+
@attributes[:package_link]
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# string - Release platform
|
|
18
|
+
def platform
|
|
19
|
+
@attributes[:platform]
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# string - Release architecture
|
|
23
|
+
def architecture
|
|
24
|
+
@attributes[:architecture]
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# string - Package file extension
|
|
28
|
+
def extension
|
|
29
|
+
@attributes[:extension]
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# string - SHA256 hash of the package
|
|
33
|
+
def sha256
|
|
34
|
+
@attributes[:sha256]
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -61,5 +61,24 @@ module Files
|
|
|
61
61
|
def self.all(params = {}, options = {})
|
|
62
62
|
list(params, options)
|
|
63
63
|
end
|
|
64
|
+
|
|
65
|
+
# Parameters:
|
|
66
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `logged_at`.
|
|
67
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
|
|
68
|
+
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `logged_at`.
|
|
69
|
+
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `logged_at`.
|
|
70
|
+
# filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `logged_at`.
|
|
71
|
+
# filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `logged_at`.
|
|
72
|
+
def self.create_export(params = {}, options = {})
|
|
73
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
74
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
|
75
|
+
raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
|
|
76
|
+
raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
|
|
77
|
+
raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
|
|
78
|
+
raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
|
|
79
|
+
|
|
80
|
+
response, options = Api.send_request("/remote_bandwidth_snapshots/create_export", :post, params, options)
|
|
81
|
+
Export.new(response.data, options)
|
|
82
|
+
end
|
|
64
83
|
end
|
|
65
84
|
end
|
|
@@ -317,6 +317,15 @@ module Files
|
|
|
317
317
|
nil
|
|
318
318
|
end
|
|
319
319
|
|
|
320
|
+
# Parameters:
|
|
321
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `remote_server_mount_id`.
|
|
322
|
+
def self.create_export(params = {}, options = {})
|
|
323
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
|
324
|
+
|
|
325
|
+
response, options = Api.send_request("/remote_mount_backends/create_export", :post, params, options)
|
|
326
|
+
Export.new(response.data, options)
|
|
327
|
+
end
|
|
328
|
+
|
|
320
329
|
# Parameters:
|
|
321
330
|
# enabled - boolean - True if this backend is enabled.
|
|
322
331
|
# fall - int64 - Number of consecutive failures before considering the backend unhealthy.
|