1package account
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.
18// Changes may cause incorrect behavior and will be lost if the code is regenerated.
19
20import (
21	"encoding/json"
22	"github.com/Azure/go-autorest/autorest"
23	"github.com/Azure/go-autorest/autorest/azure"
24	"github.com/Azure/go-autorest/autorest/date"
25	"github.com/Azure/go-autorest/autorest/to"
26	"net/http"
27)
28
29// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
30// DataLakeAnalyticsAccountState enumerates the values for data lake analytics account state.
31type DataLakeAnalyticsAccountState string
32
33const (
34	// Active ...
35	Active DataLakeAnalyticsAccountState = "active"
36	// Suspended ...
37	Suspended DataLakeAnalyticsAccountState = "suspended"
38)
39
40// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
41// PossibleDataLakeAnalyticsAccountStateValues returns an array of possible values for the DataLakeAnalyticsAccountState const type.
42func PossibleDataLakeAnalyticsAccountStateValues() []DataLakeAnalyticsAccountState {
43	return []DataLakeAnalyticsAccountState{Active, Suspended}
44}
45
46// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
47// DataLakeAnalyticsAccountStatus enumerates the values for data lake analytics account status.
48type DataLakeAnalyticsAccountStatus string
49
50const (
51	// Creating ...
52	Creating DataLakeAnalyticsAccountStatus = "Creating"
53	// Deleted ...
54	Deleted DataLakeAnalyticsAccountStatus = "Deleted"
55	// Deleting ...
56	Deleting DataLakeAnalyticsAccountStatus = "Deleting"
57	// Failed ...
58	Failed DataLakeAnalyticsAccountStatus = "Failed"
59	// Patching ...
60	Patching DataLakeAnalyticsAccountStatus = "Patching"
61	// Resuming ...
62	Resuming DataLakeAnalyticsAccountStatus = "Resuming"
63	// Running ...
64	Running DataLakeAnalyticsAccountStatus = "Running"
65	// Succeeded ...
66	Succeeded DataLakeAnalyticsAccountStatus = "Succeeded"
67	// Suspending ...
68	Suspending DataLakeAnalyticsAccountStatus = "Suspending"
69)
70
71// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
72// PossibleDataLakeAnalyticsAccountStatusValues returns an array of possible values for the DataLakeAnalyticsAccountStatus const type.
73func PossibleDataLakeAnalyticsAccountStatusValues() []DataLakeAnalyticsAccountStatus {
74	return []DataLakeAnalyticsAccountStatus{Creating, Deleted, Deleting, Failed, Patching, Resuming, Running, Succeeded, Suspending}
75}
76
77// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
78// OperationStatus enumerates the values for operation status.
79type OperationStatus string
80
81const (
82	// OperationStatusFailed ...
83	OperationStatusFailed OperationStatus = "Failed"
84	// OperationStatusInProgress ...
85	OperationStatusInProgress OperationStatus = "InProgress"
86	// OperationStatusSucceeded ...
87	OperationStatusSucceeded OperationStatus = "Succeeded"
88)
89
90// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
91// PossibleOperationStatusValues returns an array of possible values for the OperationStatus const type.
92func PossibleOperationStatusValues() []OperationStatus {
93	return []OperationStatus{OperationStatusFailed, OperationStatusInProgress, OperationStatusSucceeded}
94}
95
96// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
97// AddDataLakeStoreParameters additional Data Lake Store parameters.
98type AddDataLakeStoreParameters struct {
99	// Properties - the properties for the Data Lake Store account being added.
100	Properties *DataLakeStoreAccountInfoProperties `json:"properties,omitempty"`
101}
102
103// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
104// AddStorageAccountParameters additional Azure Storage account parameters.
105type AddStorageAccountParameters struct {
106	// Properties - the properties for the Azure Storage account being added.
107	Properties *StorageAccountProperties `json:"properties,omitempty"`
108}
109
110// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
111// AzureAsyncOperationResult the response body contains the status of the specified asynchronous operation,
112// indicating whether it has succeeded, is inprogress, or has failed. Note that this status is distinct from the
113// HTTP status code returned for the Get Operation Status operation itself. If the asynchronous operation
114// succeeded, the response body includes the HTTP status code for the successful request. If the asynchronous
115// operation failed, the response body includes the HTTP status code for the failed request and error information
116// regarding the failure.
117type AzureAsyncOperationResult struct {
118	// Status - the status of the AzureAsuncOperation. Possible values include: 'OperationStatusInProgress', 'OperationStatusSucceeded', 'OperationStatusFailed'
119	Status OperationStatus `json:"status,omitempty"`
120	Error  *Error          `json:"error,omitempty"`
121}
122
123// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
124// BlobContainer azure Storage blob container information.
125type BlobContainer struct {
126	autorest.Response `json:"-"`
127	// Name - the name of the blob container.
128	Name *string `json:"name,omitempty"`
129	// ID - the unique identifier of the blob container.
130	ID *string `json:"id,omitempty"`
131	// Type - the type of the blob container.
132	Type *string `json:"type,omitempty"`
133	// Properties - the properties of the blob container.
134	Properties *BlobContainerProperties `json:"properties,omitempty"`
135}
136
137// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
138// BlobContainerProperties azure Storage blob container properties information.
139type BlobContainerProperties struct {
140	// LastModifiedTime - the last modified time of the blob container.
141	LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"`
142}
143
144// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
145// CreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
146type CreateFuture struct {
147	azure.Future
148	req *http.Request
149}
150
151// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
152// Result returns the result of the asynchronous operation.
153// If the operation has not completed it will return an error.
154func (future CreateFuture) Result(client Client) (dlaa DataLakeAnalyticsAccount, err error) {
155	var done bool
156	done, err = future.Done(client)
157	if err != nil {
158		err = autorest.NewErrorWithError(err, "account.CreateFuture", "Result", future.Response(), "Polling failure")
159		return
160	}
161	if !done {
162		return dlaa, azure.NewAsyncOpIncompleteError("account.CreateFuture")
163	}
164	if future.PollingMethod() == azure.PollingLocation {
165		dlaa, err = client.CreateResponder(future.Response())
166		if err != nil {
167			err = autorest.NewErrorWithError(err, "account.CreateFuture", "Result", future.Response(), "Failure responding to request")
168		}
169		return
170	}
171	var req *http.Request
172	var resp *http.Response
173	if future.PollingURL() != "" {
174		req, err = http.NewRequest(http.MethodGet, future.PollingURL(), nil)
175		if err != nil {
176			return
177		}
178	} else {
179		req = autorest.ChangeToGet(future.req)
180	}
181	resp, err = autorest.SendWithSender(client, req,
182		autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
183	if err != nil {
184		err = autorest.NewErrorWithError(err, "account.CreateFuture", "Result", resp, "Failure sending request")
185		return
186	}
187	dlaa, err = client.CreateResponder(resp)
188	if err != nil {
189		err = autorest.NewErrorWithError(err, "account.CreateFuture", "Result", resp, "Failure responding to request")
190	}
191	return
192}
193
194// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
195// DataLakeAnalyticsAccount a Data Lake Analytics account object, containing all information associated with the
196// named Data Lake Analytics account.
197type DataLakeAnalyticsAccount struct {
198	autorest.Response `json:"-"`
199	// Location - the account regional location.
200	Location *string `json:"location,omitempty"`
201	// Name - the account name.
202	Name *string `json:"name,omitempty"`
203	// Type - the namespace and type of the account.
204	Type *string `json:"type,omitempty"`
205	// ID - the account subscription ID.
206	ID *string `json:"id,omitempty"`
207	// Tags - the value of custom properties.
208	Tags map[string]*string `json:"tags"`
209	// Properties - the properties defined by Data Lake Analytics all properties are specific to each resource provider.
210	Properties *DataLakeAnalyticsAccountProperties `json:"properties,omitempty"`
211}
212
213// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
214// MarshalJSON is the custom marshaler for DataLakeAnalyticsAccount.
215func (dlaa DataLakeAnalyticsAccount) MarshalJSON() ([]byte, error) {
216	objectMap := make(map[string]interface{})
217	if dlaa.Location != nil {
218		objectMap["location"] = dlaa.Location
219	}
220	if dlaa.Name != nil {
221		objectMap["name"] = dlaa.Name
222	}
223	if dlaa.Type != nil {
224		objectMap["type"] = dlaa.Type
225	}
226	if dlaa.ID != nil {
227		objectMap["id"] = dlaa.ID
228	}
229	if dlaa.Tags != nil {
230		objectMap["tags"] = dlaa.Tags
231	}
232	if dlaa.Properties != nil {
233		objectMap["properties"] = dlaa.Properties
234	}
235	return json.Marshal(objectMap)
236}
237
238// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
239// DataLakeAnalyticsAccountListDataLakeStoreResult data Lake Account list information.
240type DataLakeAnalyticsAccountListDataLakeStoreResult struct {
241	autorest.Response `json:"-"`
242	// Value - the results of the list operation
243	Value *[]DataLakeStoreAccountInfo `json:"value,omitempty"`
244	// Count - total number of results.
245	Count *int32 `json:"count,omitempty"`
246	// NextLink - the link (url) to the next page of results.
247	NextLink *string `json:"nextLink,omitempty"`
248}
249
250// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
251// DataLakeAnalyticsAccountListDataLakeStoreResultIterator provides access to a complete listing of
252// DataLakeStoreAccountInfo values.
253type DataLakeAnalyticsAccountListDataLakeStoreResultIterator struct {
254	i    int
255	page DataLakeAnalyticsAccountListDataLakeStoreResultPage
256}
257
258// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
259// Next advances to the next value.  If there was an error making
260// the request the iterator does not advance and the error is returned.
261func (iter *DataLakeAnalyticsAccountListDataLakeStoreResultIterator) Next() error {
262	iter.i++
263	if iter.i < len(iter.page.Values()) {
264		return nil
265	}
266	err := iter.page.Next()
267	if err != nil {
268		iter.i--
269		return err
270	}
271	iter.i = 0
272	return nil
273}
274
275// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
276// NotDone returns true if the enumeration should be started or is not yet complete.
277func (iter DataLakeAnalyticsAccountListDataLakeStoreResultIterator) NotDone() bool {
278	return iter.page.NotDone() && iter.i < len(iter.page.Values())
279}
280
281// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
282// Response returns the raw server response from the last page request.
283func (iter DataLakeAnalyticsAccountListDataLakeStoreResultIterator) Response() DataLakeAnalyticsAccountListDataLakeStoreResult {
284	return iter.page.Response()
285}
286
287// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
288// Value returns the current value or a zero-initialized value if the
289// iterator has advanced beyond the end of the collection.
290func (iter DataLakeAnalyticsAccountListDataLakeStoreResultIterator) Value() DataLakeStoreAccountInfo {
291	if !iter.page.NotDone() {
292		return DataLakeStoreAccountInfo{}
293	}
294	return iter.page.Values()[iter.i]
295}
296
297// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
298// IsEmpty returns true if the ListResult contains no values.
299func (dlaaldlsr DataLakeAnalyticsAccountListDataLakeStoreResult) IsEmpty() bool {
300	return dlaaldlsr.Value == nil || len(*dlaaldlsr.Value) == 0
301}
302
303// dataLakeAnalyticsAccountListDataLakeStoreResultPreparer prepares a request to retrieve the next set of results.
304// It returns nil if no more results exist.
305func (dlaaldlsr DataLakeAnalyticsAccountListDataLakeStoreResult) dataLakeAnalyticsAccountListDataLakeStoreResultPreparer() (*http.Request, error) {
306	if dlaaldlsr.NextLink == nil || len(to.String(dlaaldlsr.NextLink)) < 1 {
307		return nil, nil
308	}
309	return autorest.Prepare(&http.Request{},
310		autorest.AsJSON(),
311		autorest.AsGet(),
312		autorest.WithBaseURL(to.String(dlaaldlsr.NextLink)))
313}
314
315// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
316// DataLakeAnalyticsAccountListDataLakeStoreResultPage contains a page of DataLakeStoreAccountInfo values.
317type DataLakeAnalyticsAccountListDataLakeStoreResultPage struct {
318	fn        func(DataLakeAnalyticsAccountListDataLakeStoreResult) (DataLakeAnalyticsAccountListDataLakeStoreResult, error)
319	dlaaldlsr DataLakeAnalyticsAccountListDataLakeStoreResult
320}
321
322// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
323// Next advances to the next page of values.  If there was an error making
324// the request the page does not advance and the error is returned.
325func (page *DataLakeAnalyticsAccountListDataLakeStoreResultPage) Next() error {
326	next, err := page.fn(page.dlaaldlsr)
327	if err != nil {
328		return err
329	}
330	page.dlaaldlsr = next
331	return nil
332}
333
334// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
335// NotDone returns true if the page enumeration should be started or is not yet complete.
336func (page DataLakeAnalyticsAccountListDataLakeStoreResultPage) NotDone() bool {
337	return !page.dlaaldlsr.IsEmpty()
338}
339
340// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
341// Response returns the raw server response from the last page request.
342func (page DataLakeAnalyticsAccountListDataLakeStoreResultPage) Response() DataLakeAnalyticsAccountListDataLakeStoreResult {
343	return page.dlaaldlsr
344}
345
346// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
347// Values returns the slice of values for the current page or nil if there are no values.
348func (page DataLakeAnalyticsAccountListDataLakeStoreResultPage) Values() []DataLakeStoreAccountInfo {
349	if page.dlaaldlsr.IsEmpty() {
350		return nil
351	}
352	return *page.dlaaldlsr.Value
353}
354
355// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
356// DataLakeAnalyticsAccountListResult dataLakeAnalytics Account list information.
357type DataLakeAnalyticsAccountListResult struct {
358	autorest.Response `json:"-"`
359	// Value - the results of the list operation
360	Value *[]DataLakeAnalyticsAccount `json:"value,omitempty"`
361	// NextLink - the link (url) to the next page of results.
362	NextLink *string `json:"nextLink,omitempty"`
363}
364
365// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
366// DataLakeAnalyticsAccountListResultIterator provides access to a complete listing of DataLakeAnalyticsAccount
367// values.
368type DataLakeAnalyticsAccountListResultIterator struct {
369	i    int
370	page DataLakeAnalyticsAccountListResultPage
371}
372
373// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
374// Next advances to the next value.  If there was an error making
375// the request the iterator does not advance and the error is returned.
376func (iter *DataLakeAnalyticsAccountListResultIterator) Next() error {
377	iter.i++
378	if iter.i < len(iter.page.Values()) {
379		return nil
380	}
381	err := iter.page.Next()
382	if err != nil {
383		iter.i--
384		return err
385	}
386	iter.i = 0
387	return nil
388}
389
390// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
391// NotDone returns true if the enumeration should be started or is not yet complete.
392func (iter DataLakeAnalyticsAccountListResultIterator) NotDone() bool {
393	return iter.page.NotDone() && iter.i < len(iter.page.Values())
394}
395
396// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
397// Response returns the raw server response from the last page request.
398func (iter DataLakeAnalyticsAccountListResultIterator) Response() DataLakeAnalyticsAccountListResult {
399	return iter.page.Response()
400}
401
402// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
403// Value returns the current value or a zero-initialized value if the
404// iterator has advanced beyond the end of the collection.
405func (iter DataLakeAnalyticsAccountListResultIterator) Value() DataLakeAnalyticsAccount {
406	if !iter.page.NotDone() {
407		return DataLakeAnalyticsAccount{}
408	}
409	return iter.page.Values()[iter.i]
410}
411
412// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
413// IsEmpty returns true if the ListResult contains no values.
414func (dlaalr DataLakeAnalyticsAccountListResult) IsEmpty() bool {
415	return dlaalr.Value == nil || len(*dlaalr.Value) == 0
416}
417
418// dataLakeAnalyticsAccountListResultPreparer prepares a request to retrieve the next set of results.
419// It returns nil if no more results exist.
420func (dlaalr DataLakeAnalyticsAccountListResult) dataLakeAnalyticsAccountListResultPreparer() (*http.Request, error) {
421	if dlaalr.NextLink == nil || len(to.String(dlaalr.NextLink)) < 1 {
422		return nil, nil
423	}
424	return autorest.Prepare(&http.Request{},
425		autorest.AsJSON(),
426		autorest.AsGet(),
427		autorest.WithBaseURL(to.String(dlaalr.NextLink)))
428}
429
430// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
431// DataLakeAnalyticsAccountListResultPage contains a page of DataLakeAnalyticsAccount values.
432type DataLakeAnalyticsAccountListResultPage struct {
433	fn     func(DataLakeAnalyticsAccountListResult) (DataLakeAnalyticsAccountListResult, error)
434	dlaalr DataLakeAnalyticsAccountListResult
435}
436
437// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
438// Next advances to the next page of values.  If there was an error making
439// the request the page does not advance and the error is returned.
440func (page *DataLakeAnalyticsAccountListResultPage) Next() error {
441	next, err := page.fn(page.dlaalr)
442	if err != nil {
443		return err
444	}
445	page.dlaalr = next
446	return nil
447}
448
449// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
450// NotDone returns true if the page enumeration should be started or is not yet complete.
451func (page DataLakeAnalyticsAccountListResultPage) NotDone() bool {
452	return !page.dlaalr.IsEmpty()
453}
454
455// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
456// Response returns the raw server response from the last page request.
457func (page DataLakeAnalyticsAccountListResultPage) Response() DataLakeAnalyticsAccountListResult {
458	return page.dlaalr
459}
460
461// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
462// Values returns the slice of values for the current page or nil if there are no values.
463func (page DataLakeAnalyticsAccountListResultPage) Values() []DataLakeAnalyticsAccount {
464	if page.dlaalr.IsEmpty() {
465		return nil
466	}
467	return *page.dlaalr.Value
468}
469
470// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
471// DataLakeAnalyticsAccountListStorageAccountsResult azure Storage Account list information.
472type DataLakeAnalyticsAccountListStorageAccountsResult struct {
473	autorest.Response `json:"-"`
474	// Value - the results of the list operation
475	Value *[]StorageAccountInfo `json:"value,omitempty"`
476	// Count - total number of results.
477	Count *int32 `json:"count,omitempty"`
478	// NextLink - the link (url) to the next page of results.
479	NextLink *string `json:"nextLink,omitempty"`
480}
481
482// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
483// DataLakeAnalyticsAccountListStorageAccountsResultIterator provides access to a complete listing of
484// StorageAccountInfo values.
485type DataLakeAnalyticsAccountListStorageAccountsResultIterator struct {
486	i    int
487	page DataLakeAnalyticsAccountListStorageAccountsResultPage
488}
489
490// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
491// Next advances to the next value.  If there was an error making
492// the request the iterator does not advance and the error is returned.
493func (iter *DataLakeAnalyticsAccountListStorageAccountsResultIterator) Next() error {
494	iter.i++
495	if iter.i < len(iter.page.Values()) {
496		return nil
497	}
498	err := iter.page.Next()
499	if err != nil {
500		iter.i--
501		return err
502	}
503	iter.i = 0
504	return nil
505}
506
507// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
508// NotDone returns true if the enumeration should be started or is not yet complete.
509func (iter DataLakeAnalyticsAccountListStorageAccountsResultIterator) NotDone() bool {
510	return iter.page.NotDone() && iter.i < len(iter.page.Values())
511}
512
513// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
514// Response returns the raw server response from the last page request.
515func (iter DataLakeAnalyticsAccountListStorageAccountsResultIterator) Response() DataLakeAnalyticsAccountListStorageAccountsResult {
516	return iter.page.Response()
517}
518
519// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
520// Value returns the current value or a zero-initialized value if the
521// iterator has advanced beyond the end of the collection.
522func (iter DataLakeAnalyticsAccountListStorageAccountsResultIterator) Value() StorageAccountInfo {
523	if !iter.page.NotDone() {
524		return StorageAccountInfo{}
525	}
526	return iter.page.Values()[iter.i]
527}
528
529// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
530// IsEmpty returns true if the ListResult contains no values.
531func (dlaalsar DataLakeAnalyticsAccountListStorageAccountsResult) IsEmpty() bool {
532	return dlaalsar.Value == nil || len(*dlaalsar.Value) == 0
533}
534
535// dataLakeAnalyticsAccountListStorageAccountsResultPreparer prepares a request to retrieve the next set of results.
536// It returns nil if no more results exist.
537func (dlaalsar DataLakeAnalyticsAccountListStorageAccountsResult) dataLakeAnalyticsAccountListStorageAccountsResultPreparer() (*http.Request, error) {
538	if dlaalsar.NextLink == nil || len(to.String(dlaalsar.NextLink)) < 1 {
539		return nil, nil
540	}
541	return autorest.Prepare(&http.Request{},
542		autorest.AsJSON(),
543		autorest.AsGet(),
544		autorest.WithBaseURL(to.String(dlaalsar.NextLink)))
545}
546
547// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
548// DataLakeAnalyticsAccountListStorageAccountsResultPage contains a page of StorageAccountInfo values.
549type DataLakeAnalyticsAccountListStorageAccountsResultPage struct {
550	fn       func(DataLakeAnalyticsAccountListStorageAccountsResult) (DataLakeAnalyticsAccountListStorageAccountsResult, error)
551	dlaalsar DataLakeAnalyticsAccountListStorageAccountsResult
552}
553
554// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
555// Next advances to the next page of values.  If there was an error making
556// the request the page does not advance and the error is returned.
557func (page *DataLakeAnalyticsAccountListStorageAccountsResultPage) Next() error {
558	next, err := page.fn(page.dlaalsar)
559	if err != nil {
560		return err
561	}
562	page.dlaalsar = next
563	return nil
564}
565
566// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
567// NotDone returns true if the page enumeration should be started or is not yet complete.
568func (page DataLakeAnalyticsAccountListStorageAccountsResultPage) NotDone() bool {
569	return !page.dlaalsar.IsEmpty()
570}
571
572// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
573// Response returns the raw server response from the last page request.
574func (page DataLakeAnalyticsAccountListStorageAccountsResultPage) Response() DataLakeAnalyticsAccountListStorageAccountsResult {
575	return page.dlaalsar
576}
577
578// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
579// Values returns the slice of values for the current page or nil if there are no values.
580func (page DataLakeAnalyticsAccountListStorageAccountsResultPage) Values() []StorageAccountInfo {
581	if page.dlaalsar.IsEmpty() {
582		return nil
583	}
584	return *page.dlaalsar.Value
585}
586
587// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
588// DataLakeAnalyticsAccountProperties the account specific properties that are associated with an underlying Data
589// Lake Analytics account.
590type DataLakeAnalyticsAccountProperties struct {
591	// ProvisioningState - the provisioning status of the Data Lake Analytics account. Possible values include: 'Failed', 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted'
592	ProvisioningState DataLakeAnalyticsAccountStatus `json:"provisioningState,omitempty"`
593	// State - the state of the Data Lake Analytics account. Possible values include: 'Active', 'Suspended'
594	State DataLakeAnalyticsAccountState `json:"state,omitempty"`
595	// DefaultDataLakeStoreAccount - the default data lake storage account associated with this Data Lake Analytics account.
596	DefaultDataLakeStoreAccount *string `json:"defaultDataLakeStoreAccount,omitempty"`
597	// MaxDegreeOfParallelism - the maximum supported degree of parallelism for this account.
598	MaxDegreeOfParallelism *int32 `json:"maxDegreeOfParallelism,omitempty"`
599	// MaxJobCount - the maximum supported jobs running under the account at the same time.
600	MaxJobCount *int32 `json:"maxJobCount,omitempty"`
601	// DataLakeStoreAccounts - the list of Data Lake storage accounts associated with this account.
602	DataLakeStoreAccounts *[]DataLakeStoreAccountInfo `json:"dataLakeStoreAccounts,omitempty"`
603	// StorageAccounts - the list of Azure Blob storage accounts associated with this account.
604	StorageAccounts *[]StorageAccountInfo `json:"storageAccounts,omitempty"`
605	// CreationTime - the account creation time.
606	CreationTime *date.Time `json:"creationTime,omitempty"`
607	// LastModifiedTime - the account last modified time.
608	LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"`
609	// Endpoint - the full CName endpoint for this account.
610	Endpoint *string `json:"endpoint,omitempty"`
611}
612
613// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
614// DataLakeStoreAccountInfo data Lake Store account information.
615type DataLakeStoreAccountInfo struct {
616	autorest.Response `json:"-"`
617	// Name - the account name of the Data Lake Store account.
618	Name *string `json:"name,omitempty"`
619	// Properties - the properties associated with this Data Lake Store account.
620	Properties *DataLakeStoreAccountInfoProperties `json:"properties,omitempty"`
621}
622
623// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
624// DataLakeStoreAccountInfoProperties data Lake Store account properties information.
625type DataLakeStoreAccountInfoProperties struct {
626	// Suffix - the optional suffix for the Data Lake Store account.
627	Suffix *string `json:"suffix,omitempty"`
628}
629
630// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
631// DeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
632type DeleteFuture struct {
633	azure.Future
634	req *http.Request
635}
636
637// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
638// Result returns the result of the asynchronous operation.
639// If the operation has not completed it will return an error.
640func (future DeleteFuture) Result(client Client) (ar autorest.Response, err error) {
641	var done bool
642	done, err = future.Done(client)
643	if err != nil {
644		err = autorest.NewErrorWithError(err, "account.DeleteFuture", "Result", future.Response(), "Polling failure")
645		return
646	}
647	if !done {
648		return ar, azure.NewAsyncOpIncompleteError("account.DeleteFuture")
649	}
650	if future.PollingMethod() == azure.PollingLocation {
651		ar, err = client.DeleteResponder(future.Response())
652		if err != nil {
653			err = autorest.NewErrorWithError(err, "account.DeleteFuture", "Result", future.Response(), "Failure responding to request")
654		}
655		return
656	}
657	var req *http.Request
658	var resp *http.Response
659	if future.PollingURL() != "" {
660		req, err = http.NewRequest(http.MethodGet, future.PollingURL(), nil)
661		if err != nil {
662			return
663		}
664	} else {
665		req = autorest.ChangeToGet(future.req)
666	}
667	resp, err = autorest.SendWithSender(client, req,
668		autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
669	if err != nil {
670		err = autorest.NewErrorWithError(err, "account.DeleteFuture", "Result", resp, "Failure sending request")
671		return
672	}
673	ar, err = client.DeleteResponder(resp)
674	if err != nil {
675		err = autorest.NewErrorWithError(err, "account.DeleteFuture", "Result", resp, "Failure responding to request")
676	}
677	return
678}
679
680// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
681// Error generic resource error information.
682type Error struct {
683	// Code - the HTTP status code or error code associated with this error
684	Code *string `json:"code,omitempty"`
685	// Message - the error message to display.
686	Message *string `json:"message,omitempty"`
687	// Target - the target of the error.
688	Target *string `json:"target,omitempty"`
689	// Details - the list of error details
690	Details *[]ErrorDetails `json:"details,omitempty"`
691	// InnerError - the inner exceptions or errors, if any
692	InnerError *InnerError `json:"innerError,omitempty"`
693}
694
695// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
696// ErrorDetails generic resource error details information.
697type ErrorDetails struct {
698	// Code - the HTTP status code or error code associated with this error
699	Code *string `json:"code,omitempty"`
700	// Message - the error message localized based on Accept-Language
701	Message *string `json:"message,omitempty"`
702	// Target - the target of the particular error (for example, the name of the property in error).
703	Target *string `json:"target,omitempty"`
704}
705
706// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
707// InnerError generic resource inner error information.
708type InnerError struct {
709	// Trace - the stack trace for the error
710	Trace *string `json:"trace,omitempty"`
711	// Context - the context for the error message
712	Context *string `json:"context,omitempty"`
713}
714
715// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
716// ListBlobContainersResult the list of blob containers associated with the storage account attached to the Data
717// Lake Analytics account.
718type ListBlobContainersResult struct {
719	autorest.Response `json:"-"`
720	// Value - the results of the list operation
721	Value *[]BlobContainer `json:"value,omitempty"`
722	// NextLink - the link (url) to the next page of results.
723	NextLink *string `json:"nextLink,omitempty"`
724}
725
726// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
727// ListBlobContainersResultIterator provides access to a complete listing of BlobContainer values.
728type ListBlobContainersResultIterator struct {
729	i    int
730	page ListBlobContainersResultPage
731}
732
733// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
734// Next advances to the next value.  If there was an error making
735// the request the iterator does not advance and the error is returned.
736func (iter *ListBlobContainersResultIterator) Next() error {
737	iter.i++
738	if iter.i < len(iter.page.Values()) {
739		return nil
740	}
741	err := iter.page.Next()
742	if err != nil {
743		iter.i--
744		return err
745	}
746	iter.i = 0
747	return nil
748}
749
750// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
751// NotDone returns true if the enumeration should be started or is not yet complete.
752func (iter ListBlobContainersResultIterator) NotDone() bool {
753	return iter.page.NotDone() && iter.i < len(iter.page.Values())
754}
755
756// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
757// Response returns the raw server response from the last page request.
758func (iter ListBlobContainersResultIterator) Response() ListBlobContainersResult {
759	return iter.page.Response()
760}
761
762// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
763// Value returns the current value or a zero-initialized value if the
764// iterator has advanced beyond the end of the collection.
765func (iter ListBlobContainersResultIterator) Value() BlobContainer {
766	if !iter.page.NotDone() {
767		return BlobContainer{}
768	}
769	return iter.page.Values()[iter.i]
770}
771
772// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
773// IsEmpty returns true if the ListResult contains no values.
774func (lbcr ListBlobContainersResult) IsEmpty() bool {
775	return lbcr.Value == nil || len(*lbcr.Value) == 0
776}
777
778// listBlobContainersResultPreparer prepares a request to retrieve the next set of results.
779// It returns nil if no more results exist.
780func (lbcr ListBlobContainersResult) listBlobContainersResultPreparer() (*http.Request, error) {
781	if lbcr.NextLink == nil || len(to.String(lbcr.NextLink)) < 1 {
782		return nil, nil
783	}
784	return autorest.Prepare(&http.Request{},
785		autorest.AsJSON(),
786		autorest.AsGet(),
787		autorest.WithBaseURL(to.String(lbcr.NextLink)))
788}
789
790// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
791// ListBlobContainersResultPage contains a page of BlobContainer values.
792type ListBlobContainersResultPage struct {
793	fn   func(ListBlobContainersResult) (ListBlobContainersResult, error)
794	lbcr ListBlobContainersResult
795}
796
797// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
798// Next advances to the next page of values.  If there was an error making
799// the request the page does not advance and the error is returned.
800func (page *ListBlobContainersResultPage) Next() error {
801	next, err := page.fn(page.lbcr)
802	if err != nil {
803		return err
804	}
805	page.lbcr = next
806	return nil
807}
808
809// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
810// NotDone returns true if the page enumeration should be started or is not yet complete.
811func (page ListBlobContainersResultPage) NotDone() bool {
812	return !page.lbcr.IsEmpty()
813}
814
815// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
816// Response returns the raw server response from the last page request.
817func (page ListBlobContainersResultPage) Response() ListBlobContainersResult {
818	return page.lbcr
819}
820
821// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
822// Values returns the slice of values for the current page or nil if there are no values.
823func (page ListBlobContainersResultPage) Values() []BlobContainer {
824	if page.lbcr.IsEmpty() {
825		return nil
826	}
827	return *page.lbcr.Value
828}
829
830// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
831// ListSasTokensResult the SAS response that contains the storage account, container and associated SAS token for
832// connection use.
833type ListSasTokensResult struct {
834	autorest.Response `json:"-"`
835	Value             *[]SasTokenInfo `json:"value,omitempty"`
836	// NextLink - the link (url) to the next page of results.
837	NextLink *string `json:"nextLink,omitempty"`
838}
839
840// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
841// ListSasTokensResultIterator provides access to a complete listing of SasTokenInfo values.
842type ListSasTokensResultIterator struct {
843	i    int
844	page ListSasTokensResultPage
845}
846
847// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
848// Next advances to the next value.  If there was an error making
849// the request the iterator does not advance and the error is returned.
850func (iter *ListSasTokensResultIterator) Next() error {
851	iter.i++
852	if iter.i < len(iter.page.Values()) {
853		return nil
854	}
855	err := iter.page.Next()
856	if err != nil {
857		iter.i--
858		return err
859	}
860	iter.i = 0
861	return nil
862}
863
864// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
865// NotDone returns true if the enumeration should be started or is not yet complete.
866func (iter ListSasTokensResultIterator) NotDone() bool {
867	return iter.page.NotDone() && iter.i < len(iter.page.Values())
868}
869
870// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
871// Response returns the raw server response from the last page request.
872func (iter ListSasTokensResultIterator) Response() ListSasTokensResult {
873	return iter.page.Response()
874}
875
876// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
877// Value returns the current value or a zero-initialized value if the
878// iterator has advanced beyond the end of the collection.
879func (iter ListSasTokensResultIterator) Value() SasTokenInfo {
880	if !iter.page.NotDone() {
881		return SasTokenInfo{}
882	}
883	return iter.page.Values()[iter.i]
884}
885
886// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
887// IsEmpty returns true if the ListResult contains no values.
888func (lstr ListSasTokensResult) IsEmpty() bool {
889	return lstr.Value == nil || len(*lstr.Value) == 0
890}
891
892// listSasTokensResultPreparer prepares a request to retrieve the next set of results.
893// It returns nil if no more results exist.
894func (lstr ListSasTokensResult) listSasTokensResultPreparer() (*http.Request, error) {
895	if lstr.NextLink == nil || len(to.String(lstr.NextLink)) < 1 {
896		return nil, nil
897	}
898	return autorest.Prepare(&http.Request{},
899		autorest.AsJSON(),
900		autorest.AsGet(),
901		autorest.WithBaseURL(to.String(lstr.NextLink)))
902}
903
904// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
905// ListSasTokensResultPage contains a page of SasTokenInfo values.
906type ListSasTokensResultPage struct {
907	fn   func(ListSasTokensResult) (ListSasTokensResult, error)
908	lstr ListSasTokensResult
909}
910
911// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
912// Next advances to the next page of values.  If there was an error making
913// the request the page does not advance and the error is returned.
914func (page *ListSasTokensResultPage) Next() error {
915	next, err := page.fn(page.lstr)
916	if err != nil {
917		return err
918	}
919	page.lstr = next
920	return nil
921}
922
923// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
924// NotDone returns true if the page enumeration should be started or is not yet complete.
925func (page ListSasTokensResultPage) NotDone() bool {
926	return !page.lstr.IsEmpty()
927}
928
929// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
930// Response returns the raw server response from the last page request.
931func (page ListSasTokensResultPage) Response() ListSasTokensResult {
932	return page.lstr
933}
934
935// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
936// Values returns the slice of values for the current page or nil if there are no values.
937func (page ListSasTokensResultPage) Values() []SasTokenInfo {
938	if page.lstr.IsEmpty() {
939		return nil
940	}
941	return *page.lstr.Value
942}
943
944// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
945// SasTokenInfo SAS token information.
946type SasTokenInfo struct {
947	// AccessToken - the access token for the associated Azure Storage Container.
948	AccessToken *string `json:"accessToken,omitempty"`
949}
950
951// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
952// StorageAccountInfo azure Storage account information.
953type StorageAccountInfo struct {
954	autorest.Response `json:"-"`
955	// Name - the account name associated with the Azure storage account.
956	Name *string `json:"name,omitempty"`
957	// Properties - the properties associated with this storage account.
958	Properties *StorageAccountProperties `json:"properties,omitempty"`
959}
960
961// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
962// StorageAccountProperties azure Storage account properties information.
963type StorageAccountProperties struct {
964	// AccessKey - the access key associated with this Azure Storage account that will be used to connect to it.
965	AccessKey *string `json:"accessKey,omitempty"`
966	// Suffix - the optional suffix for the Data Lake account.
967	Suffix *string `json:"suffix,omitempty"`
968}
969
970// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
971// UpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
972type UpdateFuture struct {
973	azure.Future
974	req *http.Request
975}
976
977// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datalake/analytics/mgmt/2015-10-01-preview/account instead.
978// Result returns the result of the asynchronous operation.
979// If the operation has not completed it will return an error.
980func (future UpdateFuture) Result(client Client) (dlaa DataLakeAnalyticsAccount, err error) {
981	var done bool
982	done, err = future.Done(client)
983	if err != nil {
984		err = autorest.NewErrorWithError(err, "account.UpdateFuture", "Result", future.Response(), "Polling failure")
985		return
986	}
987	if !done {
988		return dlaa, azure.NewAsyncOpIncompleteError("account.UpdateFuture")
989	}
990	if future.PollingMethod() == azure.PollingLocation {
991		dlaa, err = client.UpdateResponder(future.Response())
992		if err != nil {
993			err = autorest.NewErrorWithError(err, "account.UpdateFuture", "Result", future.Response(), "Failure responding to request")
994		}
995		return
996	}
997	var req *http.Request
998	var resp *http.Response
999	if future.PollingURL() != "" {
1000		req, err = http.NewRequest(http.MethodGet, future.PollingURL(), nil)
1001		if err != nil {
1002			return
1003		}
1004	} else {
1005		req = autorest.ChangeToGet(future.req)
1006	}
1007	resp, err = autorest.SendWithSender(client, req,
1008		autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
1009	if err != nil {
1010		err = autorest.NewErrorWithError(err, "account.UpdateFuture", "Result", resp, "Failure sending request")
1011		return
1012	}
1013	dlaa, err = client.UpdateResponder(resp)
1014	if err != nil {
1015		err = autorest.NewErrorWithError(err, "account.UpdateFuture", "Result", resp, "Failure responding to request")
1016	}
1017	return
1018}
1019