Revision d2e0774d lib/rapi/rlib2.py
b/lib/rapi/rlib2.py | ||
---|---|---|
1332 | 1332 |
}) |
1333 | 1333 |
|
1334 | 1334 |
|
1335 |
class R_2_instances_name_snapshot(baserlib.OpcodeResource): |
|
1336 |
"""/2/instances/[instance_name]/snapshot resource. |
|
1337 |
|
|
1338 |
Implements an instance snapshot. |
|
1339 |
|
|
1340 |
""" |
|
1341 |
PUT_OPCODE = opcodes.OpInstanceSnapshot |
|
1342 |
|
|
1343 |
def GetPutOpInput(self): |
|
1344 |
"""Snapshot disks of an instance. |
|
1345 |
|
|
1346 |
""" |
|
1347 |
return (self.request_body, { |
|
1348 |
"instance_name": self.items[0], |
|
1349 |
"dry_run": self.dryRun(), |
|
1350 |
}) |
|
1351 |
|
|
1352 |
|
|
1335 | 1353 |
class R_2_instances_name_disk_grow(baserlib.OpcodeResource): |
1336 | 1354 |
"""/2/instances/[instance_name]/disk/[disk_index]/grow resource. |
1337 | 1355 |
|
Also available in: Unified diff