Package ganeti :: Package rapi :: Module rlib2 :: Class R_2_query
[hide private]
[frames] | no frames]

Class R_2_query

source code


/2/query/[resource] resource.

Nested Classes [hide private]
  GET_OPCODE
Query for resources/items.
  PUT_OPCODE
Query for resources/items.
Instance Methods [hide private]
 
_Query(self, fields, qfilter) source code
 
GET(self)
Returns resource information.
source code
 
PUT(self)
Submits job querying for resources.
source code

Inherited from baserlib.ResourceBase: GetAuthReason, GetClient, SubmitJob, __init__, dryRun, getBodyParameter, useBulk, useForce, useLocking

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  GET_ACCESS = [rapi.RAPI_ACCESS_WRITE, rapi.RAPI_ACCESS_READ]
  PUT_ACCESS = [rapi.RAPI_ACCESS_WRITE, rapi.RAPI_ACCESS_READ]

Inherited from baserlib.ResourceBase: DELETE_ACCESS, POST_ACCESS, request_body

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

GET(self)

source code 

Returns resource information.

Returns:
Query result, see objects.QueryResponse

PUT(self)

source code 

Submits job querying for resources.

Returns:
Query result, see objects.QueryResponse