Interface PlacementPolicies


public interface PlacementPolicies
Resource collection API of PlacementPolicies.
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<PlacementPolicy> 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<PlacementPolicy> 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<PlacementPolicy> 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

      PlacementPolicy 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.
    • 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.
    • getById

      PlacementPolicy getById(String id)
      Get a placement policy by name in a private cloud cluster.
      Parameters:
      id - the resource ID.
      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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<PlacementPolicy> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Get a placement policy by name in a private cloud cluster.
      Parameters:
      id - the resource ID.
      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.
    • deleteById

      void deleteById(String id)
      Delete a placement policy in a private cloud cluster.
      Parameters:
      id - the resource ID.
      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.
    • deleteByIdWithResponse

      void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Delete a placement policy in a private cloud cluster.
      Parameters:
      id - the resource ID.
      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.
    • define

      Begins definition for a new PlacementPolicy resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new PlacementPolicy definition.