Class NeutronResourceTagServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.networking.internal.NeutronResourceTagServiceImpl
-
- All Implemented Interfaces:
NeutronResourceTagService,RestService
public class NeutronResourceTagServiceImpl extends BaseNetworkingServices implements NeutronResourceTagService
Allows users to set (Neutron) Resource tags on their resources.- Author:
- bboyHan
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description NeutronResourceTagServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionResponseaddSingle(Resource resource, String securityGroupId, String tag)Add tag to the resource.ActionResponsecheck(Resource resource, String resourceId, String tag)Confirms a given tag is set on the resource.ActionResponsedelete(Resource resource, String securityGroupId, String tag)Delete tag from the resource.ActionResponsedeleteAll(Resource resource, String securityGroupId)Remove all tags from the resourceNeutronResourceTaglist(Resource resource, String securityGroupId)Obtains the (Neutron) resource tags for a resource.NeutronResourceTagreplace(Resource resource, String securityGroupId, NeutronResourceTag tags)reset all tags from the resource-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
check
public ActionResponse check(Resource resource, String resourceId, String tag)
Description copied from interface:NeutronResourceTagServiceConfirms a given tag is set on the resource.- Specified by:
checkin interfaceNeutronResourceTagService- Parameters:
resource- resource typeresourceId- resource idtag- tag- Returns:
- the ActionResponse
-
list
public NeutronResourceTag list(Resource resource, String securityGroupId)
Obtains the (Neutron) resource tags for a resource.- Specified by:
listin interfaceNeutronResourceTagService- Parameters:
resource- resource typesecurityGroupId- resource id- Returns:
- the NeutronResourceTag
-
addSingle
public ActionResponse addSingle(Resource resource, String securityGroupId, String tag)
Add tag to the resource.- Specified by:
addSinglein interfaceNeutronResourceTagServicesecurityGroupId- resource idtag- tag- Returns:
- the ActionResponse
-
replace
public NeutronResourceTag replace(Resource resource, String securityGroupId, NeutronResourceTag tags)
reset all tags from the resource- Specified by:
replacein interfaceNeutronResourceTagServicesecurityGroupId- resource idtags- tags- Returns:
- the NeutronResourceTag
-
delete
public ActionResponse delete(Resource resource, String securityGroupId, String tag)
Delete tag from the resource.- Specified by:
deletein interfaceNeutronResourceTagServicesecurityGroupId- resource idtag- tag- Returns:
- the ActionResponse
-
deleteAll
public ActionResponse deleteAll(Resource resource, String securityGroupId)
Remove all tags from the resource- Specified by:
deleteAllin interfaceNeutronResourceTagServicesecurityGroupId- resource id- Returns:
- the ActionResponse
-
-