1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
|
package search
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
import (
"github.com/Azure/go-autorest/autorest"
)
// AdminKeyKind enumerates the values for admin key kind.
type AdminKeyKind string
const (
// Primary specifies the primary state for admin key kind.
Primary AdminKeyKind = "primary"
// Secondary specifies the secondary state for admin key kind.
Secondary AdminKeyKind = "secondary"
)
// HostingMode enumerates the values for hosting mode.
type HostingMode string
const (
// Default specifies the default state for hosting mode.
Default HostingMode = "default"
// HighDensity specifies the high density state for hosting mode.
HighDensity HostingMode = "highDensity"
)
// ProvisioningState enumerates the values for provisioning state.
type ProvisioningState string
const (
// Failed specifies the failed state for provisioning state.
Failed ProvisioningState = "failed"
// Provisioning specifies the provisioning state for provisioning state.
Provisioning ProvisioningState = "provisioning"
// Succeeded specifies the succeeded state for provisioning state.
Succeeded ProvisioningState = "succeeded"
)
// ServiceStatus enumerates the values for service status.
type ServiceStatus string
const (
// ServiceStatusDegraded specifies the service status degraded state for
// service status.
ServiceStatusDegraded ServiceStatus = "degraded"
// ServiceStatusDeleting specifies the service status deleting state for
// service status.
ServiceStatusDeleting ServiceStatus = "deleting"
// ServiceStatusDisabled specifies the service status disabled state for
// service status.
ServiceStatusDisabled ServiceStatus = "disabled"
// ServiceStatusError specifies the service status error state for service
// status.
ServiceStatusError ServiceStatus = "error"
// ServiceStatusProvisioning specifies the service status provisioning
// state for service status.
ServiceStatusProvisioning ServiceStatus = "provisioning"
// ServiceStatusRunning specifies the service status running state for
// service status.
ServiceStatusRunning ServiceStatus = "running"
)
// SkuName enumerates the values for sku name.
type SkuName string
const (
// Basic specifies the basic state for sku name.
Basic SkuName = "basic"
// Free specifies the free state for sku name.
Free SkuName = "free"
// Standard specifies the standard state for sku name.
Standard SkuName = "standard"
// Standard2 specifies the standard 2 state for sku name.
Standard2 SkuName = "standard2"
// Standard3 specifies the standard 3 state for sku name.
Standard3 SkuName = "standard3"
)
// UnavailableNameReason enumerates the values for unavailable name reason.
type UnavailableNameReason string
const (
// AlreadyExists specifies the already exists state for unavailable name
// reason.
AlreadyExists UnavailableNameReason = "AlreadyExists"
// Invalid specifies the invalid state for unavailable name reason.
Invalid UnavailableNameReason = "Invalid"
)
// AdminKeyResult is response containing the primary and secondary admin API
// keys for a given Azure Search service.
type AdminKeyResult struct {
autorest.Response `json:"-"`
PrimaryKey *string `json:"primaryKey,omitempty"`
SecondaryKey *string `json:"secondaryKey,omitempty"`
}
// CheckNameAvailabilityInput is input of check name availability API.
type CheckNameAvailabilityInput struct {
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
}
// CheckNameAvailabilityOutput is output of check name availability API.
type CheckNameAvailabilityOutput struct {
autorest.Response `json:"-"`
IsNameAvailable *bool `json:"nameAvailable,omitempty"`
Reason UnavailableNameReason `json:"reason,omitempty"`
Message *string `json:"message,omitempty"`
}
// CloudError is contains information about an API error.
type CloudError struct {
Error *CloudErrorBody `json:"error,omitempty"`
}
// CloudErrorBody is describes a particular API error with an error code and a
// message.
type CloudErrorBody struct {
Code *string `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Target *string `json:"target,omitempty"`
Details *[]CloudErrorBody `json:"details,omitempty"`
}
// ListQueryKeysResult is response containing the query API keys for a given
// Azure Search service.
type ListQueryKeysResult struct {
autorest.Response `json:"-"`
Value *[]QueryKey `json:"value,omitempty"`
}
// QueryKey is describes an API key for a given Azure Search service that has
// permissions for query operations only.
type QueryKey struct {
autorest.Response `json:"-"`
Name *string `json:"name,omitempty"`
Key *string `json:"key,omitempty"`
}
// Resource is base type for all Azure resources.
type Resource struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
}
// Service is describes an Azure Search service and its current state.
type Service struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
*ServiceProperties `json:"properties,omitempty"`
Sku *Sku `json:"sku,omitempty"`
}
// ServiceListResult is response containing a list of Azure Search services.
type ServiceListResult struct {
autorest.Response `json:"-"`
Value *[]Service `json:"value,omitempty"`
}
// ServiceProperties is properties of the Search service.
type ServiceProperties struct {
ReplicaCount *int32 `json:"replicaCount,omitempty"`
PartitionCount *int32 `json:"partitionCount,omitempty"`
HostingMode HostingMode `json:"hostingMode,omitempty"`
Status ServiceStatus `json:"status,omitempty"`
StatusDetails *string `json:"statusDetails,omitempty"`
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
}
// Sku is defines the SKU of an Azure Search Service, which determines price
// tier and capacity limits.
type Sku struct {
Name SkuName `json:"name,omitempty"`
}
|