Class: Files::HistoryExportResult
- Inherits:
-
Object
- Object
- Files::HistoryExportResult
- Defined in:
- lib/files.com/models/history_export_result.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: user_id - int64 - User ID.
Instance Method Summary collapse
-
#action ⇒ Object
string - What action was taken.
-
#created_at ⇒ Object
int64 - When the action happened.
-
#created_at_iso8601 ⇒ Object
string - When the action happened, in ISO8601 format.
-
#destination ⇒ Object
string - File moved to this destination folder.
-
#failure_type ⇒ Object
string - The type of login failure, if applicable.
-
#file_id ⇒ Object
int64 - File ID related to the action.
-
#folder ⇒ Object
string - Folder in which the action occurred.
-
#id ⇒ Object
int64 - Action ID.
-
#initialize(attributes = {}, options = {}) ⇒ HistoryExportResult
constructor
A new instance of HistoryExportResult.
-
#interface ⇒ Object
string - Inteface through which the action was taken.
-
#ip ⇒ Object
string - Client IP that performed the action.
-
#parent_id ⇒ Object
int64 - ID of the parent folder.
-
#path ⇒ Object
string - Path of the related action.
-
#src ⇒ Object
string - File move originated from this path.
-
#target_expires_at ⇒ Object
int64 - If searching for Histories about API keys, this is when the API key will expire.
-
#target_expires_at_iso8601 ⇒ Object
string - If searching for Histories about API keys, this is when the API key will expire.
-
#target_id ⇒ Object
int64 - ID of the object (such as Users, or API Keys) on which the action was taken.
-
#target_name ⇒ Object
string - Name of the User, Group or other object with a name related to this action.
-
#target_permission ⇒ Object
string - Permission level of the action.
-
#target_permission_set ⇒ Object
string - If searching for Histories about API keys, this represents the permission set of the associated API key.
-
#target_platform ⇒ Object
string - If searching for Histories about API keys, this is the platform on which the action was taken.
-
#target_recursive ⇒ Object
boolean - Whether or not the action was recursive.
-
#target_user_id ⇒ Object
int64 - If searching for Histories about API keys, this is the User ID on which the action was taken.
-
#target_username ⇒ Object
string - If searching for Histories about API keys, this is the username on which the action was taken.
-
#user_id ⇒ Object
int64 - User ID.
-
#user_is_from_parent_site ⇒ Object
boolean - true if this change was performed by a user on a parent site.
-
#username ⇒ Object
string - Username of the user that performed the action.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ HistoryExportResult
Returns a new instance of HistoryExportResult.
7 8 9 10 |
# File 'lib/files.com/models/history_export_result.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/history_export_result.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/history_export_result.rb', line 5 def @options end |
Class Method Details
.all(params = {}, options = {}) ⇒ Object
159 160 161 |
# File 'lib/files.com/models/history_export_result.rb', line 159 def self.all(params = {}, = {}) list(params, ) end |
.list(params = {}, options = {}) ⇒ Object
Parameters:
user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
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.
per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
history_export_id (required) - int64 - ID of the associated history export.
147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/files.com/models/history_export_result.rb', line 147 def self.list(params = {}, = {}) raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String) raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: history_export_id must be an Integer") if params[:history_export_id] and !params[:history_export_id].is_a?(Integer) raise MissingParameterError.new("Parameter missing: history_export_id") unless params[:history_export_id] List.new(HistoryExportResult, params) do Api.send_request("/history_export_results", :get, params, ) end end |
Instance Method Details
#action ⇒ Object
string - What action was taken. Valid values: ‘create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`
78 79 80 |
# File 'lib/files.com/models/history_export_result.rb', line 78 def action @attributes[:action] end |
#created_at ⇒ Object
int64 - When the action happened
18 19 20 |
# File 'lib/files.com/models/history_export_result.rb', line 18 def created_at @attributes[:created_at] end |
#created_at_iso8601 ⇒ Object
string - When the action happened, in ISO8601 format.
23 24 25 |
# File 'lib/files.com/models/history_export_result.rb', line 23 def created_at_iso8601 @attributes[:created_at_iso8601] end |
#destination ⇒ Object
string - File moved to this destination folder
58 59 60 |
# File 'lib/files.com/models/history_export_result.rb', line 58 def destination @attributes[:destination] end |
#failure_type ⇒ Object
string - The type of login failure, if applicable. Valid values: ‘expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`, `country_mismatch`, `insecure_ftp`, `insecure_cipher`, `rate_limited`
83 84 85 |
# File 'lib/files.com/models/history_export_result.rb', line 83 def failure_type @attributes[:failure_type] end |
#file_id ⇒ Object
int64 - File ID related to the action
33 34 35 |
# File 'lib/files.com/models/history_export_result.rb', line 33 def file_id @attributes[:file_id] end |
#folder ⇒ Object
string - Folder in which the action occurred
48 49 50 |
# File 'lib/files.com/models/history_export_result.rb', line 48 def folder @attributes[:folder] end |
#id ⇒ Object
int64 - Action ID
13 14 15 |
# File 'lib/files.com/models/history_export_result.rb', line 13 def id @attributes[:id] end |
#interface ⇒ Object
string - Inteface through which the action was taken. Valid values: ‘web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
88 89 90 |
# File 'lib/files.com/models/history_export_result.rb', line 88 def interface @attributes[:interface] end |
#ip ⇒ Object
string - Client IP that performed the action
63 64 65 |
# File 'lib/files.com/models/history_export_result.rb', line 63 def ip @attributes[:ip] end |
#parent_id ⇒ Object
int64 - ID of the parent folder
38 39 40 |
# File 'lib/files.com/models/history_export_result.rb', line 38 def parent_id @attributes[:parent_id] end |
#path ⇒ Object
string - Path of the related action. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
43 44 45 |
# File 'lib/files.com/models/history_export_result.rb', line 43 def path @attributes[:path] end |
#src ⇒ Object
string - File move originated from this path
53 54 55 |
# File 'lib/files.com/models/history_export_result.rb', line 53 def src @attributes[:src] end |
#target_expires_at ⇒ Object
int64 - If searching for Histories about API keys, this is when the API key will expire. Represented as a Unix timestamp.
113 114 115 |
# File 'lib/files.com/models/history_export_result.rb', line 113 def target_expires_at @attributes[:target_expires_at] end |
#target_expires_at_iso8601 ⇒ Object
string - If searching for Histories about API keys, this is when the API key will expire. Represented in ISO8601 format.
118 119 120 |
# File 'lib/files.com/models/history_export_result.rb', line 118 def target_expires_at_iso8601 @attributes[:target_expires_at_iso8601] end |
#target_id ⇒ Object
int64 - ID of the object (such as Users, or API Keys) on which the action was taken
93 94 95 |
# File 'lib/files.com/models/history_export_result.rb', line 93 def target_id @attributes[:target_id] end |
#target_name ⇒ Object
string - Name of the User, Group or other object with a name related to this action
98 99 100 |
# File 'lib/files.com/models/history_export_result.rb', line 98 def target_name @attributes[:target_name] end |
#target_permission ⇒ Object
string - Permission level of the action
103 104 105 |
# File 'lib/files.com/models/history_export_result.rb', line 103 def @attributes[:target_permission] end |
#target_permission_set ⇒ Object
string - If searching for Histories about API keys, this represents the permission set of the associated API key
123 124 125 |
# File 'lib/files.com/models/history_export_result.rb', line 123 def @attributes[:target_permission_set] end |
#target_platform ⇒ Object
string - If searching for Histories about API keys, this is the platform on which the action was taken
128 129 130 |
# File 'lib/files.com/models/history_export_result.rb', line 128 def target_platform @attributes[:target_platform] end |
#target_recursive ⇒ Object
boolean - Whether or not the action was recursive
108 109 110 |
# File 'lib/files.com/models/history_export_result.rb', line 108 def target_recursive @attributes[:target_recursive] end |
#target_user_id ⇒ Object
int64 - If searching for Histories about API keys, this is the User ID on which the action was taken
138 139 140 |
# File 'lib/files.com/models/history_export_result.rb', line 138 def target_user_id @attributes[:target_user_id] end |
#target_username ⇒ Object
string - If searching for Histories about API keys, this is the username on which the action was taken
133 134 135 |
# File 'lib/files.com/models/history_export_result.rb', line 133 def target_username @attributes[:target_username] end |
#user_id ⇒ Object
int64 - User ID
28 29 30 |
# File 'lib/files.com/models/history_export_result.rb', line 28 def user_id @attributes[:user_id] end |
#user_is_from_parent_site ⇒ Object
boolean - true if this change was performed by a user on a parent site.
73 74 75 |
# File 'lib/files.com/models/history_export_result.rb', line 73 def user_is_from_parent_site @attributes[:user_is_from_parent_site] end |
#username ⇒ Object
string - Username of the user that performed the action
68 69 70 |
# File 'lib/files.com/models/history_export_result.rb', line 68 def username @attributes[:username] end |