3
// Copyright (c) Microsoft and contributors. All rights reserved.
5
// Licensed under the Apache License, Version 2.0 (the "License");
6
// you may not use this file except in compliance with the License.
7
// You may obtain a copy of the License at
8
// http://www.apache.org/licenses/LICENSE-2.0
10
// Unless required by applicable law or agreed to in writing, software
11
// distributed under the License is distributed on an "AS IS" BASIS,
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
// See the License for the specific language governing permissions and
15
// limitations under the License.
17
// Code generated by Microsoft (R) AutoRest Code Generator 0.12.0.0
18
// Changes may cause incorrect behavior and will be lost if the code is
22
"github.com/Azure/azure-sdk-for-go/Godeps/_workspace/src/github.com/Azure/go-autorest/autorest"
25
// ProvisioningState enumerates the values for provisioning state.
26
type ProvisioningState string
29
// Failed specifies the failed state for provisioning state.
30
Failed ProvisioningState = "failed"
31
// Provisioning specifies the provisioning state for provisioning state.
32
Provisioning ProvisioningState = "provisioning"
33
// Succeeded specifies the succeeded state for provisioning state.
34
Succeeded ProvisioningState = "succeeded"
37
// ServiceStatus enumerates the values for service status.
38
type ServiceStatus string
41
// ServiceStatusDegraded specifies the service status degraded state for
43
ServiceStatusDegraded ServiceStatus = "degraded"
44
// ServiceStatusDeleting specifies the service status deleting state for
46
ServiceStatusDeleting ServiceStatus = "deleting"
47
// ServiceStatusDisabled specifies the service status disabled state for
49
ServiceStatusDisabled ServiceStatus = "disabled"
50
// ServiceStatusError specifies the service status error state for service
52
ServiceStatusError ServiceStatus = "error"
53
// ServiceStatusProvisioning specifies the service status provisioning
54
// state for service status.
55
ServiceStatusProvisioning ServiceStatus = "provisioning"
56
// ServiceStatusRunning specifies the service status running state for
58
ServiceStatusRunning ServiceStatus = "running"
61
// SkuType enumerates the values for sku type.
65
// Free specifies the free state for sku type.
67
// Standard specifies the standard state for sku type.
68
Standard SkuType = "standard"
69
// Standard2 specifies the standard 2 state for sku type.
70
Standard2 SkuType = "standard2"
73
// AdminKeyResult is response containing the primary and secondary API keys
74
// for a given Azure Search service.
75
type AdminKeyResult struct {
76
autorest.Response `json:"-"`
77
PrimaryKey *string `json:"primaryKey,omitempty"`
78
SecondaryKey *string `json:"secondaryKey,omitempty"`
81
// ListQueryKeysResult is response containing the query API keys for a given
82
// Azure Search service.
83
type ListQueryKeysResult struct {
84
autorest.Response `json:"-"`
85
Value *[]QueryKey `json:"value,omitempty"`
88
// QueryKey is describes an API key for a given Azure Search service that has
89
// permissions for query operations only.
90
type QueryKey struct {
91
Name *string `json:"name,omitempty"`
92
Key *string `json:"key,omitempty"`
96
type Resource struct {
97
ID *string `json:"id,omitempty"`
98
Name *string `json:"name,omitempty"`
99
Type *string `json:"type,omitempty"`
100
Location *string `json:"location,omitempty"`
101
Tags *map[string]*string `json:"tags,omitempty"`
104
// ServiceCreateOrUpdateParameters is properties that describe an Azure Search
106
type ServiceCreateOrUpdateParameters struct {
107
Location *string `json:"location,omitempty"`
108
Tags *map[string]*string `json:"tags,omitempty"`
109
Properties *ServiceProperties `json:"properties,omitempty"`
112
// ServiceListResult is response containing a list of Azure Search services
113
// for a given resource group.
114
type ServiceListResult struct {
115
autorest.Response `json:"-"`
116
Value *[]ServiceResource `json:"value,omitempty"`
119
// ServiceProperties is defines properties of an Azure Search service that can
121
type ServiceProperties struct {
122
Sku *Sku `json:"sku,omitempty"`
123
ReplicaCount *int `json:"replicaCount,omitempty"`
124
PartitionCount *int `json:"partitionCount,omitempty"`
127
// ServiceReadableProperties is defines all the properties of an Azure Search
129
type ServiceReadableProperties struct {
130
Status ServiceStatus `json:"status,omitempty"`
131
StatusDetails *string `json:"statusDetails,omitempty"`
132
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
133
Sku *Sku `json:"sku,omitempty"`
134
ReplicaCount *int `json:"replicaCount,omitempty"`
135
PartitionCount *int `json:"partitionCount,omitempty"`
138
// ServiceResource is describes an Azure Search service and its current state.
139
type ServiceResource struct {
140
autorest.Response `json:"-"`
141
Name *string `json:"name,omitempty"`
142
Location *string `json:"location,omitempty"`
143
Tags *map[string]*string `json:"tags,omitempty"`
144
Properties *ServiceReadableProperties `json:"properties,omitempty"`
147
// Sku is defines the SKU of an Azure Search Service, which determines price
148
// tier and capacity limits.
150
Name SkuType `json:"name,omitempty"`
154
type SubResource struct {
155
ID *string `json:"id,omitempty"`