files.com 1.1.769 → 1.1.771
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/remote_server.md +8 -0
- data/lib/files.com/models/action_log.rb +5 -0
- data/lib/files.com/models/action_notification_export.rb +10 -0
- data/lib/files.com/models/action_notification_export_result.rb +5 -0
- data/lib/files.com/models/ai_assistant_personality.rb +24 -0
- data/lib/files.com/models/ai_task.rb +29 -0
- data/lib/files.com/models/api_key.rb +37 -0
- data/lib/files.com/models/api_request_log.rb +5 -0
- data/lib/files.com/models/app.rb +5 -0
- data/lib/files.com/models/as2_incoming_message.rb +5 -0
- data/lib/files.com/models/as2_outgoing_message.rb +5 -0
- data/lib/files.com/models/as2_partner.rb +24 -0
- data/lib/files.com/models/as2_station.rb +24 -0
- data/lib/files.com/models/automation.rb +38 -0
- data/lib/files.com/models/automation_log.rb +5 -0
- data/lib/files.com/models/automation_run.rb +25 -0
- data/lib/files.com/models/bandwidth_snapshot.rb +5 -0
- data/lib/files.com/models/behavior.rb +34 -0
- data/lib/files.com/models/bundle.rb +29 -0
- data/lib/files.com/models/bundle_action.rb +5 -0
- data/lib/files.com/models/bundle_download.rb +5 -0
- data/lib/files.com/models/bundle_notification.rb +24 -0
- data/lib/files.com/models/bundle_recipient.rb +10 -0
- data/lib/files.com/models/bundle_registration.rb +5 -0
- data/lib/files.com/models/chat_session.rb +10 -0
- data/lib/files.com/models/child_site_management_policy.rb +24 -0
- data/lib/files.com/models/clickwrap.rb +24 -0
- data/lib/files.com/models/custom_domain.rb +29 -0
- data/lib/files.com/models/desktop_configuration_profile.rb +24 -0
- data/lib/files.com/models/dns_record.rb +5 -0
- data/lib/files.com/models/email_incoming_message.rb +5 -0
- data/lib/files.com/models/email_log.rb +5 -0
- data/lib/files.com/models/event_channel.rb +24 -0
- data/lib/files.com/models/event_delivery_attempt.rb +10 -0
- data/lib/files.com/models/event_record.rb +10 -0
- data/lib/files.com/models/event_subscription.rb +24 -0
- data/lib/files.com/models/event_target.rb +24 -0
- data/lib/files.com/models/exavault_api_request_log.rb +5 -0
- data/lib/files.com/models/expectation.rb +29 -0
- data/lib/files.com/models/expectation_evaluation.rb +10 -0
- data/lib/files.com/models/expectation_incident.rb +25 -0
- data/lib/files.com/models/external_event.rb +15 -0
- data/lib/files.com/models/file.rb +70 -0
- data/lib/files.com/models/file_comment.rb +19 -0
- data/lib/files.com/models/file_comment_reaction.rb +9 -0
- data/lib/files.com/models/file_migration.rb +5 -0
- data/lib/files.com/models/file_migration_log.rb +5 -0
- data/lib/files.com/models/folder.rb +10 -0
- data/lib/files.com/models/form_field_set.rb +24 -0
- data/lib/files.com/models/ftp_action_log.rb +5 -0
- data/lib/files.com/models/gpg_key.rb +24 -0
- data/lib/files.com/models/group.rb +24 -0
- data/lib/files.com/models/group_user.rb +20 -0
- data/lib/files.com/models/history.rb +25 -0
- data/lib/files.com/models/history_export.rb +10 -0
- data/lib/files.com/models/history_export_result.rb +5 -0
- data/lib/files.com/models/holiday_calendar.rb +24 -0
- data/lib/files.com/models/holiday_region.rb +5 -0
- data/lib/files.com/models/inbound_s3_log.rb +5 -0
- data/lib/files.com/models/inbox_recipient.rb +10 -0
- data/lib/files.com/models/inbox_registration.rb +5 -0
- data/lib/files.com/models/inbox_upload.rb +5 -0
- data/lib/files.com/models/integration_centric_profile.rb +24 -0
- data/lib/files.com/models/invoice.rb +10 -0
- data/lib/files.com/models/ip_address.rb +20 -0
- data/lib/files.com/models/key_lifecycle_rule.rb +24 -0
- data/lib/files.com/models/lock.rb +15 -0
- data/lib/files.com/models/metadata_category.rb +29 -0
- data/lib/files.com/models/notification.rb +24 -0
- data/lib/files.com/models/outbound_connection_log.rb +5 -0
- data/lib/files.com/models/partner.rb +24 -0
- data/lib/files.com/models/partner_channel.rb +24 -0
- data/lib/files.com/models/partner_channel_template.rb +24 -0
- data/lib/files.com/models/partner_site.rb +4 -0
- data/lib/files.com/models/partner_site_request.rb +29 -0
- data/lib/files.com/models/payment.rb +10 -0
- data/lib/files.com/models/pending_work_event.rb +10 -0
- data/lib/files.com/models/permission.rb +14 -0
- data/lib/files.com/models/public_hosting_request_log.rb +5 -0
- data/lib/files.com/models/public_key.rb +24 -0
- data/lib/files.com/models/remote_bandwidth_snapshot.rb +5 -0
- data/lib/files.com/models/remote_mount_backend.rb +29 -0
- data/lib/files.com/models/remote_server.rb +54 -0
- data/lib/files.com/models/remote_server_credential.rb +24 -0
- data/lib/files.com/models/request.rb +19 -0
- data/lib/files.com/models/restore.rb +10 -0
- data/lib/files.com/models/schedule.rb +24 -0
- data/lib/files.com/models/scheduled_export.rb +24 -0
- data/lib/files.com/models/scim_log.rb +10 -0
- data/lib/files.com/models/secret.rb +24 -0
- data/lib/files.com/models/session.rb +9 -0
- data/lib/files.com/models/settings_change.rb +5 -0
- data/lib/files.com/models/sftp_action_log.rb +5 -0
- data/lib/files.com/models/sftp_host_key.rb +24 -0
- data/lib/files.com/models/share_group.rb +24 -0
- data/lib/files.com/models/siem_http_destination.rb +29 -0
- data/lib/files.com/models/siem_http_destination_event.rb +10 -0
- data/lib/files.com/models/site.rb +13 -0
- data/lib/files.com/models/site_subdomain_redirect.rb +14 -0
- data/lib/files.com/models/snapshot.rb +29 -0
- data/lib/files.com/models/sso_event.rb +10 -0
- data/lib/files.com/models/sso_strategy.rb +15 -0
- data/lib/files.com/models/style.rb +14 -0
- data/lib/files.com/models/sync.rb +34 -0
- data/lib/files.com/models/sync_log.rb +5 -0
- data/lib/files.com/models/sync_run.rb +10 -0
- data/lib/files.com/models/usage_daily_snapshot.rb +5 -0
- data/lib/files.com/models/usage_snapshot.rb +5 -0
- data/lib/files.com/models/user.rb +40 -0
- data/lib/files.com/models/user_additional_email_recipient.rb +24 -0
- data/lib/files.com/models/user_cipher_use.rb +5 -0
- data/lib/files.com/models/user_lifecycle_rule.rb +24 -0
- data/lib/files.com/models/user_request.rb +19 -0
- data/lib/files.com/models/user_security_event.rb +10 -0
- data/lib/files.com/models/user_sftp_client_use.rb +5 -0
- data/lib/files.com/models/web_dav_action_log.rb +5 -0
- data/lib/files.com/models/webhook_test.rb +5 -0
- data/lib/files.com/models/workspace.rb +24 -0
- data/lib/files.com/version.rb +1 -1
- 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
|
|
@@ -162,6 +162,15 @@ module Files
|
|
|
162
162
|
@attributes[:s3_region] = value
|
|
163
163
|
end
|
|
164
164
|
|
|
165
|
+
# string - ARN of the AWS KMS key that encrypts files written to the bucket (SSE-KMS). Leave blank unless your bucket requires a specific key.
|
|
166
|
+
def s3_kms_key_id
|
|
167
|
+
@attributes[:s3_kms_key_id]
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
def s3_kms_key_id=(value)
|
|
171
|
+
@attributes[:s3_kms_key_id] = value
|
|
172
|
+
end
|
|
173
|
+
|
|
165
174
|
# string - AWS Access Key.
|
|
166
175
|
def aws_access_key
|
|
167
176
|
@attributes[:aws_access_key]
|
|
@@ -1021,6 +1030,7 @@ module Files
|
|
|
1021
1030
|
# s3_compatible_endpoint - string - S3-compatible: endpoint
|
|
1022
1031
|
# s3_compatible_region - string - S3-compatible: region
|
|
1023
1032
|
# s3_compatible_virtual_hosted_style - boolean - S3-compatible: If true, use virtual-hosted-style URLs instead of path-style URLs
|
|
1033
|
+
# s3_kms_key_id - string - ARN of the AWS KMS key that encrypts files written to the bucket (SSE-KMS). Leave blank unless your bucket requires a specific key.
|
|
1024
1034
|
# s3_region - string - S3 region
|
|
1025
1035
|
# server_certificate - string - Remote server certificate
|
|
1026
1036
|
# server_host_key - string - Pinned SSH host key or OpenSSH host certificate for SFTP. If omitted, Files.com detects and stores a host key, preferring plain keys over certificates. With `server_certificate=require_match` (the default), the server must present the exact pinned key or certificate and prove it holds the matching private key. A pinned certificate is compared in full, so renewal can require updating `server_host_key` even when its underlying key is unchanged. Files.com does not check certificate CA signatures, principals, or validity periods. Certificate expiration alone does not end the pin. Update `server_host_key` to replace the pin.
|
|
@@ -1102,6 +1112,7 @@ module Files
|
|
|
1102
1112
|
raise InvalidParameterError.new("Bad parameter: s3_compatible_bucket must be an String") if params[:s3_compatible_bucket] and !params[:s3_compatible_bucket].is_a?(String)
|
|
1103
1113
|
raise InvalidParameterError.new("Bad parameter: s3_compatible_endpoint must be an String") if params[:s3_compatible_endpoint] and !params[:s3_compatible_endpoint].is_a?(String)
|
|
1104
1114
|
raise InvalidParameterError.new("Bad parameter: s3_compatible_region must be an String") if params[:s3_compatible_region] and !params[:s3_compatible_region].is_a?(String)
|
|
1115
|
+
raise InvalidParameterError.new("Bad parameter: s3_kms_key_id must be an String") if params[:s3_kms_key_id] and !params[:s3_kms_key_id].is_a?(String)
|
|
1105
1116
|
raise InvalidParameterError.new("Bad parameter: s3_region must be an String") if params[:s3_region] and !params[:s3_region].is_a?(String)
|
|
1106
1117
|
raise InvalidParameterError.new("Bad parameter: server_certificate must be an String") if params[:server_certificate] and !params[:server_certificate].is_a?(String)
|
|
1107
1118
|
raise InvalidParameterError.new("Bad parameter: server_host_key must be an String") if params[:server_host_key] and !params[:server_host_key].is_a?(String)
|
|
@@ -1154,6 +1165,11 @@ module Files
|
|
|
1154
1165
|
# 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
1166
|
# 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
1167
|
# 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 ]`.
|
|
1168
|
+
#
|
|
1169
|
+
# params:: Hash of API operation parameter values.
|
|
1170
|
+
# options:: Hash of optional request configuration passed to Files::Api.send_request.
|
|
1171
|
+
#
|
|
1172
|
+
# Returns a Files::List of Files::RemoteServer objects.
|
|
1157
1173
|
def self.list(params = {}, options = {})
|
|
1158
1174
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
1159
1175
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
@@ -1173,6 +1189,11 @@ module Files
|
|
|
1173
1189
|
|
|
1174
1190
|
# Parameters:
|
|
1175
1191
|
# id (required) - int64 - Remote Server ID.
|
|
1192
|
+
#
|
|
1193
|
+
# params:: Hash of API operation parameter values.
|
|
1194
|
+
# options:: Hash of optional request configuration passed to Files::Api.send_request.
|
|
1195
|
+
#
|
|
1196
|
+
# Returns a Files::RemoteServer.
|
|
1176
1197
|
def self.find(id, params = {}, options = {})
|
|
1177
1198
|
params ||= {}
|
|
1178
1199
|
params[:id] = id
|
|
@@ -1188,6 +1209,11 @@ module Files
|
|
|
1188
1209
|
end
|
|
1189
1210
|
|
|
1190
1211
|
# List Files.com Agent nodes
|
|
1212
|
+
#
|
|
1213
|
+
# params:: Hash of API operation parameter values.
|
|
1214
|
+
# options:: Hash of optional request configuration passed to Files::Api.send_request.
|
|
1215
|
+
#
|
|
1216
|
+
# Returns a Files::AgentNode.
|
|
1191
1217
|
def self.agent_nodes(id, params = {}, options = {})
|
|
1192
1218
|
params ||= {}
|
|
1193
1219
|
params[:id] = id
|
|
@@ -1200,6 +1226,11 @@ module Files
|
|
|
1200
1226
|
|
|
1201
1227
|
# Parameters:
|
|
1202
1228
|
# id (required) - int64 - Remote Server ID.
|
|
1229
|
+
#
|
|
1230
|
+
# params:: Hash of API operation parameter values.
|
|
1231
|
+
# options:: Hash of optional request configuration passed to Files::Api.send_request.
|
|
1232
|
+
#
|
|
1233
|
+
# Returns a Files::RemoteServerConfigurationFile.
|
|
1203
1234
|
def self.find_configuration_file(id, params = {}, options = {})
|
|
1204
1235
|
params ||= {}
|
|
1205
1236
|
params[:id] = id
|
|
@@ -1283,6 +1314,7 @@ module Files
|
|
|
1283
1314
|
# s3_compatible_endpoint - string - S3-compatible: endpoint
|
|
1284
1315
|
# s3_compatible_region - string - S3-compatible: region
|
|
1285
1316
|
# s3_compatible_virtual_hosted_style - boolean - S3-compatible: If true, use virtual-hosted-style URLs instead of path-style URLs
|
|
1317
|
+
# s3_kms_key_id - string - ARN of the AWS KMS key that encrypts files written to the bucket (SSE-KMS). Leave blank unless your bucket requires a specific key.
|
|
1286
1318
|
# s3_region - string - S3 region
|
|
1287
1319
|
# server_certificate - string - Remote server certificate
|
|
1288
1320
|
# server_host_key - string - Pinned SSH host key or OpenSSH host certificate for SFTP. If omitted, Files.com detects and stores a host key, preferring plain keys over certificates. With `server_certificate=require_match` (the default), the server must present the exact pinned key or certificate and prove it holds the matching private key. A pinned certificate is compared in full, so renewal can require updating `server_host_key` even when its underlying key is unchanged. Files.com does not check certificate CA signatures, principals, or validity periods. Certificate expiration alone does not end the pin. Update `server_host_key` to replace the pin.
|
|
@@ -1296,6 +1328,11 @@ module Files
|
|
|
1296
1328
|
# wasabi_bucket - string - Wasabi: Bucket name
|
|
1297
1329
|
# wasabi_region - string - Wasabi: Region
|
|
1298
1330
|
# workspace_id - int64 - Workspace ID (0 for default workspace)
|
|
1331
|
+
#
|
|
1332
|
+
# params:: Hash of API operation parameter values.
|
|
1333
|
+
# options:: Hash of optional request configuration passed to Files::Api.send_request.
|
|
1334
|
+
#
|
|
1335
|
+
# Returns a Files::RemoteServer.
|
|
1299
1336
|
def self.create(params = {}, options = {})
|
|
1300
1337
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
1301
1338
|
raise InvalidParameterError.new("Bad parameter: password must be an String") if params[:password] and !params[:password].is_a?(String)
|
|
@@ -1362,6 +1399,7 @@ module Files
|
|
|
1362
1399
|
raise InvalidParameterError.new("Bad parameter: s3_compatible_bucket must be an String") if params[:s3_compatible_bucket] and !params[:s3_compatible_bucket].is_a?(String)
|
|
1363
1400
|
raise InvalidParameterError.new("Bad parameter: s3_compatible_endpoint must be an String") if params[:s3_compatible_endpoint] and !params[:s3_compatible_endpoint].is_a?(String)
|
|
1364
1401
|
raise InvalidParameterError.new("Bad parameter: s3_compatible_region must be an String") if params[:s3_compatible_region] and !params[:s3_compatible_region].is_a?(String)
|
|
1402
|
+
raise InvalidParameterError.new("Bad parameter: s3_kms_key_id must be an String") if params[:s3_kms_key_id] and !params[:s3_kms_key_id].is_a?(String)
|
|
1365
1403
|
raise InvalidParameterError.new("Bad parameter: s3_region must be an String") if params[:s3_region] and !params[:s3_region].is_a?(String)
|
|
1366
1404
|
raise InvalidParameterError.new("Bad parameter: server_certificate must be an String") if params[:server_certificate] and !params[:server_certificate].is_a?(String)
|
|
1367
1405
|
raise InvalidParameterError.new("Bad parameter: server_host_key must be an String") if params[:server_host_key] and !params[:server_host_key].is_a?(String)
|
|
@@ -1381,6 +1419,11 @@ module Files
|
|
|
1381
1419
|
end
|
|
1382
1420
|
|
|
1383
1421
|
# Push update to Files Agent
|
|
1422
|
+
#
|
|
1423
|
+
# params:: Hash of API operation parameter values.
|
|
1424
|
+
# options:: Hash of optional request configuration passed to Files::Api.send_request.
|
|
1425
|
+
#
|
|
1426
|
+
# Returns a Files::AgentPushUpdate.
|
|
1384
1427
|
def self.agent_push_update(id, params = {}, options = {})
|
|
1385
1428
|
params ||= {}
|
|
1386
1429
|
params[:id] = id
|
|
@@ -1463,6 +1506,7 @@ module Files
|
|
|
1463
1506
|
# s3_compatible_endpoint - string - S3-compatible: endpoint
|
|
1464
1507
|
# s3_compatible_region - string - S3-compatible: region
|
|
1465
1508
|
# s3_compatible_virtual_hosted_style - boolean - S3-compatible: If true, use virtual-hosted-style URLs instead of path-style URLs
|
|
1509
|
+
# s3_kms_key_id - string - ARN of the AWS KMS key that encrypts files written to the bucket (SSE-KMS). Leave blank unless your bucket requires a specific key.
|
|
1466
1510
|
# s3_region - string - S3 region
|
|
1467
1511
|
# server_certificate - string - Remote server certificate
|
|
1468
1512
|
# server_host_key - string - Pinned SSH host key or OpenSSH host certificate for SFTP. If omitted, Files.com detects and stores a host key, preferring plain keys over certificates. With `server_certificate=require_match` (the default), the server must present the exact pinned key or certificate and prove it holds the matching private key. A pinned certificate is compared in full, so renewal can require updating `server_host_key` even when its underlying key is unchanged. Files.com does not check certificate CA signatures, principals, or validity periods. Certificate expiration alone does not end the pin. Update `server_host_key` to replace the pin.
|
|
@@ -1475,6 +1519,11 @@ module Files
|
|
|
1475
1519
|
# wasabi_access_key - string - Wasabi: Access Key.
|
|
1476
1520
|
# wasabi_bucket - string - Wasabi: Bucket name
|
|
1477
1521
|
# wasabi_region - string - Wasabi: Region
|
|
1522
|
+
#
|
|
1523
|
+
# params:: Hash of API operation parameter values.
|
|
1524
|
+
# options:: Hash of optional request configuration passed to Files::Api.send_request.
|
|
1525
|
+
#
|
|
1526
|
+
# Returns a Files::RemoteServer.
|
|
1478
1527
|
def self.update(id, params = {}, options = {})
|
|
1479
1528
|
params ||= {}
|
|
1480
1529
|
params[:id] = id
|
|
@@ -1543,6 +1592,7 @@ module Files
|
|
|
1543
1592
|
raise InvalidParameterError.new("Bad parameter: s3_compatible_bucket must be an String") if params[:s3_compatible_bucket] and !params[:s3_compatible_bucket].is_a?(String)
|
|
1544
1593
|
raise InvalidParameterError.new("Bad parameter: s3_compatible_endpoint must be an String") if params[:s3_compatible_endpoint] and !params[:s3_compatible_endpoint].is_a?(String)
|
|
1545
1594
|
raise InvalidParameterError.new("Bad parameter: s3_compatible_region must be an String") if params[:s3_compatible_region] and !params[:s3_compatible_region].is_a?(String)
|
|
1595
|
+
raise InvalidParameterError.new("Bad parameter: s3_kms_key_id must be an String") if params[:s3_kms_key_id] and !params[:s3_kms_key_id].is_a?(String)
|
|
1546
1596
|
raise InvalidParameterError.new("Bad parameter: s3_region must be an String") if params[:s3_region] and !params[:s3_region].is_a?(String)
|
|
1547
1597
|
raise InvalidParameterError.new("Bad parameter: server_certificate must be an String") if params[:server_certificate] and !params[:server_certificate].is_a?(String)
|
|
1548
1598
|
raise InvalidParameterError.new("Bad parameter: server_host_key must be an String") if params[:server_host_key] and !params[:server_host_key].is_a?(String)
|
|
@@ -1561,6 +1611,10 @@ module Files
|
|
|
1561
1611
|
RemoteServer.new(response.data, options)
|
|
1562
1612
|
end
|
|
1563
1613
|
|
|
1614
|
+
# params:: Hash of API operation parameter values.
|
|
1615
|
+
# options:: Hash of optional request configuration passed to Files::Api.send_request.
|
|
1616
|
+
#
|
|
1617
|
+
# Returns nil.
|
|
1564
1618
|
def self.delete(id, params = {}, options = {})
|
|
1565
1619
|
params ||= {}
|
|
1566
1620
|
params[:id] = id
|