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,346 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class Account
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# string - Account name
|
|
13
|
-
def name
|
|
14
|
-
@attributes[:name]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
def name=(value)
|
|
18
|
-
@attributes[:name] = value
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
# string - Account address
|
|
22
|
-
def address
|
|
23
|
-
@attributes[:address]
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
def address=(value)
|
|
27
|
-
@attributes[:address] = value
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
# string - Account address 2
|
|
31
|
-
def address_2
|
|
32
|
-
@attributes[:address_2]
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
def address_2=(value)
|
|
36
|
-
@attributes[:address_2] = value
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
# string - Account payment card number
|
|
40
|
-
def card_number
|
|
41
|
-
@attributes[:card_number]
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
def card_number=(value)
|
|
45
|
-
@attributes[:card_number] = value
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
# string - Account payment card type
|
|
49
|
-
def card_type
|
|
50
|
-
@attributes[:card_type]
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
def card_type=(value)
|
|
54
|
-
@attributes[:card_type] = value
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
# string - Account city
|
|
58
|
-
def city
|
|
59
|
-
@attributes[:city]
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
def city=(value)
|
|
63
|
-
@attributes[:city] = value
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
# string - Account company name
|
|
67
|
-
def company_name
|
|
68
|
-
@attributes[:company_name]
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
def company_name=(value)
|
|
72
|
-
@attributes[:company_name] = value
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
# string - Account country
|
|
76
|
-
def country
|
|
77
|
-
@attributes[:country]
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
def country=(value)
|
|
81
|
-
@attributes[:country] = value
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
# date-time - Account creation date/time
|
|
85
|
-
def created_at
|
|
86
|
-
@attributes[:created_at]
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
# string - Account preferred currency
|
|
90
|
-
def currency
|
|
91
|
-
@attributes[:currency]
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
def currency=(value)
|
|
95
|
-
@attributes[:currency] = value
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
# email - Account email address
|
|
99
|
-
def email
|
|
100
|
-
@attributes[:email]
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
def email=(value)
|
|
104
|
-
@attributes[:email] = value
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
# string - Account phone number
|
|
108
|
-
def phone_number
|
|
109
|
-
@attributes[:phone_number]
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
def phone_number=(value)
|
|
113
|
-
@attributes[:phone_number] = value
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
# string - Type of billing processor. Can be PayPal, Credit Card, or Manual
|
|
117
|
-
def processor_type
|
|
118
|
-
@attributes[:processor_type]
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
def processor_type=(value)
|
|
122
|
-
@attributes[:processor_type] = value
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
# string - Account state
|
|
126
|
-
def state
|
|
127
|
-
@attributes[:state]
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
def state=(value)
|
|
131
|
-
@attributes[:state] = value
|
|
132
|
-
end
|
|
133
|
-
|
|
134
|
-
# string - Account zipcode
|
|
135
|
-
def zip
|
|
136
|
-
@attributes[:zip]
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
def zip=(value)
|
|
140
|
-
@attributes[:zip] = value
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
# int64 - Number of usage periods billed at once. This value will either be 12 representing an annual account of 12 usage periods or 1 representing a monthly account.
|
|
144
|
-
def billing_frequency
|
|
145
|
-
@attributes[:billing_frequency]
|
|
146
|
-
end
|
|
147
|
-
|
|
148
|
-
def billing_frequency=(value)
|
|
149
|
-
@attributes[:billing_frequency] = value
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
# string - Expiration year(4 digits).
|
|
153
|
-
def expiration_year
|
|
154
|
-
@attributes[:expiration_year]
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
def expiration_year=(value)
|
|
158
|
-
@attributes[:expiration_year] = value
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
# string - Expiration month(2 digits).
|
|
162
|
-
def expiration_month
|
|
163
|
-
@attributes[:expiration_month]
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
def expiration_month=(value)
|
|
167
|
-
@attributes[:expiration_month] = value
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
# string - Required for some cards(Switch / Solo).
|
|
171
|
-
def start_year
|
|
172
|
-
@attributes[:start_year]
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
def start_year=(value)
|
|
176
|
-
@attributes[:start_year] = value
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
# string - Required for some cards(Switch / Solo).
|
|
180
|
-
def start_month
|
|
181
|
-
@attributes[:start_month]
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
def start_month=(value)
|
|
185
|
-
@attributes[:start_month] = value
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
# string - 3 digit code on the back of the card.
|
|
189
|
-
def cvv
|
|
190
|
-
@attributes[:cvv]
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
def cvv=(value)
|
|
194
|
-
@attributes[:cvv] = value
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
# string - Token for paying with paypal.
|
|
198
|
-
def paypal_token
|
|
199
|
-
@attributes[:paypal_token]
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
def paypal_token=(value)
|
|
203
|
-
@attributes[:paypal_token] = value
|
|
204
|
-
end
|
|
205
|
-
|
|
206
|
-
# string - Paypal payer ID for paying with paypal.
|
|
207
|
-
def paypal_payer_id
|
|
208
|
-
@attributes[:paypal_payer_id]
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
def paypal_payer_id=(value)
|
|
212
|
-
@attributes[:paypal_payer_id] = value
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
# int64 - Plan ID to switch to immediately.
|
|
216
|
-
def plan_id
|
|
217
|
-
@attributes[:plan_id]
|
|
218
|
-
end
|
|
219
|
-
|
|
220
|
-
def plan_id=(value)
|
|
221
|
-
@attributes[:plan_id] = value
|
|
222
|
-
end
|
|
223
|
-
|
|
224
|
-
# boolean - Create account without immediately charging the customer. (i.e. let the trial complete first.)
|
|
225
|
-
def create_account
|
|
226
|
-
@attributes[:create_account]
|
|
227
|
-
end
|
|
228
|
-
|
|
229
|
-
def create_account=(value)
|
|
230
|
-
@attributes[:create_account] = value
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
def save
|
|
234
|
-
if @attributes[:id]
|
|
235
|
-
raise NotImplementedError.new("The Account object doesn't support updates.")
|
|
236
|
-
else
|
|
237
|
-
new_obj = Account.create(@attributes, @options)
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
@attributes = new_obj.attributes
|
|
241
|
-
true
|
|
242
|
-
end
|
|
243
|
-
|
|
244
|
-
def self.get(params = {}, options = {})
|
|
245
|
-
response, options = Api.send_request("/account", :get, params, options)
|
|
246
|
-
Account.new(response.data, options)
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
# Parameters:
|
|
250
|
-
# name - string - Internal name.
|
|
251
|
-
# company_name - string - Company name.
|
|
252
|
-
# address - string - Address line 1.
|
|
253
|
-
# address_2 - string - Address line 2.
|
|
254
|
-
# city - string - City.
|
|
255
|
-
# state - string - State.
|
|
256
|
-
# zip - string - Zipcode.
|
|
257
|
-
# country - string - Country.
|
|
258
|
-
# email - string - Email.
|
|
259
|
-
# phone_number - string - Primary phone number.
|
|
260
|
-
# card_number - string - Credit card number.
|
|
261
|
-
# card_type - string - Credit card type. Can be visa, master, maestro, solo, switch, american_express, or discover.
|
|
262
|
-
# expiration_year - string - Expiration year(4 digits).
|
|
263
|
-
# expiration_month - string - Expiration month(2 digits).
|
|
264
|
-
# start_year - string - Required for some cards(Switch / Solo).
|
|
265
|
-
# start_month - string - Required for some cards(Switch / Solo).
|
|
266
|
-
# cvv - string - 3 digit code on the back of the card.
|
|
267
|
-
# paypal_token - string - Token for paying with paypal.
|
|
268
|
-
# paypal_payer_id - string - Paypal payer ID for paying with paypal.
|
|
269
|
-
# plan_id - int64 - Plan ID to switch to immediately.
|
|
270
|
-
# billing_frequency - int64 - The billing frequency, in months, for the site. Must be 1 (monthly) or 12 (annual).
|
|
271
|
-
# currency - string - Preferred currency for this account.
|
|
272
|
-
# create_account - boolean - Create account without immediately charging the customer. (i.e. let the trial complete first.)
|
|
273
|
-
def self.create(params = {}, options = {})
|
|
274
|
-
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
275
|
-
raise InvalidParameterError.new("Bad parameter: company_name must be an String") if params[:company_name] and !params[:company_name].is_a?(String)
|
|
276
|
-
raise InvalidParameterError.new("Bad parameter: address must be an String") if params[:address] and !params[:address].is_a?(String)
|
|
277
|
-
raise InvalidParameterError.new("Bad parameter: address_2 must be an String") if params[:address_2] and !params[:address_2].is_a?(String)
|
|
278
|
-
raise InvalidParameterError.new("Bad parameter: city must be an String") if params[:city] and !params[:city].is_a?(String)
|
|
279
|
-
raise InvalidParameterError.new("Bad parameter: state must be an String") if params[:state] and !params[:state].is_a?(String)
|
|
280
|
-
raise InvalidParameterError.new("Bad parameter: zip must be an String") if params[:zip] and !params[:zip].is_a?(String)
|
|
281
|
-
raise InvalidParameterError.new("Bad parameter: country must be an String") if params[:country] and !params[:country].is_a?(String)
|
|
282
|
-
raise InvalidParameterError.new("Bad parameter: email must be an String") if params[:email] and !params[:email].is_a?(String)
|
|
283
|
-
raise InvalidParameterError.new("Bad parameter: phone_number must be an String") if params[:phone_number] and !params[:phone_number].is_a?(String)
|
|
284
|
-
raise InvalidParameterError.new("Bad parameter: card_number must be an String") if params[:card_number] and !params[:card_number].is_a?(String)
|
|
285
|
-
raise InvalidParameterError.new("Bad parameter: card_type must be an String") if params[:card_type] and !params[:card_type].is_a?(String)
|
|
286
|
-
raise InvalidParameterError.new("Bad parameter: expiration_year must be an String") if params[:expiration_year] and !params[:expiration_year].is_a?(String)
|
|
287
|
-
raise InvalidParameterError.new("Bad parameter: expiration_month must be an String") if params[:expiration_month] and !params[:expiration_month].is_a?(String)
|
|
288
|
-
raise InvalidParameterError.new("Bad parameter: start_year must be an String") if params[:start_year] and !params[:start_year].is_a?(String)
|
|
289
|
-
raise InvalidParameterError.new("Bad parameter: start_month must be an String") if params[:start_month] and !params[:start_month].is_a?(String)
|
|
290
|
-
raise InvalidParameterError.new("Bad parameter: cvv must be an String") if params[:cvv] and !params[:cvv].is_a?(String)
|
|
291
|
-
raise InvalidParameterError.new("Bad parameter: paypal_token must be an String") if params[:paypal_token] and !params[:paypal_token].is_a?(String)
|
|
292
|
-
raise InvalidParameterError.new("Bad parameter: paypal_payer_id must be an String") if params[:paypal_payer_id] and !params[:paypal_payer_id].is_a?(String)
|
|
293
|
-
raise InvalidParameterError.new("Bad parameter: plan_id must be an Integer") if params[:plan_id] and !params[:plan_id].is_a?(Integer)
|
|
294
|
-
raise InvalidParameterError.new("Bad parameter: billing_frequency must be an Integer") if params[:billing_frequency] and !params[:billing_frequency].is_a?(Integer)
|
|
295
|
-
raise InvalidParameterError.new("Bad parameter: currency must be an String") if params[:currency] and !params[:currency].is_a?(String)
|
|
296
|
-
|
|
297
|
-
response, options = Api.send_request("/account", :post, params, options)
|
|
298
|
-
Account.new(response.data, options)
|
|
299
|
-
end
|
|
300
|
-
|
|
301
|
-
# Parameters:
|
|
302
|
-
# name - string - Internal name.
|
|
303
|
-
# company_name - string - Company name.
|
|
304
|
-
# address - string - Address line 1.
|
|
305
|
-
# address_2 - string - Address line 2.
|
|
306
|
-
# city - string - City.
|
|
307
|
-
# state - string - State.
|
|
308
|
-
# zip - string - Zipcode.
|
|
309
|
-
# country - string - Country.
|
|
310
|
-
# email - string - Email.
|
|
311
|
-
# phone_number - string - Primary phone number.
|
|
312
|
-
# card_number - string - Credit card number.
|
|
313
|
-
# card_type - string - Credit card type. Can be visa, master, maestro, solo, switch, american_express, or discover.
|
|
314
|
-
# expiration_year - string - Expiration year(4 digits).
|
|
315
|
-
# expiration_month - string - Expiration month(2 digits).
|
|
316
|
-
# start_year - string - Required for some cards(Switch / Solo).
|
|
317
|
-
# start_month - string - Required for some cards(Switch / Solo).
|
|
318
|
-
# cvv - string - 3 digit code on the back of the card.
|
|
319
|
-
# paypal_token - string - Token for paying with paypal.
|
|
320
|
-
# paypal_payer_id - string - Paypal payer ID for paying with paypal.
|
|
321
|
-
def self.update(params = {}, options = {})
|
|
322
|
-
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
323
|
-
raise InvalidParameterError.new("Bad parameter: company_name must be an String") if params[:company_name] and !params[:company_name].is_a?(String)
|
|
324
|
-
raise InvalidParameterError.new("Bad parameter: address must be an String") if params[:address] and !params[:address].is_a?(String)
|
|
325
|
-
raise InvalidParameterError.new("Bad parameter: address_2 must be an String") if params[:address_2] and !params[:address_2].is_a?(String)
|
|
326
|
-
raise InvalidParameterError.new("Bad parameter: city must be an String") if params[:city] and !params[:city].is_a?(String)
|
|
327
|
-
raise InvalidParameterError.new("Bad parameter: state must be an String") if params[:state] and !params[:state].is_a?(String)
|
|
328
|
-
raise InvalidParameterError.new("Bad parameter: zip must be an String") if params[:zip] and !params[:zip].is_a?(String)
|
|
329
|
-
raise InvalidParameterError.new("Bad parameter: country must be an String") if params[:country] and !params[:country].is_a?(String)
|
|
330
|
-
raise InvalidParameterError.new("Bad parameter: email must be an String") if params[:email] and !params[:email].is_a?(String)
|
|
331
|
-
raise InvalidParameterError.new("Bad parameter: phone_number must be an String") if params[:phone_number] and !params[:phone_number].is_a?(String)
|
|
332
|
-
raise InvalidParameterError.new("Bad parameter: card_number must be an String") if params[:card_number] and !params[:card_number].is_a?(String)
|
|
333
|
-
raise InvalidParameterError.new("Bad parameter: card_type must be an String") if params[:card_type] and !params[:card_type].is_a?(String)
|
|
334
|
-
raise InvalidParameterError.new("Bad parameter: expiration_year must be an String") if params[:expiration_year] and !params[:expiration_year].is_a?(String)
|
|
335
|
-
raise InvalidParameterError.new("Bad parameter: expiration_month must be an String") if params[:expiration_month] and !params[:expiration_month].is_a?(String)
|
|
336
|
-
raise InvalidParameterError.new("Bad parameter: start_year must be an String") if params[:start_year] and !params[:start_year].is_a?(String)
|
|
337
|
-
raise InvalidParameterError.new("Bad parameter: start_month must be an String") if params[:start_month] and !params[:start_month].is_a?(String)
|
|
338
|
-
raise InvalidParameterError.new("Bad parameter: cvv must be an String") if params[:cvv] and !params[:cvv].is_a?(String)
|
|
339
|
-
raise InvalidParameterError.new("Bad parameter: paypal_token must be an String") if params[:paypal_token] and !params[:paypal_token].is_a?(String)
|
|
340
|
-
raise InvalidParameterError.new("Bad parameter: paypal_payer_id must be an String") if params[:paypal_payer_id] and !params[:paypal_payer_id].is_a?(String)
|
|
341
|
-
|
|
342
|
-
response, options = Api.send_request("/account", :patch, params, options)
|
|
343
|
-
Account.new(response.data, options)
|
|
344
|
-
end
|
|
345
|
-
end
|
|
346
|
-
end
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class ActionWebhookFailure
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# Retry Action Webhook Failure
|
|
13
|
-
def retry(params = {})
|
|
14
|
-
params ||= {}
|
|
15
|
-
params[:id] = @attributes[:id]
|
|
16
|
-
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
17
|
-
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
18
|
-
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
19
|
-
|
|
20
|
-
Api.send_request("/action_webhook_failures/#{@attributes[:id]}/retry", :post, params, @options)
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
# Retry Action Webhook Failure
|
|
24
|
-
def self.retry(id, params = {}, options = {})
|
|
25
|
-
params ||= {}
|
|
26
|
-
params[:id] = id
|
|
27
|
-
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
28
|
-
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
29
|
-
|
|
30
|
-
Api.send_request("/action_webhook_failures/#{params[:id]}/retry", :post, params, options)
|
|
31
|
-
nil
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class AgentProxyIdentity
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# string - Libp2p peer ID for this identity candidate.
|
|
13
|
-
def peer_id
|
|
14
|
-
@attributes[:peer_id]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# array(object) - Protocol-specific endpoints for this peer ID.
|
|
18
|
-
def endpoints
|
|
19
|
-
@attributes[:endpoints]
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
# Parameters:
|
|
23
|
-
# ips (required) - array(string) - One or more public IPv4 addresses to resolve
|
|
24
|
-
def self.lookup(params = {}, options = {})
|
|
25
|
-
raise InvalidParameterError.new("Bad parameter: ips must be an Array") if params[:ips] and !params[:ips].is_a?(Array)
|
|
26
|
-
raise MissingParameterError.new("Parameter missing: ips") unless params[:ips]
|
|
27
|
-
|
|
28
|
-
response, options = Api.send_request("/agent_proxy_identities/lookup", :post, params, options)
|
|
29
|
-
response.data.map do |entity_data|
|
|
30
|
-
AgentProxyIdentityResult.new(entity_data, options)
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
# Parameters:
|
|
35
|
-
# private_ip (required) - string - Proxy private IPv4 address
|
|
36
|
-
# peer_id (required) - string - Libp2p peer ID currently served by the proxy
|
|
37
|
-
def self.report(params = {}, options = {})
|
|
38
|
-
raise InvalidParameterError.new("Bad parameter: private_ip must be an String") if params[:private_ip] and !params[:private_ip].is_a?(String)
|
|
39
|
-
raise InvalidParameterError.new("Bad parameter: peer_id must be an String") if params[:peer_id] and !params[:peer_id].is_a?(String)
|
|
40
|
-
raise MissingParameterError.new("Parameter missing: private_ip") unless params[:private_ip]
|
|
41
|
-
raise MissingParameterError.new("Parameter missing: peer_id") unless params[:peer_id]
|
|
42
|
-
|
|
43
|
-
Api.send_request("/agent_proxy_identities/report", :post, params, options)
|
|
44
|
-
nil
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class AgentProxyIdentityEndpoint
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# string - Canonical libp2p multiaddr for this proxy identity endpoint.
|
|
13
|
-
def multiaddr
|
|
14
|
-
@attributes[:multiaddr]
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class AgentProxyIdentityResult
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# string - Requested public IPv4 address.
|
|
13
|
-
def ip
|
|
14
|
-
@attributes[:ip]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# string - Lookup status for the requested IP.
|
|
18
|
-
def status
|
|
19
|
-
@attributes[:status]
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
# array(object) - Ordered identity candidates for this IP during rotation.
|
|
23
|
-
def identities
|
|
24
|
-
@attributes[:identities]
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class AgentV2Auth
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# int64 - Agent ID
|
|
13
|
-
def id
|
|
14
|
-
@attributes[:id]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# string - authentication nonce
|
|
18
|
-
def nonce
|
|
19
|
-
@attributes[:nonce]
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
# string - in_setup: waiting for signed_nonce, complete: authorization approved
|
|
23
|
-
def status
|
|
24
|
-
@attributes[:status]
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
# int64 - Agent's site ID
|
|
28
|
-
def site_id
|
|
29
|
-
@attributes[:site_id]
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class Announcement
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# int64 - Announcement Id
|
|
13
|
-
def id
|
|
14
|
-
@attributes[:id]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# string - Announcement headline
|
|
18
|
-
def headline
|
|
19
|
-
@attributes[:headline]
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
# string - Announcement body
|
|
23
|
-
def body
|
|
24
|
-
@attributes[:body]
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
# string - Text to go on the CTA button
|
|
28
|
-
def button_text
|
|
29
|
-
@attributes[:button_text]
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# string - URL to link to when CTA button is clicked
|
|
33
|
-
def button_url
|
|
34
|
-
@attributes[:button_url]
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
# string - Body converted to HTML
|
|
38
|
-
def html_body
|
|
39
|
-
@attributes[:html_body]
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# string - Text for a label that can be added to the announcement
|
|
43
|
-
def label
|
|
44
|
-
@attributes[:label]
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
# string - Color for label on announcement
|
|
48
|
-
def label_color
|
|
49
|
-
@attributes[:label_color]
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
# date-time - When was this announcement published?
|
|
53
|
-
def publish_at
|
|
54
|
-
@attributes[:publish_at]
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
# string - URL slug for announcement
|
|
58
|
-
def slug
|
|
59
|
-
@attributes[:slug]
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
# Parameters:
|
|
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.
|
|
64
|
-
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
65
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
66
|
-
def self.list(params = {}, options = {})
|
|
67
|
-
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
68
|
-
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
69
|
-
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
70
|
-
|
|
71
|
-
List.new(Announcement, params) do
|
|
72
|
-
Api.send_request("/announcements", :get, params, options)
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
def self.all(params = {}, options = {})
|
|
77
|
-
list(params, options)
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
# Parameters:
|
|
81
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
82
|
-
def self.create_export(params = {}, options = {})
|
|
83
|
-
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
84
|
-
|
|
85
|
-
response, options = Api.send_request("/announcements/create_export", :post, params, options)
|
|
86
|
-
Export.new(response.data, options)
|
|
87
|
-
end
|
|
88
|
-
end
|
|
89
|
-
end
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class BlogPost
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# int64 - Blog Post ID
|
|
13
|
-
def id
|
|
14
|
-
@attributes[:id]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# string - Blog Post's Title
|
|
18
|
-
def title
|
|
19
|
-
@attributes[:title]
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
# string - Blog Post's Content
|
|
23
|
-
def content
|
|
24
|
-
@attributes[:content]
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
# date-time - Blog Post's Permanent Link
|
|
28
|
-
def link
|
|
29
|
-
@attributes[:link]
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# date-time - Blog Post's Published Date
|
|
33
|
-
def published_at
|
|
34
|
-
@attributes[:published_at]
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
# Parameters:
|
|
38
|
-
# 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.
|
|
39
|
-
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
40
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `published_at`.
|
|
41
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `published_at`.
|
|
42
|
-
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `published_at`.
|
|
43
|
-
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `published_at`.
|
|
44
|
-
# filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `published_at`.
|
|
45
|
-
# filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `published_at`.
|
|
46
|
-
def self.list(params = {}, options = {})
|
|
47
|
-
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
48
|
-
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
49
|
-
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
50
|
-
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
|
51
|
-
raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
|
|
52
|
-
raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
|
|
53
|
-
raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
|
|
54
|
-
raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
|
|
55
|
-
|
|
56
|
-
List.new(BlogPost, params) do
|
|
57
|
-
Api.send_request("/blog_posts", :get, params, options)
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
def self.all(params = {}, options = {})
|
|
62
|
-
list(params, options)
|
|
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 `published_at`.
|
|
67
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `published_at`.
|
|
68
|
-
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `published_at`.
|
|
69
|
-
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `published_at`.
|
|
70
|
-
# filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `published_at`.
|
|
71
|
-
# filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `published_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("/blog_posts/create_export", :post, params, options)
|
|
81
|
-
Export.new(response.data, options)
|
|
82
|
-
end
|
|
83
|
-
end
|
|
84
|
-
end
|