PhoneNumberAsyncClient Class
- java.
lang. Object - com.
azure. communication. administration. PhoneNumberAsyncClient
- com.
public final class PhoneNumberAsyncClient
Asynchronous client for Communication service phone number operations
Method Summary
Methods inherited from java.lang.Object
Method Details
beginCreateReservation
public PollerFlux<PhoneNumberReservation,PhoneNumberReservation> beginCreateReservation(CreateReservationOptions options, Duration pollInterval)
Initiates a reservation and returns a PhoneNumberReservation usable by other functions This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.
Parameters:
Returns:
beginPurchaseReservation
public PollerFlux<Void,Void> beginPurchaseReservation(String reservationId, Duration pollInterval)
Initiates a purchase process and polls until a terminal state is reached This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.
Parameters:
Returns:
beginReleasePhoneNumbers
public PollerFlux<PhoneNumberRelease,PhoneNumberRelease> beginReleasePhoneNumbers(List<PhoneNumber> phoneNumbers, Duration pollInterval)
Releases the given phone numbers. This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.
Parameters:
Returns:
cancelReservation
public Mono<Void> cancelReservation(String reservationId)
Cancels the reservation. This means existing numbers in the reservation will be made available.
Parameters:
Returns:
cancelReservationWithResponse
public Mono<Response<Void>> cancelReservationWithResponse(String reservationId)
Cancels the reservation. This means existing numbers in the reservation will be made available.
Parameters:
Returns:
configureNumber
public Mono<Void> configureNumber(PhoneNumber phoneNumber, PstnConfiguration pstnConfiguration)
Associates a phone number with a PSTN Configuration.
Parameters:
Returns:
configureNumberWithResponse
public Mono<Response<Void>> configureNumberWithResponse(PhoneNumber phoneNumber, PstnConfiguration pstnConfiguration)
Associates a phone number with a PSTN Configuration.
Parameters:
Returns:
getAllAreaCodes
public Mono<AreaCodes> getAllAreaCodes(String locationType, String countryCode, String phonePlanId, List<LocationOptionsQuery> locationOptions)
Gets a list of the supported area codes.
Parameters:
Returns:
getAllAreaCodesWithResponse
public Mono<Response<AreaCodes>> getAllAreaCodesWithResponse(String locationType, String countryCode, String phonePlanId, List<LocationOptionsQuery> locationOptions)
Gets a list of the supported area codes.
Parameters:
Returns:
getCapabilitiesUpdate
public Mono<UpdatePhoneNumberCapabilitiesResponse> getCapabilitiesUpdate(String capabilitiesId)
Gets the information for a phone number capabilities update
Parameters:
Returns:
getCapabilitiesUpdateWithResponse
public Mono<Response<UpdatePhoneNumberCapabilitiesResponse>> getCapabilitiesUpdateWithResponse(String capabilitiesId)
Gets the information for a phone number capabilities update
Parameters:
Returns:
getNumberConfiguration
public Mono<NumberConfigurationResponse> getNumberConfiguration(PhoneNumber phoneNumber)
Gets the configuration of a given phone number.
Parameters:
Returns:
getNumberConfigurationWithResponse
public Mono<Response<NumberConfigurationResponse>> getNumberConfigurationWithResponse(PhoneNumber phoneNumber)
Gets the configuration of a given phone number.
Parameters:
Returns:
getPhonePlanLocationOptions
public Mono<LocationOptionsResponse> getPhonePlanLocationOptions(String countryCode, String phonePlanGroupId, String phonePlanId, String locale)
Gets the location options for a phone plan.
Parameters:
Returns:
getPhonePlanLocationOptionsWithResponse
public Mono<Response<LocationOptionsResponse>> getPhonePlanLocationOptionsWithResponse(String countryCode, String phonePlanGroupId, String phonePlanId, String locale)
Gets the location options for a phone plan.
Parameters:
Returns:
getReleaseById
public Mono<PhoneNumberRelease> getReleaseById(String releaseId)
Gets a release by ID.
Parameters:
Returns:
getReleaseByIdWithResponse
public Mono<Response<PhoneNumberRelease>> getReleaseByIdWithResponse(String releaseId)
Gets a release by ID.
Parameters:
Returns:
getReservationById
public Mono<PhoneNumberReservation> getReservationById(String reservationId)
Gets a reservation by ID.
Parameters:
Returns:
getReservationByIdWithResponse
public Mono<Response<PhoneNumberReservation>> getReservationByIdWithResponse(String reservationId)
Gets a reservation by ID.
Parameters:
Returns:
listAllPhoneNumbers
public PagedFlux<AcquiredPhoneNumber> listAllPhoneNumbers(String locale)
Gets the list of the acquired phone numbers.
Parameters:
Returns:
listAllReleases
public PagedFlux<PhoneNumberEntity> listAllReleases()
Gets the list of all releases
Returns:
listAllReservations
public PagedFlux<PhoneNumberEntity> listAllReservations()
Gets the list of all reservations
Returns:
listAllSupportedCountries
public PagedFlux<PhoneNumberCountry> listAllSupportedCountries(String locale)
Gets a list of supported countries.
Parameters:
Returns:
listPhonePlanGroups
public PagedFlux<PhonePlanGroup> listPhonePlanGroups(String countryCode, String locale, Boolean includeRateInformation)
Gets a list of phone plan groups for the given country.
Parameters:
Returns:
listPhonePlans
public PagedFlux<PhonePlan> listPhonePlans(String countryCode, String phonePlanGroupId, String locale)
Gets a list of phone plans for a phone plan group
Parameters:
Returns:
unconfigureNumber
public Mono<Void> unconfigureNumber(PhoneNumber phoneNumber)
Removes the PSTN Configuration from a phone number.
Parameters:
Returns:
unconfigureNumberWithResponse
public Mono<Response<Void>> unconfigureNumberWithResponse(PhoneNumber phoneNumber)
Removes the PSTN Configuration from a phone number.
Parameters:
Returns:
updateCapabilities
public Mono<UpdateNumberCapabilitiesResponse> updateCapabilities(Map<PhoneNumber,NumberUpdateCapabilities> phoneNumberCapabilitiesUpdate)
Adds or removes phone number capabilities.
Parameters:
Returns:
updateCapabilitiesWithResponse
public Mono<Response<UpdateNumberCapabilitiesResponse>> updateCapabilitiesWithResponse(Map<PhoneNumber,NumberUpdateCapabilities> phoneNumberCapabilitiesUpdate)
Adds or removes phone number capabilities.
Parameters:
Returns: