public class Snapshot extends Object implements ModelInterface
| Modifier and Type | Field and Description |
|---|---|
Long |
bundleId
The bundle using this snapshot, if applicable.
|
Date |
expiresAt
When the snapshot expires.
|
Date |
finalizedAt
When the snapshot was finalized.
|
Long |
id
The snapshot's unique ID.
|
String |
name
A name for the snapshot.
|
String[] |
paths
An array of paths to add to the snapshot.
|
Long |
userId
The user that created this snapshot, if applicable.
|
| Constructor and Description |
|---|
Snapshot() |
Snapshot(HashMap<String,Object> parameters) |
Snapshot(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
| Modifier and Type | Method and Description |
|---|---|
static ListIterator<Snapshot> |
all() |
static ListIterator<Snapshot> |
all(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static Snapshot |
create(HashMap<String,Object> parameters)
Parameters:
expires_at - string - When the snapshot expires.
|
static Snapshot |
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 Snapshot |
find(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static Snapshot |
find(Long id,
HashMap<String,Object> parameters)
Parameters:
id (required) - int64 - Snapshot ID.
|
static Snapshot |
find(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static Snapshot |
get() |
static Snapshot |
get(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static ListIterator<Snapshot> |
list()
Parameters:
cursor - string - Used for pagination.
|
static ListIterator<Snapshot> |
list(HashMap<String,Object> parameters) |
static ListIterator<Snapshot> |
list(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
void |
performFinalize()
Finalize Snapshot
|
static void |
performFinalize(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static void |
performFinalize(Long id,
HashMap<String,Object> parameters)
Finalize Snapshot
|
static void |
performFinalize(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
void |
save() |
Snapshot |
update()
Parameters:
expires_at - string - When the snapshot expires.
|
static Snapshot |
update(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static Snapshot |
update(Long id,
HashMap<String,Object> parameters)
Parameters:
expires_at - string - When the snapshot expires.
|
static Snapshot |
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 Date expiresAt
public Date finalizedAt
public String name
public Long userId
public Long bundleId
public String[] paths
public void performFinalize()
throws IOException
IOExceptionpublic Snapshot 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<Snapshot> list() throws RuntimeException
RuntimeExceptionpublic static ListIterator<Snapshot> list(HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static ListIterator<Snapshot> list(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static ListIterator<Snapshot> all() throws RuntimeException
RuntimeExceptionpublic static ListIterator<Snapshot> all(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Snapshot find(Long id, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static Snapshot find(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Snapshot find(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Snapshot get() throws RuntimeException
RuntimeExceptionpublic static Snapshot get(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Snapshot create(HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static Snapshot create(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void performFinalize(Long id, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static void performFinalize(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void performFinalize(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Snapshot update(Long id, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static Snapshot update(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Snapshot 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.