|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xensource.xenapi.XenAPIObject
com.xensource.xenapi.Secret
public class Secret
A secret
Nested Class Summary | |
---|---|
static class |
Secret.Record
Represents all the fields in a Secret |
Field Summary | |
---|---|
protected java.lang.String |
ref
The XenAPI reference to this object. |
Method Summary | |
---|---|
static Secret |
create(Connection c,
Secret.Record record)
Create a new secret instance, and return its handle. |
static Task |
createAsync(Connection c,
Secret.Record record)
Create a new secret instance, and return its handle. |
void |
destroy(Connection c)
Destroy the specified secret instance. |
Task |
destroyAsync(Connection c)
Destroy the specified secret instance. |
boolean |
equals(java.lang.Object obj)
If obj is a Secret, compares XenAPI references for equality. |
static java.util.Set<Secret> |
getAll(Connection c)
Return a list of all the secrets known to the system. |
static java.util.Map<Secret,Secret.Record> |
getAllRecords(Connection c)
Return a map of secret references to secret records for all secrets known to the system. |
static Secret |
getByUuid(Connection c,
java.lang.String uuid)
Get a reference to the secret instance with the specified UUID. |
Secret.Record |
getRecord(Connection c)
Get a record containing the current state of the given secret. |
java.lang.String |
getUuid(Connection c)
Get the uuid field of the given secret. |
java.lang.String |
getValue(Connection c)
Get the value field of the given secret. |
int |
hashCode()
|
void |
setValue(Connection c,
java.lang.String value)
Set the value field of the given secret. |
java.lang.String |
toWireString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String ref
Method Detail |
---|
public java.lang.String toWireString()
toWireString
in class XenAPIObject
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Secret.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Secret getByUuid(Connection c, java.lang.String uuid) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid
- UUID of object to return
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Task createAsync(Connection c, Secret.Record record) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
record
- All constructor arguments
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Secret create(Connection c, Secret.Record record) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
record
- All constructor arguments
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public Task destroyAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void destroy(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.String getUuid(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public java.lang.String getValue(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public void setValue(Connection c, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- New value to set
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static java.util.Set<Secret> getAll(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static java.util.Map<Secret,Secret.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |