Interface PlacementPoliciesClient
-
public interface PlacementPoliciesClient
An instance of this class provides access to all the operations defined in PlacementPoliciesClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.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.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.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.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.PlacementPolicyInner
createOrUpdate(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, PlacementPolicyInner placementPolicy)
Create or update a placement policy in a private cloud cluster.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.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.PlacementPolicyInner
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(String resourceGroupName, String privateCloudName, String clusterName)
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.PlacementPolicyInner
update(String resourceGroupName, String privateCloudName, String clusterName, String placementPolicyName, PlacementPolicyUpdate placementPolicyUpdate)
Update a placement policy in a private cloud cluster.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.
-
-
-
Method Detail
-
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.
- 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.
- 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.
-
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.
- 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:
- 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:
- 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:
- 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:
- 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 completion.
- 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 completion.
- 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.
-
-