public class Automation extends Object implements ModelInterface
| Modifier and Type | Field and Description |
|---|---|
Boolean |
alwaysOverwriteSizeMatchingFiles
Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer.
|
String |
automation
Automation type
|
Boolean |
deleted
Indicates if the automation has been deleted.
|
String |
description
Description for the this Automation.
|
String |
destinationReplaceFrom
If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
String |
destinationReplaceTo
If set, this string will replace the value `destination_replace_from` in the destination filename.
|
String[] |
destinations
Destination Paths
|
Boolean |
disabled
If true, this automation will not run.
|
String |
excludePattern
If set, this glob pattern will exclude files from the automation.
|
Boolean |
flattenDestinationStructure
Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination.
|
Long[] |
groupIds
IDs of Groups for the Automation (i.e. who to Request File from)
|
String |
humanReadableSchedule
If trigger is `custom_schedule`, Human readable Custom schedule description for when the automation should be run.
|
Long |
id
Automation ID
|
Boolean |
ignoreLockedFolders
If true, the Lock Folders behavior will be disregarded for automated actions.
|
String |
interval
If trigger is `daily`, this specifies how often to run this automation.
|
Date |
lastModifiedAt
Time when automation was last modified.
|
Boolean |
legacyFolderMatching
If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files.
|
String |
name
Name for this automation.
|
Boolean |
overwriteFiles
If true, existing files will be overwritten with new files on Move/Copy automations.
|
String |
path
Path on which this Automation runs.
|
String |
pathTimeZone
Timezone to use when rendering timestamps in paths.
|
Long |
recurringDay
If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
|
Map<String,String> |
schedule
If trigger is `custom_schedule`, Custom schedule description for when the automation should be run in json format.
|
Long[] |
scheduleDaysOfWeek
If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
|
String[] |
scheduleTimesOfDay
If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
|
String |
scheduleTimeZone
If trigger is `custom_schedule`, Custom schedule Time Zone for when the automation should be run.
|
String |
source
Source path/glob.
|
Long[] |
syncIds
IDs of remote sync folder behaviors to run by this Automation
|
String |
trigger
How this automation is triggered to run.
|
String[] |
triggerActions
If trigger is `action`, this is the list of action types on which to trigger the automation.
|
Long |
userId
User ID of the Automation's creator.
|
Long[] |
userIds
IDs of Users for the Automation (i.e. who to Request File from)
|
Map<String,String> |
value
A Hash of attributes specific to the automation type.
|
String |
webhookUrl
If trigger is `webhook`, this is the URL of the webhook to trigger the Automation.
|
| Constructor and Description |
|---|
Automation() |
Automation(HashMap<String,Object> parameters) |
Automation(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
| Modifier and Type | Method and Description |
|---|---|
static ListIterator<Automation> |
all() |
static ListIterator<Automation> |
all(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static Automation |
create(HashMap<String,Object> parameters)
Parameters:
source - string - Source path/glob.
|
static Automation |
create(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
void |
delete() |
static void |
delete(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static void |
delete(Long id,
HashMap<String,Object> parameters) |
static void |
delete(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static void |
destroy() |
void |
destroy(HashMap<String,Object> parameters) |
static void |
destroy(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static Automation |
find(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static Automation |
find(Long id,
HashMap<String,Object> parameters)
Parameters:
id (required) - int64 - Automation ID.
|
static Automation |
find(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static Automation |
get() |
static Automation |
get(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static ListIterator<Automation> |
list()
Parameters:
cursor - string - Used for pagination.
|
static ListIterator<Automation> |
list(HashMap<String,Object> parameters) |
static ListIterator<Automation> |
list(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
void |
manualRun()
Manually Run Automation
|
static void |
manualRun(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static void |
manualRun(Long id,
HashMap<String,Object> parameters)
Manually Run Automation
|
static void |
manualRun(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
void |
save() |
Automation |
update()
Parameters:
source - string - Source path/glob.
|
static Automation |
update(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static Automation |
update(Long id,
HashMap<String,Object> parameters)
Parameters:
source - string - Source path/glob.
|
static Automation |
update(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetOptionspublic Long id
public Boolean alwaysOverwriteSizeMatchingFiles
public String automation
public Boolean deleted
public String description
public String destinationReplaceFrom
public String destinationReplaceTo
public String[] destinations
public Boolean disabled
public String excludePattern
public Boolean flattenDestinationStructure
public Long[] groupIds
public Boolean ignoreLockedFolders
public String interval
public Date lastModifiedAt
public Boolean legacyFolderMatching
public String name
public Boolean overwriteFiles
public String path
public String pathTimeZone
public Long recurringDay
public Map<String,String> schedule
public String humanReadableSchedule
public Long[] scheduleDaysOfWeek
public String[] scheduleTimesOfDay
public String scheduleTimeZone
public String source
public Long[] syncIds
public String[] triggerActions
public String trigger
public Long userId
public Long[] userIds
public String webhookUrl
public void manualRun()
throws IOException
IOExceptionpublic Automation update() throws IOException
IOExceptionpublic void delete()
throws IOException
IOExceptionpublic void destroy(HashMap<String,Object> parameters) throws IOException
IOExceptionpublic void save()
throws IOException
IOExceptionpublic static ListIterator<Automation> list() throws RuntimeException
RuntimeExceptionpublic static ListIterator<Automation> list(HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static ListIterator<Automation> list(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static ListIterator<Automation> all() throws RuntimeException
RuntimeExceptionpublic static ListIterator<Automation> all(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Automation find(Long id, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static Automation find(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Automation find(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Automation get() throws RuntimeException
RuntimeExceptionpublic static Automation get(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Automation create(HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static Automation create(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void manualRun(Long id, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static void manualRun(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void manualRun(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Automation update(Long id, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static Automation update(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Automation update(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void delete(Long id, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static void delete(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void delete(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void destroy()
throws RuntimeException
RuntimeExceptionpublic static void destroy(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionCopyright © 2024 com.github.files-com. All rights reserved.