Interface PlacementPoliciesClient
public interface PlacementPoliciesClient
An instance of this class provides access to all the operations defined in PlacementPoliciesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PlacementPolicyInner>,
PlacementPolicyInner> beginCreateOrUpdate
(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, PlacementPolicyInner placementPolicy) Create or update a placement policy in a private cloud cluster.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PlacementPolicyInner>,
PlacementPolicyInner> beginCreateOrUpdate
(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, PlacementPolicyInner placementPolicy, com.azure.core.util.Context context) Create or update a placement policy in a private cloud cluster.beginDelete
(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName) Delete a placement policy in a private cloud cluster.beginDelete
(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, com.azure.core.util.Context context) Delete a placement policy in a private cloud cluster.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PlacementPolicyInner>,
PlacementPolicyInner> beginUpdate
(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, PlacementPolicyUpdate placementPolicyUpdate) Update a placement policy in a private cloud cluster.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PlacementPolicyInner>,
PlacementPolicyInner> beginUpdate
(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, PlacementPolicyUpdate placementPolicyUpdate, com.azure.core.util.Context context) Update a placement policy in a private cloud cluster.createOrUpdate
(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, PlacementPolicyInner placementPolicy) Create or update a placement policy in a private cloud cluster.createOrUpdate
(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, PlacementPolicyInner placementPolicy, com.azure.core.util.Context context) Create or update a placement policy in a private cloud cluster.void
delete
(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName) Delete a placement policy in a private cloud cluster.void
delete
(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, com.azure.core.util.Context context) Delete a placement policy in a private cloud cluster.get
(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName) Get a placement policy by name in a private cloud cluster.com.azure.core.http.rest.Response<PlacementPolicyInner>
getWithResponse
(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, com.azure.core.util.Context context) Get a placement policy by name in a private cloud cluster.com.azure.core.http.rest.PagedIterable<PlacementPolicyInner>
List placement policies in a private cloud cluster.com.azure.core.http.rest.PagedIterable<PlacementPolicyInner>
list
(String resourceGroupName, String privateCloudName, String clusterName, com.azure.core.util.Context context) List placement policies in a private cloud cluster.update
(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, PlacementPolicyUpdate placementPolicyUpdate) Update a placement policy in a private cloud cluster.update
(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, PlacementPolicyUpdate placementPolicyUpdate, com.azure.core.util.Context context) Update a placement policy in a private cloud cluster.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<PlacementPolicyInner> list(String resourceGroupName, String privateCloudName, String clusterName) List placement policies in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.- Returns:
- represents list of placement policies as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<PlacementPolicyInner> list(String resourceGroupName, String privateCloudName, String clusterName, com.azure.core.util.Context context) List placement policies in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.context
- The context to associate with this operation.- Returns:
- represents list of placement policies as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<PlacementPolicyInner> getWithResponse(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, com.azure.core.util.Context context) Get a placement policy by name in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.placementPolicyName
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.context
- The context to associate with this operation.- Returns:
- a placement policy by name in a private cloud cluster along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
PlacementPolicyInner get(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName) Get a placement policy by name in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.placementPolicyName
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.- Returns:
- a placement policy by name in a private cloud cluster.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PlacementPolicyInner>,PlacementPolicyInner> beginCreateOrUpdate(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, PlacementPolicyInner placementPolicy) Create or update a placement policy in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.placementPolicyName
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.placementPolicy
- A placement policy in the private cloud cluster.- Returns:
- the
SyncPoller
for polling of a vSphere Distributed Resource Scheduler (DRS) placement policy. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PlacementPolicyInner>,PlacementPolicyInner> beginCreateOrUpdate(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, PlacementPolicyInner placementPolicy, com.azure.core.util.Context context) Create or update a placement policy in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.placementPolicyName
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.placementPolicy
- A placement policy in the private cloud cluster.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of a vSphere Distributed Resource Scheduler (DRS) placement policy. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
PlacementPolicyInner createOrUpdate(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, PlacementPolicyInner placementPolicy) Create or update a placement policy in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.placementPolicyName
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.placementPolicy
- A placement policy in the private cloud cluster.- Returns:
- a vSphere Distributed Resource Scheduler (DRS) placement policy.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
PlacementPolicyInner createOrUpdate(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, PlacementPolicyInner placementPolicy, com.azure.core.util.Context context) Create or update a placement policy in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.placementPolicyName
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.placementPolicy
- A placement policy in the private cloud cluster.context
- The context to associate with this operation.- Returns:
- a vSphere Distributed Resource Scheduler (DRS) placement policy.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PlacementPolicyInner>,PlacementPolicyInner> beginUpdate(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, PlacementPolicyUpdate placementPolicyUpdate) Update a placement policy in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.placementPolicyName
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.placementPolicyUpdate
- The placement policy properties that may be updated.- Returns:
- the
SyncPoller
for polling of a vSphere Distributed Resource Scheduler (DRS) placement policy. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PlacementPolicyInner>,PlacementPolicyInner> beginUpdate(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, PlacementPolicyUpdate placementPolicyUpdate, com.azure.core.util.Context context) Update a placement policy in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.placementPolicyName
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.placementPolicyUpdate
- The placement policy properties that may be updated.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of a vSphere Distributed Resource Scheduler (DRS) placement policy. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
PlacementPolicyInner update(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, PlacementPolicyUpdate placementPolicyUpdate) Update a placement policy in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.placementPolicyName
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.placementPolicyUpdate
- The placement policy properties that may be updated.- Returns:
- a vSphere Distributed Resource Scheduler (DRS) placement policy.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
PlacementPolicyInner update(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, PlacementPolicyUpdate placementPolicyUpdate, com.azure.core.util.Context context) Update a placement policy in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.placementPolicyName
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.placementPolicyUpdate
- The placement policy properties that may be updated.context
- The context to associate with this operation.- Returns:
- a vSphere Distributed Resource Scheduler (DRS) placement policy.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName) Delete a placement policy in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.placementPolicyName
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, com.azure.core.util.Context context) Delete a placement policy in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.placementPolicyName
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName) Delete a placement policy in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.placementPolicyName
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, com.azure.core.util.Context context) Delete a placement policy in a private cloud cluster.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.privateCloudName
- Name of the private cloud.clusterName
- Name of the cluster in the private cloud.placementPolicyName
- Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-