Share via


SearchServiceCollection Class

Definition

A class representing a collection of SearchServiceResource and their operations. Each SearchServiceResource in the collection will belong to the same instance of ResourceGroupResource. To get a SearchServiceCollection instance call the GetSearchServices method from an instance of ResourceGroupResource.

public class SearchServiceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Search.SearchServiceResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Search.SearchServiceResource>
type SearchServiceCollection = class
    inherit ArmCollection
    interface seq<SearchServiceResource>
    interface IEnumerable
    interface IAsyncEnumerable<SearchServiceResource>
Public Class SearchServiceCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of SearchServiceResource), IEnumerable(Of SearchServiceResource)
Inheritance
SearchServiceCollection
Implements

Constructors

SearchServiceCollection()

Initializes a new instance of the SearchServiceCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, SearchServiceData, SearchManagementRequestOptions, CancellationToken)

Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}
  • Operation Id: Services_CreateOrUpdate
  • Default Api Version: 2024-03-01-preview
  • Resource: SearchServiceResource
CreateOrUpdateAsync(WaitUntil, String, SearchServiceData, SearchManagementRequestOptions, CancellationToken)

Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}
  • Operation Id: Services_CreateOrUpdate
  • Default Api Version: 2024-03-01-preview
  • Resource: SearchServiceResource
Exists(String, SearchManagementRequestOptions, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}
  • Operation Id: Services_Get
  • Default Api Version: 2024-03-01-preview
  • Resource: SearchServiceResource
ExistsAsync(String, SearchManagementRequestOptions, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}
  • Operation Id: Services_Get
  • Default Api Version: 2024-03-01-preview
  • Resource: SearchServiceResource
Get(String, SearchManagementRequestOptions, CancellationToken)

Gets the search service with the given name in the given resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}
  • Operation Id: Services_Get
  • Default Api Version: 2024-03-01-preview
  • Resource: SearchServiceResource
GetAll(SearchManagementRequestOptions, CancellationToken)

Gets a list of all Search services in the given resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices
  • Operation Id: Services_ListByResourceGroup
  • Default Api Version: 2024-03-01-preview
  • Resource: SearchServiceResource
GetAllAsync(SearchManagementRequestOptions, CancellationToken)

Gets a list of all Search services in the given resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices
  • Operation Id: Services_ListByResourceGroup
  • Default Api Version: 2024-03-01-preview
  • Resource: SearchServiceResource
GetAsync(String, SearchManagementRequestOptions, CancellationToken)

Gets the search service with the given name in the given resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}
  • Operation Id: Services_Get
  • Default Api Version: 2024-03-01-preview
  • Resource: SearchServiceResource
GetIfExists(String, SearchManagementRequestOptions, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}
  • Operation Id: Services_Get
  • Default Api Version: 2024-03-01-preview
  • Resource: SearchServiceResource
GetIfExistsAsync(String, SearchManagementRequestOptions, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}
  • Operation Id: Services_Get
  • Default Api Version: 2024-03-01-preview
  • Resource: SearchServiceResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<SearchServiceResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<SearchServiceResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to