~nskaggs/+junk/xenial-test

« back to all changes in this revision

Viewing changes to src/github.com/Azure/azure-sdk-for-go/arm/search/models.go

  • Committer: Nicholas Skaggs
  • Date: 2016-10-24 20:56:05 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20161024205605-z8lta0uvuhtxwzwl
Initi with beta15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package search
 
2
 
 
3
// Copyright (c) Microsoft and contributors.  All rights reserved.
 
4
//
 
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
 
9
//
 
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.
 
13
//
 
14
// See the License for the specific language governing permissions and
 
15
// limitations under the License.
 
16
//
 
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
 
19
// regenerated.
 
20
 
 
21
import (
 
22
        "github.com/Azure/azure-sdk-for-go/Godeps/_workspace/src/github.com/Azure/go-autorest/autorest"
 
23
)
 
24
 
 
25
// ProvisioningState enumerates the values for provisioning state.
 
26
type ProvisioningState string
 
27
 
 
28
const (
 
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"
 
35
)
 
36
 
 
37
// ServiceStatus enumerates the values for service status.
 
38
type ServiceStatus string
 
39
 
 
40
const (
 
41
        // ServiceStatusDegraded specifies the service status degraded state for
 
42
        // service status.
 
43
        ServiceStatusDegraded ServiceStatus = "degraded"
 
44
        // ServiceStatusDeleting specifies the service status deleting state for
 
45
        // service status.
 
46
        ServiceStatusDeleting ServiceStatus = "deleting"
 
47
        // ServiceStatusDisabled specifies the service status disabled state for
 
48
        // service status.
 
49
        ServiceStatusDisabled ServiceStatus = "disabled"
 
50
        // ServiceStatusError specifies the service status error state for service
 
51
        // status.
 
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
 
57
        // service status.
 
58
        ServiceStatusRunning ServiceStatus = "running"
 
59
)
 
60
 
 
61
// SkuType enumerates the values for sku type.
 
62
type SkuType string
 
63
 
 
64
const (
 
65
        // Free specifies the free state for sku type.
 
66
        Free SkuType = "free"
 
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"
 
71
)
 
72
 
 
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"`
 
79
}
 
80
 
 
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"`
 
86
}
 
87
 
 
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"`
 
93
}
 
94
 
 
95
// Resource is
 
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"`
 
102
}
 
103
 
 
104
// ServiceCreateOrUpdateParameters is properties that describe an Azure Search
 
105
// service.
 
106
type ServiceCreateOrUpdateParameters struct {
 
107
        Location   *string             `json:"location,omitempty"`
 
108
        Tags       *map[string]*string `json:"tags,omitempty"`
 
109
        Properties *ServiceProperties  `json:"properties,omitempty"`
 
110
}
 
111
 
 
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"`
 
117
}
 
118
 
 
119
// ServiceProperties is defines properties of an Azure Search service that can
 
120
// be modified.
 
121
type ServiceProperties struct {
 
122
        Sku            *Sku `json:"sku,omitempty"`
 
123
        ReplicaCount   *int `json:"replicaCount,omitempty"`
 
124
        PartitionCount *int `json:"partitionCount,omitempty"`
 
125
}
 
126
 
 
127
// ServiceReadableProperties is defines all the properties of an Azure Search
 
128
// service.
 
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"`
 
136
}
 
137
 
 
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"`
 
145
}
 
146
 
 
147
// Sku is defines the SKU of an Azure Search Service, which determines price
 
148
// tier and capacity limits.
 
149
type Sku struct {
 
150
        Name SkuType `json:"name,omitempty"`
 
151
}
 
152
 
 
153
// SubResource is
 
154
type SubResource struct {
 
155
        ID *string `json:"id,omitempty"`
 
156
}