files.com 1.1.670 → 1.1.671
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/account.md +155 -0
- data/docs/action_log.md +21 -1
- data/docs/action_notification_export_result.md +17 -0
- data/docs/action_webhook_failure.md +28 -0
- data/docs/agent_proxy_identity.md +49 -0
- data/docs/agent_proxy_identity_endpoint.md +11 -0
- data/docs/agent_proxy_identity_result.md +24 -0
- data/docs/agent_v2_auth.md +17 -0
- data/docs/ai_assistant_personality.md +14 -0
- data/docs/ai_task.md +14 -0
- data/docs/announcement.md +57 -0
- data/docs/api_key.md +27 -1
- data/docs/api_request_log.md +21 -1
- data/docs/app.md +15 -0
- data/docs/as2_incoming_message.md +18 -0
- data/docs/as2_outgoing_message.md +18 -0
- data/docs/as2_partner.md +14 -0
- data/docs/as2_station.md +14 -0
- data/docs/automation.md +22 -1
- data/docs/automation_log.md +21 -1
- data/docs/automation_run.md +19 -0
- data/docs/bandwidth_snapshot.md +18 -0
- data/docs/behavior.md +14 -0
- data/docs/blog_post.md +57 -0
- data/docs/bundle.md +50 -1
- data/docs/bundle_action.md +25 -0
- data/docs/bundle_download.md +23 -0
- data/docs/bundle_notification.md +19 -0
- data/docs/bundle_recipient.md +21 -0
- data/docs/bundle_recipient_registration.md +39 -0
- data/docs/bundle_registration.md +61 -0
- data/docs/certificate.md +258 -0
- data/docs/chat_session.md +14 -0
- data/docs/child_site.md +583 -0
- data/docs/child_site_management_policy.md +9 -0
- data/docs/clickwrap.md +13 -0
- data/docs/clickwrap_acceptance.md +30 -0
- data/docs/client_log.md +17 -0
- data/docs/crash_report.md +50 -0
- data/docs/custom_domain.md +13 -0
- data/docs/custom_domain_for_proxy.md +23 -0
- data/docs/desktop_configuration_profile.md +14 -0
- data/docs/dns_record.md +9 -0
- data/docs/email_incoming_message.md +19 -0
- data/docs/email_log.md +20 -1
- data/docs/email_preference.md +108 -0
- data/docs/email_preference_bundle_notification.md +15 -0
- data/docs/email_preference_notification.md +17 -0
- data/docs/event_channel.md +14 -0
- data/docs/event_delivery_attempt.md +14 -0
- data/docs/event_record.md +19 -0
- data/docs/event_subscription.md +14 -0
- data/docs/event_target.md +14 -0
- data/docs/exavault_api_request_log.md +21 -1
- data/docs/expectation.md +14 -0
- data/docs/expectation_evaluation.md +14 -0
- data/docs/expectation_incident.md +14 -0
- data/docs/export.md +90 -0
- data/docs/external_event.md +18 -0
- data/docs/file.md +90 -2
- data/docs/file_migration.md +32 -0
- data/docs/file_migration_log.md +20 -1
- data/docs/file_upload_part.md +3 -1
- data/docs/folder.md +20 -0
- data/docs/form_field_set.md +15 -0
- data/docs/front_end_server.md +111 -0
- data/docs/frontend_metric.md +34 -0
- data/docs/ftp_action_log.md +21 -1
- data/docs/gpg_key.md +21 -0
- data/docs/group.md +19 -0
- data/docs/group_user.md +22 -2
- data/docs/history.md +85 -0
- data/docs/history_export_result.md +17 -0
- data/docs/holiday_region.md +9 -0
- data/docs/inbound_s3_log.md +21 -1
- data/docs/inbox.md +102 -0
- data/docs/inbox_recipient.md +19 -0
- data/docs/inbox_recipient_registration.md +35 -0
- data/docs/inbox_registration.md +57 -0
- data/docs/inbox_upload.md +18 -0
- data/docs/invoice.md +9 -0
- data/docs/ip.md +63 -0
- data/docs/ip_abuse_entry.md +47 -0
- data/docs/ip_address.md +59 -0
- data/docs/key_lifecycle_rule.md +14 -0
- data/docs/label.md +9 -0
- data/docs/lead.md +161 -0
- data/docs/lock.md +15 -0
- data/docs/message.md +17 -0
- data/docs/message_comment.md +18 -0
- data/docs/message_comment_reaction.md +18 -0
- data/docs/message_reaction.md +17 -0
- data/docs/metadata_category.md +13 -0
- data/docs/monitoring_stat.md +38 -0
- data/docs/monitoring_stats.md +15 -0
- data/docs/mover_package.md +68 -0
- data/docs/notification.md +20 -0
- data/docs/nps_response.md +75 -0
- data/docs/oauth_redirect.md +11 -0
- data/docs/outbound_connection_log.md +21 -1
- data/docs/paired_api_key.md +19 -0
- data/docs/partner.md +14 -0
- data/docs/partner_channel.md +14 -0
- data/docs/partner_site_request.md +14 -0
- data/docs/payment.md +9 -0
- data/docs/paypal_express_info.md +31 -0
- data/docs/paypal_express_url.md +11 -0
- data/docs/pending_work_event.md +18 -0
- data/docs/permission.md +22 -0
- data/docs/plan.md +107 -0
- data/docs/preview.md +57 -0
- data/docs/project.md +9 -0
- data/docs/public_hosting_request_log.md +21 -1
- data/docs/public_hosting_session_pairing.md +15 -0
- data/docs/public_inbox.md +121 -0
- data/docs/public_key.md +21 -0
- data/docs/public_url.md +59 -0
- data/docs/regional_migration.md +0 -0
- data/docs/release.md +83 -0
- data/docs/release_package.md +19 -0
- data/docs/remote_bandwidth_snapshot.md +18 -0
- data/docs/remote_mount_backend.md +13 -0
- data/docs/remote_server.md +233 -0
- data/docs/remote_server_credential.md +15 -0
- data/docs/request.md +17 -0
- data/docs/restore.md +14 -0
- data/docs/revision.md +40 -0
- data/docs/safe_plan.md +0 -0
- data/docs/scheduled_export.md +15 -0
- data/docs/scim_log.md +13 -0
- data/docs/session.md +232 -1
- data/docs/session_available_site.md +26 -0
- data/docs/setting.md +33 -0
- data/docs/settings.md +498 -0
- data/docs/settings_change.md +16 -0
- data/docs/sftp_action_log.md +21 -1
- data/docs/sftp_host_key.md +9 -0
- data/docs/share_group.md +15 -0
- data/docs/siem_http_destination.md +9 -0
- data/docs/siem_http_destination_event.md +18 -0
- data/docs/site.md +179 -0
- data/docs/site_subdomain_redirect.md +13 -0
- data/docs/snapshot.md +9 -0
- data/docs/ssl_certificate.md +37 -0
- data/docs/sso_event.md +19 -0
- data/docs/sso_strategy.md +406 -0
- data/docs/staging_site.md +591 -0
- data/docs/support_request.md +126 -0
- data/docs/sync.md +14 -0
- data/docs/sync_api_usage_snapshot.md +23 -0
- data/docs/sync_api_usage_snapshot_report.md +71 -0
- data/docs/sync_bandwidth_snapshot.md +48 -0
- data/docs/sync_log.md +20 -1
- data/docs/sync_run.md +21 -0
- data/docs/two_factor_authentication_method.md +169 -0
- data/docs/usage_daily_snapshot.md +18 -0
- data/docs/usage_snapshot.md +9 -0
- data/docs/user.md +49 -2
- data/docs/user_cipher_use.md +21 -0
- data/docs/user_lifecycle_rule.md +14 -0
- data/docs/user_request.md +9 -0
- data/docs/user_security_event.md +18 -0
- data/docs/user_sftp_client_use.md +15 -0
- data/docs/warning.md +36 -0
- data/docs/web_dav_action_log.md +21 -1
- data/docs/webauthn_sign_request.md +13 -0
- data/docs/workspace.md +15 -0
- data/docs/zip_download.md +32 -0
- data/docs/zip_download_file.md +45 -0
- data/docs/zip_download_files.md +23 -0
- data/lib/files.com/models/account.rb +346 -0
- data/lib/files.com/models/action_log.rb +24 -0
- data/lib/files.com/models/action_notification_export_result.rb +12 -0
- data/lib/files.com/models/action_webhook_failure.rb +34 -0
- data/lib/files.com/models/agent_proxy_identity.rb +47 -0
- data/lib/files.com/models/agent_proxy_identity_endpoint.rb +17 -0
- data/lib/files.com/models/agent_proxy_identity_result.rb +27 -0
- data/lib/files.com/models/agent_v2_auth.rb +32 -0
- data/lib/files.com/models/ai_assistant_personality.rb +11 -0
- data/lib/files.com/models/ai_task.rb +11 -0
- data/lib/files.com/models/announcement.rb +89 -0
- data/lib/files.com/models/api_key.rb +39 -5
- data/lib/files.com/models/api_request_log.rb +24 -0
- data/lib/files.com/models/app.rb +13 -0
- data/lib/files.com/models/as2_incoming_message.rb +19 -0
- data/lib/files.com/models/as2_outgoing_message.rb +19 -0
- data/lib/files.com/models/as2_partner.rb +11 -0
- data/lib/files.com/models/as2_station.rb +11 -0
- data/lib/files.com/models/automation.rb +30 -0
- data/lib/files.com/models/automation_log.rb +24 -0
- data/lib/files.com/models/automation_run.rb +16 -0
- data/lib/files.com/models/bandwidth_snapshot.rb +19 -0
- data/lib/files.com/models/behavior.rb +11 -0
- data/lib/files.com/models/blog_post.rb +84 -0
- data/lib/files.com/models/bundle.rb +52 -0
- data/lib/files.com/models/bundle_action.rb +25 -0
- data/lib/files.com/models/bundle_download.rb +23 -0
- data/lib/files.com/models/bundle_notification.rb +15 -0
- data/lib/files.com/models/bundle_recipient.rb +27 -0
- data/lib/files.com/models/bundle_recipient_registration.rb +105 -0
- data/lib/files.com/models/bundle_registration.rb +125 -0
- data/lib/files.com/models/certificate.rb +455 -0
- data/lib/files.com/models/chat_session.rb +11 -0
- data/lib/files.com/models/child_site.rb +1756 -0
- data/lib/files.com/models/child_site_management_policy.rb +5 -0
- data/lib/files.com/models/clickwrap.rb +9 -0
- data/lib/files.com/models/clickwrap_acceptance.rb +56 -0
- data/lib/files.com/models/client_log.rb +25 -0
- data/lib/files.com/models/crash_report.rb +151 -0
- data/lib/files.com/models/custom_domain.rb +9 -0
- data/lib/files.com/models/custom_domain_for_proxy.rb +47 -0
- data/lib/files.com/models/desktop_configuration_profile.rb +11 -0
- data/lib/files.com/models/dns_record.rb +5 -0
- data/lib/files.com/models/email_incoming_message.rb +21 -0
- data/lib/files.com/models/email_log.rb +22 -0
- data/lib/files.com/models/email_preference.rb +124 -0
- data/lib/files.com/models/email_preference_bundle_notification.rb +27 -0
- data/lib/files.com/models/email_preference_notification.rb +32 -0
- data/lib/files.com/models/event_channel.rb +11 -0
- data/lib/files.com/models/event_delivery_attempt.rb +11 -0
- data/lib/files.com/models/event_record.rb +21 -0
- data/lib/files.com/models/event_subscription.rb +11 -0
- data/lib/files.com/models/event_target.rb +11 -0
- data/lib/files.com/models/exavault_api_request_log.rb +24 -0
- data/lib/files.com/models/expectation.rb +11 -0
- data/lib/files.com/models/expectation_evaluation.rb +11 -0
- data/lib/files.com/models/expectation_incident.rb +11 -0
- data/lib/files.com/models/export.rb +153 -0
- data/lib/files.com/models/external_event.rb +19 -0
- data/lib/files.com/models/file.rb +207 -0
- data/lib/files.com/models/file_migration.rb +27 -0
- data/lib/files.com/models/file_migration_log.rb +22 -0
- data/lib/files.com/models/file_upload_part.rb +5 -0
- data/lib/files.com/models/folder.rb +69 -0
- data/lib/files.com/models/form_field_set.rb +9 -0
- data/lib/files.com/models/front_end_server.rb +335 -0
- data/lib/files.com/models/frontend_metric.rb +65 -0
- data/lib/files.com/models/ftp_action_log.rb +24 -0
- data/lib/files.com/models/gpg_key.rb +21 -0
- data/lib/files.com/models/group.rb +16 -0
- data/lib/files.com/models/group_user.rb +21 -1
- data/lib/files.com/models/history.rb +94 -0
- data/lib/files.com/models/history_export_result.rb +12 -0
- data/lib/files.com/models/holiday_region.rb +5 -0
- data/lib/files.com/models/inbound_s3_log.rb +24 -0
- data/lib/files.com/models/inbox.rb +123 -0
- data/lib/files.com/models/inbox_recipient.rb +25 -0
- data/lib/files.com/models/inbox_recipient_registration.rb +87 -0
- data/lib/files.com/models/inbox_registration.rb +121 -0
- data/lib/files.com/models/inbox_upload.rb +19 -0
- data/lib/files.com/models/invoice.rb +5 -0
- data/lib/files.com/models/ip.rb +82 -0
- data/lib/files.com/models/ip_abuse_entry.rb +96 -0
- data/lib/files.com/models/ip_address.rb +37 -0
- data/lib/files.com/models/key_lifecycle_rule.rb +11 -0
- data/lib/files.com/models/label.rb +22 -0
- data/lib/files.com/models/lead.rb +434 -0
- data/lib/files.com/models/lock.rb +27 -0
- data/lib/files.com/models/message.rb +12 -0
- data/lib/files.com/models/message_comment.rb +14 -0
- data/lib/files.com/models/message_comment_reaction.rb +14 -0
- data/lib/files.com/models/message_reaction.rb +12 -0
- data/lib/files.com/models/metadata_category.rb +9 -0
- data/lib/files.com/models/monitoring_stat.rb +43 -0
- data/lib/files.com/models/monitoring_stats.rb +22 -0
- data/lib/files.com/models/mover_package.rb +80 -0
- data/lib/files.com/models/notification.rb +18 -0
- data/lib/files.com/models/nps_response.rb +128 -0
- data/lib/files.com/models/oauth_redirect.rb +17 -0
- data/lib/files.com/models/outbound_connection_log.rb +24 -0
- data/lib/files.com/models/paired_api_key.rb +37 -0
- data/lib/files.com/models/partner.rb +11 -0
- data/lib/files.com/models/partner_channel.rb +11 -0
- data/lib/files.com/models/partner_site_request.rb +11 -0
- data/lib/files.com/models/payment.rb +5 -0
- data/lib/files.com/models/paypal_express_info.rb +67 -0
- data/lib/files.com/models/paypal_express_url.rb +17 -0
- data/lib/files.com/models/pending_work_event.rb +19 -0
- data/lib/files.com/models/permission.rb +22 -0
- data/lib/files.com/models/plan.rb +209 -0
- data/lib/files.com/models/preview.rb +57 -0
- data/lib/files.com/models/project.rb +5 -0
- data/lib/files.com/models/public_hosting_request_log.rb +24 -0
- data/lib/files.com/models/public_hosting_session_pairing.rb +27 -0
- data/lib/files.com/models/public_inbox.rb +142 -0
- data/lib/files.com/models/public_key.rb +21 -0
- data/lib/files.com/models/public_url.rb +177 -0
- data/lib/files.com/models/regional_migration.rb +12 -0
- data/lib/files.com/models/release.rb +153 -0
- data/lib/files.com/models/release_package.rb +37 -0
- data/lib/files.com/models/remote_bandwidth_snapshot.rb +19 -0
- data/lib/files.com/models/remote_mount_backend.rb +9 -0
- data/lib/files.com/models/remote_server.rb +297 -0
- data/lib/files.com/models/remote_server_credential.rb +13 -0
- data/lib/files.com/models/request.rb +12 -0
- data/lib/files.com/models/restore.rb +11 -0
- data/lib/files.com/models/revision.rb +53 -0
- data/lib/files.com/models/safe_plan.rb +12 -0
- data/lib/files.com/models/scheduled_export.rb +13 -0
- data/lib/files.com/models/scim_log.rb +9 -0
- data/lib/files.com/models/session.rb +493 -0
- data/lib/files.com/models/session_available_site.rb +47 -0
- data/lib/files.com/models/setting.rb +36 -0
- data/lib/files.com/models/settings.rb +1072 -0
- data/lib/files.com/models/settings_change.rb +16 -0
- data/lib/files.com/models/sftp_action_log.rb +24 -0
- data/lib/files.com/models/sftp_host_key.rb +5 -0
- data/lib/files.com/models/share_group.rb +9 -0
- data/lib/files.com/models/siem_http_destination.rb +5 -0
- data/lib/files.com/models/siem_http_destination_event.rb +19 -0
- data/lib/files.com/models/site.rb +1021 -0
- data/lib/files.com/models/site_subdomain_redirect.rb +9 -0
- data/lib/files.com/models/snapshot.rb +5 -0
- data/lib/files.com/models/ssl_certificate.rb +77 -0
- data/lib/files.com/models/sso_event.rb +21 -0
- data/lib/files.com/models/sso_strategy.rb +632 -0
- data/lib/files.com/models/staging_site.rb +1781 -0
- data/lib/files.com/models/support_request.rb +209 -0
- data/lib/files.com/models/sync.rb +11 -0
- data/lib/files.com/models/sync_api_usage_snapshot.rb +47 -0
- data/lib/files.com/models/sync_api_usage_snapshot_report.rb +162 -0
- data/lib/files.com/models/sync_bandwidth_snapshot.rb +104 -0
- data/lib/files.com/models/sync_log.rb +22 -0
- data/lib/files.com/models/sync_run.rb +21 -0
- data/lib/files.com/models/two_factor_authentication_method.rb +250 -0
- data/lib/files.com/models/usage_daily_snapshot.rb +19 -0
- data/lib/files.com/models/usage_snapshot.rb +5 -0
- data/lib/files.com/models/user.rb +59 -0
- data/lib/files.com/models/user_cipher_use.rb +21 -0
- data/lib/files.com/models/user_lifecycle_rule.rb +11 -0
- data/lib/files.com/models/user_request.rb +5 -0
- data/lib/files.com/models/user_security_event.rb +19 -0
- data/lib/files.com/models/user_sftp_client_use.rb +9 -0
- data/lib/files.com/models/warning.rb +38 -0
- data/lib/files.com/models/web_dav_action_log.rb +24 -0
- data/lib/files.com/models/webauthn_sign_request.rb +17 -0
- data/lib/files.com/models/workspace.rb +13 -0
- data/lib/files.com/models/zip_download.rb +73 -0
- data/lib/files.com/models/zip_download_file.rb +111 -0
- data/lib/files.com/models/zip_download_files.rb +42 -0
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +59 -0
- metadata +120 -2
|
@@ -14,71 +14,152 @@ module Files
|
|
|
14
14
|
@attributes[:code]
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
def code=(value)
|
|
18
|
+
@attributes[:code] = value
|
|
19
|
+
end
|
|
20
|
+
|
|
17
21
|
# string - Registrant name
|
|
18
22
|
def name
|
|
19
23
|
@attributes[:name]
|
|
20
24
|
end
|
|
21
25
|
|
|
26
|
+
def name=(value)
|
|
27
|
+
@attributes[:name] = value
|
|
28
|
+
end
|
|
29
|
+
|
|
22
30
|
# string - Registrant company name
|
|
23
31
|
def company
|
|
24
32
|
@attributes[:company]
|
|
25
33
|
end
|
|
26
34
|
|
|
35
|
+
def company=(value)
|
|
36
|
+
@attributes[:company] = value
|
|
37
|
+
end
|
|
38
|
+
|
|
27
39
|
# string - Registrant email address
|
|
28
40
|
def email
|
|
29
41
|
@attributes[:email]
|
|
30
42
|
end
|
|
31
43
|
|
|
44
|
+
def email=(value)
|
|
45
|
+
@attributes[:email] = value
|
|
46
|
+
end
|
|
47
|
+
|
|
32
48
|
# string - Registrant IP Address
|
|
33
49
|
def ip
|
|
34
50
|
@attributes[:ip]
|
|
35
51
|
end
|
|
36
52
|
|
|
53
|
+
def ip=(value)
|
|
54
|
+
@attributes[:ip] = value
|
|
55
|
+
end
|
|
56
|
+
|
|
37
57
|
# string - InboxRegistration cookie code, if there is an associated InboxRegistration
|
|
38
58
|
def inbox_code
|
|
39
59
|
@attributes[:inbox_code]
|
|
40
60
|
end
|
|
41
61
|
|
|
62
|
+
def inbox_code=(value)
|
|
63
|
+
@attributes[:inbox_code] = value
|
|
64
|
+
end
|
|
65
|
+
|
|
42
66
|
# string - Clickwrap text that was shown to the registrant
|
|
43
67
|
def clickwrap_body
|
|
44
68
|
@attributes[:clickwrap_body]
|
|
45
69
|
end
|
|
46
70
|
|
|
71
|
+
def clickwrap_body=(value)
|
|
72
|
+
@attributes[:clickwrap_body] = value
|
|
73
|
+
end
|
|
74
|
+
|
|
47
75
|
# int64 - Id of associated form field set
|
|
48
76
|
def form_field_set_id
|
|
49
77
|
@attributes[:form_field_set_id]
|
|
50
78
|
end
|
|
51
79
|
|
|
80
|
+
def form_field_set_id=(value)
|
|
81
|
+
@attributes[:form_field_set_id] = value
|
|
82
|
+
end
|
|
83
|
+
|
|
52
84
|
# object - Data for form field set with form field ids as keys and user data as values
|
|
53
85
|
def form_field_data
|
|
54
86
|
@attributes[:form_field_data]
|
|
55
87
|
end
|
|
56
88
|
|
|
89
|
+
def form_field_data=(value)
|
|
90
|
+
@attributes[:form_field_data] = value
|
|
91
|
+
end
|
|
92
|
+
|
|
57
93
|
# string - Bundle URL code
|
|
58
94
|
def bundle_code
|
|
59
95
|
@attributes[:bundle_code]
|
|
60
96
|
end
|
|
61
97
|
|
|
98
|
+
def bundle_code=(value)
|
|
99
|
+
@attributes[:bundle_code] = value
|
|
100
|
+
end
|
|
101
|
+
|
|
62
102
|
# int64 - Id of associated bundle
|
|
63
103
|
def bundle_id
|
|
64
104
|
@attributes[:bundle_id]
|
|
65
105
|
end
|
|
66
106
|
|
|
107
|
+
def bundle_id=(value)
|
|
108
|
+
@attributes[:bundle_id] = value
|
|
109
|
+
end
|
|
110
|
+
|
|
67
111
|
# int64 - Id of associated bundle recipient
|
|
68
112
|
def bundle_recipient_id
|
|
69
113
|
@attributes[:bundle_recipient_id]
|
|
70
114
|
end
|
|
71
115
|
|
|
116
|
+
def bundle_recipient_id=(value)
|
|
117
|
+
@attributes[:bundle_recipient_id] = value
|
|
118
|
+
end
|
|
119
|
+
|
|
72
120
|
# int64 - Workspace ID. `0` means the default workspace.
|
|
73
121
|
def workspace_id
|
|
74
122
|
@attributes[:workspace_id]
|
|
75
123
|
end
|
|
76
124
|
|
|
125
|
+
def workspace_id=(value)
|
|
126
|
+
@attributes[:workspace_id] = value
|
|
127
|
+
end
|
|
128
|
+
|
|
77
129
|
# date-time - Registration creation date/time
|
|
78
130
|
def created_at
|
|
79
131
|
@attributes[:created_at]
|
|
80
132
|
end
|
|
81
133
|
|
|
134
|
+
# string - Bundle recipient registration code
|
|
135
|
+
def bundle_recipient_registration_code
|
|
136
|
+
@attributes[:bundle_recipient_registration_code]
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
def bundle_recipient_registration_code=(value)
|
|
140
|
+
@attributes[:bundle_recipient_registration_code] = value
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# string - Public bundle password.
|
|
144
|
+
def password
|
|
145
|
+
@attributes[:password]
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
def password=(value)
|
|
149
|
+
@attributes[:password] = value
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
def save
|
|
153
|
+
if @attributes[:id]
|
|
154
|
+
raise NotImplementedError.new("The BundleRegistration object doesn't support updates.")
|
|
155
|
+
else
|
|
156
|
+
new_obj = BundleRegistration.create(@attributes, @options)
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
@attributes = new_obj.attributes
|
|
160
|
+
true
|
|
161
|
+
end
|
|
162
|
+
|
|
82
163
|
# Parameters:
|
|
83
164
|
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
84
165
|
# 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.
|
|
@@ -100,5 +181,49 @@ module Files
|
|
|
100
181
|
def self.all(params = {}, options = {})
|
|
101
182
|
list(params, options)
|
|
102
183
|
end
|
|
184
|
+
|
|
185
|
+
# Parameters:
|
|
186
|
+
# bundle_recipient_registration_code - string - Bundle recipient registration code
|
|
187
|
+
# password - string - Public bundle password.
|
|
188
|
+
# company - string - Registrant company name
|
|
189
|
+
# email - string - Registrant email address
|
|
190
|
+
# name - string - Registrant name
|
|
191
|
+
# bundle_code (required) - string - Bundle URL code
|
|
192
|
+
def self.create(params = {}, options = {})
|
|
193
|
+
raise InvalidParameterError.new("Bad parameter: bundle_recipient_registration_code must be an String") if params[:bundle_recipient_registration_code] and !params[:bundle_recipient_registration_code].is_a?(String)
|
|
194
|
+
raise InvalidParameterError.new("Bad parameter: password must be an String") if params[:password] and !params[:password].is_a?(String)
|
|
195
|
+
raise InvalidParameterError.new("Bad parameter: company must be an String") if params[:company] and !params[:company].is_a?(String)
|
|
196
|
+
raise InvalidParameterError.new("Bad parameter: email must be an String") if params[:email] and !params[:email].is_a?(String)
|
|
197
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
198
|
+
raise InvalidParameterError.new("Bad parameter: bundle_code must be an String") if params[:bundle_code] and !params[:bundle_code].is_a?(String)
|
|
199
|
+
raise MissingParameterError.new("Parameter missing: bundle_code") unless params[:bundle_code]
|
|
200
|
+
|
|
201
|
+
response, options = Api.send_request("/bundle_registrations", :post, params, options)
|
|
202
|
+
BundleRegistration.new(response.data, options)
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Parameters:
|
|
206
|
+
# bundle_registration_code (required) - string - Bundle registration cookie code
|
|
207
|
+
# upload_in_progress - boolean - Flag that indicates if current upload is going during this registration session
|
|
208
|
+
def self.last_activity(params = {}, options = {})
|
|
209
|
+
raise InvalidParameterError.new("Bad parameter: bundle_registration_code must be an String") if params[:bundle_registration_code] and !params[:bundle_registration_code].is_a?(String)
|
|
210
|
+
raise MissingParameterError.new("Parameter missing: bundle_registration_code") unless params[:bundle_registration_code]
|
|
211
|
+
|
|
212
|
+
Api.send_request("/bundle_registrations/last_activity", :post, params, options)
|
|
213
|
+
nil
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Parameters:
|
|
217
|
+
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
218
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `bundle_id` or `created_at`.
|
|
219
|
+
# bundle_id - int64 - ID of the associated Bundle
|
|
220
|
+
def self.create_export(params = {}, options = {})
|
|
221
|
+
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
222
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
223
|
+
raise InvalidParameterError.new("Bad parameter: bundle_id must be an Integer") if params[:bundle_id] and !params[:bundle_id].is_a?(Integer)
|
|
224
|
+
|
|
225
|
+
response, options = Api.send_request("/bundle_registrations/create_export", :post, params, options)
|
|
226
|
+
Export.new(response.data, options)
|
|
227
|
+
end
|
|
103
228
|
end
|
|
104
229
|
end
|
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Files
|
|
4
|
+
class Certificate
|
|
5
|
+
attr_reader :options, :attributes
|
|
6
|
+
|
|
7
|
+
def initialize(attributes = {}, options = {})
|
|
8
|
+
@attributes = attributes || {}
|
|
9
|
+
@options = options || {}
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# int64 - Certificate ID
|
|
13
|
+
def id
|
|
14
|
+
@attributes[:id]
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def id=(value)
|
|
18
|
+
@attributes[:id] = value
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# string - Descriptive name of certificate
|
|
22
|
+
def name
|
|
23
|
+
@attributes[:name]
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def name=(value)
|
|
27
|
+
@attributes[:name] = value
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# string - Full text of SSL certificate
|
|
31
|
+
def certificate
|
|
32
|
+
@attributes[:certificate]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def certificate=(value)
|
|
36
|
+
@attributes[:certificate] = value
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# date-time - Certificate created at
|
|
40
|
+
def created_at
|
|
41
|
+
@attributes[:created_at]
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# string - Certificate status. (One of `Request Generated`, `New`, `Active`, `Active/Expired`, `Expired`, or `Available`)
|
|
45
|
+
def display_status
|
|
46
|
+
@attributes[:display_status]
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
def display_status=(value)
|
|
50
|
+
@attributes[:display_status] = value
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# array(string) - Domains on this certificate other than files.com domains
|
|
54
|
+
def domains
|
|
55
|
+
@attributes[:domains]
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
def domains=(value)
|
|
59
|
+
@attributes[:domains] = value
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# date-time - Certificate expiration date/time
|
|
63
|
+
def expires_at
|
|
64
|
+
@attributes[:expires_at]
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def expires_at=(value)
|
|
68
|
+
@attributes[:expires_at] = value
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# boolean - Is this certificate automatically managed and renewed by Files.com?
|
|
72
|
+
def brick_managed
|
|
73
|
+
@attributes[:brick_managed]
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
def brick_managed=(value)
|
|
77
|
+
@attributes[:brick_managed] = value
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# string - Intermediate certificates
|
|
81
|
+
def intermediates
|
|
82
|
+
@attributes[:intermediates]
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
def intermediates=(value)
|
|
86
|
+
@attributes[:intermediates] = value
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# array(string) - A list of IP addresses associated with this SSL Certificate
|
|
90
|
+
def ip_addresses
|
|
91
|
+
@attributes[:ip_addresses]
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
def ip_addresses=(value)
|
|
95
|
+
@attributes[:ip_addresses] = value
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# string - X509 issuer
|
|
99
|
+
def issuer
|
|
100
|
+
@attributes[:issuer]
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
def issuer=(value)
|
|
104
|
+
@attributes[:issuer] = value
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# string - Type of key
|
|
108
|
+
def key_type
|
|
109
|
+
@attributes[:key_type]
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
def key_type=(value)
|
|
113
|
+
@attributes[:key_type] = value
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# string - Certificate signing request text
|
|
117
|
+
def request
|
|
118
|
+
@attributes[:request]
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
def request=(value)
|
|
122
|
+
@attributes[:request] = value
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# string - Certificate status (Request Generated, New, Active, Active/Expired, Expired, or Available)
|
|
126
|
+
def status
|
|
127
|
+
@attributes[:status]
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
def status=(value)
|
|
131
|
+
@attributes[:status] = value
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# string - X509 Subject name
|
|
135
|
+
def subject
|
|
136
|
+
@attributes[:subject]
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
def subject=(value)
|
|
140
|
+
@attributes[:subject] = value
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# string - Domain for certificate.
|
|
144
|
+
def certificate_domain
|
|
145
|
+
@attributes[:certificate_domain]
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
def certificate_domain=(value)
|
|
149
|
+
@attributes[:certificate_domain] = value
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# array(string) - Additional domains for the certificate CSR.
|
|
153
|
+
def certificate_extra_domains
|
|
154
|
+
@attributes[:certificate_extra_domains]
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
def certificate_extra_domains=(value)
|
|
158
|
+
@attributes[:certificate_extra_domains] = value
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# string - Country.
|
|
162
|
+
def certificate_country
|
|
163
|
+
@attributes[:certificate_country]
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
def certificate_country=(value)
|
|
167
|
+
@attributes[:certificate_country] = value
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# string - State or province.
|
|
171
|
+
def certificate_state_or_province
|
|
172
|
+
@attributes[:certificate_state_or_province]
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
def certificate_state_or_province=(value)
|
|
176
|
+
@attributes[:certificate_state_or_province] = value
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# string - City or locale.
|
|
180
|
+
def certificate_city_or_locale
|
|
181
|
+
@attributes[:certificate_city_or_locale]
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
def certificate_city_or_locale=(value)
|
|
185
|
+
@attributes[:certificate_city_or_locale] = value
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# string - Company name.
|
|
189
|
+
def certificate_company_name
|
|
190
|
+
@attributes[:certificate_company_name]
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
def certificate_company_name=(value)
|
|
194
|
+
@attributes[:certificate_company_name] = value
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# string - Department name or organization unit 1
|
|
198
|
+
def csr_ou1
|
|
199
|
+
@attributes[:csr_ou1]
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
def csr_ou1=(value)
|
|
203
|
+
@attributes[:csr_ou1] = value
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# string - Department name or organization unit 2
|
|
207
|
+
def csr_ou2
|
|
208
|
+
@attributes[:csr_ou2]
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
def csr_ou2=(value)
|
|
212
|
+
@attributes[:csr_ou2] = value
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# string - Department name or organization unit 3
|
|
216
|
+
def csr_ou3
|
|
217
|
+
@attributes[:csr_ou3]
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
def csr_ou3=(value)
|
|
221
|
+
@attributes[:csr_ou3] = value
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# string - Email address for the certificate owner.
|
|
225
|
+
def certificate_email_address
|
|
226
|
+
@attributes[:certificate_email_address]
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
def certificate_email_address=(value)
|
|
230
|
+
@attributes[:certificate_email_address] = value
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# string - Certificate private key.
|
|
234
|
+
def private_key
|
|
235
|
+
@attributes[:private_key]
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
def private_key=(value)
|
|
239
|
+
@attributes[:private_key] = value
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# string - Certificate password.
|
|
243
|
+
def password
|
|
244
|
+
@attributes[:password]
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
def password=(value)
|
|
248
|
+
@attributes[:password] = value
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# Deactivate SSL Certificate
|
|
252
|
+
def deactivate(params = {})
|
|
253
|
+
params ||= {}
|
|
254
|
+
params[:id] = @attributes[:id]
|
|
255
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
256
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
257
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
258
|
+
|
|
259
|
+
Api.send_request("/certificates/#{@attributes[:id]}/deactivate", :post, params, @options)
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# Activate SSL Certificate
|
|
263
|
+
#
|
|
264
|
+
# Parameters:
|
|
265
|
+
# replace_cert - string - Leave blank or set to `any` to replace any currently active certificate, if applicable. Set to `new_ips` to activate this certificate as an additional certificate on your Site by allocating a new set of Dedicated IPs (may require a Plan upgrade). Set to the ID of a currently active certificate to replace that certificate on its set of dedicated IPs.
|
|
266
|
+
def activate(params = {})
|
|
267
|
+
params ||= {}
|
|
268
|
+
params[:id] = @attributes[:id]
|
|
269
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
270
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
271
|
+
raise InvalidParameterError.new("Bad parameter: replace_cert must be an String") if params[:replace_cert] and !params[:replace_cert].is_a?(String)
|
|
272
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
273
|
+
|
|
274
|
+
Api.send_request("/certificates/#{@attributes[:id]}/activate", :post, params, @options)
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# Parameters:
|
|
278
|
+
# name - string - Internal certificate name.
|
|
279
|
+
# intermediates - string - Any intermediate certificates. PEM or PKCS7 formats accepted.
|
|
280
|
+
# certificate - string - The certificate. PEM or PKCS7 formats accepted.
|
|
281
|
+
def update(params = {})
|
|
282
|
+
params ||= {}
|
|
283
|
+
params[:id] = @attributes[:id]
|
|
284
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
285
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
286
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
287
|
+
raise InvalidParameterError.new("Bad parameter: intermediates must be an String") if params[:intermediates] and !params[:intermediates].is_a?(String)
|
|
288
|
+
raise InvalidParameterError.new("Bad parameter: certificate must be an String") if params[:certificate] and !params[:certificate].is_a?(String)
|
|
289
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
290
|
+
|
|
291
|
+
Api.send_request("/certificates/#{@attributes[:id]}", :patch, params, @options)
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
def delete(params = {})
|
|
295
|
+
params ||= {}
|
|
296
|
+
params[:id] = @attributes[:id]
|
|
297
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
298
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
299
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
300
|
+
|
|
301
|
+
Api.send_request("/certificates/#{@attributes[:id]}", :delete, params, @options)
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
def destroy(params = {})
|
|
305
|
+
delete(params)
|
|
306
|
+
nil
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
def save
|
|
310
|
+
if @attributes[:id]
|
|
311
|
+
new_obj = update(@attributes)
|
|
312
|
+
else
|
|
313
|
+
new_obj = Certificate.create(@attributes, @options)
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
@attributes = new_obj.attributes
|
|
317
|
+
true
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
# Parameters:
|
|
321
|
+
# 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.
|
|
322
|
+
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
323
|
+
def self.list(params = {}, options = {})
|
|
324
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
325
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
326
|
+
|
|
327
|
+
List.new(Certificate, params) do
|
|
328
|
+
Api.send_request("/certificates", :get, params, options)
|
|
329
|
+
end
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
def self.all(params = {}, options = {})
|
|
333
|
+
list(params, options)
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# Parameters:
|
|
337
|
+
# id (required) - int64 - Certificate ID.
|
|
338
|
+
def self.find(id, params = {}, options = {})
|
|
339
|
+
params ||= {}
|
|
340
|
+
params[:id] = id
|
|
341
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
342
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
343
|
+
|
|
344
|
+
response, options = Api.send_request("/certificates/#{params[:id]}", :get, params, options)
|
|
345
|
+
Certificate.new(response.data, options)
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
def self.get(id, params = {}, options = {})
|
|
349
|
+
find(id, params, options)
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# Parameters:
|
|
353
|
+
# name (required) - string - Internal name of the SSL certificate.
|
|
354
|
+
# certificate_domain - string - Domain for certificate.
|
|
355
|
+
# certificate_extra_domains - array(string) - Additional domains for the certificate CSR.
|
|
356
|
+
# certificate_country - string - Country.
|
|
357
|
+
# certificate_state_or_province - string - State or province.
|
|
358
|
+
# certificate_city_or_locale - string - City or locale.
|
|
359
|
+
# certificate_company_name - string - Company name.
|
|
360
|
+
# csr_ou1 - string - Department name or organization unit 1
|
|
361
|
+
# csr_ou2 - string - Department name or organization unit 2
|
|
362
|
+
# csr_ou3 - string - Department name or organization unit 3
|
|
363
|
+
# certificate_email_address - string - Email address for the certificate owner.
|
|
364
|
+
# key_type - string - Any supported key type. Defaults to `RSA-4096`.
|
|
365
|
+
# certificate - string - The certificate. PEM or PKCS7 formats accepted.
|
|
366
|
+
# private_key - string - Certificate private key.
|
|
367
|
+
# password - string - Certificate password.
|
|
368
|
+
# intermediates - string - Intermediate certificates. PEM or PKCS7 formats accepted.
|
|
369
|
+
def self.create(params = {}, options = {})
|
|
370
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
371
|
+
raise InvalidParameterError.new("Bad parameter: certificate_domain must be an String") if params[:certificate_domain] and !params[:certificate_domain].is_a?(String)
|
|
372
|
+
raise InvalidParameterError.new("Bad parameter: certificate_extra_domains must be an Array") if params[:certificate_extra_domains] and !params[:certificate_extra_domains].is_a?(Array)
|
|
373
|
+
raise InvalidParameterError.new("Bad parameter: certificate_country must be an String") if params[:certificate_country] and !params[:certificate_country].is_a?(String)
|
|
374
|
+
raise InvalidParameterError.new("Bad parameter: certificate_state_or_province must be an String") if params[:certificate_state_or_province] and !params[:certificate_state_or_province].is_a?(String)
|
|
375
|
+
raise InvalidParameterError.new("Bad parameter: certificate_city_or_locale must be an String") if params[:certificate_city_or_locale] and !params[:certificate_city_or_locale].is_a?(String)
|
|
376
|
+
raise InvalidParameterError.new("Bad parameter: certificate_company_name must be an String") if params[:certificate_company_name] and !params[:certificate_company_name].is_a?(String)
|
|
377
|
+
raise InvalidParameterError.new("Bad parameter: csr_ou1 must be an String") if params[:csr_ou1] and !params[:csr_ou1].is_a?(String)
|
|
378
|
+
raise InvalidParameterError.new("Bad parameter: csr_ou2 must be an String") if params[:csr_ou2] and !params[:csr_ou2].is_a?(String)
|
|
379
|
+
raise InvalidParameterError.new("Bad parameter: csr_ou3 must be an String") if params[:csr_ou3] and !params[:csr_ou3].is_a?(String)
|
|
380
|
+
raise InvalidParameterError.new("Bad parameter: certificate_email_address must be an String") if params[:certificate_email_address] and !params[:certificate_email_address].is_a?(String)
|
|
381
|
+
raise InvalidParameterError.new("Bad parameter: key_type must be an String") if params[:key_type] and !params[:key_type].is_a?(String)
|
|
382
|
+
raise InvalidParameterError.new("Bad parameter: certificate must be an String") if params[:certificate] and !params[:certificate].is_a?(String)
|
|
383
|
+
raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params[:private_key] and !params[:private_key].is_a?(String)
|
|
384
|
+
raise InvalidParameterError.new("Bad parameter: password must be an String") if params[:password] and !params[:password].is_a?(String)
|
|
385
|
+
raise InvalidParameterError.new("Bad parameter: intermediates must be an String") if params[:intermediates] and !params[:intermediates].is_a?(String)
|
|
386
|
+
raise MissingParameterError.new("Parameter missing: name") unless params[:name]
|
|
387
|
+
|
|
388
|
+
response, options = Api.send_request("/certificates", :post, params, options)
|
|
389
|
+
Certificate.new(response.data, options)
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
# Deactivate SSL Certificate
|
|
393
|
+
def self.deactivate(id, params = {}, options = {})
|
|
394
|
+
params ||= {}
|
|
395
|
+
params[:id] = id
|
|
396
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
397
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
398
|
+
|
|
399
|
+
Api.send_request("/certificates/#{params[:id]}/deactivate", :post, params, options)
|
|
400
|
+
nil
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
# Activate SSL Certificate
|
|
404
|
+
#
|
|
405
|
+
# Parameters:
|
|
406
|
+
# replace_cert - string - Leave blank or set to `any` to replace any currently active certificate, if applicable. Set to `new_ips` to activate this certificate as an additional certificate on your Site by allocating a new set of Dedicated IPs (may require a Plan upgrade). Set to the ID of a currently active certificate to replace that certificate on its set of dedicated IPs.
|
|
407
|
+
def self.activate(id, params = {}, options = {})
|
|
408
|
+
params ||= {}
|
|
409
|
+
params[:id] = id
|
|
410
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
411
|
+
raise InvalidParameterError.new("Bad parameter: replace_cert must be an String") if params[:replace_cert] and !params[:replace_cert].is_a?(String)
|
|
412
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
413
|
+
|
|
414
|
+
Api.send_request("/certificates/#{params[:id]}/activate", :post, params, options)
|
|
415
|
+
nil
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
def self.create_export(params = {}, options = {})
|
|
419
|
+
response, options = Api.send_request("/certificates/create_export", :post, params, options)
|
|
420
|
+
Export.new(response.data, options)
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
# Parameters:
|
|
424
|
+
# name - string - Internal certificate name.
|
|
425
|
+
# intermediates - string - Any intermediate certificates. PEM or PKCS7 formats accepted.
|
|
426
|
+
# certificate - string - The certificate. PEM or PKCS7 formats accepted.
|
|
427
|
+
def self.update(id, params = {}, options = {})
|
|
428
|
+
params ||= {}
|
|
429
|
+
params[:id] = id
|
|
430
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
431
|
+
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
432
|
+
raise InvalidParameterError.new("Bad parameter: intermediates must be an String") if params[:intermediates] and !params[:intermediates].is_a?(String)
|
|
433
|
+
raise InvalidParameterError.new("Bad parameter: certificate must be an String") if params[:certificate] and !params[:certificate].is_a?(String)
|
|
434
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
435
|
+
|
|
436
|
+
response, options = Api.send_request("/certificates/#{params[:id]}", :patch, params, options)
|
|
437
|
+
Certificate.new(response.data, options)
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
def self.delete(id, params = {}, options = {})
|
|
441
|
+
params ||= {}
|
|
442
|
+
params[:id] = id
|
|
443
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
|
|
444
|
+
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
445
|
+
|
|
446
|
+
Api.send_request("/certificates/#{params[:id]}", :delete, params, options)
|
|
447
|
+
nil
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
def self.destroy(id, params = {}, options = {})
|
|
451
|
+
delete(id, params, options)
|
|
452
|
+
nil
|
|
453
|
+
end
|
|
454
|
+
end
|
|
455
|
+
end
|
|
@@ -79,5 +79,16 @@ module Files
|
|
|
79
79
|
def self.get(id, params = {}, options = {})
|
|
80
80
|
find(id, params, options)
|
|
81
81
|
end
|
|
82
|
+
|
|
83
|
+
# Parameters:
|
|
84
|
+
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `id`.
|
|
85
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `ai_task_id`, `user_id` or `workspace_id`.
|
|
86
|
+
def self.create_export(params = {}, options = {})
|
|
87
|
+
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
88
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
|
89
|
+
|
|
90
|
+
response, options = Api.send_request("/chat_sessions/create_export", :post, params, options)
|
|
91
|
+
Export.new(response.data, options)
|
|
92
|
+
end
|
|
82
93
|
end
|
|
83
94
|
end
|