Documentation ¶
Index ¶
- Constants
- type AdminKeyResult
- type AdminKeysClient
- func (client AdminKeysClient) List(resourceGroupName string, serviceName string) (result AdminKeyResult, ae autorest.Error)
- func (client AdminKeysClient) ListRequestPreparer() autorest.Preparer
- func (client AdminKeysClient) NewListRequest(resourceGroupName string, serviceName string) (*http.Request, error)
- type ListQueryKeysResult
- type ProvisioningState
- type QueryKey
- type QueryKeysClient
- func (client QueryKeysClient) List(resourceGroupName string, serviceName string) (result ListQueryKeysResult, ae autorest.Error)
- func (client QueryKeysClient) ListRequestPreparer() autorest.Preparer
- func (client QueryKeysClient) NewListRequest(resourceGroupName string, serviceName string) (*http.Request, error)
- type SearchManagementClient
- type SearchServiceCreateOrUpdateParameters
- type SearchServiceListResult
- type SearchServiceResource
- type SearchServiceStatus
- type ServicesClient
- func (client ServicesClient) CreateOrUpdate(resourceGroupName string, serviceName string, ...) (result SearchServiceResource, ae autorest.Error)
- func (client ServicesClient) CreateOrUpdateRequestPreparer() autorest.Preparer
- func (client ServicesClient) Delete(resourceGroupName string, serviceName string) (result autorest.Response, ae autorest.Error)
- func (client ServicesClient) DeleteRequestPreparer() autorest.Preparer
- func (client ServicesClient) List(resourceGroupName string) (result SearchServiceListResult, ae autorest.Error)
- func (client ServicesClient) ListRequestPreparer() autorest.Preparer
- func (client ServicesClient) NewCreateOrUpdateRequest(resourceGroupName string, serviceName string, ...) (*http.Request, error)
- func (client ServicesClient) NewDeleteRequest(resourceGroupName string, serviceName string) (*http.Request, error)
- func (client ServicesClient) NewListRequest(resourceGroupName string) (*http.Request, error)
- type SkuType
Constants ¶
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 ¶
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 ¶
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.