forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.go
283 lines (250 loc) · 12.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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
package account
// 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 (
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/date"
"github.com/Azure/go-autorest/autorest/to"
"net/http"
)
// DataLakeAnalyticsAccountState enumerates the values for data lake analytics account state.
type DataLakeAnalyticsAccountState string
const (
// Active specifies the active state for data lake analytics account state.
Active DataLakeAnalyticsAccountState = "active"
// Suspended specifies the suspended state for data lake analytics account state.
Suspended DataLakeAnalyticsAccountState = "suspended"
)
// DataLakeAnalyticsAccountStatus enumerates the values for data lake analytics account status.
type DataLakeAnalyticsAccountStatus string
const (
// Creating specifies the creating state for data lake analytics account status.
Creating DataLakeAnalyticsAccountStatus = "Creating"
// Deleted specifies the deleted state for data lake analytics account status.
Deleted DataLakeAnalyticsAccountStatus = "Deleted"
// Deleting specifies the deleting state for data lake analytics account status.
Deleting DataLakeAnalyticsAccountStatus = "Deleting"
// Failed specifies the failed state for data lake analytics account status.
Failed DataLakeAnalyticsAccountStatus = "Failed"
// Patching specifies the patching state for data lake analytics account status.
Patching DataLakeAnalyticsAccountStatus = "Patching"
// Resuming specifies the resuming state for data lake analytics account status.
Resuming DataLakeAnalyticsAccountStatus = "Resuming"
// Running specifies the running state for data lake analytics account status.
Running DataLakeAnalyticsAccountStatus = "Running"
// Succeeded specifies the succeeded state for data lake analytics account status.
Succeeded DataLakeAnalyticsAccountStatus = "Succeeded"
// Suspending specifies the suspending state for data lake analytics account status.
Suspending DataLakeAnalyticsAccountStatus = "Suspending"
)
// OperationStatus enumerates the values for operation status.
type OperationStatus string
const (
// OperationStatusFailed specifies the operation status failed state for operation status.
OperationStatusFailed OperationStatus = "Failed"
// OperationStatusInProgress specifies the operation status in progress state for operation status.
OperationStatusInProgress OperationStatus = "InProgress"
// OperationStatusSucceeded specifies the operation status succeeded state for operation status.
OperationStatusSucceeded OperationStatus = "Succeeded"
)
// AddDataLakeStoreParameters is additional Data Lake Store parameters.
type AddDataLakeStoreParameters struct {
Properties *DataLakeStoreAccountInfoProperties `json:"properties,omitempty"`
}
// AddStorageAccountParameters is additional Azure Storage account parameters.
type AddStorageAccountParameters struct {
Properties *StorageAccountProperties `json:"properties,omitempty"`
}
// AzureAsyncOperationResult is the response body contains the status of the specified asynchronous operation,
// indicating whether it has succeeded, is inprogress, or has failed. Note that this status is distinct from the HTTP
// status code returned for the Get Operation Status operation itself. If the asynchronous operation succeeded, the
// response body includes the HTTP status code for the successful request. If the asynchronous operation failed, the
// response body includes the HTTP status code for the failed request and error information regarding the failure.
type AzureAsyncOperationResult struct {
Status OperationStatus `json:"status,omitempty"`
Error *Error `json:"error,omitempty"`
}
// BlobContainer is azure Storage blob container information.
type BlobContainer struct {
autorest.Response `json:"-"`
Name *string `json:"name,omitempty"`
ID *string `json:"id,omitempty"`
Type *string `json:"type,omitempty"`
Properties *BlobContainerProperties `json:"properties,omitempty"`
}
// BlobContainerProperties is azure Storage blob container properties information.
type BlobContainerProperties struct {
LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"`
}
// DataLakeAnalyticsAccount is a Data Lake Analytics account object, containing all information associated with the
// named Data Lake Analytics account.
type DataLakeAnalyticsAccount struct {
autorest.Response `json:"-"`
Location *string `json:"location,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
ID *string `json:"id,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
Properties *DataLakeAnalyticsAccountProperties `json:"properties,omitempty"`
}
// DataLakeAnalyticsAccountListDataLakeStoreResult is data Lake Account list information.
type DataLakeAnalyticsAccountListDataLakeStoreResult struct {
autorest.Response `json:"-"`
Value *[]DataLakeStoreAccountInfo `json:"value,omitempty"`
Count *int32 `json:"count,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// DataLakeAnalyticsAccountListDataLakeStoreResultPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client DataLakeAnalyticsAccountListDataLakeStoreResult) DataLakeAnalyticsAccountListDataLakeStoreResultPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// DataLakeAnalyticsAccountListResult is dataLakeAnalytics Account list information.
type DataLakeAnalyticsAccountListResult struct {
autorest.Response `json:"-"`
Value *[]DataLakeAnalyticsAccount `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// DataLakeAnalyticsAccountListResultPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client DataLakeAnalyticsAccountListResult) DataLakeAnalyticsAccountListResultPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// DataLakeAnalyticsAccountListStorageAccountsResult is azure Storage Account list information.
type DataLakeAnalyticsAccountListStorageAccountsResult struct {
autorest.Response `json:"-"`
Value *[]StorageAccountInfo `json:"value,omitempty"`
Count *int32 `json:"count,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// DataLakeAnalyticsAccountListStorageAccountsResultPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client DataLakeAnalyticsAccountListStorageAccountsResult) DataLakeAnalyticsAccountListStorageAccountsResultPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// DataLakeAnalyticsAccountProperties is the account specific properties that are associated with an underlying Data
// Lake Analytics account.
type DataLakeAnalyticsAccountProperties struct {
ProvisioningState DataLakeAnalyticsAccountStatus `json:"provisioningState,omitempty"`
State DataLakeAnalyticsAccountState `json:"state,omitempty"`
DefaultDataLakeStoreAccount *string `json:"defaultDataLakeStoreAccount,omitempty"`
MaxDegreeOfParallelism *int32 `json:"maxDegreeOfParallelism,omitempty"`
MaxJobCount *int32 `json:"maxJobCount,omitempty"`
DataLakeStoreAccounts *[]DataLakeStoreAccountInfo `json:"dataLakeStoreAccounts,omitempty"`
StorageAccounts *[]StorageAccountInfo `json:"storageAccounts,omitempty"`
CreationTime *date.Time `json:"creationTime,omitempty"`
LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"`
Endpoint *string `json:"endpoint,omitempty"`
}
// DataLakeStoreAccountInfo is data Lake Store account information.
type DataLakeStoreAccountInfo struct {
autorest.Response `json:"-"`
Name *string `json:"name,omitempty"`
Properties *DataLakeStoreAccountInfoProperties `json:"properties,omitempty"`
}
// DataLakeStoreAccountInfoProperties is data Lake Store account properties information.
type DataLakeStoreAccountInfoProperties struct {
Suffix *string `json:"suffix,omitempty"`
}
// Error is generic resource error information.
type Error struct {
Code *string `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Target *string `json:"target,omitempty"`
Details *[]ErrorDetails `json:"details,omitempty"`
InnerError *InnerError `json:"innerError,omitempty"`
}
// ErrorDetails is generic resource error details information.
type ErrorDetails struct {
Code *string `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Target *string `json:"target,omitempty"`
}
// InnerError is generic resource inner error information.
type InnerError struct {
Trace *string `json:"trace,omitempty"`
Context *string `json:"context,omitempty"`
}
// ListBlobContainersResult is the list of blob containers associated with the storage account attached to the Data
// Lake Analytics account.
type ListBlobContainersResult struct {
autorest.Response `json:"-"`
Value *[]BlobContainer `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// ListBlobContainersResultPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ListBlobContainersResult) ListBlobContainersResultPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// ListSasTokensResult is the SAS response that contains the storage account, container and associated SAS token for
// connection use.
type ListSasTokensResult struct {
autorest.Response `json:"-"`
Value *[]SasTokenInfo `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// ListSasTokensResultPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ListSasTokensResult) ListSasTokensResultPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// SasTokenInfo is SAS token information.
type SasTokenInfo struct {
AccessToken *string `json:"accessToken,omitempty"`
}
// StorageAccountInfo is azure Storage account information.
type StorageAccountInfo struct {
autorest.Response `json:"-"`
Name *string `json:"name,omitempty"`
Properties *StorageAccountProperties `json:"properties,omitempty"`
}
// StorageAccountProperties is azure Storage account properties information.
type StorageAccountProperties struct {
AccessKey *string `json:"accessKey,omitempty"`
Suffix *string `json:"suffix,omitempty"`
}