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 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(Object obj)
If obj is a Secret, compares XenAPI references for equality.
|
static Set<Secret> |
getAll(Connection c)
Return a list of all the secrets known to the system.
|
static 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,
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.
|
String |
getUuid(Connection c)
Get the uuid field of the given secret.
|
String |
getValue(Connection c)
Get the value field of the given secret.
|
int |
hashCode() |
void |
setValue(Connection c,
String value)
Set the value field of the given secret.
|
String |
toWireString() |
protected final String ref
public String toWireString()
toWireString
in class XenAPIObject
public boolean equals(Object obj)
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, String uuid) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
uuid
- UUID of object to returnTypes.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 argumentsTypes.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 argumentsTypes.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 String getUuid(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public 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, String value) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
value
- New value to setTypes.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Set<Secret> getAll(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException
public static Map<Secret,Secret.Record> getAllRecords(Connection c) throws Types.BadServerResponse, Types.XenAPIException, org.apache.xmlrpc.XmlRpcException
Types.BadServerResponse
Types.XenAPIException
org.apache.xmlrpc.XmlRpcException