com.vmware.vcloud.sdk.admin
Class AdminOrgVdcNetwork

java.lang.Object
  extended by com.vmware.vcloud.sdk.VcloudResource<T>
      extended by com.vmware.vcloud.sdk.VcloudEntity<com.vmware.vcloud.api.rest.schema.OrgVdcNetworkType>
          extended by com.vmware.vcloud.sdk.admin.AdminOrgVdcNetwork

public class AdminOrgVdcNetwork
extends VcloudEntity<com.vmware.vcloud.api.rest.schema.OrgVdcNetworkType>

Helper class for the OrgVdcNetwork Resource in vCloud Admin API.

Since:
API 5.1, SDK 5.1
Author:
Ecosystem Engineering

Method Summary
 Task delete()
          Delete OrgVdcNetwork
static Task delete(VcloudClient client, com.vmware.vcloud.api.rest.schema.ReferenceType adminOrgVdcNetworkRef)
          Delete OrgVdcNetwork
 com.vmware.vcloud.api.rest.schema.ReferenceType getAdminVdcReference()
          Returns the Parent Admin Vdc ReferenceType.
 List<AllocatedIpAddress> getAllocatedAddresses()
          Returns the list of allocated ip address List< AllocatedIpAddress>.
 com.vmware.vcloud.api.rest.schema.NetworkConfigurationType getConfiguration()
          Returns the OrgVdcNetwork Configuration
static AdminOrgVdcNetwork getOrgVdcNetworkById(VcloudClient client, String vCloudId)
          Get Admin Org Network helper using the vCloud ID
static AdminOrgVdcNetwork getOrgVdcNetworkByReference(VcloudClient client, com.vmware.vcloud.api.rest.schema.ReferenceType adminOrgVdcNetworkRef)
          Returns the AdminOrgVdcNetwork By ReferenceType
 Task reset()
          Reset Isolated Admin Organization Vdc Network
static Task reset(VcloudClient client, com.vmware.vcloud.api.rest.schema.ReferenceType adminOrgNetworkReference)
          Reset Isolated Admin Organization Vdc Network
 Task updateOrgVdcNetwork(com.vmware.vcloud.api.rest.schema.OrgVdcNetworkType orgVdcNetworkType)
          Updating the OrgVdcNetwork
 
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
 

Method Detail

getAdminVdcReference

public com.vmware.vcloud.api.rest.schema.ReferenceType getAdminVdcReference()
                                                                     throws VCloudException
Returns the Parent Admin Vdc ReferenceType.

Returns:
ReferenceType
Throws:
VCloudException

getConfiguration

public com.vmware.vcloud.api.rest.schema.NetworkConfigurationType getConfiguration()
Returns the OrgVdcNetwork Configuration

Returns:
NetworkConfigurationType

getOrgVdcNetworkByReference

public static AdminOrgVdcNetwork getOrgVdcNetworkByReference(VcloudClient client,
                                                             com.vmware.vcloud.api.rest.schema.ReferenceType adminOrgVdcNetworkRef)
                                                      throws VCloudException
Returns the AdminOrgVdcNetwork By ReferenceType

Parameters:
client - VcloudClient
adminOrgVdcNetworkRef - ReferenceType
Returns:
AdminOrgVdcNetwork
Throws:
VCloudException

getOrgVdcNetworkById

public static AdminOrgVdcNetwork getOrgVdcNetworkById(VcloudClient client,
                                                      String vCloudId)
                                               throws VCloudException
Get Admin Org Network 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:
AdminOrgVdcNetwork
Throws:
VCloudException

updateOrgVdcNetwork

public Task updateOrgVdcNetwork(com.vmware.vcloud.api.rest.schema.OrgVdcNetworkType orgVdcNetworkType)
                         throws VCloudException
Updating the OrgVdcNetwork

Parameters:
orgVdcNetworkType - OrgVdcNetworkType
Returns:
AdminOrgVdcNetwork
Throws:
VCloudException

delete

public Task delete()
            throws VCloudException
Delete OrgVdcNetwork

Returns:
Task
Throws:
VCloudException

delete

public static Task delete(VcloudClient client,
                          com.vmware.vcloud.api.rest.schema.ReferenceType adminOrgVdcNetworkRef)
                   throws VCloudException
Delete OrgVdcNetwork

Parameters:
client - vCloud Client VcloudClient
adminOrgVdcNetworkRef - AdminOrgVdcNetwork Ref
Returns:
Task
Throws:
VCloudException

getAllocatedAddresses

public List<AllocatedIpAddress> getAllocatedAddresses()
                                               throws VCloudException
Returns the list of allocated ip address List< AllocatedIpAddress>. Multiple invocations of this method returns an updated list.

Returns:
List<AllocatedIpAddress>
Throws:
VCloudException

reset

public Task reset()
           throws VCloudException
Reset Isolated Admin Organization Vdc Network

Returns:
Task
Throws:
VCloudException

reset

public static Task reset(VcloudClient client,
                         com.vmware.vcloud.api.rest.schema.ReferenceType adminOrgNetworkReference)
                  throws VCloudException
Reset Isolated Admin Organization Vdc Network

Parameters:
client - VcloudClient - VcloudClient
adminOrgNetworkReference - - ReferenceType to the Admin Organization Vdc Network.
Returns:
Task
Throws:
VCloudException


Copyright © 2016. All Rights Reserved.