-
Notifications
You must be signed in to change notification settings - Fork 815
/
models.go
245 lines (223 loc) · 11.6 KB
/
models.go
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
package location
// 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.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"encoding/json"
"github.com/Azure/go-autorest/autorest"
)
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// KeyType enumerates the values for key type.
type KeyType string
const (
// Primary ...
Primary KeyType = "primary"
// Secondary ...
Secondary KeyType = "secondary"
)
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// PossibleKeyTypeValues returns an array of possible values for the KeyType const type.
func PossibleKeyTypeValues() []KeyType {
return []KeyType{Primary, Secondary}
}
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// BasedServicesAccount an Azure resource which represents access to a suite of Location Based Services REST APIs.
type BasedServicesAccount struct {
autorest.Response `json:"-"`
// LocationProperty - The location of the resource.
LocationProperty *string `json:"location,omitempty"`
// Tags - Gets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters.
Tags map[string]*string `json:"tags"`
// Sku - The SKU of this account.
Sku *Sku `json:"sku,omitempty"`
// ID - The fully qualified Location Based Services Account resource identifier.
ID *string `json:"id,omitempty"`
// Name - The name of the Location Based Services Account, which is unique within a Resource Group.
Name *string `json:"name,omitempty"`
// Type - Azure resource type.
Type *string `json:"type,omitempty"`
}
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// MarshalJSON is the custom marshaler for BasedServicesAccount.
func (bsa BasedServicesAccount) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if bsa.LocationProperty != nil {
objectMap["location"] = bsa.LocationProperty
}
if bsa.Tags != nil {
objectMap["tags"] = bsa.Tags
}
if bsa.Sku != nil {
objectMap["sku"] = bsa.Sku
}
if bsa.ID != nil {
objectMap["id"] = bsa.ID
}
if bsa.Name != nil {
objectMap["name"] = bsa.Name
}
if bsa.Type != nil {
objectMap["type"] = bsa.Type
}
return json.Marshal(objectMap)
}
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// BasedServicesAccountCreateParameters parameters used to create a new Location Based Services Account.
type BasedServicesAccountCreateParameters struct {
// LocationProperty - The location of the resource.
LocationProperty *string `json:"location,omitempty"`
// Tags - Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters.
Tags map[string]*string `json:"tags"`
// Sku - The SKU of this account.
Sku *Sku `json:"sku,omitempty"`
}
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// MarshalJSON is the custom marshaler for BasedServicesAccountCreateParameters.
func (bsacp BasedServicesAccountCreateParameters) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if bsacp.LocationProperty != nil {
objectMap["location"] = bsacp.LocationProperty
}
if bsacp.Tags != nil {
objectMap["tags"] = bsacp.Tags
}
if bsacp.Sku != nil {
objectMap["sku"] = bsacp.Sku
}
return json.Marshal(objectMap)
}
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// BasedServicesAccountKeys the set of keys which can be used to access the Location Based Services REST APIs. Two
// keys are provided for key rotation without interruption.
type BasedServicesAccountKeys struct {
autorest.Response `json:"-"`
// ID - The full Azure resource identifier of the Location Based Services Account.
ID *string `json:"id,omitempty"`
// PrimaryKey - The primary key for accessing the Location Based Services REST APIs.
PrimaryKey *string `json:"primaryKey,omitempty"`
// SecondaryKey - The secondary key for accessing the Location Based Services REST APIs.
SecondaryKey *string `json:"secondaryKey,omitempty"`
}
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// BasedServicesAccounts a list of Location Based Services Accounts.
type BasedServicesAccounts struct {
autorest.Response `json:"-"`
// Value - A Location Based Services Account.
Value *[]BasedServicesAccount `json:"value,omitempty"`
}
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// BasedServicesAccountsMoveRequest the description of what resources to move between resource groups.
type BasedServicesAccountsMoveRequest struct {
// TargetResourceGroup - The name of the destination resource group.
TargetResourceGroup *string `json:"targetResourceGroup,omitempty"`
// ResourceIds - A list of resource names to move from the source resource group.
ResourceIds *[]string `json:"resourceIds,omitempty"`
}
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// BasedServicesAccountUpdateParameters parameters used to update an existing Location Based Services Account.
type BasedServicesAccountUpdateParameters struct {
// Tags - Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters.
Tags map[string]*string `json:"tags"`
// Sku - The SKU of this account.
Sku *Sku `json:"sku,omitempty"`
}
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// MarshalJSON is the custom marshaler for BasedServicesAccountUpdateParameters.
func (bsaup BasedServicesAccountUpdateParameters) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if bsaup.Tags != nil {
objectMap["tags"] = bsaup.Tags
}
if bsaup.Sku != nil {
objectMap["sku"] = bsaup.Sku
}
return json.Marshal(objectMap)
}
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// BasedServicesKeySpecification whether the operation refers to the primary or secondary key.
type BasedServicesKeySpecification struct {
// KeyType - Whether the operation refers to the primary or secondary key. Possible values include: 'Primary', 'Secondary'
KeyType KeyType `json:"keyType,omitempty"`
}
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// BasedServicesOperations the set of operations available for Location Based Services.
type BasedServicesOperations struct {
autorest.Response `json:"-"`
// Value - An operation available for Location Based Services.
Value *[]BasedServicesOperationsValueItem `json:"value,omitempty"`
}
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// BasedServicesOperationsValueItem ...
type BasedServicesOperationsValueItem struct {
// Name - Operation name: {provider}/{resource}/{operation}.
Name *string `json:"name,omitempty"`
// Display - The human-readable description of the operation.
Display *BasedServicesOperationsValueItemDisplay `json:"display,omitempty"`
// Origin - The origin of the operation.
Origin *string `json:"origin,omitempty"`
}
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// BasedServicesOperationsValueItemDisplay the human-readable description of the operation.
type BasedServicesOperationsValueItemDisplay struct {
// Provider - Service provider: Microsoft Location Based Services.
Provider *string `json:"provider,omitempty"`
// Resource - Resource on which the operation is performed.
Resource *string `json:"resource,omitempty"`
// Operation - The action that users can perform, based on their permission level.
Operation *string `json:"operation,omitempty"`
// Description - The description of the operation.
Description *string `json:"description,omitempty"`
}
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// Error this object is returned when an error occurs in the Location Based Service API
type Error struct {
// Code - Error code.
Code *string `json:"code,omitempty"`
// Message - If available, a human readable description of the error.
Message *string `json:"message,omitempty"`
// Target - If available, the component generating the error.
Target *string `json:"target,omitempty"`
// Details - If available, a list of additional details about the error.
Details *[]ErrorDetailsItem `json:"details,omitempty"`
}
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// ErrorDetailsItem ...
type ErrorDetailsItem struct {
// Code - Error code.
Code *string `json:"code,omitempty"`
// Message - If available, a human readable description of the error.
Message *string `json:"message,omitempty"`
// Target - If available, the component generating the error.
Target *string `json:"target,omitempty"`
}
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// Resource an Azure resource
type Resource struct {
// ID - The fully qualified Location Based Services Account resource identifier.
ID *string `json:"id,omitempty"`
// Name - The name of the Location Based Services Account, which is unique within a Resource Group.
Name *string `json:"name,omitempty"`
// Type - Azure resource type.
Type *string `json:"type,omitempty"`
}
// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/location/mgmt/2017-01-01-preview/location instead.
// Sku the SKU of the Location Based Services Account.
type Sku struct {
// Name - The name of the SKU, in standard format (such as S0).
Name *string `json:"name,omitempty"`
// Tier - Gets the sku tier. This is based on the SKU name.
Tier *string `json:"tier,omitempty"`
}