public class ProtectionSystems extends AbstractCoreBulkResources<ProtectionSystemRestRep> implements TopLevelResources<ProtectionSystemRestRep>, TaskResources<ProtectionSystemRestRep>
Base URL: /vdc/protection-systems
| Constructor and Description | 
|---|
ProtectionSystems(ViPRCoreClient parent,
                 RestClient client)  | 
| Modifier and Type | Method and Description | 
|---|---|
Task<ProtectionSystemRestRep> | 
create(ProtectionSystemRequestParam input)
Begins creating a protection system. 
 | 
void | 
deactivate(java.net.URI id)
Deactivates a protection system. 
 | 
Task<ProtectionSystemRestRep> | 
discover(java.net.URI id)
Begins discovery on the given protection system by ID. 
 | 
Task<ProtectionSystemRestRep> | 
discover(java.net.URI id,
        java.lang.String type)
Begins discovery on the given protection system 
 | 
Tasks<ProtectionSystemRestRep> | 
discoverAll()
Begins discovery on all protection systems. 
 | 
java.util.List<ProtectionSystemRestRep> | 
getAll()
Get all protection systems. 
 | 
java.util.List<ProtectionSystemRestRep> | 
getAll(ResourceFilter<ProtectionSystemRestRep> filter)
Get all protection systems, optionally filtering the results.. 
 | 
ProtectionSystemConnectivityRestRep | 
getConnectivity(java.net.URI id)
Gets the protection system connectivity for the given protection system. 
 | 
Task<ProtectionSystemRestRep> | 
getTask(java.net.URI id,
       java.net.URI taskId)
Gets a single task associated with a given resource by ID. 
 | 
Tasks<ProtectionSystemRestRep> | 
getTasks(java.net.URI id)
Gets the tasks associated with a given resource by ID. 
 | 
java.util.List<NamedRelatedResourceRep> | 
list()
Lists all protection systems. 
 | 
Task<ProtectionSystemRestRep> | 
update(java.net.URI id,
      ProtectionSystemUpdateRequestParam input)
Begins updating a protection system by ID. 
 | 
ProtectionSystems | 
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources. 
 | 
ProtectionSystems | 
withInternal(boolean internal)
Configures the fetch operations to include internal resources. 
 | 
getByIds, getByRefs, listBulkIdsaddTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, search, updateTagsequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetByIds, getByRefsaddTags, get, get, getTags, removeTags, search, updateTagspublic ProtectionSystems(ViPRCoreClient parent, RestClient client)
public ProtectionSystems withInactive(boolean inactive)
AbstractResourceswithInactive in class AbstractResources<ProtectionSystemRestRep>inactive - whether to include inactive resources.public ProtectionSystems withInternal(boolean internal)
AbstractResourceswithInternal in class AbstractResources<ProtectionSystemRestRep>internal - whether to include internal resources.public Tasks<ProtectionSystemRestRep> getTasks(java.net.URI id)
TaskResourcesAPI Call: GET baseUrl/{id}/tasks
getTasks in interface TaskResources<ProtectionSystemRestRep>id - the resource ID.public Task<ProtectionSystemRestRep> getTask(java.net.URI id, java.net.URI taskId)
TaskResourcesAPI Call: GET baseUrl/{id}/tasks/{taskId}
getTask in interface TaskResources<ProtectionSystemRestRep>id - the resource ID.taskId - the task ID.public java.util.List<NamedRelatedResourceRep> list()
API Call: GET /vdc/protection-systems
list in interface TopLevelResources<ProtectionSystemRestRep>public java.util.List<ProtectionSystemRestRep> getAll()
getAll in interface TopLevelResources<ProtectionSystemRestRep>TopLevelResources.list(), 
Resources.getByRefs(java.util.Collection)public java.util.List<ProtectionSystemRestRep> getAll(ResourceFilter<ProtectionSystemRestRep> filter)
getAll in interface TopLevelResources<ProtectionSystemRestRep>filter - the resource filter to apply to the results as they are returned (optional).TopLevelResources.list(), 
Resources.getByRefs(java.util.Collection, ResourceFilter)public Task<ProtectionSystemRestRep> create(ProtectionSystemRequestParam input)
API Call: POST /vdc/protection-systems
input - the create configuration.public Task<ProtectionSystemRestRep> update(java.net.URI id, ProtectionSystemUpdateRequestParam input)
API Call: PUT /vdc/protection-systems/{id}
id - the ID of the protection system.input - the update configuration.public void deactivate(java.net.URI id)
API Call: POST /vdc/protection-systems/{id}/deactivate
id - the ID of the protection system.public Tasks<ProtectionSystemRestRep> discoverAll()
API Call: POST /vdc/protection-systems/discover
public Task<ProtectionSystemRestRep> discover(java.net.URI id)
API Call: POST /vdc/protection-systems/{id}/discover
id - the ID of the protection system.public Task<ProtectionSystemRestRep> discover(java.net.URI id, java.lang.String type)
API Call: POST /vdc/protection-systems/{id}/discover
id - the ID of the protection system.type - the type of discovery to perform.public ProtectionSystemConnectivityRestRep getConnectivity(java.net.URI id)
API Call: POST /vdc/protection-systems/{id}/connectivity
id - the ID of the protection system.