@Beta(value=V1_2_0) public interface SearchServices extends SupportsCreating<SearchService.DefinitionStages.Blank>, SupportsListing<SearchService>, SupportsListingByResourceGroup<SearchService>, SupportsGettingByResourceGroup<SearchService>, SupportsGettingById<SearchService>, SupportsDeletingById, SupportsDeletingByResourceGroup, SupportsBatchCreation<SearchService>, HasManager<com.microsoft.azure.management.search.implementation.SearchServiceManager>, HasInner<com.microsoft.azure.management.search.implementation.ServicesInner>
Modifier and Type | Method and Description |
---|---|
CheckNameAvailabilityResult |
checkNameAvailability(String name)
Checks if the specified Search service name is valid and available.
|
rx.Observable<CheckNameAvailabilityResult> |
checkNameAvailabilityAsync(String name)
Checks if Search service name is valid and is not in use asynchronously.
|
ServiceFuture<CheckNameAvailabilityResult> |
checkNameAvailabilityAsync(String name,
ServiceCallback<CheckNameAvailabilityResult> callback)
Checks if Search service name is valid and is not in use asynchronously.
|
QueryKey |
createQueryKey(String resourceGroupName,
String searchServiceName,
String name)
Regenerates either the primary or secondary admin API key.
|
rx.Observable<QueryKey> |
createQueryKeyAsync(String resourceGroupName,
String searchServiceName,
String name)
Regenerates either the primary or secondary admin API key.
|
void |
deleteQueryKey(String resourceGroupName,
String searchServiceName,
String key)
Deletes the specified query key.
|
rx.Completable |
deleteQueryKeyAsync(String resourceGroupName,
String searchServiceName,
String key)
Deletes the specified query key.
|
AdminKeys |
getAdminKeys(String resourceGroupName,
String searchServiceName)
Gets the primary and secondary admin API keys for the specified Azure Search service.
|
rx.Observable<AdminKeys> |
getAdminKeysAsync(String resourceGroupName,
String searchServiceName)
Gets the primary and secondary admin API keys for the specified Azure Search service.
|
List<QueryKey> |
listQueryKeys(String resourceGroupName,
String searchServiceName)
Returns the list of query API keys for the given Azure Search service.
|
rx.Observable<QueryKey> |
listQueryKeysAsync(String resourceGroupName,
String searchServiceName)
Returns the list of query API keys for the given Azure Search service.
|
AdminKeys |
regenerateAdminKeys(String resourceGroupName,
String searchServiceName,
AdminKeyKind keyKind)
Regenerates either the primary or secondary admin API key.
|
rx.Observable<AdminKeys> |
regenerateAdminKeysAsync(String resourceGroupName,
String searchServiceName,
AdminKeyKind keyKind)
Regenerates either the primary or secondary admin API key.
|
define
list, listAsync
listByResourceGroup, listByResourceGroupAsync
getByResourceGroup, getByResourceGroupAsync, getByResourceGroupAsync
getById, getByIdAsync, getByIdAsync
deleteById, deleteByIdAsync, deleteByIdAsync
deleteByResourceGroup, deleteByResourceGroupAsync, deleteByResourceGroupAsync
create, create, createAsync, createAsync, createAsync, createAsync
manager
CheckNameAvailabilityResult checkNameAvailability(String name)
name
- the Search service name to checkrx.Observable<CheckNameAvailabilityResult> checkNameAvailabilityAsync(String name)
name
- the Search service name to checkServiceFuture<CheckNameAvailabilityResult> checkNameAvailabilityAsync(String name, ServiceCallback<CheckNameAvailabilityResult> callback)
name
- the Search service name to checkcallback
- the callback to call on success or failureAdminKeys getAdminKeys(String resourceGroupName, String searchServiceName)
resourceGroupName
- The name of the resource group within the current subscription; you can obtain this value from the Azure Resource Manager API or the portalsearchServiceName
- The name of the Azure Search service associated with the specified resource groupIllegalArgumentException
- thrown if parameters fail the validationCloudException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sentrx.Observable<AdminKeys> getAdminKeysAsync(String resourceGroupName, String searchServiceName)
resourceGroupName
- The name of the resource group within the current subscription; you can obtain this value from the Azure Resource Manager API or the portalsearchServiceName
- The name of the Azure Search service associated with the specified resource groupIllegalArgumentException
- thrown if parameters fail the validationList<QueryKey> listQueryKeys(String resourceGroupName, String searchServiceName)
resourceGroupName
- The name of the resource group within the current subscription; you can obtain this value from the Azure Resource Manager API or the portalsearchServiceName
- The name of the Azure Search service associated with the specified resource groupIllegalArgumentException
- thrown if parameters fail the validationCloudException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sentrx.Observable<QueryKey> listQueryKeysAsync(String resourceGroupName, String searchServiceName)
resourceGroupName
- The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.searchServiceName
- The name of the Azure Search service associated with the specified resource group.IllegalArgumentException
- thrown if parameters fail the validationAdminKeys regenerateAdminKeys(String resourceGroupName, String searchServiceName, AdminKeyKind keyKind)
resourceGroupName
- The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.searchServiceName
- The name of the Azure Search service associated with the specified resource group.keyKind
- Specifies which key to regenerate. Valid values include 'primary' and 'secondary'.
Possible values include: 'primary', 'secondary'IllegalArgumentException
- thrown if parameters fail the validationCloudException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sentrx.Observable<AdminKeys> regenerateAdminKeysAsync(String resourceGroupName, String searchServiceName, AdminKeyKind keyKind)
resourceGroupName
- The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.searchServiceName
- The name of the Azure Search service associated with the specified resource group.keyKind
- Specifies which key to regenerate. Valid values include 'primary' and 'secondary'.
Possible values include: 'primary', 'secondary'IllegalArgumentException
- thrown if parameters fail the validationQueryKey createQueryKey(String resourceGroupName, String searchServiceName, String name)
resourceGroupName
- The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.searchServiceName
- The name of the Azure Search service associated with the specified resource group.name
- The name of the new query API key.IllegalArgumentException
- thrown if parameters fail the validationCloudException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sentrx.Observable<QueryKey> createQueryKeyAsync(String resourceGroupName, String searchServiceName, String name)
resourceGroupName
- The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.searchServiceName
- The name of the Azure Search service associated with the specified resource group.name
- The name of the new query API key.IllegalArgumentException
- thrown if parameters fail the validationvoid deleteQueryKey(String resourceGroupName, String searchServiceName, String key)
resourceGroupName
- The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.searchServiceName
- The name of the Azure Search service associated with the specified resource group.key
- The query key to be deleted. Query keys are identified by value, not by name.IllegalArgumentException
- thrown if parameters fail the validationCloudException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sentrx.Completable deleteQueryKeyAsync(String resourceGroupName, String searchServiceName, String key)
resourceGroupName
- The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.searchServiceName
- The name of the Azure Search service associated with the specified resource group.key
- The query key to be deleted. Query keys are identified by value, not by name.IllegalArgumentException
- thrown if parameters fail the validationCopyright © 2019. All rights reserved.