Class: Files::Plan
- Inherits:
-
Object
- Object
- Files::Plan
- Defined in:
- lib/files.com/models/plan.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
- .all(params = {}, options = {}) ⇒ Object
-
.list(params = {}, options = {}) ⇒ Object
Parameters: page - integer - Current page number.
Instance Method Summary collapse
-
#activation_cost ⇒ Object
string - Activation cost (upfront).
-
#advanced_behaviors ⇒ Object
boolean - Are advanced behaviors included in plan?.
-
#annually ⇒ Object
string - Price annually.
-
#antivirus_advanced ⇒ Object
boolean - Is advanced antivirus included in plan?.
-
#antivirus_basic ⇒ Object
boolean - Is basic antivirus included in plan?.
-
#audit_hours ⇒ Object
int64 - How many audit hours included in plan?.
-
#auth_google ⇒ Object
boolean - Is google authentication included in plan?.
-
#auth_oauth ⇒ Object
boolean - Is oauth included in plan?.
-
#auth_oauth_custom ⇒ Object
boolean - Is custom oauth included in plan?.
-
#auth_user_count ⇒ Object
int64 - Number of SSO, 2FA, Desktop users included in plan.
-
#automations ⇒ Object
boolean - Are automations included in plan?.
-
#currency ⇒ Object
string - Currency.
-
#custom_namespace ⇒ Object
boolean - If true all usernames can be used, otherwise usernames must be unique.
-
#custom_smtp ⇒ Object
boolean - Custom SMTP support?.
-
#dedicated_ip ⇒ Object
boolean - Offers dedicated ip?.
-
#dedicated_ips ⇒ Object
int64 - Number of dedicated IPs.
-
#differences ⇒ Object
object - Results of comparing with a different Plan.
-
#domain ⇒ Object
boolean - Custom domain(s)?.
-
#domain_count ⇒ Object
int64 - Number of custom domains.
-
#email_inboxes ⇒ Object
boolean - Does the plan include E-Mail inboxes?.
-
#extended_folder_permissions ⇒ Object
boolean - Supports extended folder permissions like viewing history?.
-
#extended_log_retention ⇒ Object
boolean - Can log preservation be extended?.
-
#free_developer_accounts ⇒ Object
int64 - Number of free developer accounts.
-
#ftp_sftp_webdav ⇒ Object
boolean - Supports connections via FTP, SFTP, and WebDAV?.
-
#full_text_search ⇒ Object
boolean - Full text search enabled?.
-
#global_acceleration ⇒ Object
boolean - Global acceleration enabled?.
-
#gpg ⇒ Object
boolean - Support for GPG encryption?.
-
#group_admins_enabled ⇒ Object
boolean - Group admin functionality enabled?.
-
#group_notifications ⇒ Object
boolean - Group notifications functionality enabled?.
-
#hipaa ⇒ Object
boolean - Support for HIPAA regulation?.
-
#html_branding ⇒ Object
boolean - HTML branding available?.
-
#id ⇒ Object
int64 - Plan ID.
-
#initialize(attributes = {}, options = {}) ⇒ Plan
constructor
A new instance of Plan.
-
#ldap ⇒ Object
boolean - LDAP integration enabled?.
-
#legal_flexibility ⇒ Object
boolean - Does the plan offer any legal flexibility?.
-
#max_folder_size ⇒ Object
int64 - Max number of files in a folder.
-
#max_individual_file_size ⇒ Object
int64 - Maximum individual file size.
-
#monthly ⇒ Object
string - Price monthly.
-
#name ⇒ Object
string - Plan name.
-
#nested_groups ⇒ Object
boolean - Are nested groups enabled?.
-
#preview_page_limit ⇒ Object
int64 - Number of previews available.
-
#regions_included ⇒ Object
int64 - Number of storage regions included.
-
#remote_sync_ftp ⇒ Object
boolean - Remote sync with FTP available?.
-
#remote_sync_interval ⇒ Object
int64 - Number of hours between remote sync.
-
#remote_sync_other ⇒ Object
boolean - Are other forms of remote sync available?.
-
#remote_sync_s3 ⇒ Object
boolean - Can sync to s3 bucket?.
-
#require_2fa ⇒ Object
boolean - 2FA support enabled?.
-
#site_fields_requiring_upgrade ⇒ Object
array - Site attributes which require upgrade.
-
#support_level ⇒ Object
string - Priority of customer support.
-
#usage_cost ⇒ Object
string - Usage cost per GB of overage.
-
#usage_included ⇒ Object
string - Usage included per month, in GB.
-
#user_cost ⇒ Object
string - Cost per additional user.
-
#users ⇒ Object
int64 - # of users included.
-
#watermark_documents ⇒ Object
boolean - Watermark enabled?.
-
#watermark_images ⇒ Object
boolean - Watermark enabled?.
-
#webhooks ⇒ Object
boolean - Webhooks enabled?.
-
#webhooks_sns ⇒ Object
boolean - Webhook SNS integration enabled?.
-
#whitelabel ⇒ Object
boolean - Whitelabel site?.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ Plan
Returns a new instance of Plan.
7 8 9 10 |
# File 'lib/files.com/models/plan.rb', line 7 def initialize(attributes = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/plan.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/plan.rb', line 5 def @options end |
Class Method Details
.all(params = {}, options = {}) ⇒ Object
312 313 314 |
# File 'lib/files.com/models/plan.rb', line 312 def self.all(params = {}, = {}) list(params, ) end |
.list(params = {}, options = {}) ⇒ Object
Parameters:
page - integer - Current page number.
per_page - integer - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
currency - string - Currency.
302 303 304 305 306 307 308 309 310 |
# File 'lib/files.com/models/plan.rb', line 302 def self.list(params = {}, = {}) raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer) raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer) raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String) raise InvalidParameterError.new("Bad parameter: currency must be an String") if params.dig(:currency) and !params.dig(:currency).is_a?(String) response, = Api.send_request("/plans", :get, params, ) response.data.map { |object| Plan.new(object, ) } end |
Instance Method Details
#activation_cost ⇒ Object
string - Activation cost (upfront)
273 274 275 |
# File 'lib/files.com/models/plan.rb', line 273 def activation_cost @attributes[:activation_cost] end |
#advanced_behaviors ⇒ Object
boolean - Are advanced behaviors included in plan?
18 19 20 |
# File 'lib/files.com/models/plan.rb', line 18 def advanced_behaviors @attributes[:advanced_behaviors] end |
#annually ⇒ Object
string - Price annually
278 279 280 |
# File 'lib/files.com/models/plan.rb', line 278 def annually @attributes[:annually] end |
#antivirus_advanced ⇒ Object
boolean - Is advanced antivirus included in plan?
23 24 25 |
# File 'lib/files.com/models/plan.rb', line 23 def antivirus_advanced @attributes[:antivirus_advanced] end |
#antivirus_basic ⇒ Object
boolean - Is basic antivirus included in plan?
28 29 30 |
# File 'lib/files.com/models/plan.rb', line 28 def antivirus_basic @attributes[:antivirus_basic] end |
#audit_hours ⇒ Object
int64 - How many audit hours included in plan?
33 34 35 |
# File 'lib/files.com/models/plan.rb', line 33 def audit_hours @attributes[:audit_hours] end |
#auth_google ⇒ Object
boolean - Is google authentication included in plan?
38 39 40 |
# File 'lib/files.com/models/plan.rb', line 38 def auth_google @attributes[:auth_google] end |
#auth_oauth ⇒ Object
boolean - Is oauth included in plan?
43 44 45 |
# File 'lib/files.com/models/plan.rb', line 43 def auth_oauth @attributes[:auth_oauth] end |
#auth_oauth_custom ⇒ Object
boolean - Is custom oauth included in plan?
48 49 50 |
# File 'lib/files.com/models/plan.rb', line 48 def auth_oauth_custom @attributes[:auth_oauth_custom] end |
#auth_user_count ⇒ Object
int64 - Number of SSO, 2FA, Desktop users included in plan
53 54 55 |
# File 'lib/files.com/models/plan.rb', line 53 def auth_user_count @attributes[:auth_user_count] end |
#automations ⇒ Object
boolean - Are automations included in plan?
58 59 60 |
# File 'lib/files.com/models/plan.rb', line 58 def automations @attributes[:automations] end |
#currency ⇒ Object
string - Currency
283 284 285 |
# File 'lib/files.com/models/plan.rb', line 283 def currency @attributes[:currency] end |
#custom_namespace ⇒ Object
boolean - If true all usernames can be used, otherwise usernames must be unique
63 64 65 |
# File 'lib/files.com/models/plan.rb', line 63 def custom_namespace @attributes[:custom_namespace] end |
#custom_smtp ⇒ Object
boolean - Custom SMTP support?
68 69 70 |
# File 'lib/files.com/models/plan.rb', line 68 def custom_smtp @attributes[:custom_smtp] end |
#dedicated_ip ⇒ Object
boolean - Offers dedicated ip?
73 74 75 |
# File 'lib/files.com/models/plan.rb', line 73 def dedicated_ip @attributes[:dedicated_ip] end |
#dedicated_ips ⇒ Object
int64 - Number of dedicated IPs
78 79 80 |
# File 'lib/files.com/models/plan.rb', line 78 def dedicated_ips @attributes[:dedicated_ips] end |
#differences ⇒ Object
object - Results of comparing with a different Plan
83 84 85 |
# File 'lib/files.com/models/plan.rb', line 83 def differences @attributes[:differences] end |
#domain ⇒ Object
boolean - Custom domain(s)?
88 89 90 |
# File 'lib/files.com/models/plan.rb', line 88 def domain @attributes[:domain] end |
#domain_count ⇒ Object
int64 - Number of custom domains
93 94 95 |
# File 'lib/files.com/models/plan.rb', line 93 def domain_count @attributes[:domain_count] end |
#email_inboxes ⇒ Object
boolean - Does the plan include E-Mail inboxes?
98 99 100 |
# File 'lib/files.com/models/plan.rb', line 98 def email_inboxes @attributes[:email_inboxes] end |
#extended_folder_permissions ⇒ Object
boolean - Supports extended folder permissions like viewing history?
103 104 105 |
# File 'lib/files.com/models/plan.rb', line 103 def @attributes[:extended_folder_permissions] end |
#extended_log_retention ⇒ Object
boolean - Can log preservation be extended?
108 109 110 |
# File 'lib/files.com/models/plan.rb', line 108 def extended_log_retention @attributes[:extended_log_retention] end |
#free_developer_accounts ⇒ Object
int64 - Number of free developer accounts
113 114 115 |
# File 'lib/files.com/models/plan.rb', line 113 def free_developer_accounts @attributes[:free_developer_accounts] end |
#ftp_sftp_webdav ⇒ Object
boolean - Supports connections via FTP, SFTP, and WebDAV?
118 119 120 |
# File 'lib/files.com/models/plan.rb', line 118 def ftp_sftp_webdav @attributes[:ftp_sftp_webdav] end |
#full_text_search ⇒ Object
boolean - Full text search enabled?
123 124 125 |
# File 'lib/files.com/models/plan.rb', line 123 def full_text_search @attributes[:full_text_search] end |
#global_acceleration ⇒ Object
boolean - Global acceleration enabled?
128 129 130 |
# File 'lib/files.com/models/plan.rb', line 128 def global_acceleration @attributes[:global_acceleration] end |
#gpg ⇒ Object
boolean - Support for GPG encryption?
133 134 135 |
# File 'lib/files.com/models/plan.rb', line 133 def gpg @attributes[:gpg] end |
#group_admins_enabled ⇒ Object
boolean - Group admin functionality enabled?
138 139 140 |
# File 'lib/files.com/models/plan.rb', line 138 def group_admins_enabled @attributes[:group_admins_enabled] end |
#group_notifications ⇒ Object
boolean - Group notifications functionality enabled?
143 144 145 |
# File 'lib/files.com/models/plan.rb', line 143 def group_notifications @attributes[:group_notifications] end |
#hipaa ⇒ Object
boolean - Support for HIPAA regulation?
148 149 150 |
# File 'lib/files.com/models/plan.rb', line 148 def hipaa @attributes[:hipaa] end |
#html_branding ⇒ Object
boolean - HTML branding available?
153 154 155 |
# File 'lib/files.com/models/plan.rb', line 153 def html_branding @attributes[:html_branding] end |
#id ⇒ Object
int64 - Plan ID
13 14 15 |
# File 'lib/files.com/models/plan.rb', line 13 def id @attributes[:id] end |
#ldap ⇒ Object
boolean - LDAP integration enabled?
158 159 160 |
# File 'lib/files.com/models/plan.rb', line 158 def ldap @attributes[:ldap] end |
#legal_flexibility ⇒ Object
boolean - Does the plan offer any legal flexibility?
163 164 165 |
# File 'lib/files.com/models/plan.rb', line 163 def legal_flexibility @attributes[:legal_flexibility] end |
#max_folder_size ⇒ Object
int64 - Max number of files in a folder
168 169 170 |
# File 'lib/files.com/models/plan.rb', line 168 def max_folder_size @attributes[:max_folder_size] end |
#max_individual_file_size ⇒ Object
int64 - Maximum individual file size
173 174 175 |
# File 'lib/files.com/models/plan.rb', line 173 def max_individual_file_size @attributes[:max_individual_file_size] end |
#monthly ⇒ Object
string - Price monthly
288 289 290 |
# File 'lib/files.com/models/plan.rb', line 288 def monthly @attributes[:monthly] end |
#name ⇒ Object
string - Plan name
178 179 180 |
# File 'lib/files.com/models/plan.rb', line 178 def name @attributes[:name] end |
#nested_groups ⇒ Object
boolean - Are nested groups enabled?
183 184 185 |
# File 'lib/files.com/models/plan.rb', line 183 def nested_groups @attributes[:nested_groups] end |
#preview_page_limit ⇒ Object
int64 - Number of previews available
188 189 190 |
# File 'lib/files.com/models/plan.rb', line 188 def preview_page_limit @attributes[:preview_page_limit] end |
#regions_included ⇒ Object
int64 - Number of storage regions included
193 194 195 |
# File 'lib/files.com/models/plan.rb', line 193 def regions_included @attributes[:regions_included] end |
#remote_sync_ftp ⇒ Object
boolean - Remote sync with FTP available?
198 199 200 |
# File 'lib/files.com/models/plan.rb', line 198 def remote_sync_ftp @attributes[:remote_sync_ftp] end |
#remote_sync_interval ⇒ Object
int64 - Number of hours between remote sync
203 204 205 |
# File 'lib/files.com/models/plan.rb', line 203 def remote_sync_interval @attributes[:remote_sync_interval] end |
#remote_sync_other ⇒ Object
boolean - Are other forms of remote sync available?
208 209 210 |
# File 'lib/files.com/models/plan.rb', line 208 def remote_sync_other @attributes[:remote_sync_other] end |
#remote_sync_s3 ⇒ Object
boolean - Can sync to s3 bucket?
213 214 215 |
# File 'lib/files.com/models/plan.rb', line 213 def remote_sync_s3 @attributes[:remote_sync_s3] end |
#require_2fa ⇒ Object
boolean - 2FA support enabled?
218 219 220 |
# File 'lib/files.com/models/plan.rb', line 218 def require_2fa @attributes[:require_2fa] end |
#site_fields_requiring_upgrade ⇒ Object
array - Site attributes which require upgrade
223 224 225 |
# File 'lib/files.com/models/plan.rb', line 223 def site_fields_requiring_upgrade @attributes[:site_fields_requiring_upgrade] end |
#support_level ⇒ Object
string - Priority of customer support
228 229 230 |
# File 'lib/files.com/models/plan.rb', line 228 def support_level @attributes[:support_level] end |
#usage_cost ⇒ Object
string - Usage cost per GB of overage
233 234 235 |
# File 'lib/files.com/models/plan.rb', line 233 def usage_cost @attributes[:usage_cost] end |
#usage_included ⇒ Object
string - Usage included per month, in GB
238 239 240 |
# File 'lib/files.com/models/plan.rb', line 238 def usage_included @attributes[:usage_included] end |
#user_cost ⇒ Object
string - Cost per additional user
293 294 295 |
# File 'lib/files.com/models/plan.rb', line 293 def user_cost @attributes[:user_cost] end |
#users ⇒ Object
int64 - # of users included. 0 or -1 mean unlimited.
243 244 245 |
# File 'lib/files.com/models/plan.rb', line 243 def users @attributes[:users] end |
#watermark_documents ⇒ Object
boolean - Watermark enabled?
248 249 250 |
# File 'lib/files.com/models/plan.rb', line 248 def watermark_documents @attributes[:watermark_documents] end |
#watermark_images ⇒ Object
boolean - Watermark enabled?
253 254 255 |
# File 'lib/files.com/models/plan.rb', line 253 def watermark_images @attributes[:watermark_images] end |
#webhooks ⇒ Object
boolean - Webhooks enabled?
258 259 260 |
# File 'lib/files.com/models/plan.rb', line 258 def webhooks @attributes[:webhooks] end |
#webhooks_sns ⇒ Object
boolean - Webhook SNS integration enabled?
263 264 265 |
# File 'lib/files.com/models/plan.rb', line 263 def webhooks_sns @attributes[:webhooks_sns] end |
#whitelabel ⇒ Object
boolean - Whitelabel site?
268 269 270 |
# File 'lib/files.com/models/plan.rb', line 268 def whitelabel @attributes[:whitelabel] end |