class documentation
class ResourceBase(object):
Known subclasses: ganeti.rapi.baserlib.OpcodeResource, ganeti.rapi.rlib2.R_2_features, ganeti.rapi.rlib2.R_2_filters, ganeti.rapi.rlib2.R_2_filters_uuid, ganeti.rapi.rlib2.R_2_instances_name_console, ganeti.rapi.rlib2.R_2_jobs, ganeti.rapi.rlib2.R_2_jobs_id, ganeti.rapi.rlib2.R_2_jobs_id_wait, ganeti.rapi.rlib2.R_2_query, ganeti.rapi.rlib2.R_2_query_fields, ganeti.rapi.rlib2.R_root, ganeti.rapi.rlib2.R_version
Generic class for resources.
| Method | __init__ |
Generic resource constructor. |
| Method | dry |
Check if the request specifies dry-run mode. |
| Method | get |
Check and return the value for a given parameter. |
| Method | |
Wrapper for luxi.Client with HTTP-specific error handling. |
| Method | |
Generic wrapper for submit job, for better http compatibility. |
| Method | use |
Check if the request specifies bulk querying. |
| Method | use |
Check if the request specifies a forced operation. |
| Method | use |
Check if the request specifies locking. |
| Constant | DELETE |
Undocumented |
| Constant | GET |
Undocumented |
| Constant | POST |
Undocumented |
| Constant | PUT |
Undocumented |
| Class Variable | request |
Undocumented |
| Instance Variable | items |
Undocumented |
| Instance Variable | queryargs |
Undocumented |
| Method | _check |
Return the parsed value of an int argument. |
| Method | _check |
Return the parsed value of a string argument. |
| Method | _ |
Returns the body data. |
| Instance Variable | _client |
Undocumented |
| Instance Variable | _req |
Undocumented |
overridden in
ganeti.rapi.rlib2._R_TagsGeneric resource constructor.
| Parameters | |
| items | a list with variables encoded in the URL |
| queryargs | a dictionary with additional options from URL |
| req | Request context |
| _client | luxi client class (unittests only) |
Check and return the value for a given parameter.
If a second parameter is not given, an error will be returned, otherwise this parameter specifies the default value.
| Parameters | |
| name | the required parameter |
| *args | Undocumented |
Generic wrapper for submit job, for better http compatibility.
| Parameters | |
| op:list | the list of opcodes for the job |
| cl:None or luxi.Client | optional luxi client to use |
| Returns | |
| string | the job ID |
overridden in
ganeti.rapi.rlib2.R_2_instances_name_console, ganeti.rapi.rlib2.R_2_jobs_id_wait, ganeti.rapi.rlib2.R_2_nodes_name_storage, ganeti.rapi.rlib2.R_2_queryUndocumented
| Value |
|