Interface VirtualNetworkPeeringsClient


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

    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName)
      Deletes the specified virtual network peering.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the virtual network peering.
      Returns:
      the Response on successful completion of Mono.
      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.
    • beginDeleteAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName)
      Deletes the specified virtual network peering.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the virtual network peering.
      Returns:
      the PollerFlux 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 virtualNetworkName, String virtualNetworkPeeringName)
      Deletes the specified virtual network peering.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the virtual network peering.
      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 virtualNetworkName, String virtualNetworkPeeringName, com.azure.core.util.Context context)
      Deletes the specified virtual network peering.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the virtual network peering.
      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.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName)
      Deletes the specified virtual network peering.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the virtual network peering.
      Returns:
      A Mono that completes when a successful response is received.
      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 virtualNetworkName, String virtualNetworkPeeringName)
      Deletes the specified virtual network peering.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the virtual network peering.
      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 virtualNetworkName, String virtualNetworkPeeringName, com.azure.core.util.Context context)
      Deletes the specified virtual network peering.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the virtual network peering.
      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.
    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<VirtualNetworkPeeringInner>> getWithResponseAsync(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName)
      Gets the specified virtual network peering.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the virtual network peering.
      Returns:
      the specified virtual network peering along with Response on successful completion of Mono.
      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.
    • getAsync

      Mono<VirtualNetworkPeeringInner> getAsync(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName)
      Gets the specified virtual network peering.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the virtual network peering.
      Returns:
      the specified virtual network peering on successful completion of Mono.
      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<VirtualNetworkPeeringInner> getWithResponse(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName, com.azure.core.util.Context context)
      Gets the specified virtual network peering.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the virtual network peering.
      context - The context to associate with this operation.
      Returns:
      the specified virtual network peering 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

      VirtualNetworkPeeringInner get(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName)
      Gets the specified virtual network peering.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the virtual network peering.
      Returns:
      the specified virtual network peering.
      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.
    • createOrUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters, SyncRemoteAddressSpace syncRemoteAddressSpace)
      Creates or updates a peering in the specified virtual network.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the peering.
      virtualNetworkPeeringParameters - Parameters supplied to the create or update virtual network peering operation.
      syncRemoteAddressSpace - Parameter indicates the intention to sync the peering with the current address space on the remote vNet after it's updated.
      Returns:
      peerings in a virtual network resource along with Response on successful completion of Mono.
      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.
    • beginCreateOrUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualNetworkPeeringInner>,VirtualNetworkPeeringInner> beginCreateOrUpdateAsync(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters, SyncRemoteAddressSpace syncRemoteAddressSpace)
      Creates or updates a peering in the specified virtual network.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the peering.
      virtualNetworkPeeringParameters - Parameters supplied to the create or update virtual network peering operation.
      syncRemoteAddressSpace - Parameter indicates the intention to sync the peering with the current address space on the remote vNet after it's updated.
      Returns:
      the PollerFlux for polling of peerings in a virtual network resource.
      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.
    • beginCreateOrUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<VirtualNetworkPeeringInner>,VirtualNetworkPeeringInner> beginCreateOrUpdateAsync(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters)
      Creates or updates a peering in the specified virtual network.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the peering.
      virtualNetworkPeeringParameters - Parameters supplied to the create or update virtual network peering operation.
      Returns:
      the PollerFlux for polling of peerings in a virtual network resource.
      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<VirtualNetworkPeeringInner>,VirtualNetworkPeeringInner> beginCreateOrUpdate(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters)
      Creates or updates a peering in the specified virtual network.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the peering.
      virtualNetworkPeeringParameters - Parameters supplied to the create or update virtual network peering operation.
      Returns:
      the SyncPoller for polling of peerings in a virtual network resource.
      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<VirtualNetworkPeeringInner>,VirtualNetworkPeeringInner> beginCreateOrUpdate(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters, SyncRemoteAddressSpace syncRemoteAddressSpace, com.azure.core.util.Context context)
      Creates or updates a peering in the specified virtual network.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the peering.
      virtualNetworkPeeringParameters - Parameters supplied to the create or update virtual network peering operation.
      syncRemoteAddressSpace - Parameter indicates the intention to sync the peering with the current address space on the remote vNet after it's updated.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of peerings in a virtual network resource.
      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.
    • createOrUpdateAsync

      Mono<VirtualNetworkPeeringInner> createOrUpdateAsync(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters, SyncRemoteAddressSpace syncRemoteAddressSpace)
      Creates or updates a peering in the specified virtual network.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the peering.
      virtualNetworkPeeringParameters - Parameters supplied to the create or update virtual network peering operation.
      syncRemoteAddressSpace - Parameter indicates the intention to sync the peering with the current address space on the remote vNet after it's updated.
      Returns:
      peerings in a virtual network resource on successful completion of Mono.
      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.
    • createOrUpdateAsync

      Mono<VirtualNetworkPeeringInner> createOrUpdateAsync(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters)
      Creates or updates a peering in the specified virtual network.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the peering.
      virtualNetworkPeeringParameters - Parameters supplied to the create or update virtual network peering operation.
      Returns:
      peerings in a virtual network resource on successful completion of Mono.
      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

      VirtualNetworkPeeringInner createOrUpdate(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters)
      Creates or updates a peering in the specified virtual network.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the peering.
      virtualNetworkPeeringParameters - Parameters supplied to the create or update virtual network peering operation.
      Returns:
      peerings in a virtual network resource.
      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

      VirtualNetworkPeeringInner createOrUpdate(String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters, SyncRemoteAddressSpace syncRemoteAddressSpace, com.azure.core.util.Context context)
      Creates or updates a peering in the specified virtual network.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      virtualNetworkPeeringName - The name of the peering.
      virtualNetworkPeeringParameters - Parameters supplied to the create or update virtual network peering operation.
      syncRemoteAddressSpace - Parameter indicates the intention to sync the peering with the current address space on the remote vNet after it's updated.
      context - The context to associate with this operation.
      Returns:
      peerings in a virtual network resource.
      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.
    • listAsync

      com.azure.core.http.rest.PagedFlux<VirtualNetworkPeeringInner> listAsync(String resourceGroupName, String virtualNetworkName)
      Gets all virtual network peerings in a virtual network.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      Returns:
      all virtual network peerings in a virtual network as paginated response with PagedFlux.
      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<VirtualNetworkPeeringInner> list(String resourceGroupName, String virtualNetworkName)
      Gets all virtual network peerings in a virtual network.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      Returns:
      all virtual network peerings in a virtual network 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<VirtualNetworkPeeringInner> list(String resourceGroupName, String virtualNetworkName, com.azure.core.util.Context context)
      Gets all virtual network peerings in a virtual network.
      Parameters:
      resourceGroupName - The name of the resource group.
      virtualNetworkName - The name of the virtual network.
      context - The context to associate with this operation.
      Returns:
      all virtual network peerings in a virtual network 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.