files.com 1.1.671 → 1.1.673
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/action_log.md +1 -21
- data/docs/action_notification_export_result.md +0 -17
- data/docs/ai_assistant_personality.md +0 -14
- data/docs/ai_task.md +0 -14
- data/docs/api_key.md +1 -27
- data/docs/api_request_log.md +1 -21
- data/docs/app.md +0 -15
- data/docs/as2_incoming_message.md +0 -18
- data/docs/as2_outgoing_message.md +0 -18
- data/docs/as2_partner.md +0 -14
- data/docs/as2_station.md +0 -14
- data/docs/automation.md +1 -22
- data/docs/automation_log.md +1 -21
- data/docs/automation_run.md +0 -19
- data/docs/bandwidth_snapshot.md +0 -18
- data/docs/behavior.md +0 -14
- data/docs/bundle.md +1 -50
- data/docs/bundle_action.md +0 -25
- data/docs/bundle_download.md +0 -23
- data/docs/bundle_notification.md +0 -19
- data/docs/bundle_recipient.md +0 -21
- data/docs/bundle_registration.md +0 -61
- data/docs/chat_session.md +2 -14
- data/docs/child_site_management_policy.md +0 -9
- data/docs/clickwrap.md +0 -13
- data/docs/custom_domain.md +0 -13
- data/docs/desktop_configuration_profile.md +0 -14
- data/docs/dns_record.md +0 -9
- data/docs/email_incoming_message.md +0 -19
- data/docs/email_log.md +1 -20
- data/docs/event_channel.md +0 -14
- data/docs/event_delivery_attempt.md +0 -14
- data/docs/event_record.md +0 -19
- data/docs/event_subscription.md +0 -14
- data/docs/event_target.md +0 -14
- data/docs/exavault_api_request_log.md +1 -21
- data/docs/expectation.md +0 -14
- data/docs/expectation_evaluation.md +0 -14
- data/docs/expectation_incident.md +0 -14
- data/docs/external_event.md +0 -18
- data/docs/file.md +2 -90
- data/docs/file_migration.md +0 -32
- data/docs/file_migration_log.md +1 -20
- data/docs/file_upload_part.md +1 -3
- data/docs/folder.md +0 -20
- data/docs/form_field_set.md +0 -15
- data/docs/ftp_action_log.md +1 -21
- data/docs/gpg_key.md +0 -21
- data/docs/group.md +0 -19
- data/docs/group_user.md +2 -22
- data/docs/history.md +0 -85
- data/docs/history_export_result.md +0 -17
- data/docs/holiday_region.md +0 -9
- data/docs/inbound_s3_log.md +1 -21
- data/docs/inbox_recipient.md +0 -19
- data/docs/inbox_registration.md +0 -57
- data/docs/inbox_upload.md +0 -18
- data/docs/invoice.md +0 -9
- data/docs/ip_address.md +0 -59
- data/docs/key_lifecycle_rule.md +0 -14
- data/docs/lock.md +0 -15
- data/docs/message.md +0 -17
- data/docs/message_comment.md +0 -18
- data/docs/message_comment_reaction.md +0 -18
- data/docs/message_reaction.md +0 -17
- data/docs/metadata_category.md +0 -13
- data/docs/notification.md +0 -20
- data/docs/outbound_connection_log.md +1 -21
- data/docs/partner.md +0 -14
- data/docs/partner_channel.md +0 -14
- data/docs/partner_site_request.md +0 -14
- data/docs/payment.md +0 -9
- data/docs/pending_work_event.md +0 -18
- data/docs/permission.md +0 -22
- data/docs/preview.md +0 -57
- data/docs/project.md +0 -9
- data/docs/public_hosting_request_log.md +1 -21
- data/docs/public_key.md +0 -21
- data/docs/remote_bandwidth_snapshot.md +0 -18
- data/docs/remote_mount_backend.md +0 -13
- data/docs/remote_server.md +0 -233
- data/docs/remote_server_credential.md +0 -15
- data/docs/request.md +0 -17
- data/docs/restore.md +0 -14
- data/docs/scheduled_export.md +0 -15
- data/docs/scim_log.md +0 -13
- data/docs/session.md +1 -232
- data/docs/settings_change.md +0 -16
- data/docs/sftp_action_log.md +1 -21
- data/docs/sftp_host_key.md +0 -9
- data/docs/share_group.md +0 -15
- data/docs/siem_http_destination.md +0 -9
- data/docs/siem_http_destination_event.md +0 -18
- data/docs/site.md +0 -179
- data/docs/site_subdomain_redirect.md +0 -13
- data/docs/snapshot.md +0 -9
- data/docs/sso_event.md +0 -19
- data/docs/sso_strategy.md +0 -406
- data/docs/sync.md +0 -14
- data/docs/sync_log.md +1 -20
- data/docs/sync_run.md +0 -21
- data/docs/usage_daily_snapshot.md +0 -18
- data/docs/usage_snapshot.md +0 -9
- data/docs/user.md +2 -49
- data/docs/user_cipher_use.md +0 -21
- data/docs/user_lifecycle_rule.md +0 -14
- data/docs/user_request.md +0 -9
- data/docs/user_security_event.md +0 -18
- data/docs/user_sftp_client_use.md +0 -15
- data/docs/web_dav_action_log.md +1 -21
- data/docs/workspace.md +0 -15
- data/lib/files.com/models/action_log.rb +0 -24
- data/lib/files.com/models/action_notification_export_result.rb +0 -12
- data/lib/files.com/models/ai_assistant_personality.rb +0 -11
- data/lib/files.com/models/ai_task.rb +0 -11
- data/lib/files.com/models/api_key.rb +5 -39
- data/lib/files.com/models/api_request_log.rb +0 -24
- data/lib/files.com/models/app.rb +0 -13
- data/lib/files.com/models/as2_incoming_message.rb +0 -19
- data/lib/files.com/models/as2_outgoing_message.rb +0 -19
- data/lib/files.com/models/as2_partner.rb +0 -11
- data/lib/files.com/models/as2_station.rb +0 -11
- data/lib/files.com/models/automation.rb +0 -30
- data/lib/files.com/models/automation_log.rb +0 -24
- data/lib/files.com/models/automation_run.rb +0 -16
- data/lib/files.com/models/bandwidth_snapshot.rb +0 -19
- data/lib/files.com/models/behavior.rb +0 -11
- data/lib/files.com/models/bundle.rb +0 -52
- data/lib/files.com/models/bundle_action.rb +0 -25
- data/lib/files.com/models/bundle_download.rb +0 -23
- data/lib/files.com/models/bundle_notification.rb +0 -15
- data/lib/files.com/models/bundle_recipient.rb +0 -27
- data/lib/files.com/models/bundle_registration.rb +0 -125
- data/lib/files.com/models/chat_session.rb +5 -11
- data/lib/files.com/models/child_site_management_policy.rb +0 -5
- data/lib/files.com/models/clickwrap.rb +0 -9
- data/lib/files.com/models/custom_domain.rb +0 -9
- data/lib/files.com/models/desktop_configuration_profile.rb +0 -11
- data/lib/files.com/models/dns_record.rb +0 -5
- data/lib/files.com/models/email_incoming_message.rb +0 -21
- data/lib/files.com/models/email_log.rb +0 -22
- data/lib/files.com/models/event_channel.rb +0 -11
- data/lib/files.com/models/event_delivery_attempt.rb +0 -11
- data/lib/files.com/models/event_record.rb +0 -21
- data/lib/files.com/models/event_subscription.rb +0 -11
- data/lib/files.com/models/event_target.rb +0 -11
- data/lib/files.com/models/exavault_api_request_log.rb +0 -24
- data/lib/files.com/models/expectation.rb +0 -11
- data/lib/files.com/models/expectation_evaluation.rb +0 -11
- data/lib/files.com/models/expectation_incident.rb +0 -11
- data/lib/files.com/models/external_event.rb +0 -19
- data/lib/files.com/models/file.rb +67 -207
- data/lib/files.com/models/file_migration.rb +0 -27
- data/lib/files.com/models/file_migration_log.rb +0 -22
- data/lib/files.com/models/file_upload_part.rb +0 -5
- data/lib/files.com/models/folder.rb +0 -69
- data/lib/files.com/models/form_field_set.rb +0 -9
- data/lib/files.com/models/ftp_action_log.rb +0 -24
- data/lib/files.com/models/gpg_key.rb +0 -21
- data/lib/files.com/models/group.rb +0 -16
- data/lib/files.com/models/group_user.rb +1 -21
- data/lib/files.com/models/history.rb +0 -94
- data/lib/files.com/models/history_export_result.rb +0 -12
- data/lib/files.com/models/holiday_region.rb +0 -5
- data/lib/files.com/models/inbound_s3_log.rb +0 -24
- data/lib/files.com/models/inbox_recipient.rb +0 -25
- data/lib/files.com/models/inbox_registration.rb +0 -121
- data/lib/files.com/models/inbox_upload.rb +0 -19
- data/lib/files.com/models/invoice.rb +0 -5
- data/lib/files.com/models/ip_address.rb +0 -37
- data/lib/files.com/models/key_lifecycle_rule.rb +0 -11
- data/lib/files.com/models/lock.rb +0 -27
- data/lib/files.com/models/message.rb +0 -12
- data/lib/files.com/models/message_comment.rb +0 -14
- data/lib/files.com/models/message_comment_reaction.rb +0 -14
- data/lib/files.com/models/message_reaction.rb +0 -12
- data/lib/files.com/models/metadata_category.rb +0 -9
- data/lib/files.com/models/notification.rb +0 -18
- data/lib/files.com/models/outbound_connection_log.rb +0 -24
- data/lib/files.com/models/partner.rb +0 -11
- data/lib/files.com/models/partner_channel.rb +0 -11
- data/lib/files.com/models/partner_site_request.rb +0 -11
- data/lib/files.com/models/payment.rb +0 -5
- data/lib/files.com/models/pending_work_event.rb +0 -19
- data/lib/files.com/models/permission.rb +0 -22
- data/lib/files.com/models/preview.rb +0 -57
- data/lib/files.com/models/project.rb +0 -5
- data/lib/files.com/models/public_hosting_request_log.rb +0 -24
- data/lib/files.com/models/public_key.rb +0 -21
- data/lib/files.com/models/remote_bandwidth_snapshot.rb +0 -19
- data/lib/files.com/models/remote_mount_backend.rb +0 -9
- data/lib/files.com/models/remote_server.rb +0 -297
- data/lib/files.com/models/remote_server_credential.rb +0 -13
- data/lib/files.com/models/request.rb +0 -12
- data/lib/files.com/models/restore.rb +0 -11
- data/lib/files.com/models/scheduled_export.rb +0 -13
- data/lib/files.com/models/scim_log.rb +0 -9
- data/lib/files.com/models/session.rb +0 -493
- data/lib/files.com/models/settings_change.rb +0 -16
- data/lib/files.com/models/sftp_action_log.rb +0 -24
- data/lib/files.com/models/sftp_host_key.rb +0 -5
- data/lib/files.com/models/share_group.rb +0 -9
- data/lib/files.com/models/siem_http_destination.rb +0 -5
- data/lib/files.com/models/siem_http_destination_event.rb +0 -19
- data/lib/files.com/models/site.rb +0 -1021
- data/lib/files.com/models/site_subdomain_redirect.rb +0 -9
- data/lib/files.com/models/snapshot.rb +0 -5
- data/lib/files.com/models/sso_event.rb +0 -21
- data/lib/files.com/models/sso_strategy.rb +0 -632
- data/lib/files.com/models/sync.rb +0 -11
- data/lib/files.com/models/sync_log.rb +0 -22
- data/lib/files.com/models/sync_run.rb +0 -21
- data/lib/files.com/models/usage_daily_snapshot.rb +0 -19
- data/lib/files.com/models/usage_snapshot.rb +0 -5
- data/lib/files.com/models/user.rb +0 -59
- data/lib/files.com/models/user_cipher_use.rb +0 -21
- data/lib/files.com/models/user_lifecycle_rule.rb +0 -11
- data/lib/files.com/models/user_request.rb +0 -5
- data/lib/files.com/models/user_security_event.rb +0 -19
- data/lib/files.com/models/user_sftp_client_use.rb +0 -9
- data/lib/files.com/models/web_dav_action_log.rb +0 -24
- data/lib/files.com/models/workspace.rb +0 -13
- data/lib/files.com/path_util.rb +1 -1
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +0 -59
- data/shared/normalization_for_comparison_test_data.json +3 -1
- data/spec/models/file_underscore_destinations_spec.rb +24 -0
- data/spec/path_util_spec.rb +5 -0
- metadata +2 -119
- data/docs/account.md +0 -155
- data/docs/action_webhook_failure.md +0 -28
- data/docs/agent_proxy_identity.md +0 -49
- data/docs/agent_proxy_identity_endpoint.md +0 -11
- data/docs/agent_proxy_identity_result.md +0 -24
- data/docs/agent_v2_auth.md +0 -17
- data/docs/announcement.md +0 -57
- data/docs/blog_post.md +0 -57
- data/docs/bundle_recipient_registration.md +0 -39
- data/docs/certificate.md +0 -258
- data/docs/child_site.md +0 -583
- data/docs/clickwrap_acceptance.md +0 -30
- data/docs/client_log.md +0 -17
- data/docs/crash_report.md +0 -50
- data/docs/custom_domain_for_proxy.md +0 -23
- data/docs/email_preference.md +0 -108
- data/docs/email_preference_bundle_notification.md +0 -15
- data/docs/email_preference_notification.md +0 -17
- data/docs/export.md +0 -90
- data/docs/front_end_server.md +0 -111
- data/docs/frontend_metric.md +0 -34
- data/docs/inbox.md +0 -102
- data/docs/inbox_recipient_registration.md +0 -35
- data/docs/ip.md +0 -63
- data/docs/ip_abuse_entry.md +0 -47
- data/docs/label.md +0 -9
- data/docs/lead.md +0 -161
- data/docs/monitoring_stat.md +0 -38
- data/docs/monitoring_stats.md +0 -15
- data/docs/mover_package.md +0 -68
- data/docs/nps_response.md +0 -75
- data/docs/oauth_redirect.md +0 -11
- data/docs/paired_api_key.md +0 -19
- data/docs/paypal_express_info.md +0 -31
- data/docs/paypal_express_url.md +0 -11
- data/docs/plan.md +0 -107
- data/docs/public_hosting_session_pairing.md +0 -15
- data/docs/public_inbox.md +0 -121
- data/docs/public_url.md +0 -59
- data/docs/regional_migration.md +0 -0
- data/docs/release.md +0 -83
- data/docs/release_package.md +0 -19
- data/docs/revision.md +0 -40
- data/docs/safe_plan.md +0 -0
- data/docs/session_available_site.md +0 -26
- data/docs/setting.md +0 -33
- data/docs/settings.md +0 -498
- data/docs/ssl_certificate.md +0 -37
- data/docs/staging_site.md +0 -591
- data/docs/support_request.md +0 -126
- data/docs/sync_api_usage_snapshot.md +0 -23
- data/docs/sync_api_usage_snapshot_report.md +0 -71
- data/docs/sync_bandwidth_snapshot.md +0 -48
- data/docs/two_factor_authentication_method.md +0 -169
- data/docs/warning.md +0 -36
- data/docs/webauthn_sign_request.md +0 -13
- data/docs/zip_download.md +0 -32
- data/docs/zip_download_file.md +0 -45
- data/docs/zip_download_files.md +0 -23
- data/lib/files.com/models/account.rb +0 -346
- data/lib/files.com/models/action_webhook_failure.rb +0 -34
- data/lib/files.com/models/agent_proxy_identity.rb +0 -47
- data/lib/files.com/models/agent_proxy_identity_endpoint.rb +0 -17
- data/lib/files.com/models/agent_proxy_identity_result.rb +0 -27
- data/lib/files.com/models/agent_v2_auth.rb +0 -32
- data/lib/files.com/models/announcement.rb +0 -89
- data/lib/files.com/models/blog_post.rb +0 -84
- data/lib/files.com/models/bundle_recipient_registration.rb +0 -105
- data/lib/files.com/models/certificate.rb +0 -455
- data/lib/files.com/models/child_site.rb +0 -1756
- data/lib/files.com/models/clickwrap_acceptance.rb +0 -56
- data/lib/files.com/models/client_log.rb +0 -25
- data/lib/files.com/models/crash_report.rb +0 -151
- data/lib/files.com/models/custom_domain_for_proxy.rb +0 -47
- data/lib/files.com/models/email_preference.rb +0 -124
- data/lib/files.com/models/email_preference_bundle_notification.rb +0 -27
- data/lib/files.com/models/email_preference_notification.rb +0 -32
- data/lib/files.com/models/export.rb +0 -153
- data/lib/files.com/models/front_end_server.rb +0 -335
- data/lib/files.com/models/frontend_metric.rb +0 -65
- data/lib/files.com/models/inbox.rb +0 -123
- data/lib/files.com/models/inbox_recipient_registration.rb +0 -87
- data/lib/files.com/models/ip.rb +0 -82
- data/lib/files.com/models/ip_abuse_entry.rb +0 -96
- data/lib/files.com/models/label.rb +0 -22
- data/lib/files.com/models/lead.rb +0 -434
- data/lib/files.com/models/monitoring_stat.rb +0 -43
- data/lib/files.com/models/monitoring_stats.rb +0 -22
- data/lib/files.com/models/mover_package.rb +0 -80
- data/lib/files.com/models/nps_response.rb +0 -128
- data/lib/files.com/models/oauth_redirect.rb +0 -17
- data/lib/files.com/models/paired_api_key.rb +0 -37
- data/lib/files.com/models/paypal_express_info.rb +0 -67
- data/lib/files.com/models/paypal_express_url.rb +0 -17
- data/lib/files.com/models/plan.rb +0 -209
- data/lib/files.com/models/public_hosting_session_pairing.rb +0 -27
- data/lib/files.com/models/public_inbox.rb +0 -142
- data/lib/files.com/models/public_url.rb +0 -177
- data/lib/files.com/models/regional_migration.rb +0 -12
- data/lib/files.com/models/release.rb +0 -153
- data/lib/files.com/models/release_package.rb +0 -37
- data/lib/files.com/models/revision.rb +0 -53
- data/lib/files.com/models/safe_plan.rb +0 -12
- data/lib/files.com/models/session_available_site.rb +0 -47
- data/lib/files.com/models/setting.rb +0 -36
- data/lib/files.com/models/settings.rb +0 -1072
- data/lib/files.com/models/ssl_certificate.rb +0 -77
- data/lib/files.com/models/staging_site.rb +0 -1781
- data/lib/files.com/models/support_request.rb +0 -209
- data/lib/files.com/models/sync_api_usage_snapshot.rb +0 -47
- data/lib/files.com/models/sync_api_usage_snapshot_report.rb +0 -162
- data/lib/files.com/models/sync_bandwidth_snapshot.rb +0 -104
- data/lib/files.com/models/two_factor_authentication_method.rb +0 -250
- data/lib/files.com/models/warning.rb +0 -38
- data/lib/files.com/models/webauthn_sign_request.rb +0 -17
- data/lib/files.com/models/zip_download.rb +0 -73
- data/lib/files.com/models/zip_download_file.rb +0 -111
- data/lib/files.com/models/zip_download_files.rb +0 -42
|
@@ -1,177 +0,0 @@
|
|
|
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
|
|
@@ -1,153 +0,0 @@
|
|
|
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
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class Revision
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# string - The commit hash of the latest deployed revision.
|
|
13
|
-
def current
|
|
14
|
-
@attributes[:current]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# string - The commit hash of the previously deployed revision.
|
|
18
|
-
def prior
|
|
19
|
-
@attributes[:prior]
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
# string - The commit hash of the currently running revision.
|
|
23
|
-
def revision
|
|
24
|
-
@attributes[:revision]
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
# boolean - True if the currently running revision is the latest deployed revision.
|
|
28
|
-
def up_to_date
|
|
29
|
-
@attributes[:up_to_date]
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# Parameters:
|
|
33
|
-
# cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
34
|
-
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
35
|
-
def self.list(params = {}, options = {})
|
|
36
|
-
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
37
|
-
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
38
|
-
|
|
39
|
-
List.new(Revision, params) do
|
|
40
|
-
Api.send_request("/revisions", :get, params, options)
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
def self.all(params = {}, options = {})
|
|
45
|
-
list(params, options)
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
def self.create_export(params = {}, options = {})
|
|
49
|
-
response, options = Api.send_request("/revisions/create_export", :post, params, options)
|
|
50
|
-
Export.new(response.data, options)
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class SessionAvailableSite
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# int64 - Site Id
|
|
13
|
-
def id
|
|
14
|
-
@attributes[:id]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# string - Site name
|
|
18
|
-
def name
|
|
19
|
-
@attributes[:name]
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
# string - Custom domain
|
|
23
|
-
def domain
|
|
24
|
-
@attributes[:domain]
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
# string - Site subdomain
|
|
28
|
-
def subdomain
|
|
29
|
-
@attributes[:subdomain]
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# Image - Branded logo
|
|
33
|
-
def logo
|
|
34
|
-
@attributes[:logo]
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
# string - Top bar background color
|
|
38
|
-
def color2_top
|
|
39
|
-
@attributes[:color2_top]
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# boolean - If true, permissions for this site must be bound to a group (not a user).
|
|
43
|
-
def folder_permissions_groups_only
|
|
44
|
-
@attributes[:folder_permissions_groups_only]
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class Setting
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
def self.languages(params = {}, options = {})
|
|
13
|
-
Api.send_request("/settings/languages", :get, params, options)
|
|
14
|
-
nil
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
def self.list(params = {}, options = {})
|
|
18
|
-
response, options = Api.send_request("/settings", :get, params, options)
|
|
19
|
-
Settings.new(response.data, options)
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
def self.all(params = {}, options = {})
|
|
23
|
-
list(params, options)
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
# Parameters:
|
|
27
|
-
# domain (required) - string
|
|
28
|
-
def self.get_domain(params = {}, options = {})
|
|
29
|
-
raise InvalidParameterError.new("Bad parameter: domain must be an String") if params[:domain] and !params[:domain].is_a?(String)
|
|
30
|
-
raise MissingParameterError.new("Parameter missing: domain") unless params[:domain]
|
|
31
|
-
|
|
32
|
-
response, options = Api.send_request("/settings/domain", :get, params, options)
|
|
33
|
-
Settings.new(response.data, options)
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
end
|