Interface ResourceSyncRules


public interface ResourceSyncRules
Resource collection API of ResourceSyncRules.
  • Method Summary

    Modifier and Type
    Method
    Description
    define(String name)
    Begins definition for a new ResourceSyncRule resource.
    void
    delete(String resourceGroupName, String resourceName, String childResourceName)
    Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource Name, Resource Group, and Subscription Id.
    void
    Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource Name, Resource Group, and Subscription Id.
    com.azure.core.http.rest.Response<Void>
    deleteByIdWithResponse(String id, com.azure.core.util.Context context)
    Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource Name, Resource Group, and Subscription Id.
    com.azure.core.http.rest.Response<Void>
    deleteWithResponse(String resourceGroupName, String resourceName, String childResourceName, com.azure.core.util.Context context)
    Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource Name, Resource Group, and Subscription Id.
    get(String resourceGroupName, String resourceName, String childResourceName)
    Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom Location resource name and Resource Sync Rule name.
    Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom Location resource name and Resource Sync Rule name.
    com.azure.core.http.rest.Response<ResourceSyncRule>
    getByIdWithResponse(String id, com.azure.core.util.Context context)
    Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom Location resource name and Resource Sync Rule name.
    com.azure.core.http.rest.Response<ResourceSyncRule>
    getWithResponse(String resourceGroupName, String resourceName, String childResourceName, com.azure.core.util.Context context)
    Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom Location resource name and Resource Sync Rule name.
    com.azure.core.http.rest.PagedIterable<ResourceSyncRule>
    listByCustomLocationId(String resourceGroupName, String resourceName)
    Gets a list of Resource Sync Rules in the specified subscription.
    com.azure.core.http.rest.PagedIterable<ResourceSyncRule>
    listByCustomLocationId(String resourceGroupName, String resourceName, com.azure.core.util.Context context)
    Gets a list of Resource Sync Rules in the specified subscription.
  • Method Details

    • listByCustomLocationId

      com.azure.core.http.rest.PagedIterable<ResourceSyncRule> listByCustomLocationId(String resourceGroupName, String resourceName)
      Gets a list of Resource Sync Rules in the specified subscription. The operation returns properties of each Resource Sync Rule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      resourceName - Custom Locations name.
      Returns:
      a list of Resource Sync Rules in the specified subscription 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.
    • listByCustomLocationId

      com.azure.core.http.rest.PagedIterable<ResourceSyncRule> listByCustomLocationId(String resourceGroupName, String resourceName, com.azure.core.util.Context context)
      Gets a list of Resource Sync Rules in the specified subscription. The operation returns properties of each Resource Sync Rule.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      resourceName - Custom Locations name.
      context - The context to associate with this operation.
      Returns:
      a list of Resource Sync Rules in the specified subscription 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.
    • get

      ResourceSyncRule get(String resourceGroupName, String resourceName, String childResourceName)
      Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom Location resource name and Resource Sync Rule name.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      resourceName - Custom Locations name.
      childResourceName - Resource Sync Rule name.
      Returns:
      the details of the resourceSyncRule with a specified resource group, subscription id Custom Location resource name and Resource Sync Rule name.
      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<ResourceSyncRule> getWithResponse(String resourceGroupName, String resourceName, String childResourceName, com.azure.core.util.Context context)
      Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom Location resource name and Resource Sync Rule name.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      resourceName - Custom Locations name.
      childResourceName - Resource Sync Rule name.
      context - The context to associate with this operation.
      Returns:
      the details of the resourceSyncRule with a specified resource group, subscription id Custom Location resource name and Resource Sync Rule name 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.
    • delete

      void delete(String resourceGroupName, String resourceName, String childResourceName)
      Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource Name, Resource Group, and Subscription Id.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      resourceName - Custom Locations name.
      childResourceName - Resource Sync Rule name.
      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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String resourceName, String childResourceName, com.azure.core.util.Context context)
      Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource Name, Resource Group, and Subscription Id.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      resourceName - Custom Locations name.
      childResourceName - Resource Sync Rule name.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • getById

      ResourceSyncRule getById(String id)
      Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom Location resource name and Resource Sync Rule name.
      Parameters:
      id - the resource ID.
      Returns:
      the details of the resourceSyncRule with a specified resource group, subscription id Custom Location resource name and Resource Sync Rule name 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<ResourceSyncRule> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets the details of the resourceSyncRule with a specified resource group, subscription id Custom Location resource name and Resource Sync Rule name.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the details of the resourceSyncRule with a specified resource group, subscription id Custom Location resource name and Resource Sync Rule name 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)
      Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource Name, Resource Group, and Subscription Id.
      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

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Deletes the Resource Sync Rule with the specified Resource Sync Rule Name, Custom Location Resource Name, Resource Group, and Subscription Id.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • define

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