Interface ResourceSyncRulesClient


public interface ResourceSyncRulesClient
An instance of this class provides access to all the operations defined in ResourceSyncRulesClient.
  • Method Details

    • listByCustomLocationId

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

      ResourceSyncRuleInner 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<ResourceSyncRuleInner> 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ResourceSyncRuleInner>,ResourceSyncRuleInner> beginCreateOrUpdate(String resourceGroupName, String resourceName, String childResourceName, ResourceSyncRuleInner parameters)
      Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      resourceName - Custom Locations name.
      childResourceName - Resource Sync Rule name.
      parameters - Parameters supplied to create or update a Resource Sync Rule.
      Returns:
      the SyncPoller for polling of resource Sync Rules definition.
      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<ResourceSyncRuleInner>,ResourceSyncRuleInner> beginCreateOrUpdate(String resourceGroupName, String resourceName, String childResourceName, ResourceSyncRuleInner parameters, com.azure.core.util.Context context)
      Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      resourceName - Custom Locations name.
      childResourceName - Resource Sync Rule name.
      parameters - Parameters supplied to create or update a Resource Sync Rule.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of resource Sync Rules definition.
      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

      ResourceSyncRuleInner createOrUpdate(String resourceGroupName, String resourceName, String childResourceName, ResourceSyncRuleInner parameters)
      Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      resourceName - Custom Locations name.
      childResourceName - Resource Sync Rule name.
      parameters - Parameters supplied to create or update a Resource Sync Rule.
      Returns:
      resource Sync Rules definition.
      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

      ResourceSyncRuleInner createOrUpdate(String resourceGroupName, String resourceName, String childResourceName, ResourceSyncRuleInner parameters, com.azure.core.util.Context context)
      Creates or updates a Resource Sync Rule in the parent Custom Location, Subscription Id and Resource Group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      resourceName - Custom Locations name.
      childResourceName - Resource Sync Rule name.
      parameters - Parameters supplied to create or update a Resource Sync Rule.
      context - The context to associate with this operation.
      Returns:
      resource Sync Rules definition.
      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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ResourceSyncRuleInner>,ResourceSyncRuleInner> beginUpdate(String resourceGroupName, String resourceName, String childResourceName, PatchableResourceSyncRule parameters)
      Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and Custom Location name.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      resourceName - Custom Locations name.
      childResourceName - Resource Sync Rule name.
      parameters - The updatable fields of an existing Resource Sync Rule.
      Returns:
      the SyncPoller for polling of resource Sync Rules definition.
      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<ResourceSyncRuleInner>,ResourceSyncRuleInner> beginUpdate(String resourceGroupName, String resourceName, String childResourceName, PatchableResourceSyncRule parameters, com.azure.core.util.Context context)
      Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and Custom Location name.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      resourceName - Custom Locations name.
      childResourceName - Resource Sync Rule name.
      parameters - The updatable fields of an existing Resource Sync Rule.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of resource Sync Rules definition.
      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

      ResourceSyncRuleInner update(String resourceGroupName, String resourceName, String childResourceName, PatchableResourceSyncRule parameters)
      Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and Custom Location name.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      resourceName - Custom Locations name.
      childResourceName - Resource Sync Rule name.
      parameters - The updatable fields of an existing Resource Sync Rule.
      Returns:
      resource Sync Rules definition.
      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

      ResourceSyncRuleInner update(String resourceGroupName, String resourceName, String childResourceName, PatchableResourceSyncRule parameters, com.azure.core.util.Context context)
      Updates a Resource Sync Rule with the specified Resource Sync Rule name in the specified Resource Group, Subscription and Custom Location name.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      resourceName - Custom Locations name.
      childResourceName - Resource Sync Rule name.
      parameters - The updatable fields of an existing Resource Sync Rule.
      context - The context to associate with this operation.
      Returns:
      resource Sync Rules definition.
      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.