com.vmware.vcloud.sdk.admin.extensions.service
Class AdminAclRule

java.lang.Object
  extended by com.vmware.vcloud.sdk.VcloudResource<T>
      extended by com.vmware.vcloud.sdk.VcloudEntity<com.vmware.vcloud.api.rest.schema.extension.AclRuleType>
          extended by com.vmware.vcloud.sdk.admin.extensions.service.AdminAclRule

public class AdminAclRule
extends VcloudEntity<com.vmware.vcloud.api.rest.schema.extension.AclRuleType>

Helper class for the acl rule in vCloud Extension Service API.

Since:
API 5.1, SDK 5.1
Author:
Ecosystem Engineering

Constructor Summary
AdminAclRule(VcloudClient client, com.vmware.vcloud.api.rest.schema.extension.AclRuleType aclRuleParams)
          Default access constructor for creating a acl rule helper class
 
Method Summary
 void delete()
          Delete the acl rule
static AdminAclRule getAdminAclRuleById(VcloudClient client, String vCloudId)
          Get acl rule helper using the vCloud ID
static AdminAclRule getAdminAclRuleByReference(VcloudClient client, com.vmware.vcloud.api.rest.schema.ReferenceType reference)
          Returns the acl rule Helper for the given acl rule reference
 com.vmware.vcloud.api.rest.schema.ReferenceType getAdminResourceClassActionReference()
          Returns the resource class action reference.
 
Methods inherited from class com.vmware.vcloud.sdk.VcloudEntity
getMetadata, getReference, getTasks
 
Methods inherited from class com.vmware.vcloud.sdk.VcloudResource
getResource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminAclRule

public AdminAclRule(VcloudClient client,
                    com.vmware.vcloud.api.rest.schema.extension.AclRuleType aclRuleParams)
Default access constructor for creating a acl rule helper class

Parameters:
client -
aclRuleParams - AclRuleType
Method Detail

getAdminAclRuleByReference

public static AdminAclRule getAdminAclRuleByReference(VcloudClient client,
                                                      com.vmware.vcloud.api.rest.schema.ReferenceType reference)
                                               throws VCloudException
Returns the acl rule Helper for the given acl rule reference

Parameters:
client -
reference -
Returns:
AdminAclRule
Throws:
VCloudException

getAdminAclRuleById

public static AdminAclRule getAdminAclRuleById(VcloudClient client,
                                               String vCloudId)
                                        throws VCloudException
Get acl rule helper using the vCloud ID

Parameters:
client - VcloudClient
vCloudId - format - The vCloud ID is of the form: "urn:vcloud:type:uuid". For example: "urn:vcloud:media:d9d976ba-e0ec-4682-a67d-380af49b54e1". String
Returns:
AdminApiDefinition
Throws:
VCloudException

delete

public void delete()
            throws VCloudException
Delete the acl rule

Throws:
VCloudException

getAdminResourceClassActionReference

public com.vmware.vcloud.api.rest.schema.ReferenceType getAdminResourceClassActionReference()
                                                                                     throws VCloudException
Returns the resource class action reference.

Returns:
ReferenceType
Throws:
VCloudException


Copyright © 2016. All Rights Reserved.