files.com 1.1.769 → 1.1.770

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.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/_VERSION +1 -1
  3. data/lib/files.com/models/action_log.rb +5 -0
  4. data/lib/files.com/models/action_notification_export.rb +10 -0
  5. data/lib/files.com/models/action_notification_export_result.rb +5 -0
  6. data/lib/files.com/models/ai_assistant_personality.rb +24 -0
  7. data/lib/files.com/models/ai_task.rb +29 -0
  8. data/lib/files.com/models/api_key.rb +37 -0
  9. data/lib/files.com/models/api_request_log.rb +5 -0
  10. data/lib/files.com/models/app.rb +5 -0
  11. data/lib/files.com/models/as2_incoming_message.rb +5 -0
  12. data/lib/files.com/models/as2_outgoing_message.rb +5 -0
  13. data/lib/files.com/models/as2_partner.rb +24 -0
  14. data/lib/files.com/models/as2_station.rb +24 -0
  15. data/lib/files.com/models/automation.rb +38 -0
  16. data/lib/files.com/models/automation_log.rb +5 -0
  17. data/lib/files.com/models/automation_run.rb +25 -0
  18. data/lib/files.com/models/bandwidth_snapshot.rb +5 -0
  19. data/lib/files.com/models/behavior.rb +34 -0
  20. data/lib/files.com/models/bundle.rb +29 -0
  21. data/lib/files.com/models/bundle_action.rb +5 -0
  22. data/lib/files.com/models/bundle_download.rb +5 -0
  23. data/lib/files.com/models/bundle_notification.rb +24 -0
  24. data/lib/files.com/models/bundle_recipient.rb +10 -0
  25. data/lib/files.com/models/bundle_registration.rb +5 -0
  26. data/lib/files.com/models/chat_session.rb +10 -0
  27. data/lib/files.com/models/child_site_management_policy.rb +24 -0
  28. data/lib/files.com/models/clickwrap.rb +24 -0
  29. data/lib/files.com/models/custom_domain.rb +29 -0
  30. data/lib/files.com/models/desktop_configuration_profile.rb +24 -0
  31. data/lib/files.com/models/dns_record.rb +5 -0
  32. data/lib/files.com/models/email_incoming_message.rb +5 -0
  33. data/lib/files.com/models/email_log.rb +5 -0
  34. data/lib/files.com/models/event_channel.rb +24 -0
  35. data/lib/files.com/models/event_delivery_attempt.rb +10 -0
  36. data/lib/files.com/models/event_record.rb +10 -0
  37. data/lib/files.com/models/event_subscription.rb +24 -0
  38. data/lib/files.com/models/event_target.rb +24 -0
  39. data/lib/files.com/models/exavault_api_request_log.rb +5 -0
  40. data/lib/files.com/models/expectation.rb +29 -0
  41. data/lib/files.com/models/expectation_evaluation.rb +10 -0
  42. data/lib/files.com/models/expectation_incident.rb +25 -0
  43. data/lib/files.com/models/external_event.rb +15 -0
  44. data/lib/files.com/models/file.rb +70 -0
  45. data/lib/files.com/models/file_comment.rb +19 -0
  46. data/lib/files.com/models/file_comment_reaction.rb +9 -0
  47. data/lib/files.com/models/file_migration.rb +5 -0
  48. data/lib/files.com/models/file_migration_log.rb +5 -0
  49. data/lib/files.com/models/folder.rb +10 -0
  50. data/lib/files.com/models/form_field_set.rb +24 -0
  51. data/lib/files.com/models/ftp_action_log.rb +5 -0
  52. data/lib/files.com/models/gpg_key.rb +24 -0
  53. data/lib/files.com/models/group.rb +24 -0
  54. data/lib/files.com/models/group_user.rb +20 -0
  55. data/lib/files.com/models/history.rb +25 -0
  56. data/lib/files.com/models/history_export.rb +10 -0
  57. data/lib/files.com/models/history_export_result.rb +5 -0
  58. data/lib/files.com/models/holiday_calendar.rb +24 -0
  59. data/lib/files.com/models/holiday_region.rb +5 -0
  60. data/lib/files.com/models/inbound_s3_log.rb +5 -0
  61. data/lib/files.com/models/inbox_recipient.rb +10 -0
  62. data/lib/files.com/models/inbox_registration.rb +5 -0
  63. data/lib/files.com/models/inbox_upload.rb +5 -0
  64. data/lib/files.com/models/integration_centric_profile.rb +24 -0
  65. data/lib/files.com/models/invoice.rb +10 -0
  66. data/lib/files.com/models/ip_address.rb +20 -0
  67. data/lib/files.com/models/key_lifecycle_rule.rb +24 -0
  68. data/lib/files.com/models/lock.rb +15 -0
  69. data/lib/files.com/models/metadata_category.rb +29 -0
  70. data/lib/files.com/models/notification.rb +24 -0
  71. data/lib/files.com/models/outbound_connection_log.rb +5 -0
  72. data/lib/files.com/models/partner.rb +24 -0
  73. data/lib/files.com/models/partner_channel.rb +24 -0
  74. data/lib/files.com/models/partner_channel_template.rb +24 -0
  75. data/lib/files.com/models/partner_site.rb +4 -0
  76. data/lib/files.com/models/partner_site_request.rb +29 -0
  77. data/lib/files.com/models/payment.rb +10 -0
  78. data/lib/files.com/models/pending_work_event.rb +10 -0
  79. data/lib/files.com/models/permission.rb +14 -0
  80. data/lib/files.com/models/public_hosting_request_log.rb +5 -0
  81. data/lib/files.com/models/public_key.rb +24 -0
  82. data/lib/files.com/models/remote_bandwidth_snapshot.rb +5 -0
  83. data/lib/files.com/models/remote_mount_backend.rb +29 -0
  84. data/lib/files.com/models/remote_server.rb +39 -0
  85. data/lib/files.com/models/remote_server_credential.rb +24 -0
  86. data/lib/files.com/models/request.rb +19 -0
  87. data/lib/files.com/models/restore.rb +10 -0
  88. data/lib/files.com/models/schedule.rb +24 -0
  89. data/lib/files.com/models/scheduled_export.rb +24 -0
  90. data/lib/files.com/models/scim_log.rb +10 -0
  91. data/lib/files.com/models/secret.rb +24 -0
  92. data/lib/files.com/models/session.rb +9 -0
  93. data/lib/files.com/models/settings_change.rb +5 -0
  94. data/lib/files.com/models/sftp_action_log.rb +5 -0
  95. data/lib/files.com/models/sftp_host_key.rb +24 -0
  96. data/lib/files.com/models/share_group.rb +24 -0
  97. data/lib/files.com/models/siem_http_destination.rb +29 -0
  98. data/lib/files.com/models/siem_http_destination_event.rb +10 -0
  99. data/lib/files.com/models/site.rb +13 -0
  100. data/lib/files.com/models/site_subdomain_redirect.rb +14 -0
  101. data/lib/files.com/models/snapshot.rb +29 -0
  102. data/lib/files.com/models/sso_event.rb +10 -0
  103. data/lib/files.com/models/sso_strategy.rb +15 -0
  104. data/lib/files.com/models/style.rb +14 -0
  105. data/lib/files.com/models/sync.rb +34 -0
  106. data/lib/files.com/models/sync_log.rb +5 -0
  107. data/lib/files.com/models/sync_run.rb +10 -0
  108. data/lib/files.com/models/usage_daily_snapshot.rb +5 -0
  109. data/lib/files.com/models/usage_snapshot.rb +5 -0
  110. data/lib/files.com/models/user.rb +40 -0
  111. data/lib/files.com/models/user_additional_email_recipient.rb +24 -0
  112. data/lib/files.com/models/user_cipher_use.rb +5 -0
  113. data/lib/files.com/models/user_lifecycle_rule.rb +24 -0
  114. data/lib/files.com/models/user_request.rb +19 -0
  115. data/lib/files.com/models/user_security_event.rb +10 -0
  116. data/lib/files.com/models/user_sftp_client_use.rb +5 -0
  117. data/lib/files.com/models/web_dav_action_log.rb +5 -0
  118. data/lib/files.com/models/webhook_test.rb +5 -0
  119. data/lib/files.com/models/workspace.rb +24 -0
  120. data/lib/files.com/version.rb +1 -1
  121. metadata +2 -2
@@ -232,6 +232,11 @@ module Files
232
232
  # per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
233
233
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `path` or `partner_id`.
234
234
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `partner_id` and `workspace_id`. Valid field combinations are `[ workspace_id, partner_id ]`.
235
+ #
236
+ # params:: Hash of API operation parameter values.
237
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
238
+ #
239
+ # Returns a Files::List of Files::PartnerChannel objects.
235
240
  def self.list(params = {}, options = {})
236
241
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
237
242
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
@@ -249,6 +254,11 @@ module Files
249
254
 
250
255
  # Parameters:
251
256
  # id (required) - int64 - Partner Channel ID.
257
+ #
258
+ # params:: Hash of API operation parameter values.
259
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
260
+ #
261
+ # Returns a Files::PartnerChannel.
252
262
  def self.find(id, params = {}, options = {})
253
263
  params ||= {}
254
264
  params[:id] = id
@@ -275,6 +285,11 @@ module Files
275
285
  # partner_id (required) - int64 - ID of the Partner this Channel belongs to.
276
286
  # path (required) - string - Channel path relative to the Partner root folder.
277
287
  # workspace_id - int64 - ID of the Workspace associated with this Partner Channel.
288
+ #
289
+ # params:: Hash of API operation parameter values.
290
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
291
+ #
292
+ # Returns a Files::PartnerChannel.
278
293
  def self.create(params = {}, options = {})
279
294
  raise InvalidParameterError.new("Bad parameter: direction must be an String") if params[:direction] and !params[:direction].is_a?(String)
280
295
  raise InvalidParameterError.new("Bad parameter: from_partner_folder_name must be an String") if params[:from_partner_folder_name] and !params[:from_partner_folder_name].is_a?(String)
@@ -303,6 +318,11 @@ module Files
303
318
  # to_partner_managed_folder_paths - array(string) - Managed folder paths inside the to-Partner folder.
304
319
  # to_partner_route_path - string - Optional route path for files delivered to the Partner.
305
320
  # path - string - Channel path relative to the Partner root folder.
321
+ #
322
+ # params:: Hash of API operation parameter values.
323
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
324
+ #
325
+ # Returns a Files::PartnerChannel.
306
326
  def self.update(id, params = {}, options = {})
307
327
  params ||= {}
308
328
  params[:id] = id
@@ -321,6 +341,10 @@ module Files
321
341
  PartnerChannel.new(response.data, options)
322
342
  end
323
343
 
344
+ # params:: Hash of API operation parameter values.
345
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
346
+ #
347
+ # Returns nil.
324
348
  def self.delete(id, params = {}, options = {})
325
349
  params ||= {}
326
350
  params[:id] = id
@@ -198,6 +198,11 @@ module Files
198
198
  # per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
199
199
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id` and `name`.
200
200
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `workspace_id`.
201
+ #
202
+ # params:: Hash of API operation parameter values.
203
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
204
+ #
205
+ # Returns a Files::List of Files::PartnerChannelTemplate objects.
201
206
  def self.list(params = {}, options = {})
202
207
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
203
208
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
@@ -215,6 +220,11 @@ module Files
215
220
 
216
221
  # Parameters:
217
222
  # id (required) - int64 - Partner Channel Template ID.
223
+ #
224
+ # params:: Hash of API operation parameter values.
225
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
226
+ #
227
+ # Returns a Files::PartnerChannelTemplate.
218
228
  def self.find(id, params = {}, options = {})
219
229
  params ||= {}
220
230
  params[:id] = id
@@ -241,6 +251,11 @@ module Files
241
251
  # name (required) - string - The name of the Partner Channel Template.
242
252
  # path (required) - string - Channel path relative to the Partner root folder.
243
253
  # workspace_id - int64 - ID of the Workspace associated with this Partner Channel Template.
254
+ #
255
+ # params:: Hash of API operation parameter values.
256
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
257
+ #
258
+ # Returns a Files::PartnerChannelTemplate.
244
259
  def self.create(params = {}, options = {})
245
260
  raise InvalidParameterError.new("Bad parameter: direction must be an String") if params[:direction] and !params[:direction].is_a?(String)
246
261
  raise InvalidParameterError.new("Bad parameter: from_partner_folder_name must be an String") if params[:from_partner_folder_name] and !params[:from_partner_folder_name].is_a?(String)
@@ -270,6 +285,11 @@ module Files
270
285
  # to_partner_route_path_pattern - string - Optional route path pattern for files delivered to the Partner. Supports {{partner_name}}.
271
286
  # name - string - The name of the Partner Channel Template.
272
287
  # path - string - Channel path relative to the Partner root folder.
288
+ #
289
+ # params:: Hash of API operation parameter values.
290
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
291
+ #
292
+ # Returns a Files::PartnerChannelTemplate.
273
293
  def self.update(id, params = {}, options = {})
274
294
  params ||= {}
275
295
  params[:id] = id
@@ -289,6 +309,10 @@ module Files
289
309
  PartnerChannelTemplate.new(response.data, options)
290
310
  end
291
311
 
312
+ # params:: Hash of API operation parameter values.
313
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
314
+ #
315
+ # Returns nil.
292
316
  def self.delete(id, params = {}, options = {})
293
317
  params ||= {}
294
318
  params[:id] = id
@@ -24,6 +24,10 @@ module Files
24
24
  nil
25
25
  end
26
26
 
27
+ # params:: Hash of API operation parameter values.
28
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
29
+ #
30
+ # Returns nil.
27
31
  def self.delete(id, params = {}, options = {})
28
32
  params ||= {}
29
33
  params[:id] = id
@@ -104,6 +104,11 @@ module Files
104
104
  # per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
105
105
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `host_partner_id`.
106
106
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `host_partner_id`.
107
+ #
108
+ # params:: Hash of API operation parameter values.
109
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
110
+ #
111
+ # Returns a Files::List of Files::PartnerSiteRequest objects.
107
112
  def self.list(params = {}, options = {})
108
113
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
109
114
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
@@ -121,6 +126,11 @@ module Files
121
126
 
122
127
  # Parameters:
123
128
  # pairing_key (required) - string - Pairing key for the partner site request
129
+ #
130
+ # params:: Hash of API operation parameter values.
131
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
132
+ #
133
+ # Returns nil.
124
134
  def self.find_by_pairing_key(params = {}, options = {})
125
135
  raise InvalidParameterError.new("Bad parameter: pairing_key must be an String") if params[:pairing_key] and !params[:pairing_key].is_a?(String)
126
136
  raise MissingParameterError.new("Parameter missing: pairing_key") unless params[:pairing_key]
@@ -132,6 +142,11 @@ module Files
132
142
  # Parameters:
133
143
  # host_partner_id (required) - int64 - Host Partner ID to link with
134
144
  # guest_site_url (required) - string - Guest Site URL to link to
145
+ #
146
+ # params:: Hash of API operation parameter values.
147
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
148
+ #
149
+ # Returns a Files::PartnerSiteRequest.
135
150
  def self.create(params = {}, options = {})
136
151
  raise InvalidParameterError.new("Bad parameter: host_partner_id must be an Integer") if params[:host_partner_id] and !params[:host_partner_id].is_a?(Integer)
137
152
  raise InvalidParameterError.new("Bad parameter: guest_site_url must be an String") if params[:guest_site_url] and !params[:guest_site_url].is_a?(String)
@@ -144,6 +159,11 @@ module Files
144
159
 
145
160
  # Parameters:
146
161
  # pairing_key (required) - string - Pairing key for the partner site request
162
+ #
163
+ # params:: Hash of API operation parameter values.
164
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
165
+ #
166
+ # Returns nil.
147
167
  def self.reject(params = {}, options = {})
148
168
  raise InvalidParameterError.new("Bad parameter: pairing_key must be an String") if params[:pairing_key] and !params[:pairing_key].is_a?(String)
149
169
  raise MissingParameterError.new("Parameter missing: pairing_key") unless params[:pairing_key]
@@ -155,6 +175,11 @@ module Files
155
175
  # Parameters:
156
176
  # pairing_key (required) - string - Pairing key for the partner site request
157
177
  # partner_id - int64 - ID of an existing Partner on this site, with the host role, that represents the requesting organization. The connection binds to that Partner and makes it host_and_guest. When omitted, a guest Partner named after the host site is created.
178
+ #
179
+ # params:: Hash of API operation parameter values.
180
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
181
+ #
182
+ # Returns nil.
158
183
  def self.approve(params = {}, options = {})
159
184
  raise InvalidParameterError.new("Bad parameter: pairing_key must be an String") if params[:pairing_key] and !params[:pairing_key].is_a?(String)
160
185
  raise InvalidParameterError.new("Bad parameter: partner_id must be an Integer") if params[:partner_id] and !params[:partner_id].is_a?(Integer)
@@ -164,6 +189,10 @@ module Files
164
189
  nil
165
190
  end
166
191
 
192
+ # params:: Hash of API operation parameter values.
193
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
194
+ #
195
+ # Returns nil.
167
196
  def self.delete(id, params = {}, options = {})
168
197
  params ||= {}
169
198
  params[:id] = id
@@ -85,6 +85,11 @@ module Files
85
85
  # Parameters:
86
86
  # 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.
87
87
  # per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
88
+ #
89
+ # params:: Hash of API operation parameter values.
90
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
91
+ #
92
+ # Returns a Files::List of Files::AccountLineItem objects.
88
93
  def self.list(params = {}, options = {})
89
94
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
90
95
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
@@ -100,6 +105,11 @@ module Files
100
105
 
101
106
  # Parameters:
102
107
  # id (required) - int64 - Payment ID.
108
+ #
109
+ # params:: Hash of API operation parameter values.
110
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
111
+ #
112
+ # Returns a Files::AccountLineItem.
103
113
  def self.find(id, params = {}, options = {})
104
114
  params ||= {}
105
115
  params[:id] = id
@@ -58,6 +58,11 @@ module Files
58
58
  # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
59
59
  # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
60
60
  # filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
61
+ #
62
+ # params:: Hash of API operation parameter values.
63
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
64
+ #
65
+ # Returns a Files::List of Files::PendingWorkEvent objects.
61
66
  def self.list(params = {}, options = {})
62
67
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
63
68
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
@@ -79,6 +84,11 @@ module Files
79
84
 
80
85
  # Parameters:
81
86
  # id (required) - int64 - Pending Work Event ID.
87
+ #
88
+ # params:: Hash of API operation parameter values.
89
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
90
+ #
91
+ # Returns a Files::PendingWorkEvent.
82
92
  def self.find(id, params = {}, options = {})
83
93
  params ||= {}
84
94
  params[:id] = id
@@ -163,6 +163,11 @@ module Files
163
163
  # group_id - string
164
164
  # partner_id - string
165
165
  # user_id - string
166
+ #
167
+ # params:: Hash of API operation parameter values.
168
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
169
+ #
170
+ # Returns a Files::List of Files::Permission objects.
166
171
  def self.list(params = {}, options = {})
167
172
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
168
173
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
@@ -194,6 +199,11 @@ module Files
194
199
  # username - string - User username. Provide `username` or `user_id`
195
200
  # group_name - string - Group name. Provide `group_name` or `group_id`
196
201
  # site_id - int64 - Site ID. If not provided, will default to current site. Used when creating a permission for a child site.
202
+ #
203
+ # params:: Hash of API operation parameter values.
204
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
205
+ #
206
+ # Returns a Files::Permission.
197
207
  def self.create(params = {}, options = {})
198
208
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
199
209
  raise InvalidParameterError.new("Bad parameter: group_id must be an Integer") if params[:group_id] and !params[:group_id].is_a?(Integer)
@@ -210,6 +220,10 @@ module Files
210
220
  Permission.new(response.data, options)
211
221
  end
212
222
 
223
+ # params:: Hash of API operation parameter values.
224
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
225
+ #
226
+ # Returns nil.
213
227
  def self.delete(id, params = {}, options = {})
214
228
  params ||= {}
215
229
  params[:id] = id
@@ -73,6 +73,11 @@ module Files
73
73
  # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
74
74
  # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
75
75
  # filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`. Valid field combinations are `[ path ]`, `[ remote_ip ]`, `[ success ]`, `[ created_at ]`, `[ path, remote_ip ]`, `[ path, success ]`, `[ path, created_at ]`, `[ remote_ip, success ]`, `[ remote_ip, created_at ]`, `[ success, created_at ]`, `[ path, remote_ip, success ]`, `[ path, remote_ip, created_at ]`, `[ path, success, created_at ]`, `[ remote_ip, success, created_at ]` or `[ path, remote_ip, success, created_at ]`.
76
+ #
77
+ # params:: Hash of API operation parameter values.
78
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
79
+ #
80
+ # Returns a Files::List of Files::PublicHostingRequestLog objects.
76
81
  def self.list(params = {}, options = {})
77
82
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
78
83
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
@@ -228,6 +228,11 @@ module Files
228
228
  # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
229
229
  # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
230
230
  # filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
231
+ #
232
+ # params:: Hash of API operation parameter values.
233
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
234
+ #
235
+ # Returns a Files::List of Files::PublicKey objects.
231
236
  def self.list(params = {}, options = {})
232
237
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
233
238
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
@@ -250,6 +255,11 @@ module Files
250
255
 
251
256
  # Parameters:
252
257
  # id (required) - int64 - Public Key ID.
258
+ #
259
+ # params:: Hash of API operation parameter values.
260
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
261
+ #
262
+ # Returns a Files::PublicKey.
253
263
  def self.find(id, params = {}, options = {})
254
264
  params ||= {}
255
265
  params[:id] = id
@@ -272,6 +282,11 @@ module Files
272
282
  # generate_private_key_password - string - Password for the private key. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
273
283
  # generate_algorithm - string - Type of key to generate. One of rsa, dsa, ecdsa, ed25519. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
274
284
  # generate_length - int64 - Length of key to generate. If algorithm is ecdsa, this is the signature size. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
285
+ #
286
+ # params:: Hash of API operation parameter values.
287
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
288
+ #
289
+ # Returns a Files::PublicKey.
275
290
  def self.create(params = {}, options = {})
276
291
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
277
292
  raise InvalidParameterError.new("Bad parameter: title must be an String") if params[:title] and !params[:title].is_a?(String)
@@ -287,6 +302,11 @@ module Files
287
302
 
288
303
  # Parameters:
289
304
  # title (required) - string - Internal reference for key.
305
+ #
306
+ # params:: Hash of API operation parameter values.
307
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
308
+ #
309
+ # Returns a Files::PublicKey.
290
310
  def self.update(id, params = {}, options = {})
291
311
  params ||= {}
292
312
  params[:id] = id
@@ -299,6 +319,10 @@ module Files
299
319
  PublicKey.new(response.data, options)
300
320
  end
301
321
 
322
+ # params:: Hash of API operation parameter values.
323
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
324
+ #
325
+ # Returns nil.
302
326
  def self.delete(id, params = {}, options = {})
303
327
  params ||= {}
304
328
  params[:id] = id
@@ -43,6 +43,11 @@ module Files
43
43
  # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `logged_at`.
44
44
  # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `logged_at`.
45
45
  # filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `logged_at`.
46
+ #
47
+ # params:: Hash of API operation parameter values.
48
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
49
+ #
50
+ # Returns a Files::List of Files::RemoteBandwidthSnapshot objects.
46
51
  def self.list(params = {}, options = {})
47
52
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
48
53
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
@@ -244,6 +244,11 @@ module Files
244
244
  # 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.
245
245
  # per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
246
246
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `remote_server_mount_id`.
247
+ #
248
+ # params:: Hash of API operation parameter values.
249
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
250
+ #
251
+ # Returns a Files::List of Files::RemoteMountBackend objects.
247
252
  def self.list(params = {}, options = {})
248
253
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
249
254
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
@@ -260,6 +265,11 @@ module Files
260
265
 
261
266
  # Parameters:
262
267
  # id (required) - int64 - Remote Mount Backend ID.
268
+ #
269
+ # params:: Hash of API operation parameter values.
270
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
271
+ #
272
+ # Returns a Files::RemoteMountBackend.
263
273
  def self.find(id, params = {}, options = {})
264
274
  params ||= {}
265
275
  params[:id] = id
@@ -288,6 +298,11 @@ module Files
288
298
  # canary_file_path (required) - string - Path to the canary file used for health checks.
289
299
  # remote_server_mount_id (required) - int64 - The mount ID of the Remote Server Mount that this backend is associated with.
290
300
  # remote_server_id (required) - int64 - The remote server that this backend is associated with.
301
+ #
302
+ # params:: Hash of API operation parameter values.
303
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
304
+ #
305
+ # Returns a Files::RemoteMountBackend.
291
306
  def self.create(params = {}, options = {})
292
307
  raise InvalidParameterError.new("Bad parameter: fall must be an Integer") if params[:fall] and !params[:fall].is_a?(Integer)
293
308
  raise InvalidParameterError.new("Bad parameter: health_check_type must be an String") if params[:health_check_type] and !params[:health_check_type].is_a?(String)
@@ -309,6 +324,11 @@ module Files
309
324
  end
310
325
 
311
326
  # Reset backend status to healthy
327
+ #
328
+ # params:: Hash of API operation parameter values.
329
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
330
+ #
331
+ # Returns nil.
312
332
  def self.reset_status(id, params = {}, options = {})
313
333
  params ||= {}
314
334
  params[:id] = id
@@ -332,6 +352,11 @@ module Files
332
352
  # rise - int64 - Number of consecutive successes before considering the backend healthy.
333
353
  # canary_file_path - string - Path to the canary file used for health checks.
334
354
  # remote_server_id - int64 - The remote server that this backend is associated with.
355
+ #
356
+ # params:: Hash of API operation parameter values.
357
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
358
+ #
359
+ # Returns a Files::RemoteMountBackend.
335
360
  def self.update(id, params = {}, options = {})
336
361
  params ||= {}
337
362
  params[:id] = id
@@ -352,6 +377,10 @@ module Files
352
377
  RemoteMountBackend.new(response.data, options)
353
378
  end
354
379
 
380
+ # params:: Hash of API operation parameter values.
381
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
382
+ #
383
+ # Returns nil.
355
384
  def self.delete(id, params = {}, options = {})
356
385
  params ||= {}
357
386
  params[:id] = id
@@ -1154,6 +1154,11 @@ module Files
1154
1154
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `name`, `server_type`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`.
1155
1155
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name`, `server_type`, `workspace_id`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`. Valid field combinations are `[ server_type, name ]`, `[ workspace_id, name ]`, `[ backblaze_b2_bucket, name ]`, `[ google_cloud_storage_bucket, name ]`, `[ wasabi_bucket, name ]`, `[ s3_bucket, name ]`, `[ azure_blob_storage_container, name ]`, `[ azure_files_storage_share_name, name ]`, `[ s3_compatible_bucket, name ]`, `[ filebase_bucket, name ]`, `[ cloudflare_bucket, name ]`, `[ linode_bucket, name ]`, `[ workspace_id, server_type ]` or `[ workspace_id, server_type, name ]`.
1156
1156
  # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`, `backblaze_b2_bucket`, `google_cloud_storage_bucket`, `wasabi_bucket`, `s3_bucket`, `azure_blob_storage_container`, `azure_files_storage_share_name`, `s3_compatible_bucket`, `filebase_bucket`, `cloudflare_bucket` or `linode_bucket`. Valid field combinations are `[ backblaze_b2_bucket, name ]`, `[ google_cloud_storage_bucket, name ]`, `[ wasabi_bucket, name ]`, `[ s3_bucket, name ]`, `[ azure_blob_storage_container, name ]`, `[ azure_files_storage_share_name, name ]`, `[ s3_compatible_bucket, name ]`, `[ filebase_bucket, name ]`, `[ cloudflare_bucket, name ]` or `[ linode_bucket, name ]`.
1157
+ #
1158
+ # params:: Hash of API operation parameter values.
1159
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
1160
+ #
1161
+ # Returns a Files::List of Files::RemoteServer objects.
1157
1162
  def self.list(params = {}, options = {})
1158
1163
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
1159
1164
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
@@ -1173,6 +1178,11 @@ module Files
1173
1178
 
1174
1179
  # Parameters:
1175
1180
  # id (required) - int64 - Remote Server ID.
1181
+ #
1182
+ # params:: Hash of API operation parameter values.
1183
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
1184
+ #
1185
+ # Returns a Files::RemoteServer.
1176
1186
  def self.find(id, params = {}, options = {})
1177
1187
  params ||= {}
1178
1188
  params[:id] = id
@@ -1188,6 +1198,11 @@ module Files
1188
1198
  end
1189
1199
 
1190
1200
  # List Files.com Agent nodes
1201
+ #
1202
+ # params:: Hash of API operation parameter values.
1203
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
1204
+ #
1205
+ # Returns a Files::AgentNode.
1191
1206
  def self.agent_nodes(id, params = {}, options = {})
1192
1207
  params ||= {}
1193
1208
  params[:id] = id
@@ -1200,6 +1215,11 @@ module Files
1200
1215
 
1201
1216
  # Parameters:
1202
1217
  # id (required) - int64 - Remote Server ID.
1218
+ #
1219
+ # params:: Hash of API operation parameter values.
1220
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
1221
+ #
1222
+ # Returns a Files::RemoteServerConfigurationFile.
1203
1223
  def self.find_configuration_file(id, params = {}, options = {})
1204
1224
  params ||= {}
1205
1225
  params[:id] = id
@@ -1296,6 +1316,11 @@ module Files
1296
1316
  # wasabi_bucket - string - Wasabi: Bucket name
1297
1317
  # wasabi_region - string - Wasabi: Region
1298
1318
  # workspace_id - int64 - Workspace ID (0 for default workspace)
1319
+ #
1320
+ # params:: Hash of API operation parameter values.
1321
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
1322
+ #
1323
+ # Returns a Files::RemoteServer.
1299
1324
  def self.create(params = {}, options = {})
1300
1325
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
1301
1326
  raise InvalidParameterError.new("Bad parameter: password must be an String") if params[:password] and !params[:password].is_a?(String)
@@ -1381,6 +1406,11 @@ module Files
1381
1406
  end
1382
1407
 
1383
1408
  # Push update to Files Agent
1409
+ #
1410
+ # params:: Hash of API operation parameter values.
1411
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
1412
+ #
1413
+ # Returns a Files::AgentPushUpdate.
1384
1414
  def self.agent_push_update(id, params = {}, options = {})
1385
1415
  params ||= {}
1386
1416
  params[:id] = id
@@ -1475,6 +1505,11 @@ module Files
1475
1505
  # wasabi_access_key - string - Wasabi: Access Key.
1476
1506
  # wasabi_bucket - string - Wasabi: Bucket name
1477
1507
  # wasabi_region - string - Wasabi: Region
1508
+ #
1509
+ # params:: Hash of API operation parameter values.
1510
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
1511
+ #
1512
+ # Returns a Files::RemoteServer.
1478
1513
  def self.update(id, params = {}, options = {})
1479
1514
  params ||= {}
1480
1515
  params[:id] = id
@@ -1561,6 +1596,10 @@ module Files
1561
1596
  RemoteServer.new(response.data, options)
1562
1597
  end
1563
1598
 
1599
+ # params:: Hash of API operation parameter values.
1600
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
1601
+ #
1602
+ # Returns nil.
1564
1603
  def self.delete(id, params = {}, options = {})
1565
1604
  params ||= {}
1566
1605
  params[:id] = id
@@ -473,6 +473,11 @@ module Files
473
473
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id` and `name`.
474
474
  # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `workspace_id` and `name`. Valid field combinations are `[ workspace_id, name ]`.
475
475
  # filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`.
476
+ #
477
+ # params:: Hash of API operation parameter values.
478
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
479
+ #
480
+ # Returns a Files::List of Files::RemoteServerCredential objects.
476
481
  def self.list(params = {}, options = {})
477
482
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
478
483
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
@@ -491,6 +496,11 @@ module Files
491
496
 
492
497
  # Parameters:
493
498
  # id (required) - int64 - Remote Server Credential ID.
499
+ #
500
+ # params:: Hash of API operation parameter values.
501
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
502
+ #
503
+ # Returns a Files::RemoteServerCredential.
494
504
  def self.find(id, params = {}, options = {})
495
505
  params ||= {}
496
506
  params[:id] = id
@@ -542,6 +552,11 @@ module Files
542
552
  # wasabi_secret_key - string - Wasabi: Secret Key
543
553
  # workspace_id - int64 - Workspace ID (0 for default workspace)
544
554
  # copy_values_from_credential_id - int64 - ID of Remote Server Credential to copy omitted values from.
555
+ #
556
+ # params:: Hash of API operation parameter values.
557
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
558
+ #
559
+ # Returns a Files::RemoteServerCredential.
545
560
  def self.create(params = {}, options = {})
546
561
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
547
562
  raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
@@ -619,6 +634,11 @@ module Files
619
634
  # sharepoint_client_certificate - string - SharePoint: PEM-encoded certificate and unencrypted private key for app-only authentication.
620
635
  # sharepoint_client_secret - string - SharePoint: Microsoft Entra application client secret for app-only authentication.
621
636
  # wasabi_secret_key - string - Wasabi: Secret Key
637
+ #
638
+ # params:: Hash of API operation parameter values.
639
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
640
+ #
641
+ # Returns a Files::RemoteServerCredential.
622
642
  def self.update(id, params = {}, options = {})
623
643
  params ||= {}
624
644
  params[:id] = id
@@ -663,6 +683,10 @@ module Files
663
683
  RemoteServerCredential.new(response.data, options)
664
684
  end
665
685
 
686
+ # params:: Hash of API operation parameter values.
687
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
688
+ #
689
+ # Returns nil.
666
690
  def self.delete(id, params = {}, options = {})
667
691
  params ||= {}
668
692
  params[:id] = id
@@ -113,6 +113,11 @@ module Files
113
113
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
114
114
  # mine - boolean - Only show requests of the current user? (Defaults to true if current user is not a site admin.)
115
115
  # path - string - Path to show requests for. If omitted, shows all paths. Send `/` to represent the root directory.
116
+ #
117
+ # params:: Hash of API operation parameter values.
118
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
119
+ #
120
+ # Returns a Files::List of Files::Request objects.
116
121
  def self.list(params = {}, options = {})
117
122
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
118
123
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
@@ -134,6 +139,11 @@ module Files
134
139
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
135
140
  # mine - boolean - Only show requests of the current user? (Defaults to true if current user is not a site admin.)
136
141
  # path (required) - string - Path to show requests for. If omitted, shows all paths. Send `/` to represent the root directory.
142
+ #
143
+ # params:: Hash of API operation parameter values.
144
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
145
+ #
146
+ # Returns a Files::List of Files::Request objects.
137
147
  def self.get_folder(path, params = {}, options = {})
138
148
  params ||= {}
139
149
  params[:path] = path
@@ -153,6 +163,11 @@ module Files
153
163
  # destination (required) - string - Destination filename (without extension) to request.
154
164
  # user_ids - string - A list of user IDs to request the file from. If sent as a string, it should be comma-delimited.
155
165
  # group_ids - string - A list of group IDs to request the file from. If sent as a string, it should be comma-delimited.
166
+ #
167
+ # params:: Hash of API operation parameter values.
168
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
169
+ #
170
+ # Returns a Files::Request.
156
171
  def self.create(params = {}, options = {})
157
172
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
158
173
  raise InvalidParameterError.new("Bad parameter: destination must be an String") if params[:destination] and !params[:destination].is_a?(String)
@@ -165,6 +180,10 @@ module Files
165
180
  Request.new(response.data, options)
166
181
  end
167
182
 
183
+ # params:: Hash of API operation parameter values.
184
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
185
+ #
186
+ # Returns nil.
168
187
  def self.delete(id, params = {}, options = {})
169
188
  params ||= {}
170
189
  params[:id] = id