search

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2016 License: MIT, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiVersion     = "2015-02-28"
	DefaultBaseUri = "https://management.azure.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminKeyResult

type AdminKeyResult struct {
	autorest.Response `json:"-"`
	PrimaryKey        string `json:"primaryKey,omitempty"`
	SecondaryKey      string `json:"secondaryKey,omitempty"`
}

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

type AdminKeysClient

type AdminKeysClient struct {
	SearchManagementClient
}

AdminKeys Client

func NewAdminKeysClient

func NewAdminKeysClient(subscriptionId string) AdminKeysClient

func NewAdminKeysClientWithBaseUri

func NewAdminKeysClientWithBaseUri(baseUri string, subscriptionId string) AdminKeysClient

func (AdminKeysClient) List

func (client AdminKeysClient) List(resourceGroupName string, serviceName string) (result AdminKeyResult, ae autorest.Error)

List returns the primary and secondary API keys for the given Azure Search service.

resourceGroupName is the name of the resource group within the current subscription. serviceName is the name of the Search service for which to list admin keys.

func (AdminKeysClient) ListRequestPreparer

func (client AdminKeysClient) ListRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the List request.

func (AdminKeysClient) NewListRequest

func (client AdminKeysClient) NewListRequest(resourceGroupName string, serviceName string) (*http.Request, error)

Create the List request.

type ListQueryKeysResult

type ListQueryKeysResult struct {
	autorest.Response `json:"-"`
	Value             []QueryKey `json:"value,omitempty"`
}

Response containing the query API keys for a given Azure Search service.

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateFailed       ProvisioningState = "failed"
	ProvisioningStateProvisioning ProvisioningState = "provisioning"
	ProvisioningStateSucceeded    ProvisioningState = "succeeded"
)

type QueryKey

type QueryKey struct {
	Name string `json:"name,omitempty"`
	Key  string `json:"key,omitempty"`
}

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

type QueryKeysClient

type QueryKeysClient struct {
	SearchManagementClient
}

QueryKeys Client

func NewQueryKeysClient

func NewQueryKeysClient(subscriptionId string) QueryKeysClient

func NewQueryKeysClientWithBaseUri

func NewQueryKeysClientWithBaseUri(baseUri string, subscriptionId string) QueryKeysClient

func (QueryKeysClient) List

func (client QueryKeysClient) List(resourceGroupName string, serviceName string) (result ListQueryKeysResult, ae autorest.Error)

List returns the list of query API keys for the given Azure Search service.

resourceGroupName is the name of the resource group within the current subscription. serviceName is the name of the Search service for which to list query keys.

func (QueryKeysClient) ListRequestPreparer

func (client QueryKeysClient) ListRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the List request.

func (QueryKeysClient) NewListRequest

func (client QueryKeysClient) NewListRequest(resourceGroupName string, serviceName string) (*http.Request, error)

Create the List request.

type SearchManagementClient

type SearchManagementClient struct {
	autorest.Client
	BaseUri        string
	SubscriptionId string
}

Client that can be used to manage Azure Search services and API keys.

func New

func New(subscriptionId string) SearchManagementClient

func NewWithBaseUri

func NewWithBaseUri(baseUri string, subscriptionId string) SearchManagementClient

type SearchServiceCreateOrUpdateParameters

type SearchServiceCreateOrUpdateParameters struct {
	Location   string            `json:"location,omitempty"`
	Tags       map[string]string `json:"tags,omitempty"`
	Properties struct {
		Sku struct {
			Name SkuType `json:"name,omitempty"`
		} `json:"sku,omitempty"`
		ReplicaCount   int `json:"replicaCount,omitempty"`
		PartitionCount int `json:"partitionCount,omitempty"`
	} `json:"properties,omitempty"`
}

Properties that describe an Azure Search service.

type SearchServiceListResult

type SearchServiceListResult struct {
	autorest.Response `json:"-"`
	Value             []SearchServiceResource `json:"value,omitempty"`
}

Response containing a list of Azure Search services for a given resource group.

type SearchServiceResource

type SearchServiceResource struct {
	autorest.Response `json:"-"`
	Name              string            `json:"name,omitempty"`
	Location          string            `json:"location,omitempty"`
	Tags              map[string]string `json:"tags,omitempty"`
	Properties        struct {
		Status            SearchServiceStatus `json:"status,omitempty"`
		StatusDetails     string              `json:"statusDetails,omitempty"`
		ProvisioningState ProvisioningState   `json:"provisioningState,omitempty"`
		Sku               struct {
			Name SkuType `json:"name,omitempty"`
		} `json:"sku,omitempty"`
		ReplicaCount   int `json:"replicaCount,omitempty"`
		PartitionCount int `json:"partitionCount,omitempty"`
	} `json:"properties,omitempty"`
}

Describes an Azure Search service and its current state.

type SearchServiceStatus

type SearchServiceStatus string
const (
	SearchServiceStatusDegraded     SearchServiceStatus = "degraded"
	SearchServiceStatusDeleting     SearchServiceStatus = "deleting"
	SearchServiceStatusDisabled     SearchServiceStatus = "disabled"
	SearchServiceStatusError        SearchServiceStatus = "error"
	SearchServiceStatusProvisioning SearchServiceStatus = "provisioning"
	SearchServiceStatusRunning      SearchServiceStatus = "running"
)

type ServicesClient

type ServicesClient struct {
	SearchManagementClient
}

Services Client

func NewServicesClient

func NewServicesClient(subscriptionId string) ServicesClient

func NewServicesClientWithBaseUri

func NewServicesClientWithBaseUri(baseUri string, subscriptionId string) ServicesClient

func (ServicesClient) CreateOrUpdate

func (client ServicesClient) CreateOrUpdate(resourceGroupName string, serviceName string, parameters SearchServiceCreateOrUpdateParameters) (result SearchServiceResource, ae autorest.Error)

CreateOrUpdate 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.

resourceGroupName is the name of the resource group within the current subscription. serviceName is the name of the Search service to create or update. parameters is the properties to set or update on the Search service.

func (ServicesClient) CreateOrUpdateRequestPreparer

func (client ServicesClient) CreateOrUpdateRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the CreateOrUpdate request.

func (ServicesClient) Delete

func (client ServicesClient) Delete(resourceGroupName string, serviceName string) (result autorest.Response, ae autorest.Error)

Delete deletes a Search service in the given resource group, along with its associated resources.

resourceGroupName is the name of the resource group within the current subscription. serviceName is the name of the Search service to delete.

func (ServicesClient) DeleteRequestPreparer

func (client ServicesClient) DeleteRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the Delete request.

func (ServicesClient) List

func (client ServicesClient) List(resourceGroupName string) (result SearchServiceListResult, ae autorest.Error)

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

resourceGroupName is the name of the resource group within the current subscription.

func (ServicesClient) ListRequestPreparer

func (client ServicesClient) ListRequestPreparer() autorest.Preparer

Create a Preparer by which to prepare the List request.

func (ServicesClient) NewCreateOrUpdateRequest

func (client ServicesClient) NewCreateOrUpdateRequest(resourceGroupName string, serviceName string, parameters SearchServiceCreateOrUpdateParameters) (*http.Request, error)

Create the CreateOrUpdate request.

func (ServicesClient) NewDeleteRequest

func (client ServicesClient) NewDeleteRequest(resourceGroupName string, serviceName string) (*http.Request, error)

Create the Delete request.

func (ServicesClient) NewListRequest

func (client ServicesClient) NewListRequest(resourceGroupName string) (*http.Request, error)

Create the List request.

type SkuType

type SkuType string
const (
	Free      SkuType = "free"
	Standard  SkuType = "standard"
	Standard2 SkuType = "standard2"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL