Interface RegisteredPrefixesClient
public interface RegisteredPrefixesClient
An instance of this class provides access to all the operations defined in RegisteredPrefixesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate(String resourceGroupName, String peeringName, String registeredPrefixName, PeeringRegisteredPrefixInner registeredPrefix) Creates a new registered prefix with the specified name under the given subscription, resource group and peering.com.azure.core.http.rest.Response<PeeringRegisteredPrefixInner> createOrUpdateWithResponse(String resourceGroupName, String peeringName, String registeredPrefixName, PeeringRegisteredPrefixInner registeredPrefix, com.azure.core.util.Context context) Creates a new registered prefix with the specified name under the given subscription, resource group and peering.voidDeletes an existing registered prefix with the specified name under the given subscription, resource group and peering.com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String peeringName, String registeredPrefixName, com.azure.core.util.Context context) Deletes an existing registered prefix with the specified name under the given subscription, resource group and peering.Gets an existing registered prefix with the specified name under the given subscription, resource group and peering.com.azure.core.http.rest.Response<PeeringRegisteredPrefixInner> getWithResponse(String resourceGroupName, String peeringName, String registeredPrefixName, com.azure.core.util.Context context) Gets an existing registered prefix with the specified name under the given subscription, resource group and peering.com.azure.core.http.rest.PagedIterable<PeeringRegisteredPrefixInner> listByPeering(String resourceGroupName, String peeringName) Lists all registered prefixes under the given subscription, resource group and peering.com.azure.core.http.rest.PagedIterable<PeeringRegisteredPrefixInner> listByPeering(String resourceGroupName, String peeringName, com.azure.core.util.Context context) Lists all registered prefixes under the given subscription, resource group and peering.
-
Method Details
-
getWithResponse
com.azure.core.http.rest.Response<PeeringRegisteredPrefixInner> getWithResponse(String resourceGroupName, String peeringName, String registeredPrefixName, com.azure.core.util.Context context) Gets an existing registered prefix with the specified name under the given subscription, resource group and peering.- Parameters:
resourceGroupName- The name of the resource group.peeringName- The name of the peering.registeredPrefixName- The name of the registered prefix.context- The context to associate with this operation.- Returns:
- an existing registered prefix with the specified name under the given subscription, resource group and
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
PeeringRegisteredPrefixInner get(String resourceGroupName, String peeringName, String registeredPrefixName) Gets an existing registered prefix with the specified name under the given subscription, resource group and peering.- Parameters:
resourceGroupName- The name of the resource group.peeringName- The name of the peering.registeredPrefixName- The name of the registered prefix.- Returns:
- an existing registered prefix with the specified name under the given subscription, resource group and 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<PeeringRegisteredPrefixInner> createOrUpdateWithResponse(String resourceGroupName, String peeringName, String registeredPrefixName, PeeringRegisteredPrefixInner registeredPrefix, com.azure.core.util.Context context) Creates a new registered prefix with the specified name under the given subscription, resource group and peering.- Parameters:
resourceGroupName- The name of the resource group.peeringName- The name of the peering.registeredPrefixName- The name of the registered prefix.registeredPrefix- The properties needed to create a registered prefix.context- The context to associate with this operation.- Returns:
- the customer's prefix that is registered by the peering service provider 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.
-
createOrUpdate
PeeringRegisteredPrefixInner createOrUpdate(String resourceGroupName, String peeringName, String registeredPrefixName, PeeringRegisteredPrefixInner registeredPrefix) Creates a new registered prefix with the specified name under the given subscription, resource group and peering.- Parameters:
resourceGroupName- The name of the resource group.peeringName- The name of the peering.registeredPrefixName- The name of the registered prefix.registeredPrefix- The properties needed to create a registered prefix.- Returns:
- the customer's prefix that is registered by the peering service provider.
- 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 peeringName, String registeredPrefixName, com.azure.core.util.Context context) Deletes an existing registered prefix with the specified name under the given subscription, resource group and peering.- Parameters:
resourceGroupName- The name of the resource group.peeringName- The name of the peering.registeredPrefixName- The name of the registered prefix.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.
-
delete
Deletes an existing registered prefix with the specified name under the given subscription, resource group and peering.- Parameters:
resourceGroupName- The name of the resource group.peeringName- The name of the peering.registeredPrefixName- The name of the registered prefix.- 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.
-
listByPeering
com.azure.core.http.rest.PagedIterable<PeeringRegisteredPrefixInner> listByPeering(String resourceGroupName, String peeringName) Lists all registered prefixes under the given subscription, resource group and peering.- Parameters:
resourceGroupName- The name of the resource group.peeringName- The name of the peering.- Returns:
- the paginated list of peering registered prefixes 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.
-
listByPeering
com.azure.core.http.rest.PagedIterable<PeeringRegisteredPrefixInner> listByPeering(String resourceGroupName, String peeringName, com.azure.core.util.Context context) Lists all registered prefixes under the given subscription, resource group and peering.- Parameters:
resourceGroupName- The name of the resource group.peeringName- The name of the peering.context- The context to associate with this operation.- Returns:
- the paginated list of peering registered prefixes 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.
-