azure.mgmt.search.models module

class azure.mgmt.search.models.CheckNameAvailabilityInput(name)[source]

Bases: msrest.serialization.Model

Input of check name availability API.

Variables are only populated by the server, and will be ignored when sending a request.

Parameters:name (str) – The Search service name to validate. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length.
Variables:type (str) – The type of the resource whose name is to be validated. This value must always be ‘searchServices’. Default value: “searchServices” .
type = 'searchServices'
class azure.mgmt.search.models.CheckNameAvailabilityOutput[source]

Bases: msrest.serialization.Model

Output of check name availability API.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • is_name_available (bool) – A value indicating whether the name is available.
  • reason (str or UnavailableNameReason) – The reason why the name is not available. ‘Invalid’ indicates the name provided does not match the naming requirements (incorrect length, unsupported characters, etc.). ‘AlreadyExists’ indicates that the name is already in use and is therefore unavailable. Possible values include: ‘Invalid’, ‘AlreadyExists’
  • message (str) – A message that explains why the name is invalid and provides resource naming requirements. Available only if ‘Invalid’ is returned in the ‘reason’ property.
class azure.mgmt.search.models.AdminKeyResult[source]

Bases: msrest.serialization.Model

Response containing the primary and secondary admin API keys for a given Azure Search service.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
class azure.mgmt.search.models.QueryKey[source]

Bases: msrest.serialization.Model

Describes an API key for a given Azure Search service that has permissions for query operations only.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • name (str) – The name of the query API key; may be empty.
  • key (str) – The value of the query API key.
class azure.mgmt.search.models.Sku(name=None)[source]

Bases: msrest.serialization.Model

Defines the SKU of an Azure Search Service, which determines price tier and capacity limits.

Parameters:name (str or SkuName) – The SKU of the Search service. Valid values include: ‘free’: Shared service. ‘basic’: Dedicated service with up to 3 replicas. ‘standard’: Dedicated service with up to 12 partitions and 12 replicas. ‘standard2’: Similar to standard, but with more capacity per search unit. ‘standard3’: Offers maximum capacity per search unit with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to ‘highDensity’). Possible values include: ‘free’, ‘basic’, ‘standard’, ‘standard2’, ‘standard3’
class azure.mgmt.search.models.SearchService(location, sku, tags=None, replica_count=1, partition_count=1, hosting_mode='default')[source]

Bases: azure.mgmt.search.models.resource.Resource

Describes an Azure Search service and its current state.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The ID of the resource. This can be used with the Azure Resource Manager to link resources together.
  • name (str) – The name of the resource.
  • type (str) – The resource type.
  • status (str or SearchServiceStatus) – The status of the Search service. Possible values include: ‘running’: The Search service is running and no provisioning operations are underway. ‘provisioning’: The Search service is being provisioned or scaled up or down. ‘deleting’: The Search service is being deleted. ‘degraded’: The Search service is degraded. This can occur when the underlying search units are not healthy. The Search service is most likely operational, but performance might be slow and some requests might be dropped. ‘disabled’: The Search service is disabled. In this state, the service will reject all API requests. ‘error’: The Search service is in an error state. If your service is in the degraded, disabled, or error states, it means the Azure Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. Possible values include: ‘running’, ‘provisioning’, ‘deleting’, ‘degraded’, ‘disabled’, ‘error’
  • status_details (str) – The details of the Search service status.
  • provisioning_state (str or ProvisioningState) – The state of the last provisioning operation performed on the Search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either ‘succeeded’ or ‘failed’. Client applications can poll provisioning status (the recommended polling interval is from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If you are using the free service, this value tends to come back as ‘succeeded’ directly in the call to Create Search service. This is because the free service uses capacity that is already set up. Possible values include: ‘succeeded’, ‘provisioning’, ‘failed’
Parameters:
  • location (str) – The geographic location of the resource. This must be one of the supported and registered Azure Geo Regions (for example, West US, East US, Southeast Asia, and so forth).
  • tags (dict) – Tags to help categorize the resource in the Azure portal.
  • replica_count (int) – The number of replicas in the Search service. If specified, it must be a value between 1 and 12 inclusive for standard SKUs or between 1 and 3 inclusive for basic SKU. Default value: 1 .
  • partition_count (int) – The number of partitions in the Search service; if specified, it can be 1, 2, 3, 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For ‘standard3’ services with hostingMode set to ‘highDensity’, the allowed values are between 1 and 3. Default value: 1 .
  • hosting_mode (str or HostingMode) – Applicable only for the standard3 SKU. You can set this property to enable up to 3 high density partitions that allow up to 1000 indexes, which is much higher than the maximum indexes allowed for any other SKU. For the standard3 SKU, the value is either ‘default’ or ‘highDensity’. For all other SKUs, this value must be ‘default’. Possible values include: ‘default’, ‘highDensity’. Default value: “default” .
  • sku (Sku) – The SKU of the Search Service, which determines price tier and capacity limits.
class azure.mgmt.search.models.Resource(location, tags=None)[source]

Bases: msrest.serialization.Model

Base type for all Azure resources.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The ID of the resource. This can be used with the Azure Resource Manager to link resources together.
  • name (str) – The name of the resource.
  • type (str) – The resource type.
Parameters:
  • location (str) – The geographic location of the resource. This must be one of the supported and registered Azure Geo Regions (for example, West US, East US, Southeast Asia, and so forth).
  • tags (dict) – Tags to help categorize the resource in the Azure portal.
class azure.mgmt.search.models.SearchManagementRequestOptions(client_request_id=None)[source]

Bases: msrest.serialization.Model

Additional parameters for a set of operations.

Parameters:client_request_id (str) – A client-generated GUID value that identifies this request. If specified, this will be included in response information as a way to track the request.
class azure.mgmt.search.models.QueryKeyPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of QueryKey object

class azure.mgmt.search.models.SearchServicePaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of SearchService object

class azure.mgmt.search.models.UnavailableNameReason[source]

Bases: enum.Enum

already_exists = 'AlreadyExists'
invalid = 'Invalid'
class azure.mgmt.search.models.SkuName[source]

Bases: enum.Enum

basic = 'basic'
free = 'free'
standard = 'standard'
standard2 = 'standard2'
standard3 = 'standard3'
class azure.mgmt.search.models.HostingMode[source]

Bases: enum.Enum

default = 'default'
high_density = 'highDensity'
class azure.mgmt.search.models.SearchServiceStatus[source]

Bases: enum.Enum

degraded = 'degraded'
deleting = 'deleting'
disabled = 'disabled'
error = 'error'
provisioning = 'provisioning'
running = 'running'
class azure.mgmt.search.models.ProvisioningState[source]

Bases: enum.Enum

failed = 'failed'
provisioning = 'provisioning'
succeeded = 'succeeded'
class azure.mgmt.search.models.AdminKeyKind[source]

Bases: enum.Enum

primary = 'primary'
secondary = 'secondary'