public class Secret extends XenAPIObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Secret.Record
Represents all the fields in a Secret
|
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
ref
The XenAPI reference to this object.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public java.lang.String toWireString()
toWireString in class XenAPIObjectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic Secret.Record getRecord(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Secret getByUuid(Connection c, java.lang.String uuid) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid - UUID of object to returnTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Task createAsync(Connection c, Secret.Record record) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
record - All constructor argumentsTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static Secret create(Connection c, Secret.Record record) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
record - All constructor argumentsTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic Task destroyAsync(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void destroy(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.String getUuid(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic java.lang.String getValue(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic void setValue(Connection c, java.lang.String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value - New value to setTypes.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static java.util.Set<Secret> getAll(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcExceptionpublic static java.util.Map<Secret,Secret.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponseTypes.XenAPIExceptionorg.apache.xmlrpc.XmlRpcException