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,56 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class ClickwrapAcceptance
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# int64 - Clickwrap Acceptance ID
|
|
13
|
-
def id
|
|
14
|
-
@attributes[:id]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
def id=(value)
|
|
18
|
-
@attributes[:id] = value
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
# int64 - Clickwrap ID
|
|
22
|
-
def clickwrap_id
|
|
23
|
-
@attributes[:clickwrap_id]
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
def clickwrap_id=(value)
|
|
27
|
-
@attributes[:clickwrap_id] = value
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
# date-time - Acceptance timestamp
|
|
31
|
-
def created_at
|
|
32
|
-
@attributes[:created_at]
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
def save
|
|
36
|
-
if @attributes[:id]
|
|
37
|
-
raise NotImplementedError.new("The ClickwrapAcceptance object doesn't support updates.")
|
|
38
|
-
else
|
|
39
|
-
new_obj = ClickwrapAcceptance.create(@attributes, @options)
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
@attributes = new_obj.attributes
|
|
43
|
-
true
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
# Parameters:
|
|
47
|
-
# clickwrap_id (required) - int64
|
|
48
|
-
def self.create(params = {}, options = {})
|
|
49
|
-
raise InvalidParameterError.new("Bad parameter: clickwrap_id must be an Integer") if params[:clickwrap_id] and !params[:clickwrap_id].is_a?(Integer)
|
|
50
|
-
raise MissingParameterError.new("Parameter missing: clickwrap_id") unless params[:clickwrap_id]
|
|
51
|
-
|
|
52
|
-
response, options = Api.send_request("/clickwrap_acceptances", :post, params, options)
|
|
53
|
-
ClickwrapAcceptance.new(response.data, options)
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
end
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class ClientLog
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# Parameters:
|
|
13
|
-
# identifier (required) - string - Client log stream identifier
|
|
14
|
-
# body (required) - string - NDJSON log records
|
|
15
|
-
def self.log(params = {}, options = {})
|
|
16
|
-
raise InvalidParameterError.new("Bad parameter: identifier must be an String") if params[:identifier] and !params[:identifier].is_a?(String)
|
|
17
|
-
raise InvalidParameterError.new("Bad parameter: body must be an String") if params[:body] and !params[:body].is_a?(String)
|
|
18
|
-
raise MissingParameterError.new("Parameter missing: identifier") unless params[:identifier]
|
|
19
|
-
raise MissingParameterError.new("Parameter missing: body") unless params[:body]
|
|
20
|
-
|
|
21
|
-
Api.send_request("/client_logs/log", :post, params, options)
|
|
22
|
-
nil
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class CrashReport
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# int64 - Crash Report ID
|
|
13
|
-
def id
|
|
14
|
-
@attributes[:id]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
def id=(value)
|
|
18
|
-
@attributes[:id] = value
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
# string
|
|
22
|
-
def build
|
|
23
|
-
@attributes[:build]
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
def build=(value)
|
|
27
|
-
@attributes[:build] = value
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
# string
|
|
31
|
-
def platform
|
|
32
|
-
@attributes[:platform]
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
def platform=(value)
|
|
36
|
-
@attributes[:platform] = value
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
# string
|
|
40
|
-
def product_name
|
|
41
|
-
@attributes[:product_name]
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
def product_name=(value)
|
|
45
|
-
@attributes[:product_name] = value
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
# string
|
|
49
|
-
def version
|
|
50
|
-
@attributes[:version]
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
def version=(value)
|
|
54
|
-
@attributes[:version] = value
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
# string
|
|
58
|
-
def comment
|
|
59
|
-
@attributes[:comment]
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
def comment=(value)
|
|
63
|
-
@attributes[:comment] = value
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
# string
|
|
67
|
-
def email
|
|
68
|
-
@attributes[:email]
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
def email=(value)
|
|
72
|
-
@attributes[:email] = value
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
# string
|
|
76
|
-
def platform_version
|
|
77
|
-
@attributes[:platform_version]
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
def platform_version=(value)
|
|
81
|
-
@attributes[:platform_version] = value
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
# string
|
|
85
|
-
def release_channel
|
|
86
|
-
@attributes[:release_channel]
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
def release_channel=(value)
|
|
90
|
-
@attributes[:release_channel] = value
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
# file
|
|
94
|
-
def dump_file
|
|
95
|
-
@attributes[:dump_file]
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
def dump_file=(value)
|
|
99
|
-
@attributes[:dump_file] = value
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
# file
|
|
103
|
-
def log_file
|
|
104
|
-
@attributes[:log_file]
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
def log_file=(value)
|
|
108
|
-
@attributes[:log_file] = value
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
def save
|
|
112
|
-
if @attributes[:id]
|
|
113
|
-
raise NotImplementedError.new("The CrashReport object doesn't support updates.")
|
|
114
|
-
else
|
|
115
|
-
new_obj = CrashReport.create(@attributes, @options)
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
@attributes = new_obj.attributes
|
|
119
|
-
true
|
|
120
|
-
end
|
|
121
|
-
|
|
122
|
-
# Parameters:
|
|
123
|
-
# build (required) - string
|
|
124
|
-
# platform (required) - string
|
|
125
|
-
# product_name (required) - string
|
|
126
|
-
# version (required) - string
|
|
127
|
-
# comment - string
|
|
128
|
-
# email - string
|
|
129
|
-
# platform_version - string
|
|
130
|
-
# release_channel - string
|
|
131
|
-
# dump_file - file
|
|
132
|
-
# log_file - file
|
|
133
|
-
def self.create(params = {}, options = {})
|
|
134
|
-
raise InvalidParameterError.new("Bad parameter: build must be an String") if params[:build] and !params[:build].is_a?(String)
|
|
135
|
-
raise InvalidParameterError.new("Bad parameter: platform must be an String") if params[:platform] and !params[:platform].is_a?(String)
|
|
136
|
-
raise InvalidParameterError.new("Bad parameter: product_name must be an String") if params[:product_name] and !params[:product_name].is_a?(String)
|
|
137
|
-
raise InvalidParameterError.new("Bad parameter: version must be an String") if params[:version] and !params[:version].is_a?(String)
|
|
138
|
-
raise InvalidParameterError.new("Bad parameter: comment must be an String") if params[:comment] and !params[:comment].is_a?(String)
|
|
139
|
-
raise InvalidParameterError.new("Bad parameter: email must be an String") if params[:email] and !params[:email].is_a?(String)
|
|
140
|
-
raise InvalidParameterError.new("Bad parameter: platform_version must be an String") if params[:platform_version] and !params[:platform_version].is_a?(String)
|
|
141
|
-
raise InvalidParameterError.new("Bad parameter: release_channel must be an String") if params[:release_channel] and !params[:release_channel].is_a?(String)
|
|
142
|
-
raise MissingParameterError.new("Parameter missing: build") unless params[:build]
|
|
143
|
-
raise MissingParameterError.new("Parameter missing: platform") unless params[:platform]
|
|
144
|
-
raise MissingParameterError.new("Parameter missing: product_name") unless params[:product_name]
|
|
145
|
-
raise MissingParameterError.new("Parameter missing: version") unless params[:version]
|
|
146
|
-
|
|
147
|
-
response, options = Api.send_request("/crash_reports", :post, params, options)
|
|
148
|
-
CrashReport.new(response.data, options)
|
|
149
|
-
end
|
|
150
|
-
end
|
|
151
|
-
end
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class CustomDomainForProxy
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# int64 - Custom Domain ID.
|
|
13
|
-
def id
|
|
14
|
-
@attributes[:id]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# string - Customer-owned domain name.
|
|
18
|
-
def domain
|
|
19
|
-
@attributes[:domain]
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
# string - Routing destination: `site_alias`, `public_hosting`, or `s3_endpoint`.
|
|
23
|
-
def destination
|
|
24
|
-
@attributes[:destination]
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
# int64 - Attached SslCertificate ID.
|
|
28
|
-
def ssl_certificate_id
|
|
29
|
-
@attributes[:ssl_certificate_id]
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# string - The text of the certificate itself.
|
|
33
|
-
def certificate
|
|
34
|
-
@attributes[:certificate]
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
# string - Private key used to generate the certificate.
|
|
38
|
-
def private_key
|
|
39
|
-
@attributes[:private_key]
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# string - Intermediate certificates, if available.
|
|
43
|
-
def intermediates
|
|
44
|
-
@attributes[:intermediates]
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class EmailPreference
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# email - Email address
|
|
13
|
-
def email
|
|
14
|
-
@attributes[:email]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# array(object) - A list of notifications
|
|
18
|
-
def notifications
|
|
19
|
-
@attributes[:notifications]
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
# array(object) - A list of bundle notifications
|
|
23
|
-
def bundle_notifications
|
|
24
|
-
@attributes[:bundle_notifications]
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
# boolean - Deprecated. Use granular admin email preferences instead.
|
|
28
|
-
def receive_admin_alerts
|
|
29
|
-
@attributes[:receive_admin_alerts]
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# boolean - Receive site warnings?
|
|
33
|
-
def notify_on_all_site_warnings
|
|
34
|
-
@attributes[:notify_on_all_site_warnings]
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
# boolean - Receive sso/scim/ldap configuration/sync failures?
|
|
38
|
-
def notify_on_all_sso_failures
|
|
39
|
-
@attributes[:notify_on_all_sso_failures]
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# boolean - Receive user security events?
|
|
43
|
-
def notify_on_all_user_security_events
|
|
44
|
-
@attributes[:notify_on_all_user_security_events]
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
# boolean - Receive pending work failures?
|
|
48
|
-
def notify_on_all_pending_work_failures
|
|
49
|
-
@attributes[:notify_on_all_pending_work_failures]
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
# boolean - Receive siem failures?
|
|
53
|
-
def notify_on_all_siem_http_destination_failures
|
|
54
|
-
@attributes[:notify_on_all_siem_http_destination_failures]
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
# boolean - Receive sync failures?
|
|
58
|
-
def notify_on_all_sync_failures
|
|
59
|
-
@attributes[:notify_on_all_sync_failures]
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
# boolean - Receive automation failures?
|
|
63
|
-
def notify_on_all_automation_failures
|
|
64
|
-
@attributes[:notify_on_all_automation_failures]
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
# boolean - Receive expectation failures and misses?
|
|
68
|
-
def notify_on_all_expectation_failures
|
|
69
|
-
@attributes[:notify_on_all_expectation_failures]
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
# boolean - Receive marketing mail?
|
|
73
|
-
def receive_marketing_mail
|
|
74
|
-
@attributes[:receive_marketing_mail]
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
# boolean - Receive transactional (service-related) mail?
|
|
78
|
-
def receive_transactional_mail
|
|
79
|
-
@attributes[:receive_transactional_mail]
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
# Parameters:
|
|
83
|
-
# token (required) - string - Email preferences token.
|
|
84
|
-
def self.get(token, params = {}, options = {})
|
|
85
|
-
params ||= {}
|
|
86
|
-
params[:token] = token
|
|
87
|
-
raise InvalidParameterError.new("Bad parameter: token must be an String") if params[:token] and !params[:token].is_a?(String)
|
|
88
|
-
raise MissingParameterError.new("Parameter missing: token") unless params[:token]
|
|
89
|
-
|
|
90
|
-
response, options = Api.send_request("/email_preferences/#{params[:token]}", :get, params, options)
|
|
91
|
-
EmailPreference.new(response.data, options)
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
# Parameters:
|
|
95
|
-
# token (required) - string - Email preferences token.
|
|
96
|
-
# user[receive_admin_alerts] - boolean
|
|
97
|
-
# user[notify_on_all_site_warnings] - boolean
|
|
98
|
-
# user[notify_on_all_sso_failures] - boolean
|
|
99
|
-
# user[notify_on_all_user_security_events] - boolean
|
|
100
|
-
# user[notify_on_all_pending_work_failures] - boolean
|
|
101
|
-
# user[notify_on_all_siem_http_destination_failures] - boolean
|
|
102
|
-
# user[notify_on_all_sync_failures] - boolean
|
|
103
|
-
# user[notify_on_all_automation_failures] - boolean
|
|
104
|
-
# user[notify_on_all_expectation_failures] - boolean
|
|
105
|
-
# user[unsubscribe_marketing] - boolean
|
|
106
|
-
# user[unsubscribe_transactional] - boolean
|
|
107
|
-
# user[unsubscribe] - boolean
|
|
108
|
-
# user[notifications][id] (required) - array(int64)
|
|
109
|
-
# user[notifications][group] - array(boolean)
|
|
110
|
-
# user[notifications][send_interval] - array(string)
|
|
111
|
-
# user[notifications][unsubscribe] - array(boolean)
|
|
112
|
-
# user[bundle_notifications][id] (required) - array(int64)
|
|
113
|
-
# user[bundle_notifications][unsubscribe] - array(boolean)
|
|
114
|
-
def self.update(token, params = {}, options = {})
|
|
115
|
-
params ||= {}
|
|
116
|
-
params[:token] = token
|
|
117
|
-
raise InvalidParameterError.new("Bad parameter: token must be an String") if params[:token] and !params[:token].is_a?(String)
|
|
118
|
-
raise MissingParameterError.new("Parameter missing: token") unless params[:token]
|
|
119
|
-
|
|
120
|
-
response, options = Api.send_request("/email_preferences/#{params[:token]}", :patch, params, options)
|
|
121
|
-
EmailPreference.new(response.data, options)
|
|
122
|
-
end
|
|
123
|
-
end
|
|
124
|
-
end
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class EmailPreferenceBundleNotification
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# int64 - Email preferences ID
|
|
13
|
-
def id
|
|
14
|
-
@attributes[:id]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# string - Bundle code
|
|
18
|
-
def bundle_code
|
|
19
|
-
@attributes[:bundle_code]
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
# boolean - Is unsubscribed?
|
|
23
|
-
def unsubscribed
|
|
24
|
-
@attributes[:unsubscribed]
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class EmailPreferenceNotification
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# int64 - Email preferences ID
|
|
13
|
-
def id
|
|
14
|
-
@attributes[:id]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# string - Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
18
|
-
def path
|
|
19
|
-
@attributes[:path]
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
# string - The time interval that notifications are aggregated to. Can be five_minutes, fifteen_minutes, hourly, or daily
|
|
23
|
-
def send_interval
|
|
24
|
-
@attributes[:send_interval]
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
# boolean - Is unsubscribed?
|
|
28
|
-
def unsubscribed
|
|
29
|
-
@attributes[:unsubscribed]
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class Export
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# int64 - ID for this Export
|
|
13
|
-
def id
|
|
14
|
-
@attributes[:id]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
def id=(value)
|
|
18
|
-
@attributes[:id] = value
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
# string - Status of the Export
|
|
22
|
-
def export_status
|
|
23
|
-
@attributes[:export_status]
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
def export_status=(value)
|
|
27
|
-
@attributes[:export_status] = value
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
# string - Type of data being exported
|
|
31
|
-
def export_type
|
|
32
|
-
@attributes[:export_type]
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
def export_type=(value)
|
|
36
|
-
@attributes[:export_type] = value
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
# int64 - Number of rows exported
|
|
40
|
-
def export_rows
|
|
41
|
-
@attributes[:export_rows]
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
def export_rows=(value)
|
|
45
|
-
@attributes[:export_rows] = value
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
# string - Link to download Export 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 - Export message
|
|
58
|
-
def message
|
|
59
|
-
@attributes[:message]
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
def message=(value)
|
|
63
|
-
@attributes[:message] = value
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
# int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
67
|
-
def user_id
|
|
68
|
-
@attributes[:user_id]
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
def user_id=(value)
|
|
72
|
-
@attributes[:user_id] = value
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
def save
|
|
76
|
-
if @attributes[:id]
|
|
77
|
-
raise NotImplementedError.new("The Export object doesn't support updates.")
|
|
78
|
-
else
|
|
79
|
-
new_obj = Export.create(@attributes, @options)
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
@attributes = new_obj.attributes
|
|
83
|
-
true
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
# Parameters:
|
|
87
|
-
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
88
|
-
# 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.
|
|
89
|
-
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
90
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `export_status` and `export_type`.
|
|
91
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `export_status` and `export_type`.
|
|
92
|
-
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `export_type`.
|
|
93
|
-
def self.list(params = {}, options = {})
|
|
94
|
-
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
95
|
-
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
96
|
-
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
97
|
-
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
98
|
-
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
|
99
|
-
raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
|
|
100
|
-
|
|
101
|
-
List.new(Export, params) do
|
|
102
|
-
Api.send_request("/exports", :get, params, options)
|
|
103
|
-
end
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
def self.all(params = {}, options = {})
|
|
107
|
-
list(params, options)
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
# Parameters:
|
|
111
|
-
# id (required) - int64 - Export ID.
|
|
112
|
-
def self.find(id, params = {}, options = {})
|
|
113
|
-
params ||= {}
|
|
114
|
-
params[:id] = id
|
|
115
|
-
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
116
|
-
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
117
|
-
|
|
118
|
-
response, options = Api.send_request("/exports/#{params[:id]}", :get, params, options)
|
|
119
|
-
Export.new(response.data, options)
|
|
120
|
-
end
|
|
121
|
-
|
|
122
|
-
def self.get(id, params = {}, options = {})
|
|
123
|
-
find(id, params, options)
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
# Parameters:
|
|
127
|
-
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
128
|
-
# export_type (required) - string - Export Report Type
|
|
129
|
-
def self.create(params = {}, options = {})
|
|
130
|
-
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
131
|
-
raise InvalidParameterError.new("Bad parameter: export_type must be an String") if params[:export_type] and !params[:export_type].is_a?(String)
|
|
132
|
-
raise MissingParameterError.new("Parameter missing: export_type") unless params[:export_type]
|
|
133
|
-
|
|
134
|
-
response, options = Api.send_request("/exports", :post, params, options)
|
|
135
|
-
Export.new(response.data, options)
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
# Parameters:
|
|
139
|
-
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
140
|
-
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `export_status` and `export_type`.
|
|
141
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `export_status` and `export_type`.
|
|
142
|
-
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `export_type`.
|
|
143
|
-
def self.create_export(params = {}, options = {})
|
|
144
|
-
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
145
|
-
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
146
|
-
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
|
147
|
-
raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
|
|
148
|
-
|
|
149
|
-
response, options = Api.send_request("/exports/create_export", :post, params, options)
|
|
150
|
-
Export.new(response.data, options)
|
|
151
|
-
end
|
|
152
|
-
end
|
|
153
|
-
end
|