1package catalog 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 "context" 22 "github.com/Azure/go-autorest/autorest" 23 "github.com/Azure/go-autorest/autorest/date" 24 "github.com/Azure/go-autorest/autorest/to" 25 "github.com/Azure/go-autorest/tracing" 26 "github.com/satori/go.uuid" 27 "net/http" 28) 29 30// The package's fully qualified name. 31const fqdn = "github.com/Azure/azure-sdk-for-go/services/datalake/analytics/2016-11-01-preview/catalog" 32 33// ACLType enumerates the values for acl type. 34type ACLType string 35 36const ( 37 // Group ... 38 Group ACLType = "Group" 39 // GroupObj ... 40 GroupObj ACLType = "GroupObj" 41 // Other ... 42 Other ACLType = "Other" 43 // User ... 44 User ACLType = "User" 45 // UserObj ... 46 UserObj ACLType = "UserObj" 47) 48 49// PossibleACLTypeValues returns an array of possible values for the ACLType const type. 50func PossibleACLTypeValues() []ACLType { 51 return []ACLType{Group, GroupObj, Other, User, UserObj} 52} 53 54// FileType enumerates the values for file type. 55type FileType string 56 57const ( 58 // Assembly ... 59 Assembly FileType = "Assembly" 60 // Nodeploy ... 61 Nodeploy FileType = "Nodeploy" 62 // Resource ... 63 Resource FileType = "Resource" 64) 65 66// PossibleFileTypeValues returns an array of possible values for the FileType const type. 67func PossibleFileTypeValues() []FileType { 68 return []FileType{Assembly, Nodeploy, Resource} 69} 70 71// PermissionType enumerates the values for permission type. 72type PermissionType string 73 74const ( 75 // All ... 76 All PermissionType = "All" 77 // Alter ... 78 Alter PermissionType = "Alter" 79 // Create ... 80 Create PermissionType = "Create" 81 // Drop ... 82 Drop PermissionType = "Drop" 83 // None ... 84 None PermissionType = "None" 85 // Use ... 86 Use PermissionType = "Use" 87 // Write ... 88 Write PermissionType = "Write" 89) 90 91// PossiblePermissionTypeValues returns an array of possible values for the PermissionType const type. 92func PossiblePermissionTypeValues() []PermissionType { 93 return []PermissionType{All, Alter, Create, Drop, None, Use, Write} 94} 95 96// ACL a Data Lake Analytics catalog access control list (ACL) entry. 97type ACL struct { 98 // AceType - READ-ONLY; the access control list (ACL) entry type. UserObj and GroupObj denote the owning user and group, respectively. Possible values include: 'UserObj', 'GroupObj', 'Other', 'User', 'Group' 99 AceType ACLType `json:"aceType,omitempty"` 100 // PrincipalID - READ-ONLY; the Azure AD object ID of the user or group being specified in the access control list (ACL) entry. 101 PrincipalID *uuid.UUID `json:"principalId,omitempty"` 102 // Permission - READ-ONLY; the permission type of the access control list (ACL) entry. Possible values include: 'None', 'Use', 'Create', 'Drop', 'Alter', 'Write', 'All' 103 Permission PermissionType `json:"permission,omitempty"` 104} 105 106// ACLCreateOrUpdateParameters the parameters used to create or update an access control list (ACL) entry. 107type ACLCreateOrUpdateParameters struct { 108 // AceType - the access control list (ACL) entry type. UserObj and GroupObj denote the owning user and group, respectively. Possible values include: 'UserObj', 'GroupObj', 'Other', 'User', 'Group' 109 AceType ACLType `json:"aceType,omitempty"` 110 // PrincipalID - the Azure AD object ID of the user or group being specified in the access control list (ACL) entry. 111 PrincipalID *uuid.UUID `json:"principalId,omitempty"` 112 // Permission - the permission type of the access control list (ACL) entry. Possible values include: 'None', 'Use', 'Create', 'Drop', 'Alter', 'Write', 'All' 113 Permission PermissionType `json:"permission,omitempty"` 114} 115 116// ACLDeleteParameters the parameters used to delete an access control list (ACL) entry. 117type ACLDeleteParameters struct { 118 // AceType - the access control list (ACL) entry type. UserObj and GroupObj denote the owning user and group, respectively. Possible values include: 'UserObj', 'GroupObj', 'Other', 'User', 'Group' 119 AceType ACLType `json:"aceType,omitempty"` 120 // PrincipalID - the Azure AD object ID of the user or group being specified in the access control list (ACL) entry. 121 PrincipalID *uuid.UUID `json:"principalId,omitempty"` 122} 123 124// ACLList a Data Lake Analytics catalog access control list (ACL). 125type ACLList struct { 126 autorest.Response `json:"-"` 127 // Value - READ-ONLY; the access control list (ACL). 128 Value *[]ACL `json:"value,omitempty"` 129 // NextLink - the link to the next page of results. 130 NextLink *string `json:"nextLink,omitempty"` 131} 132 133// ACLListIterator provides access to a complete listing of ACL values. 134type ACLListIterator struct { 135 i int 136 page ACLListPage 137} 138 139// NextWithContext advances to the next value. If there was an error making 140// the request the iterator does not advance and the error is returned. 141func (iter *ACLListIterator) NextWithContext(ctx context.Context) (err error) { 142 if tracing.IsEnabled() { 143 ctx = tracing.StartSpan(ctx, fqdn+"/ACLListIterator.NextWithContext") 144 defer func() { 145 sc := -1 146 if iter.Response().Response.Response != nil { 147 sc = iter.Response().Response.Response.StatusCode 148 } 149 tracing.EndSpan(ctx, sc, err) 150 }() 151 } 152 iter.i++ 153 if iter.i < len(iter.page.Values()) { 154 return nil 155 } 156 err = iter.page.NextWithContext(ctx) 157 if err != nil { 158 iter.i-- 159 return err 160 } 161 iter.i = 0 162 return nil 163} 164 165// Next advances to the next value. If there was an error making 166// the request the iterator does not advance and the error is returned. 167// Deprecated: Use NextWithContext() instead. 168func (iter *ACLListIterator) Next() error { 169 return iter.NextWithContext(context.Background()) 170} 171 172// NotDone returns true if the enumeration should be started or is not yet complete. 173func (iter ACLListIterator) NotDone() bool { 174 return iter.page.NotDone() && iter.i < len(iter.page.Values()) 175} 176 177// Response returns the raw server response from the last page request. 178func (iter ACLListIterator) Response() ACLList { 179 return iter.page.Response() 180} 181 182// Value returns the current value or a zero-initialized value if the 183// iterator has advanced beyond the end of the collection. 184func (iter ACLListIterator) Value() ACL { 185 if !iter.page.NotDone() { 186 return ACL{} 187 } 188 return iter.page.Values()[iter.i] 189} 190 191// Creates a new instance of the ACLListIterator type. 192func NewACLListIterator(page ACLListPage) ACLListIterator { 193 return ACLListIterator{page: page} 194} 195 196// IsEmpty returns true if the ListResult contains no values. 197func (al ACLList) IsEmpty() bool { 198 return al.Value == nil || len(*al.Value) == 0 199} 200 201// aCLListPreparer prepares a request to retrieve the next set of results. 202// It returns nil if no more results exist. 203func (al ACLList) aCLListPreparer(ctx context.Context) (*http.Request, error) { 204 if al.NextLink == nil || len(to.String(al.NextLink)) < 1 { 205 return nil, nil 206 } 207 return autorest.Prepare((&http.Request{}).WithContext(ctx), 208 autorest.AsJSON(), 209 autorest.AsGet(), 210 autorest.WithBaseURL(to.String(al.NextLink))) 211} 212 213// ACLListPage contains a page of ACL values. 214type ACLListPage struct { 215 fn func(context.Context, ACLList) (ACLList, error) 216 al ACLList 217} 218 219// NextWithContext advances to the next page of values. If there was an error making 220// the request the page does not advance and the error is returned. 221func (page *ACLListPage) NextWithContext(ctx context.Context) (err error) { 222 if tracing.IsEnabled() { 223 ctx = tracing.StartSpan(ctx, fqdn+"/ACLListPage.NextWithContext") 224 defer func() { 225 sc := -1 226 if page.Response().Response.Response != nil { 227 sc = page.Response().Response.Response.StatusCode 228 } 229 tracing.EndSpan(ctx, sc, err) 230 }() 231 } 232 next, err := page.fn(ctx, page.al) 233 if err != nil { 234 return err 235 } 236 page.al = next 237 return nil 238} 239 240// Next advances to the next page of values. If there was an error making 241// the request the page does not advance and the error is returned. 242// Deprecated: Use NextWithContext() instead. 243func (page *ACLListPage) Next() error { 244 return page.NextWithContext(context.Background()) 245} 246 247// NotDone returns true if the page enumeration should be started or is not yet complete. 248func (page ACLListPage) NotDone() bool { 249 return !page.al.IsEmpty() 250} 251 252// Response returns the raw server response from the last page request. 253func (page ACLListPage) Response() ACLList { 254 return page.al 255} 256 257// Values returns the slice of values for the current page or nil if there are no values. 258func (page ACLListPage) Values() []ACL { 259 if page.al.IsEmpty() { 260 return nil 261 } 262 return *page.al.Value 263} 264 265// Creates a new instance of the ACLListPage type. 266func NewACLListPage(getNextPage func(context.Context, ACLList) (ACLList, error)) ACLListPage { 267 return ACLListPage{fn: getNextPage} 268} 269 270// DataLakeAnalyticsCatalogCredentialCreateParameters data Lake Analytics catalog credential creation 271// parameters. 272type DataLakeAnalyticsCatalogCredentialCreateParameters struct { 273 // Password - the password for the credential and user with access to the data source. 274 Password *string `json:"password,omitempty"` 275 // URI - the URI identifier for the data source this credential can connect to in the format <hostname>:<port> 276 URI *string `json:"uri,omitempty"` 277 // UserID - the object identifier for the user associated with this credential with access to the data source. 278 UserID *string `json:"userId,omitempty"` 279} 280 281// DataLakeAnalyticsCatalogCredentialDeleteParameters data Lake Analytics catalog credential deletion 282// parameters. 283type DataLakeAnalyticsCatalogCredentialDeleteParameters struct { 284 // Password - the current password for the credential and user with access to the data source. This is required if the requester is not the account owner. 285 Password *string `json:"password,omitempty"` 286} 287 288// DataLakeAnalyticsCatalogCredentialUpdateParameters data Lake Analytics catalog credential update 289// parameters. 290type DataLakeAnalyticsCatalogCredentialUpdateParameters struct { 291 // Password - the current password for the credential and user with access to the data source. This is required if the requester is not the account owner. 292 Password *string `json:"password,omitempty"` 293 // NewPassword - the new password for the credential and user with access to the data source. 294 NewPassword *string `json:"newPassword,omitempty"` 295 // URI - the URI identifier for the data source this credential can connect to in the format <hostname>:<port> 296 URI *string `json:"uri,omitempty"` 297 // UserID - the object identifier for the user associated with this credential with access to the data source. 298 UserID *string `json:"userId,omitempty"` 299} 300 301// DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters data Lake Analytics catalog secret creation and 302// update parameters. This is deprecated and will be removed in the next release. Please use 303// DataLakeAnalyticsCatalogCredentialCreateOrUpdateParameters instead. 304type DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters struct { 305 // Password - the password for the secret to pass in 306 Password *string `json:"password,omitempty"` 307 // URI - the URI identifier for the secret in the format <hostname>:<port> 308 URI *string `json:"uri,omitempty"` 309} 310 311// DdlName a Data Lake Analytics DDL name item. 312type DdlName struct { 313 // FirstPart - the name of the table associated with this database and schema. 314 FirstPart *string `json:"firstPart,omitempty"` 315 // SecondPart - the name of the table associated with this database and schema. 316 SecondPart *string `json:"secondPart,omitempty"` 317 // ThirdPart - the name of the table associated with this database and schema. 318 ThirdPart *string `json:"thirdPart,omitempty"` 319 // Server - the name of the table associated with this database and schema. 320 Server *string `json:"server,omitempty"` 321} 322 323// EntityID a Data Lake Analytics catalog entity identifier object. 324type EntityID struct { 325 // Name - the name of the external table associated with this database, schema and table. 326 Name *DdlName `json:"name,omitempty"` 327 // Version - the version of the external data source. 328 Version *uuid.UUID `json:"version,omitempty"` 329} 330 331// ExternalTable a Data Lake Analytics catalog external table item. 332type ExternalTable struct { 333 // TableName - the name of the table associated with this database and schema. 334 TableName *string `json:"tableName,omitempty"` 335 // DataSource - the data source associated with this external table. 336 DataSource *EntityID `json:"dataSource,omitempty"` 337} 338 339// Item a Data Lake Analytics catalog item. 340type Item struct { 341 // ComputeAccountName - the name of the Data Lake Analytics account. 342 ComputeAccountName *string `json:"computeAccountName,omitempty"` 343 // Version - the version of the catalog item. 344 Version *uuid.UUID `json:"version,omitempty"` 345} 346 347// ItemList a Data Lake Analytics catalog item list. 348type ItemList struct { 349 // NextLink - the link to the next page of results. 350 NextLink *string `json:"nextLink,omitempty"` 351} 352 353// TypeFieldInfo a Data Lake Analytics catalog type field information item. 354type TypeFieldInfo struct { 355 // Name - the name of the field associated with this type. 356 Name *string `json:"name,omitempty"` 357 // Type - the type of the field. 358 Type *string `json:"type,omitempty"` 359} 360 361// USQLAssembly a Data Lake Analytics catalog U-SQL Assembly. 362type USQLAssembly struct { 363 autorest.Response `json:"-"` 364 // DatabaseName - the name of the database. 365 DatabaseName *string `json:"databaseName,omitempty"` 366 // Name - the name of the assembly. 367 Name *string `json:"assemblyName,omitempty"` 368 // ClrName - the name of the CLR. 369 ClrName *string `json:"clrName,omitempty"` 370 // IsVisible - the switch indicating if this assembly is visible or not. 371 IsVisible *bool `json:"isVisible,omitempty"` 372 // IsUserDefined - the switch indicating if this assembly is user defined or not. 373 IsUserDefined *bool `json:"isUserDefined,omitempty"` 374 // Files - the list of files associated with the assembly 375 Files *[]USQLAssemblyFileInfo `json:"files,omitempty"` 376 // Dependencies - the list of dependencies associated with the assembly 377 Dependencies *[]USQLAssemblyDependencyInfo `json:"dependencies,omitempty"` 378 // ComputeAccountName - the name of the Data Lake Analytics account. 379 ComputeAccountName *string `json:"computeAccountName,omitempty"` 380 // Version - the version of the catalog item. 381 Version *uuid.UUID `json:"version,omitempty"` 382} 383 384// USQLAssemblyClr a Data Lake Analytics catalog U-SQL assembly CLR item. 385type USQLAssemblyClr struct { 386 // DatabaseName - the name of the database. 387 DatabaseName *string `json:"databaseName,omitempty"` 388 // Name - the name of the assembly. 389 Name *string `json:"assemblyClrName,omitempty"` 390 // ClrName - the name of the CLR. 391 ClrName *string `json:"clrName,omitempty"` 392 // ComputeAccountName - the name of the Data Lake Analytics account. 393 ComputeAccountName *string `json:"computeAccountName,omitempty"` 394 // Version - the version of the catalog item. 395 Version *uuid.UUID `json:"version,omitempty"` 396} 397 398// USQLAssemblyDependencyInfo a Data Lake Analytics catalog U-SQL dependency information item. 399type USQLAssemblyDependencyInfo struct { 400 // EntityID - the EntityId of the dependency. 401 EntityID *EntityID `json:"entityId,omitempty"` 402} 403 404// USQLAssemblyFileInfo a Data Lake Analytics catalog U-SQL assembly file information item. 405type USQLAssemblyFileInfo struct { 406 // Type - the assembly file type. Possible values include: 'Assembly', 'Resource', 'Nodeploy' 407 Type FileType `json:"type,omitempty"` 408 // OriginalPath - The original path to the assembly file. 409 OriginalPath *string `json:"originalPath,omitempty"` 410 // ContentPath - The content path to the assembly file. 411 ContentPath *string `json:"contentPath,omitempty"` 412} 413 414// USQLAssemblyList a Data Lake Analytics catalog U-SQL assembly CLR item list. 415type USQLAssemblyList struct { 416 autorest.Response `json:"-"` 417 // Value - READ-ONLY; the list of assemblies in the database 418 Value *[]USQLAssemblyClr `json:"value,omitempty"` 419 // NextLink - the link to the next page of results. 420 NextLink *string `json:"nextLink,omitempty"` 421} 422 423// USQLAssemblyListIterator provides access to a complete listing of USQLAssemblyClr values. 424type USQLAssemblyListIterator struct { 425 i int 426 page USQLAssemblyListPage 427} 428 429// NextWithContext advances to the next value. If there was an error making 430// the request the iterator does not advance and the error is returned. 431func (iter *USQLAssemblyListIterator) NextWithContext(ctx context.Context) (err error) { 432 if tracing.IsEnabled() { 433 ctx = tracing.StartSpan(ctx, fqdn+"/USQLAssemblyListIterator.NextWithContext") 434 defer func() { 435 sc := -1 436 if iter.Response().Response.Response != nil { 437 sc = iter.Response().Response.Response.StatusCode 438 } 439 tracing.EndSpan(ctx, sc, err) 440 }() 441 } 442 iter.i++ 443 if iter.i < len(iter.page.Values()) { 444 return nil 445 } 446 err = iter.page.NextWithContext(ctx) 447 if err != nil { 448 iter.i-- 449 return err 450 } 451 iter.i = 0 452 return nil 453} 454 455// Next advances to the next value. If there was an error making 456// the request the iterator does not advance and the error is returned. 457// Deprecated: Use NextWithContext() instead. 458func (iter *USQLAssemblyListIterator) Next() error { 459 return iter.NextWithContext(context.Background()) 460} 461 462// NotDone returns true if the enumeration should be started or is not yet complete. 463func (iter USQLAssemblyListIterator) NotDone() bool { 464 return iter.page.NotDone() && iter.i < len(iter.page.Values()) 465} 466 467// Response returns the raw server response from the last page request. 468func (iter USQLAssemblyListIterator) Response() USQLAssemblyList { 469 return iter.page.Response() 470} 471 472// Value returns the current value or a zero-initialized value if the 473// iterator has advanced beyond the end of the collection. 474func (iter USQLAssemblyListIterator) Value() USQLAssemblyClr { 475 if !iter.page.NotDone() { 476 return USQLAssemblyClr{} 477 } 478 return iter.page.Values()[iter.i] 479} 480 481// Creates a new instance of the USQLAssemblyListIterator type. 482func NewUSQLAssemblyListIterator(page USQLAssemblyListPage) USQLAssemblyListIterator { 483 return USQLAssemblyListIterator{page: page} 484} 485 486// IsEmpty returns true if the ListResult contains no values. 487func (usal USQLAssemblyList) IsEmpty() bool { 488 return usal.Value == nil || len(*usal.Value) == 0 489} 490 491// uSQLAssemblyListPreparer prepares a request to retrieve the next set of results. 492// It returns nil if no more results exist. 493func (usal USQLAssemblyList) uSQLAssemblyListPreparer(ctx context.Context) (*http.Request, error) { 494 if usal.NextLink == nil || len(to.String(usal.NextLink)) < 1 { 495 return nil, nil 496 } 497 return autorest.Prepare((&http.Request{}).WithContext(ctx), 498 autorest.AsJSON(), 499 autorest.AsGet(), 500 autorest.WithBaseURL(to.String(usal.NextLink))) 501} 502 503// USQLAssemblyListPage contains a page of USQLAssemblyClr values. 504type USQLAssemblyListPage struct { 505 fn func(context.Context, USQLAssemblyList) (USQLAssemblyList, error) 506 ual USQLAssemblyList 507} 508 509// NextWithContext advances to the next page of values. If there was an error making 510// the request the page does not advance and the error is returned. 511func (page *USQLAssemblyListPage) NextWithContext(ctx context.Context) (err error) { 512 if tracing.IsEnabled() { 513 ctx = tracing.StartSpan(ctx, fqdn+"/USQLAssemblyListPage.NextWithContext") 514 defer func() { 515 sc := -1 516 if page.Response().Response.Response != nil { 517 sc = page.Response().Response.Response.StatusCode 518 } 519 tracing.EndSpan(ctx, sc, err) 520 }() 521 } 522 next, err := page.fn(ctx, page.ual) 523 if err != nil { 524 return err 525 } 526 page.ual = next 527 return nil 528} 529 530// Next advances to the next page of values. If there was an error making 531// the request the page does not advance and the error is returned. 532// Deprecated: Use NextWithContext() instead. 533func (page *USQLAssemblyListPage) Next() error { 534 return page.NextWithContext(context.Background()) 535} 536 537// NotDone returns true if the page enumeration should be started or is not yet complete. 538func (page USQLAssemblyListPage) NotDone() bool { 539 return !page.ual.IsEmpty() 540} 541 542// Response returns the raw server response from the last page request. 543func (page USQLAssemblyListPage) Response() USQLAssemblyList { 544 return page.ual 545} 546 547// Values returns the slice of values for the current page or nil if there are no values. 548func (page USQLAssemblyListPage) Values() []USQLAssemblyClr { 549 if page.ual.IsEmpty() { 550 return nil 551 } 552 return *page.ual.Value 553} 554 555// Creates a new instance of the USQLAssemblyListPage type. 556func NewUSQLAssemblyListPage(getNextPage func(context.Context, USQLAssemblyList) (USQLAssemblyList, error)) USQLAssemblyListPage { 557 return USQLAssemblyListPage{fn: getNextPage} 558} 559 560// USQLCredential a Data Lake Analytics catalog U-SQL credential item. 561type USQLCredential struct { 562 autorest.Response `json:"-"` 563 // Name - the name of the credential. 564 Name *string `json:"credentialName,omitempty"` 565 // ComputeAccountName - the name of the Data Lake Analytics account. 566 ComputeAccountName *string `json:"computeAccountName,omitempty"` 567 // Version - the version of the catalog item. 568 Version *uuid.UUID `json:"version,omitempty"` 569} 570 571// USQLCredentialList a Data Lake Analytics catalog U-SQL credential item list. 572type USQLCredentialList struct { 573 autorest.Response `json:"-"` 574 // Value - READ-ONLY; the list of credentials in the database 575 Value *[]USQLCredential `json:"value,omitempty"` 576 // NextLink - the link to the next page of results. 577 NextLink *string `json:"nextLink,omitempty"` 578} 579 580// USQLCredentialListIterator provides access to a complete listing of USQLCredential values. 581type USQLCredentialListIterator struct { 582 i int 583 page USQLCredentialListPage 584} 585 586// NextWithContext advances to the next value. If there was an error making 587// the request the iterator does not advance and the error is returned. 588func (iter *USQLCredentialListIterator) NextWithContext(ctx context.Context) (err error) { 589 if tracing.IsEnabled() { 590 ctx = tracing.StartSpan(ctx, fqdn+"/USQLCredentialListIterator.NextWithContext") 591 defer func() { 592 sc := -1 593 if iter.Response().Response.Response != nil { 594 sc = iter.Response().Response.Response.StatusCode 595 } 596 tracing.EndSpan(ctx, sc, err) 597 }() 598 } 599 iter.i++ 600 if iter.i < len(iter.page.Values()) { 601 return nil 602 } 603 err = iter.page.NextWithContext(ctx) 604 if err != nil { 605 iter.i-- 606 return err 607 } 608 iter.i = 0 609 return nil 610} 611 612// Next advances to the next value. If there was an error making 613// the request the iterator does not advance and the error is returned. 614// Deprecated: Use NextWithContext() instead. 615func (iter *USQLCredentialListIterator) Next() error { 616 return iter.NextWithContext(context.Background()) 617} 618 619// NotDone returns true if the enumeration should be started or is not yet complete. 620func (iter USQLCredentialListIterator) NotDone() bool { 621 return iter.page.NotDone() && iter.i < len(iter.page.Values()) 622} 623 624// Response returns the raw server response from the last page request. 625func (iter USQLCredentialListIterator) Response() USQLCredentialList { 626 return iter.page.Response() 627} 628 629// Value returns the current value or a zero-initialized value if the 630// iterator has advanced beyond the end of the collection. 631func (iter USQLCredentialListIterator) Value() USQLCredential { 632 if !iter.page.NotDone() { 633 return USQLCredential{} 634 } 635 return iter.page.Values()[iter.i] 636} 637 638// Creates a new instance of the USQLCredentialListIterator type. 639func NewUSQLCredentialListIterator(page USQLCredentialListPage) USQLCredentialListIterator { 640 return USQLCredentialListIterator{page: page} 641} 642 643// IsEmpty returns true if the ListResult contains no values. 644func (uscl USQLCredentialList) IsEmpty() bool { 645 return uscl.Value == nil || len(*uscl.Value) == 0 646} 647 648// uSQLCredentialListPreparer prepares a request to retrieve the next set of results. 649// It returns nil if no more results exist. 650func (uscl USQLCredentialList) uSQLCredentialListPreparer(ctx context.Context) (*http.Request, error) { 651 if uscl.NextLink == nil || len(to.String(uscl.NextLink)) < 1 { 652 return nil, nil 653 } 654 return autorest.Prepare((&http.Request{}).WithContext(ctx), 655 autorest.AsJSON(), 656 autorest.AsGet(), 657 autorest.WithBaseURL(to.String(uscl.NextLink))) 658} 659 660// USQLCredentialListPage contains a page of USQLCredential values. 661type USQLCredentialListPage struct { 662 fn func(context.Context, USQLCredentialList) (USQLCredentialList, error) 663 ucl USQLCredentialList 664} 665 666// NextWithContext advances to the next page of values. If there was an error making 667// the request the page does not advance and the error is returned. 668func (page *USQLCredentialListPage) NextWithContext(ctx context.Context) (err error) { 669 if tracing.IsEnabled() { 670 ctx = tracing.StartSpan(ctx, fqdn+"/USQLCredentialListPage.NextWithContext") 671 defer func() { 672 sc := -1 673 if page.Response().Response.Response != nil { 674 sc = page.Response().Response.Response.StatusCode 675 } 676 tracing.EndSpan(ctx, sc, err) 677 }() 678 } 679 next, err := page.fn(ctx, page.ucl) 680 if err != nil { 681 return err 682 } 683 page.ucl = next 684 return nil 685} 686 687// Next advances to the next page of values. If there was an error making 688// the request the page does not advance and the error is returned. 689// Deprecated: Use NextWithContext() instead. 690func (page *USQLCredentialListPage) Next() error { 691 return page.NextWithContext(context.Background()) 692} 693 694// NotDone returns true if the page enumeration should be started or is not yet complete. 695func (page USQLCredentialListPage) NotDone() bool { 696 return !page.ucl.IsEmpty() 697} 698 699// Response returns the raw server response from the last page request. 700func (page USQLCredentialListPage) Response() USQLCredentialList { 701 return page.ucl 702} 703 704// Values returns the slice of values for the current page or nil if there are no values. 705func (page USQLCredentialListPage) Values() []USQLCredential { 706 if page.ucl.IsEmpty() { 707 return nil 708 } 709 return *page.ucl.Value 710} 711 712// Creates a new instance of the USQLCredentialListPage type. 713func NewUSQLCredentialListPage(getNextPage func(context.Context, USQLCredentialList) (USQLCredentialList, error)) USQLCredentialListPage { 714 return USQLCredentialListPage{fn: getNextPage} 715} 716 717// USQLDatabase a Data Lake Analytics catalog U-SQL database item. 718type USQLDatabase struct { 719 autorest.Response `json:"-"` 720 // Name - the name of the database. 721 Name *string `json:"databaseName,omitempty"` 722 // ComputeAccountName - the name of the Data Lake Analytics account. 723 ComputeAccountName *string `json:"computeAccountName,omitempty"` 724 // Version - the version of the catalog item. 725 Version *uuid.UUID `json:"version,omitempty"` 726} 727 728// USQLDatabaseList a Data Lake Analytics catalog U-SQL database item list. 729type USQLDatabaseList struct { 730 autorest.Response `json:"-"` 731 // Value - READ-ONLY; the list of databases 732 Value *[]USQLDatabase `json:"value,omitempty"` 733 // NextLink - the link to the next page of results. 734 NextLink *string `json:"nextLink,omitempty"` 735} 736 737// USQLDatabaseListIterator provides access to a complete listing of USQLDatabase values. 738type USQLDatabaseListIterator struct { 739 i int 740 page USQLDatabaseListPage 741} 742 743// NextWithContext advances to the next value. If there was an error making 744// the request the iterator does not advance and the error is returned. 745func (iter *USQLDatabaseListIterator) NextWithContext(ctx context.Context) (err error) { 746 if tracing.IsEnabled() { 747 ctx = tracing.StartSpan(ctx, fqdn+"/USQLDatabaseListIterator.NextWithContext") 748 defer func() { 749 sc := -1 750 if iter.Response().Response.Response != nil { 751 sc = iter.Response().Response.Response.StatusCode 752 } 753 tracing.EndSpan(ctx, sc, err) 754 }() 755 } 756 iter.i++ 757 if iter.i < len(iter.page.Values()) { 758 return nil 759 } 760 err = iter.page.NextWithContext(ctx) 761 if err != nil { 762 iter.i-- 763 return err 764 } 765 iter.i = 0 766 return nil 767} 768 769// Next advances to the next value. If there was an error making 770// the request the iterator does not advance and the error is returned. 771// Deprecated: Use NextWithContext() instead. 772func (iter *USQLDatabaseListIterator) Next() error { 773 return iter.NextWithContext(context.Background()) 774} 775 776// NotDone returns true if the enumeration should be started or is not yet complete. 777func (iter USQLDatabaseListIterator) NotDone() bool { 778 return iter.page.NotDone() && iter.i < len(iter.page.Values()) 779} 780 781// Response returns the raw server response from the last page request. 782func (iter USQLDatabaseListIterator) Response() USQLDatabaseList { 783 return iter.page.Response() 784} 785 786// Value returns the current value or a zero-initialized value if the 787// iterator has advanced beyond the end of the collection. 788func (iter USQLDatabaseListIterator) Value() USQLDatabase { 789 if !iter.page.NotDone() { 790 return USQLDatabase{} 791 } 792 return iter.page.Values()[iter.i] 793} 794 795// Creates a new instance of the USQLDatabaseListIterator type. 796func NewUSQLDatabaseListIterator(page USQLDatabaseListPage) USQLDatabaseListIterator { 797 return USQLDatabaseListIterator{page: page} 798} 799 800// IsEmpty returns true if the ListResult contains no values. 801func (usdl USQLDatabaseList) IsEmpty() bool { 802 return usdl.Value == nil || len(*usdl.Value) == 0 803} 804 805// uSQLDatabaseListPreparer prepares a request to retrieve the next set of results. 806// It returns nil if no more results exist. 807func (usdl USQLDatabaseList) uSQLDatabaseListPreparer(ctx context.Context) (*http.Request, error) { 808 if usdl.NextLink == nil || len(to.String(usdl.NextLink)) < 1 { 809 return nil, nil 810 } 811 return autorest.Prepare((&http.Request{}).WithContext(ctx), 812 autorest.AsJSON(), 813 autorest.AsGet(), 814 autorest.WithBaseURL(to.String(usdl.NextLink))) 815} 816 817// USQLDatabaseListPage contains a page of USQLDatabase values. 818type USQLDatabaseListPage struct { 819 fn func(context.Context, USQLDatabaseList) (USQLDatabaseList, error) 820 udl USQLDatabaseList 821} 822 823// NextWithContext advances to the next page of values. If there was an error making 824// the request the page does not advance and the error is returned. 825func (page *USQLDatabaseListPage) NextWithContext(ctx context.Context) (err error) { 826 if tracing.IsEnabled() { 827 ctx = tracing.StartSpan(ctx, fqdn+"/USQLDatabaseListPage.NextWithContext") 828 defer func() { 829 sc := -1 830 if page.Response().Response.Response != nil { 831 sc = page.Response().Response.Response.StatusCode 832 } 833 tracing.EndSpan(ctx, sc, err) 834 }() 835 } 836 next, err := page.fn(ctx, page.udl) 837 if err != nil { 838 return err 839 } 840 page.udl = next 841 return nil 842} 843 844// Next advances to the next page of values. If there was an error making 845// the request the page does not advance and the error is returned. 846// Deprecated: Use NextWithContext() instead. 847func (page *USQLDatabaseListPage) Next() error { 848 return page.NextWithContext(context.Background()) 849} 850 851// NotDone returns true if the page enumeration should be started or is not yet complete. 852func (page USQLDatabaseListPage) NotDone() bool { 853 return !page.udl.IsEmpty() 854} 855 856// Response returns the raw server response from the last page request. 857func (page USQLDatabaseListPage) Response() USQLDatabaseList { 858 return page.udl 859} 860 861// Values returns the slice of values for the current page or nil if there are no values. 862func (page USQLDatabaseListPage) Values() []USQLDatabase { 863 if page.udl.IsEmpty() { 864 return nil 865 } 866 return *page.udl.Value 867} 868 869// Creates a new instance of the USQLDatabaseListPage type. 870func NewUSQLDatabaseListPage(getNextPage func(context.Context, USQLDatabaseList) (USQLDatabaseList, error)) USQLDatabaseListPage { 871 return USQLDatabaseListPage{fn: getNextPage} 872} 873 874// USQLDirectedColumn a Data Lake Analytics catalog U-SQL directed column item. 875type USQLDirectedColumn struct { 876 // Name - the name of the index in the table. 877 Name *string `json:"name,omitempty"` 878 // Descending - the switch indicating if the index is descending or not. 879 Descending *bool `json:"descending,omitempty"` 880} 881 882// USQLDistributionInfo a Data Lake Analytics catalog U-SQL distribution information object. 883type USQLDistributionInfo struct { 884 // Type - the type of this distribution. 885 Type *int32 `json:"type,omitempty"` 886 // Keys - the list of directed columns in the distribution 887 Keys *[]USQLDirectedColumn `json:"keys,omitempty"` 888 // Count - the count of indices using this distribution. 889 Count *int32 `json:"count,omitempty"` 890 // DynamicCount - the dynamic count of indices using this distribution. 891 DynamicCount *int32 `json:"dynamicCount,omitempty"` 892} 893 894// USQLExternalDataSource a Data Lake Analytics catalog U-SQL external datasource item. 895type USQLExternalDataSource struct { 896 autorest.Response `json:"-"` 897 // DatabaseName - the name of the database. 898 DatabaseName *string `json:"databaseName,omitempty"` 899 // Name - the name of the external data source. 900 Name *string `json:"externalDataSourceName,omitempty"` 901 // Provider - the name of the provider for the external data source. 902 Provider *string `json:"provider,omitempty"` 903 // ProviderString - the name of the provider string for the external data source. 904 ProviderString *string `json:"providerString,omitempty"` 905 // PushdownTypes - the list of types to push down from the external data source. 906 PushdownTypes *[]string `json:"pushdownTypes,omitempty"` 907 // ComputeAccountName - the name of the Data Lake Analytics account. 908 ComputeAccountName *string `json:"computeAccountName,omitempty"` 909 // Version - the version of the catalog item. 910 Version *uuid.UUID `json:"version,omitempty"` 911} 912 913// USQLExternalDataSourceList a Data Lake Analytics catalog U-SQL external datasource item list. 914type USQLExternalDataSourceList struct { 915 autorest.Response `json:"-"` 916 // Value - READ-ONLY; the list of external data sources in the database 917 Value *[]USQLExternalDataSource `json:"value,omitempty"` 918 // NextLink - the link to the next page of results. 919 NextLink *string `json:"nextLink,omitempty"` 920} 921 922// USQLExternalDataSourceListIterator provides access to a complete listing of USQLExternalDataSource 923// values. 924type USQLExternalDataSourceListIterator struct { 925 i int 926 page USQLExternalDataSourceListPage 927} 928 929// NextWithContext advances to the next value. If there was an error making 930// the request the iterator does not advance and the error is returned. 931func (iter *USQLExternalDataSourceListIterator) NextWithContext(ctx context.Context) (err error) { 932 if tracing.IsEnabled() { 933 ctx = tracing.StartSpan(ctx, fqdn+"/USQLExternalDataSourceListIterator.NextWithContext") 934 defer func() { 935 sc := -1 936 if iter.Response().Response.Response != nil { 937 sc = iter.Response().Response.Response.StatusCode 938 } 939 tracing.EndSpan(ctx, sc, err) 940 }() 941 } 942 iter.i++ 943 if iter.i < len(iter.page.Values()) { 944 return nil 945 } 946 err = iter.page.NextWithContext(ctx) 947 if err != nil { 948 iter.i-- 949 return err 950 } 951 iter.i = 0 952 return nil 953} 954 955// Next advances to the next value. If there was an error making 956// the request the iterator does not advance and the error is returned. 957// Deprecated: Use NextWithContext() instead. 958func (iter *USQLExternalDataSourceListIterator) Next() error { 959 return iter.NextWithContext(context.Background()) 960} 961 962// NotDone returns true if the enumeration should be started or is not yet complete. 963func (iter USQLExternalDataSourceListIterator) NotDone() bool { 964 return iter.page.NotDone() && iter.i < len(iter.page.Values()) 965} 966 967// Response returns the raw server response from the last page request. 968func (iter USQLExternalDataSourceListIterator) Response() USQLExternalDataSourceList { 969 return iter.page.Response() 970} 971 972// Value returns the current value or a zero-initialized value if the 973// iterator has advanced beyond the end of the collection. 974func (iter USQLExternalDataSourceListIterator) Value() USQLExternalDataSource { 975 if !iter.page.NotDone() { 976 return USQLExternalDataSource{} 977 } 978 return iter.page.Values()[iter.i] 979} 980 981// Creates a new instance of the USQLExternalDataSourceListIterator type. 982func NewUSQLExternalDataSourceListIterator(page USQLExternalDataSourceListPage) USQLExternalDataSourceListIterator { 983 return USQLExternalDataSourceListIterator{page: page} 984} 985 986// IsEmpty returns true if the ListResult contains no values. 987func (usedsl USQLExternalDataSourceList) IsEmpty() bool { 988 return usedsl.Value == nil || len(*usedsl.Value) == 0 989} 990 991// uSQLExternalDataSourceListPreparer prepares a request to retrieve the next set of results. 992// It returns nil if no more results exist. 993func (usedsl USQLExternalDataSourceList) uSQLExternalDataSourceListPreparer(ctx context.Context) (*http.Request, error) { 994 if usedsl.NextLink == nil || len(to.String(usedsl.NextLink)) < 1 { 995 return nil, nil 996 } 997 return autorest.Prepare((&http.Request{}).WithContext(ctx), 998 autorest.AsJSON(), 999 autorest.AsGet(), 1000 autorest.WithBaseURL(to.String(usedsl.NextLink))) 1001} 1002 1003// USQLExternalDataSourceListPage contains a page of USQLExternalDataSource values. 1004type USQLExternalDataSourceListPage struct { 1005 fn func(context.Context, USQLExternalDataSourceList) (USQLExternalDataSourceList, error) 1006 uedsl USQLExternalDataSourceList 1007} 1008 1009// NextWithContext advances to the next page of values. If there was an error making 1010// the request the page does not advance and the error is returned. 1011func (page *USQLExternalDataSourceListPage) NextWithContext(ctx context.Context) (err error) { 1012 if tracing.IsEnabled() { 1013 ctx = tracing.StartSpan(ctx, fqdn+"/USQLExternalDataSourceListPage.NextWithContext") 1014 defer func() { 1015 sc := -1 1016 if page.Response().Response.Response != nil { 1017 sc = page.Response().Response.Response.StatusCode 1018 } 1019 tracing.EndSpan(ctx, sc, err) 1020 }() 1021 } 1022 next, err := page.fn(ctx, page.uedsl) 1023 if err != nil { 1024 return err 1025 } 1026 page.uedsl = next 1027 return nil 1028} 1029 1030// Next advances to the next page of values. If there was an error making 1031// the request the page does not advance and the error is returned. 1032// Deprecated: Use NextWithContext() instead. 1033func (page *USQLExternalDataSourceListPage) Next() error { 1034 return page.NextWithContext(context.Background()) 1035} 1036 1037// NotDone returns true if the page enumeration should be started or is not yet complete. 1038func (page USQLExternalDataSourceListPage) NotDone() bool { 1039 return !page.uedsl.IsEmpty() 1040} 1041 1042// Response returns the raw server response from the last page request. 1043func (page USQLExternalDataSourceListPage) Response() USQLExternalDataSourceList { 1044 return page.uedsl 1045} 1046 1047// Values returns the slice of values for the current page or nil if there are no values. 1048func (page USQLExternalDataSourceListPage) Values() []USQLExternalDataSource { 1049 if page.uedsl.IsEmpty() { 1050 return nil 1051 } 1052 return *page.uedsl.Value 1053} 1054 1055// Creates a new instance of the USQLExternalDataSourceListPage type. 1056func NewUSQLExternalDataSourceListPage(getNextPage func(context.Context, USQLExternalDataSourceList) (USQLExternalDataSourceList, error)) USQLExternalDataSourceListPage { 1057 return USQLExternalDataSourceListPage{fn: getNextPage} 1058} 1059 1060// USQLIndex a Data Lake Analytics catalog U-SQL table index item. 1061type USQLIndex struct { 1062 // Name - the name of the index in the table. 1063 Name *string `json:"name,omitempty"` 1064 // IndexKeys - the list of directed columns in the index 1065 IndexKeys *[]USQLDirectedColumn `json:"indexKeys,omitempty"` 1066 // Columns - the list of columns in the index 1067 Columns *[]string `json:"columns,omitempty"` 1068 // DistributionInfo - the distributions info of the index 1069 DistributionInfo *USQLDistributionInfo `json:"distributionInfo,omitempty"` 1070 // PartitionFunction - partition function ID for the index. 1071 PartitionFunction *uuid.UUID `json:"partitionFunction,omitempty"` 1072 // PartitionKeyList - the list of partition keys in the index 1073 PartitionKeyList *[]string `json:"partitionKeyList,omitempty"` 1074 // StreamNames - the list of full paths to the streams that contain this index in the DataLake account. 1075 StreamNames *[]string `json:"streamNames,omitempty"` 1076 // IsColumnstore - the switch indicating if this index is a columnstore index. 1077 IsColumnstore *bool `json:"isColumnstore,omitempty"` 1078 // IndexID - the ID of this index within the table. 1079 IndexID *int32 `json:"indexId,omitempty"` 1080 // IsUnique - the switch indicating if this index is a unique index. 1081 IsUnique *bool `json:"isUnique,omitempty"` 1082} 1083 1084// USQLPackage a Data Lake Analytics catalog U-SQL package item. 1085type USQLPackage struct { 1086 autorest.Response `json:"-"` 1087 // DatabaseName - the name of the database containing the package. 1088 DatabaseName *string `json:"databaseName,omitempty"` 1089 // SchemaName - the name of the schema associated with this package and database. 1090 SchemaName *string `json:"schemaName,omitempty"` 1091 // Name - the name of the package. 1092 Name *string `json:"packageName,omitempty"` 1093 // Definition - the definition of the package. 1094 Definition *string `json:"definition,omitempty"` 1095 // ComputeAccountName - the name of the Data Lake Analytics account. 1096 ComputeAccountName *string `json:"computeAccountName,omitempty"` 1097 // Version - the version of the catalog item. 1098 Version *uuid.UUID `json:"version,omitempty"` 1099} 1100 1101// USQLPackageList a Data Lake Analytics catalog U-SQL package item list. 1102type USQLPackageList struct { 1103 autorest.Response `json:"-"` 1104 // Value - READ-ONLY; the list of packages in the database and schema combination 1105 Value *[]USQLPackage `json:"value,omitempty"` 1106 // NextLink - the link to the next page of results. 1107 NextLink *string `json:"nextLink,omitempty"` 1108} 1109 1110// USQLPackageListIterator provides access to a complete listing of USQLPackage values. 1111type USQLPackageListIterator struct { 1112 i int 1113 page USQLPackageListPage 1114} 1115 1116// NextWithContext advances to the next value. If there was an error making 1117// the request the iterator does not advance and the error is returned. 1118func (iter *USQLPackageListIterator) NextWithContext(ctx context.Context) (err error) { 1119 if tracing.IsEnabled() { 1120 ctx = tracing.StartSpan(ctx, fqdn+"/USQLPackageListIterator.NextWithContext") 1121 defer func() { 1122 sc := -1 1123 if iter.Response().Response.Response != nil { 1124 sc = iter.Response().Response.Response.StatusCode 1125 } 1126 tracing.EndSpan(ctx, sc, err) 1127 }() 1128 } 1129 iter.i++ 1130 if iter.i < len(iter.page.Values()) { 1131 return nil 1132 } 1133 err = iter.page.NextWithContext(ctx) 1134 if err != nil { 1135 iter.i-- 1136 return err 1137 } 1138 iter.i = 0 1139 return nil 1140} 1141 1142// Next advances to the next value. If there was an error making 1143// the request the iterator does not advance and the error is returned. 1144// Deprecated: Use NextWithContext() instead. 1145func (iter *USQLPackageListIterator) Next() error { 1146 return iter.NextWithContext(context.Background()) 1147} 1148 1149// NotDone returns true if the enumeration should be started or is not yet complete. 1150func (iter USQLPackageListIterator) NotDone() bool { 1151 return iter.page.NotDone() && iter.i < len(iter.page.Values()) 1152} 1153 1154// Response returns the raw server response from the last page request. 1155func (iter USQLPackageListIterator) Response() USQLPackageList { 1156 return iter.page.Response() 1157} 1158 1159// Value returns the current value or a zero-initialized value if the 1160// iterator has advanced beyond the end of the collection. 1161func (iter USQLPackageListIterator) Value() USQLPackage { 1162 if !iter.page.NotDone() { 1163 return USQLPackage{} 1164 } 1165 return iter.page.Values()[iter.i] 1166} 1167 1168// Creates a new instance of the USQLPackageListIterator type. 1169func NewUSQLPackageListIterator(page USQLPackageListPage) USQLPackageListIterator { 1170 return USQLPackageListIterator{page: page} 1171} 1172 1173// IsEmpty returns true if the ListResult contains no values. 1174func (uspl USQLPackageList) IsEmpty() bool { 1175 return uspl.Value == nil || len(*uspl.Value) == 0 1176} 1177 1178// uSQLPackageListPreparer prepares a request to retrieve the next set of results. 1179// It returns nil if no more results exist. 1180func (uspl USQLPackageList) uSQLPackageListPreparer(ctx context.Context) (*http.Request, error) { 1181 if uspl.NextLink == nil || len(to.String(uspl.NextLink)) < 1 { 1182 return nil, nil 1183 } 1184 return autorest.Prepare((&http.Request{}).WithContext(ctx), 1185 autorest.AsJSON(), 1186 autorest.AsGet(), 1187 autorest.WithBaseURL(to.String(uspl.NextLink))) 1188} 1189 1190// USQLPackageListPage contains a page of USQLPackage values. 1191type USQLPackageListPage struct { 1192 fn func(context.Context, USQLPackageList) (USQLPackageList, error) 1193 upl USQLPackageList 1194} 1195 1196// NextWithContext advances to the next page of values. If there was an error making 1197// the request the page does not advance and the error is returned. 1198func (page *USQLPackageListPage) NextWithContext(ctx context.Context) (err error) { 1199 if tracing.IsEnabled() { 1200 ctx = tracing.StartSpan(ctx, fqdn+"/USQLPackageListPage.NextWithContext") 1201 defer func() { 1202 sc := -1 1203 if page.Response().Response.Response != nil { 1204 sc = page.Response().Response.Response.StatusCode 1205 } 1206 tracing.EndSpan(ctx, sc, err) 1207 }() 1208 } 1209 next, err := page.fn(ctx, page.upl) 1210 if err != nil { 1211 return err 1212 } 1213 page.upl = next 1214 return nil 1215} 1216 1217// Next advances to the next page of values. If there was an error making 1218// the request the page does not advance and the error is returned. 1219// Deprecated: Use NextWithContext() instead. 1220func (page *USQLPackageListPage) Next() error { 1221 return page.NextWithContext(context.Background()) 1222} 1223 1224// NotDone returns true if the page enumeration should be started or is not yet complete. 1225func (page USQLPackageListPage) NotDone() bool { 1226 return !page.upl.IsEmpty() 1227} 1228 1229// Response returns the raw server response from the last page request. 1230func (page USQLPackageListPage) Response() USQLPackageList { 1231 return page.upl 1232} 1233 1234// Values returns the slice of values for the current page or nil if there are no values. 1235func (page USQLPackageListPage) Values() []USQLPackage { 1236 if page.upl.IsEmpty() { 1237 return nil 1238 } 1239 return *page.upl.Value 1240} 1241 1242// Creates a new instance of the USQLPackageListPage type. 1243func NewUSQLPackageListPage(getNextPage func(context.Context, USQLPackageList) (USQLPackageList, error)) USQLPackageListPage { 1244 return USQLPackageListPage{fn: getNextPage} 1245} 1246 1247// USQLProcedure a Data Lake Analytics catalog U-SQL procedure item. 1248type USQLProcedure struct { 1249 autorest.Response `json:"-"` 1250 // DatabaseName - the name of the database. 1251 DatabaseName *string `json:"databaseName,omitempty"` 1252 // SchemaName - the name of the schema associated with this procedure and database. 1253 SchemaName *string `json:"schemaName,omitempty"` 1254 // Name - the name of the procedure. 1255 Name *string `json:"procName,omitempty"` 1256 // Definition - the defined query of the procedure. 1257 Definition *string `json:"definition,omitempty"` 1258 // ComputeAccountName - the name of the Data Lake Analytics account. 1259 ComputeAccountName *string `json:"computeAccountName,omitempty"` 1260 // Version - the version of the catalog item. 1261 Version *uuid.UUID `json:"version,omitempty"` 1262} 1263 1264// USQLProcedureList a Data Lake Analytics catalog U-SQL procedure item list. 1265type USQLProcedureList struct { 1266 autorest.Response `json:"-"` 1267 // Value - READ-ONLY; the list of procedure in the database and schema combination 1268 Value *[]USQLProcedure `json:"value,omitempty"` 1269 // NextLink - the link to the next page of results. 1270 NextLink *string `json:"nextLink,omitempty"` 1271} 1272 1273// USQLProcedureListIterator provides access to a complete listing of USQLProcedure values. 1274type USQLProcedureListIterator struct { 1275 i int 1276 page USQLProcedureListPage 1277} 1278 1279// NextWithContext advances to the next value. If there was an error making 1280// the request the iterator does not advance and the error is returned. 1281func (iter *USQLProcedureListIterator) NextWithContext(ctx context.Context) (err error) { 1282 if tracing.IsEnabled() { 1283 ctx = tracing.StartSpan(ctx, fqdn+"/USQLProcedureListIterator.NextWithContext") 1284 defer func() { 1285 sc := -1 1286 if iter.Response().Response.Response != nil { 1287 sc = iter.Response().Response.Response.StatusCode 1288 } 1289 tracing.EndSpan(ctx, sc, err) 1290 }() 1291 } 1292 iter.i++ 1293 if iter.i < len(iter.page.Values()) { 1294 return nil 1295 } 1296 err = iter.page.NextWithContext(ctx) 1297 if err != nil { 1298 iter.i-- 1299 return err 1300 } 1301 iter.i = 0 1302 return nil 1303} 1304 1305// Next advances to the next value. If there was an error making 1306// the request the iterator does not advance and the error is returned. 1307// Deprecated: Use NextWithContext() instead. 1308func (iter *USQLProcedureListIterator) Next() error { 1309 return iter.NextWithContext(context.Background()) 1310} 1311 1312// NotDone returns true if the enumeration should be started or is not yet complete. 1313func (iter USQLProcedureListIterator) NotDone() bool { 1314 return iter.page.NotDone() && iter.i < len(iter.page.Values()) 1315} 1316 1317// Response returns the raw server response from the last page request. 1318func (iter USQLProcedureListIterator) Response() USQLProcedureList { 1319 return iter.page.Response() 1320} 1321 1322// Value returns the current value or a zero-initialized value if the 1323// iterator has advanced beyond the end of the collection. 1324func (iter USQLProcedureListIterator) Value() USQLProcedure { 1325 if !iter.page.NotDone() { 1326 return USQLProcedure{} 1327 } 1328 return iter.page.Values()[iter.i] 1329} 1330 1331// Creates a new instance of the USQLProcedureListIterator type. 1332func NewUSQLProcedureListIterator(page USQLProcedureListPage) USQLProcedureListIterator { 1333 return USQLProcedureListIterator{page: page} 1334} 1335 1336// IsEmpty returns true if the ListResult contains no values. 1337func (uspl USQLProcedureList) IsEmpty() bool { 1338 return uspl.Value == nil || len(*uspl.Value) == 0 1339} 1340 1341// uSQLProcedureListPreparer prepares a request to retrieve the next set of results. 1342// It returns nil if no more results exist. 1343func (uspl USQLProcedureList) uSQLProcedureListPreparer(ctx context.Context) (*http.Request, error) { 1344 if uspl.NextLink == nil || len(to.String(uspl.NextLink)) < 1 { 1345 return nil, nil 1346 } 1347 return autorest.Prepare((&http.Request{}).WithContext(ctx), 1348 autorest.AsJSON(), 1349 autorest.AsGet(), 1350 autorest.WithBaseURL(to.String(uspl.NextLink))) 1351} 1352 1353// USQLProcedureListPage contains a page of USQLProcedure values. 1354type USQLProcedureListPage struct { 1355 fn func(context.Context, USQLProcedureList) (USQLProcedureList, error) 1356 upl USQLProcedureList 1357} 1358 1359// NextWithContext advances to the next page of values. If there was an error making 1360// the request the page does not advance and the error is returned. 1361func (page *USQLProcedureListPage) NextWithContext(ctx context.Context) (err error) { 1362 if tracing.IsEnabled() { 1363 ctx = tracing.StartSpan(ctx, fqdn+"/USQLProcedureListPage.NextWithContext") 1364 defer func() { 1365 sc := -1 1366 if page.Response().Response.Response != nil { 1367 sc = page.Response().Response.Response.StatusCode 1368 } 1369 tracing.EndSpan(ctx, sc, err) 1370 }() 1371 } 1372 next, err := page.fn(ctx, page.upl) 1373 if err != nil { 1374 return err 1375 } 1376 page.upl = next 1377 return nil 1378} 1379 1380// Next advances to the next page of values. If there was an error making 1381// the request the page does not advance and the error is returned. 1382// Deprecated: Use NextWithContext() instead. 1383func (page *USQLProcedureListPage) Next() error { 1384 return page.NextWithContext(context.Background()) 1385} 1386 1387// NotDone returns true if the page enumeration should be started or is not yet complete. 1388func (page USQLProcedureListPage) NotDone() bool { 1389 return !page.upl.IsEmpty() 1390} 1391 1392// Response returns the raw server response from the last page request. 1393func (page USQLProcedureListPage) Response() USQLProcedureList { 1394 return page.upl 1395} 1396 1397// Values returns the slice of values for the current page or nil if there are no values. 1398func (page USQLProcedureListPage) Values() []USQLProcedure { 1399 if page.upl.IsEmpty() { 1400 return nil 1401 } 1402 return *page.upl.Value 1403} 1404 1405// Creates a new instance of the USQLProcedureListPage type. 1406func NewUSQLProcedureListPage(getNextPage func(context.Context, USQLProcedureList) (USQLProcedureList, error)) USQLProcedureListPage { 1407 return USQLProcedureListPage{fn: getNextPage} 1408} 1409 1410// USQLSchema a Data Lake Analytics catalog U-SQL schema item. 1411type USQLSchema struct { 1412 autorest.Response `json:"-"` 1413 // DatabaseName - the name of the database. 1414 DatabaseName *string `json:"databaseName,omitempty"` 1415 // Name - the name of the schema. 1416 Name *string `json:"schemaName,omitempty"` 1417 // ComputeAccountName - the name of the Data Lake Analytics account. 1418 ComputeAccountName *string `json:"computeAccountName,omitempty"` 1419 // Version - the version of the catalog item. 1420 Version *uuid.UUID `json:"version,omitempty"` 1421} 1422 1423// USQLSchemaList a Data Lake Analytics catalog U-SQL schema item list. 1424type USQLSchemaList struct { 1425 autorest.Response `json:"-"` 1426 // Value - READ-ONLY; the list of schemas in the database 1427 Value *[]USQLSchema `json:"value,omitempty"` 1428 // NextLink - the link to the next page of results. 1429 NextLink *string `json:"nextLink,omitempty"` 1430} 1431 1432// USQLSchemaListIterator provides access to a complete listing of USQLSchema values. 1433type USQLSchemaListIterator struct { 1434 i int 1435 page USQLSchemaListPage 1436} 1437 1438// NextWithContext advances to the next value. If there was an error making 1439// the request the iterator does not advance and the error is returned. 1440func (iter *USQLSchemaListIterator) NextWithContext(ctx context.Context) (err error) { 1441 if tracing.IsEnabled() { 1442 ctx = tracing.StartSpan(ctx, fqdn+"/USQLSchemaListIterator.NextWithContext") 1443 defer func() { 1444 sc := -1 1445 if iter.Response().Response.Response != nil { 1446 sc = iter.Response().Response.Response.StatusCode 1447 } 1448 tracing.EndSpan(ctx, sc, err) 1449 }() 1450 } 1451 iter.i++ 1452 if iter.i < len(iter.page.Values()) { 1453 return nil 1454 } 1455 err = iter.page.NextWithContext(ctx) 1456 if err != nil { 1457 iter.i-- 1458 return err 1459 } 1460 iter.i = 0 1461 return nil 1462} 1463 1464// Next advances to the next value. If there was an error making 1465// the request the iterator does not advance and the error is returned. 1466// Deprecated: Use NextWithContext() instead. 1467func (iter *USQLSchemaListIterator) Next() error { 1468 return iter.NextWithContext(context.Background()) 1469} 1470 1471// NotDone returns true if the enumeration should be started or is not yet complete. 1472func (iter USQLSchemaListIterator) NotDone() bool { 1473 return iter.page.NotDone() && iter.i < len(iter.page.Values()) 1474} 1475 1476// Response returns the raw server response from the last page request. 1477func (iter USQLSchemaListIterator) Response() USQLSchemaList { 1478 return iter.page.Response() 1479} 1480 1481// Value returns the current value or a zero-initialized value if the 1482// iterator has advanced beyond the end of the collection. 1483func (iter USQLSchemaListIterator) Value() USQLSchema { 1484 if !iter.page.NotDone() { 1485 return USQLSchema{} 1486 } 1487 return iter.page.Values()[iter.i] 1488} 1489 1490// Creates a new instance of the USQLSchemaListIterator type. 1491func NewUSQLSchemaListIterator(page USQLSchemaListPage) USQLSchemaListIterator { 1492 return USQLSchemaListIterator{page: page} 1493} 1494 1495// IsEmpty returns true if the ListResult contains no values. 1496func (ussl USQLSchemaList) IsEmpty() bool { 1497 return ussl.Value == nil || len(*ussl.Value) == 0 1498} 1499 1500// uSQLSchemaListPreparer prepares a request to retrieve the next set of results. 1501// It returns nil if no more results exist. 1502func (ussl USQLSchemaList) uSQLSchemaListPreparer(ctx context.Context) (*http.Request, error) { 1503 if ussl.NextLink == nil || len(to.String(ussl.NextLink)) < 1 { 1504 return nil, nil 1505 } 1506 return autorest.Prepare((&http.Request{}).WithContext(ctx), 1507 autorest.AsJSON(), 1508 autorest.AsGet(), 1509 autorest.WithBaseURL(to.String(ussl.NextLink))) 1510} 1511 1512// USQLSchemaListPage contains a page of USQLSchema values. 1513type USQLSchemaListPage struct { 1514 fn func(context.Context, USQLSchemaList) (USQLSchemaList, error) 1515 usl USQLSchemaList 1516} 1517 1518// NextWithContext advances to the next page of values. If there was an error making 1519// the request the page does not advance and the error is returned. 1520func (page *USQLSchemaListPage) NextWithContext(ctx context.Context) (err error) { 1521 if tracing.IsEnabled() { 1522 ctx = tracing.StartSpan(ctx, fqdn+"/USQLSchemaListPage.NextWithContext") 1523 defer func() { 1524 sc := -1 1525 if page.Response().Response.Response != nil { 1526 sc = page.Response().Response.Response.StatusCode 1527 } 1528 tracing.EndSpan(ctx, sc, err) 1529 }() 1530 } 1531 next, err := page.fn(ctx, page.usl) 1532 if err != nil { 1533 return err 1534 } 1535 page.usl = next 1536 return nil 1537} 1538 1539// Next advances to the next page of values. If there was an error making 1540// the request the page does not advance and the error is returned. 1541// Deprecated: Use NextWithContext() instead. 1542func (page *USQLSchemaListPage) Next() error { 1543 return page.NextWithContext(context.Background()) 1544} 1545 1546// NotDone returns true if the page enumeration should be started or is not yet complete. 1547func (page USQLSchemaListPage) NotDone() bool { 1548 return !page.usl.IsEmpty() 1549} 1550 1551// Response returns the raw server response from the last page request. 1552func (page USQLSchemaListPage) Response() USQLSchemaList { 1553 return page.usl 1554} 1555 1556// Values returns the slice of values for the current page or nil if there are no values. 1557func (page USQLSchemaListPage) Values() []USQLSchema { 1558 if page.usl.IsEmpty() { 1559 return nil 1560 } 1561 return *page.usl.Value 1562} 1563 1564// Creates a new instance of the USQLSchemaListPage type. 1565func NewUSQLSchemaListPage(getNextPage func(context.Context, USQLSchemaList) (USQLSchemaList, error)) USQLSchemaListPage { 1566 return USQLSchemaListPage{fn: getNextPage} 1567} 1568 1569// USQLSecret a Data Lake Analytics catalog U-SQL secret item. 1570type USQLSecret struct { 1571 autorest.Response `json:"-"` 1572 // DatabaseName - the name of the database. 1573 DatabaseName *string `json:"databaseName,omitempty"` 1574 // Name - the name of the secret. 1575 Name *string `json:"secretName,omitempty"` 1576 // CreationTime - the creation time of the credential object. This is the only information returned about a secret from a GET. 1577 CreationTime *date.Time `json:"creationTime,omitempty"` 1578 // URI - the URI identifier for the secret in the format <hostname>:<port> 1579 URI *string `json:"uri,omitempty"` 1580 // Password - the password for the secret to pass in 1581 Password *string `json:"password,omitempty"` 1582 // ComputeAccountName - the name of the Data Lake Analytics account. 1583 ComputeAccountName *string `json:"computeAccountName,omitempty"` 1584 // Version - the version of the catalog item. 1585 Version *uuid.UUID `json:"version,omitempty"` 1586} 1587 1588// USQLTable a Data Lake Analytics catalog U-SQL table item. 1589type USQLTable struct { 1590 autorest.Response `json:"-"` 1591 // DatabaseName - the name of the database. 1592 DatabaseName *string `json:"databaseName,omitempty"` 1593 // SchemaName - the name of the schema associated with this table and database. 1594 SchemaName *string `json:"schemaName,omitempty"` 1595 // Name - the name of the table. 1596 Name *string `json:"tableName,omitempty"` 1597 // ColumnList - the list of columns in this table 1598 ColumnList *[]USQLTableColumn `json:"columnList,omitempty"` 1599 // IndexList - the list of indices in this table 1600 IndexList *[]USQLIndex `json:"indexList,omitempty"` 1601 // PartitionKeyList - the list of partition keys in the table 1602 PartitionKeyList *[]string `json:"partitionKeyList,omitempty"` 1603 // ExternalTable - the external table associated with the table. 1604 ExternalTable *ExternalTable `json:"externalTable,omitempty"` 1605 // DistributionInfo - the distributions info of the table 1606 DistributionInfo *USQLDistributionInfo `json:"distributionInfo,omitempty"` 1607 // ComputeAccountName - the name of the Data Lake Analytics account. 1608 ComputeAccountName *string `json:"computeAccountName,omitempty"` 1609 // Version - the version of the catalog item. 1610 Version *uuid.UUID `json:"version,omitempty"` 1611} 1612 1613// USQLTableColumn a Data Lake Analytics catalog U-SQL table column item. 1614type USQLTableColumn struct { 1615 // Name - the name of the column in the table. 1616 Name *string `json:"name,omitempty"` 1617 // Type - the object type of the specified column (such as System.String). 1618 Type *string `json:"type,omitempty"` 1619} 1620 1621// USQLTableFragment a Data Lake Analytics catalog U-SQL table fragment item. 1622type USQLTableFragment struct { 1623 // ParentID - the parent object Id of the table fragment. The parent could be a table or table partition. 1624 ParentID *uuid.UUID `json:"parentId,omitempty"` 1625 // FragmentID - the version of the catalog item. 1626 FragmentID *uuid.UUID `json:"fragmentId,omitempty"` 1627 // IndexID - the ordinal of the index which contains the table fragment. 1628 IndexID *int32 `json:"indexId,omitempty"` 1629 // Size - the data size of the table fragment in bytes. 1630 Size *int64 `json:"size,omitempty"` 1631 // RowCount - the number of rows in the table fragment. 1632 RowCount *int64 `json:"rowCount,omitempty"` 1633 // CreateDate - the creation time of the table fragment. 1634 CreateDate *date.Time `json:"createDate,omitempty"` 1635 // StreamPath - the relative path for the table fragment location. 1636 StreamPath *string `json:"streamPath,omitempty"` 1637} 1638 1639// USQLTableFragmentList a Data Lake Analytics catalog U-SQL table fragment item list. 1640type USQLTableFragmentList struct { 1641 autorest.Response `json:"-"` 1642 // Value - READ-ONLY; the list of table fragments in the database, schema and table combination 1643 Value *[]USQLTableFragment `json:"value,omitempty"` 1644 // NextLink - the link to the next page of results. 1645 NextLink *string `json:"nextLink,omitempty"` 1646} 1647 1648// USQLTableFragmentListIterator provides access to a complete listing of USQLTableFragment values. 1649type USQLTableFragmentListIterator struct { 1650 i int 1651 page USQLTableFragmentListPage 1652} 1653 1654// NextWithContext advances to the next value. If there was an error making 1655// the request the iterator does not advance and the error is returned. 1656func (iter *USQLTableFragmentListIterator) NextWithContext(ctx context.Context) (err error) { 1657 if tracing.IsEnabled() { 1658 ctx = tracing.StartSpan(ctx, fqdn+"/USQLTableFragmentListIterator.NextWithContext") 1659 defer func() { 1660 sc := -1 1661 if iter.Response().Response.Response != nil { 1662 sc = iter.Response().Response.Response.StatusCode 1663 } 1664 tracing.EndSpan(ctx, sc, err) 1665 }() 1666 } 1667 iter.i++ 1668 if iter.i < len(iter.page.Values()) { 1669 return nil 1670 } 1671 err = iter.page.NextWithContext(ctx) 1672 if err != nil { 1673 iter.i-- 1674 return err 1675 } 1676 iter.i = 0 1677 return nil 1678} 1679 1680// Next advances to the next value. If there was an error making 1681// the request the iterator does not advance and the error is returned. 1682// Deprecated: Use NextWithContext() instead. 1683func (iter *USQLTableFragmentListIterator) Next() error { 1684 return iter.NextWithContext(context.Background()) 1685} 1686 1687// NotDone returns true if the enumeration should be started or is not yet complete. 1688func (iter USQLTableFragmentListIterator) NotDone() bool { 1689 return iter.page.NotDone() && iter.i < len(iter.page.Values()) 1690} 1691 1692// Response returns the raw server response from the last page request. 1693func (iter USQLTableFragmentListIterator) Response() USQLTableFragmentList { 1694 return iter.page.Response() 1695} 1696 1697// Value returns the current value or a zero-initialized value if the 1698// iterator has advanced beyond the end of the collection. 1699func (iter USQLTableFragmentListIterator) Value() USQLTableFragment { 1700 if !iter.page.NotDone() { 1701 return USQLTableFragment{} 1702 } 1703 return iter.page.Values()[iter.i] 1704} 1705 1706// Creates a new instance of the USQLTableFragmentListIterator type. 1707func NewUSQLTableFragmentListIterator(page USQLTableFragmentListPage) USQLTableFragmentListIterator { 1708 return USQLTableFragmentListIterator{page: page} 1709} 1710 1711// IsEmpty returns true if the ListResult contains no values. 1712func (ustfl USQLTableFragmentList) IsEmpty() bool { 1713 return ustfl.Value == nil || len(*ustfl.Value) == 0 1714} 1715 1716// uSQLTableFragmentListPreparer prepares a request to retrieve the next set of results. 1717// It returns nil if no more results exist. 1718func (ustfl USQLTableFragmentList) uSQLTableFragmentListPreparer(ctx context.Context) (*http.Request, error) { 1719 if ustfl.NextLink == nil || len(to.String(ustfl.NextLink)) < 1 { 1720 return nil, nil 1721 } 1722 return autorest.Prepare((&http.Request{}).WithContext(ctx), 1723 autorest.AsJSON(), 1724 autorest.AsGet(), 1725 autorest.WithBaseURL(to.String(ustfl.NextLink))) 1726} 1727 1728// USQLTableFragmentListPage contains a page of USQLTableFragment values. 1729type USQLTableFragmentListPage struct { 1730 fn func(context.Context, USQLTableFragmentList) (USQLTableFragmentList, error) 1731 utfl USQLTableFragmentList 1732} 1733 1734// NextWithContext advances to the next page of values. If there was an error making 1735// the request the page does not advance and the error is returned. 1736func (page *USQLTableFragmentListPage) NextWithContext(ctx context.Context) (err error) { 1737 if tracing.IsEnabled() { 1738 ctx = tracing.StartSpan(ctx, fqdn+"/USQLTableFragmentListPage.NextWithContext") 1739 defer func() { 1740 sc := -1 1741 if page.Response().Response.Response != nil { 1742 sc = page.Response().Response.Response.StatusCode 1743 } 1744 tracing.EndSpan(ctx, sc, err) 1745 }() 1746 } 1747 next, err := page.fn(ctx, page.utfl) 1748 if err != nil { 1749 return err 1750 } 1751 page.utfl = next 1752 return nil 1753} 1754 1755// Next advances to the next page of values. If there was an error making 1756// the request the page does not advance and the error is returned. 1757// Deprecated: Use NextWithContext() instead. 1758func (page *USQLTableFragmentListPage) Next() error { 1759 return page.NextWithContext(context.Background()) 1760} 1761 1762// NotDone returns true if the page enumeration should be started or is not yet complete. 1763func (page USQLTableFragmentListPage) NotDone() bool { 1764 return !page.utfl.IsEmpty() 1765} 1766 1767// Response returns the raw server response from the last page request. 1768func (page USQLTableFragmentListPage) Response() USQLTableFragmentList { 1769 return page.utfl 1770} 1771 1772// Values returns the slice of values for the current page or nil if there are no values. 1773func (page USQLTableFragmentListPage) Values() []USQLTableFragment { 1774 if page.utfl.IsEmpty() { 1775 return nil 1776 } 1777 return *page.utfl.Value 1778} 1779 1780// Creates a new instance of the USQLTableFragmentListPage type. 1781func NewUSQLTableFragmentListPage(getNextPage func(context.Context, USQLTableFragmentList) (USQLTableFragmentList, error)) USQLTableFragmentListPage { 1782 return USQLTableFragmentListPage{fn: getNextPage} 1783} 1784 1785// USQLTableList a Data Lake Analytics catalog U-SQL table item list. 1786type USQLTableList struct { 1787 autorest.Response `json:"-"` 1788 // Value - READ-ONLY; the list of tables in the database and schema combination 1789 Value *[]USQLTable `json:"value,omitempty"` 1790 // NextLink - the link to the next page of results. 1791 NextLink *string `json:"nextLink,omitempty"` 1792} 1793 1794// USQLTableListIterator provides access to a complete listing of USQLTable values. 1795type USQLTableListIterator struct { 1796 i int 1797 page USQLTableListPage 1798} 1799 1800// NextWithContext advances to the next value. If there was an error making 1801// the request the iterator does not advance and the error is returned. 1802func (iter *USQLTableListIterator) NextWithContext(ctx context.Context) (err error) { 1803 if tracing.IsEnabled() { 1804 ctx = tracing.StartSpan(ctx, fqdn+"/USQLTableListIterator.NextWithContext") 1805 defer func() { 1806 sc := -1 1807 if iter.Response().Response.Response != nil { 1808 sc = iter.Response().Response.Response.StatusCode 1809 } 1810 tracing.EndSpan(ctx, sc, err) 1811 }() 1812 } 1813 iter.i++ 1814 if iter.i < len(iter.page.Values()) { 1815 return nil 1816 } 1817 err = iter.page.NextWithContext(ctx) 1818 if err != nil { 1819 iter.i-- 1820 return err 1821 } 1822 iter.i = 0 1823 return nil 1824} 1825 1826// Next advances to the next value. If there was an error making 1827// the request the iterator does not advance and the error is returned. 1828// Deprecated: Use NextWithContext() instead. 1829func (iter *USQLTableListIterator) Next() error { 1830 return iter.NextWithContext(context.Background()) 1831} 1832 1833// NotDone returns true if the enumeration should be started or is not yet complete. 1834func (iter USQLTableListIterator) NotDone() bool { 1835 return iter.page.NotDone() && iter.i < len(iter.page.Values()) 1836} 1837 1838// Response returns the raw server response from the last page request. 1839func (iter USQLTableListIterator) Response() USQLTableList { 1840 return iter.page.Response() 1841} 1842 1843// Value returns the current value or a zero-initialized value if the 1844// iterator has advanced beyond the end of the collection. 1845func (iter USQLTableListIterator) Value() USQLTable { 1846 if !iter.page.NotDone() { 1847 return USQLTable{} 1848 } 1849 return iter.page.Values()[iter.i] 1850} 1851 1852// Creates a new instance of the USQLTableListIterator type. 1853func NewUSQLTableListIterator(page USQLTableListPage) USQLTableListIterator { 1854 return USQLTableListIterator{page: page} 1855} 1856 1857// IsEmpty returns true if the ListResult contains no values. 1858func (ustl USQLTableList) IsEmpty() bool { 1859 return ustl.Value == nil || len(*ustl.Value) == 0 1860} 1861 1862// uSQLTableListPreparer prepares a request to retrieve the next set of results. 1863// It returns nil if no more results exist. 1864func (ustl USQLTableList) uSQLTableListPreparer(ctx context.Context) (*http.Request, error) { 1865 if ustl.NextLink == nil || len(to.String(ustl.NextLink)) < 1 { 1866 return nil, nil 1867 } 1868 return autorest.Prepare((&http.Request{}).WithContext(ctx), 1869 autorest.AsJSON(), 1870 autorest.AsGet(), 1871 autorest.WithBaseURL(to.String(ustl.NextLink))) 1872} 1873 1874// USQLTableListPage contains a page of USQLTable values. 1875type USQLTableListPage struct { 1876 fn func(context.Context, USQLTableList) (USQLTableList, error) 1877 utl USQLTableList 1878} 1879 1880// NextWithContext advances to the next page of values. If there was an error making 1881// the request the page does not advance and the error is returned. 1882func (page *USQLTableListPage) NextWithContext(ctx context.Context) (err error) { 1883 if tracing.IsEnabled() { 1884 ctx = tracing.StartSpan(ctx, fqdn+"/USQLTableListPage.NextWithContext") 1885 defer func() { 1886 sc := -1 1887 if page.Response().Response.Response != nil { 1888 sc = page.Response().Response.Response.StatusCode 1889 } 1890 tracing.EndSpan(ctx, sc, err) 1891 }() 1892 } 1893 next, err := page.fn(ctx, page.utl) 1894 if err != nil { 1895 return err 1896 } 1897 page.utl = next 1898 return nil 1899} 1900 1901// Next advances to the next page of values. If there was an error making 1902// the request the page does not advance and the error is returned. 1903// Deprecated: Use NextWithContext() instead. 1904func (page *USQLTableListPage) Next() error { 1905 return page.NextWithContext(context.Background()) 1906} 1907 1908// NotDone returns true if the page enumeration should be started or is not yet complete. 1909func (page USQLTableListPage) NotDone() bool { 1910 return !page.utl.IsEmpty() 1911} 1912 1913// Response returns the raw server response from the last page request. 1914func (page USQLTableListPage) Response() USQLTableList { 1915 return page.utl 1916} 1917 1918// Values returns the slice of values for the current page or nil if there are no values. 1919func (page USQLTableListPage) Values() []USQLTable { 1920 if page.utl.IsEmpty() { 1921 return nil 1922 } 1923 return *page.utl.Value 1924} 1925 1926// Creates a new instance of the USQLTableListPage type. 1927func NewUSQLTableListPage(getNextPage func(context.Context, USQLTableList) (USQLTableList, error)) USQLTableListPage { 1928 return USQLTableListPage{fn: getNextPage} 1929} 1930 1931// USQLTablePartition a Data Lake Analytics catalog U-SQL table partition item. 1932type USQLTablePartition struct { 1933 autorest.Response `json:"-"` 1934 // DatabaseName - the name of the database. 1935 DatabaseName *string `json:"databaseName,omitempty"` 1936 // SchemaName - the name of the schema associated with this table partition and database. 1937 SchemaName *string `json:"schemaName,omitempty"` 1938 // Name - the name of the table partition. 1939 Name *string `json:"partitionName,omitempty"` 1940 // ParentName - the Ddl object of the partition's parent. 1941 ParentName *DdlName `json:"parentName,omitempty"` 1942 // IndexID - the index ID for this partition. 1943 IndexID *int32 `json:"indexId,omitempty"` 1944 // Label - the list of labels associated with this partition. 1945 Label *[]string `json:"label,omitempty"` 1946 // CreateDate - the creation time of the partition 1947 CreateDate *date.Time `json:"createDate,omitempty"` 1948 // ComputeAccountName - the name of the Data Lake Analytics account. 1949 ComputeAccountName *string `json:"computeAccountName,omitempty"` 1950 // Version - the version of the catalog item. 1951 Version *uuid.UUID `json:"version,omitempty"` 1952} 1953 1954// USQLTablePartitionList a Data Lake Analytics catalog U-SQL table partition item list. 1955type USQLTablePartitionList struct { 1956 autorest.Response `json:"-"` 1957 // Value - READ-ONLY; the list of table partitions in the database, schema and table combination 1958 Value *[]USQLTablePartition `json:"value,omitempty"` 1959 // NextLink - the link to the next page of results. 1960 NextLink *string `json:"nextLink,omitempty"` 1961} 1962 1963// USQLTablePartitionListIterator provides access to a complete listing of USQLTablePartition values. 1964type USQLTablePartitionListIterator struct { 1965 i int 1966 page USQLTablePartitionListPage 1967} 1968 1969// NextWithContext advances to the next value. If there was an error making 1970// the request the iterator does not advance and the error is returned. 1971func (iter *USQLTablePartitionListIterator) NextWithContext(ctx context.Context) (err error) { 1972 if tracing.IsEnabled() { 1973 ctx = tracing.StartSpan(ctx, fqdn+"/USQLTablePartitionListIterator.NextWithContext") 1974 defer func() { 1975 sc := -1 1976 if iter.Response().Response.Response != nil { 1977 sc = iter.Response().Response.Response.StatusCode 1978 } 1979 tracing.EndSpan(ctx, sc, err) 1980 }() 1981 } 1982 iter.i++ 1983 if iter.i < len(iter.page.Values()) { 1984 return nil 1985 } 1986 err = iter.page.NextWithContext(ctx) 1987 if err != nil { 1988 iter.i-- 1989 return err 1990 } 1991 iter.i = 0 1992 return nil 1993} 1994 1995// Next advances to the next value. If there was an error making 1996// the request the iterator does not advance and the error is returned. 1997// Deprecated: Use NextWithContext() instead. 1998func (iter *USQLTablePartitionListIterator) Next() error { 1999 return iter.NextWithContext(context.Background()) 2000} 2001 2002// NotDone returns true if the enumeration should be started or is not yet complete. 2003func (iter USQLTablePartitionListIterator) NotDone() bool { 2004 return iter.page.NotDone() && iter.i < len(iter.page.Values()) 2005} 2006 2007// Response returns the raw server response from the last page request. 2008func (iter USQLTablePartitionListIterator) Response() USQLTablePartitionList { 2009 return iter.page.Response() 2010} 2011 2012// Value returns the current value or a zero-initialized value if the 2013// iterator has advanced beyond the end of the collection. 2014func (iter USQLTablePartitionListIterator) Value() USQLTablePartition { 2015 if !iter.page.NotDone() { 2016 return USQLTablePartition{} 2017 } 2018 return iter.page.Values()[iter.i] 2019} 2020 2021// Creates a new instance of the USQLTablePartitionListIterator type. 2022func NewUSQLTablePartitionListIterator(page USQLTablePartitionListPage) USQLTablePartitionListIterator { 2023 return USQLTablePartitionListIterator{page: page} 2024} 2025 2026// IsEmpty returns true if the ListResult contains no values. 2027func (ustpl USQLTablePartitionList) IsEmpty() bool { 2028 return ustpl.Value == nil || len(*ustpl.Value) == 0 2029} 2030 2031// uSQLTablePartitionListPreparer prepares a request to retrieve the next set of results. 2032// It returns nil if no more results exist. 2033func (ustpl USQLTablePartitionList) uSQLTablePartitionListPreparer(ctx context.Context) (*http.Request, error) { 2034 if ustpl.NextLink == nil || len(to.String(ustpl.NextLink)) < 1 { 2035 return nil, nil 2036 } 2037 return autorest.Prepare((&http.Request{}).WithContext(ctx), 2038 autorest.AsJSON(), 2039 autorest.AsGet(), 2040 autorest.WithBaseURL(to.String(ustpl.NextLink))) 2041} 2042 2043// USQLTablePartitionListPage contains a page of USQLTablePartition values. 2044type USQLTablePartitionListPage struct { 2045 fn func(context.Context, USQLTablePartitionList) (USQLTablePartitionList, error) 2046 utpl USQLTablePartitionList 2047} 2048 2049// NextWithContext advances to the next page of values. If there was an error making 2050// the request the page does not advance and the error is returned. 2051func (page *USQLTablePartitionListPage) NextWithContext(ctx context.Context) (err error) { 2052 if tracing.IsEnabled() { 2053 ctx = tracing.StartSpan(ctx, fqdn+"/USQLTablePartitionListPage.NextWithContext") 2054 defer func() { 2055 sc := -1 2056 if page.Response().Response.Response != nil { 2057 sc = page.Response().Response.Response.StatusCode 2058 } 2059 tracing.EndSpan(ctx, sc, err) 2060 }() 2061 } 2062 next, err := page.fn(ctx, page.utpl) 2063 if err != nil { 2064 return err 2065 } 2066 page.utpl = next 2067 return nil 2068} 2069 2070// Next advances to the next page of values. If there was an error making 2071// the request the page does not advance and the error is returned. 2072// Deprecated: Use NextWithContext() instead. 2073func (page *USQLTablePartitionListPage) Next() error { 2074 return page.NextWithContext(context.Background()) 2075} 2076 2077// NotDone returns true if the page enumeration should be started or is not yet complete. 2078func (page USQLTablePartitionListPage) NotDone() bool { 2079 return !page.utpl.IsEmpty() 2080} 2081 2082// Response returns the raw server response from the last page request. 2083func (page USQLTablePartitionListPage) Response() USQLTablePartitionList { 2084 return page.utpl 2085} 2086 2087// Values returns the slice of values for the current page or nil if there are no values. 2088func (page USQLTablePartitionListPage) Values() []USQLTablePartition { 2089 if page.utpl.IsEmpty() { 2090 return nil 2091 } 2092 return *page.utpl.Value 2093} 2094 2095// Creates a new instance of the USQLTablePartitionListPage type. 2096func NewUSQLTablePartitionListPage(getNextPage func(context.Context, USQLTablePartitionList) (USQLTablePartitionList, error)) USQLTablePartitionListPage { 2097 return USQLTablePartitionListPage{fn: getNextPage} 2098} 2099 2100// USQLTablePreview a Data Lake Analytics catalog table or partition preview rows item. 2101type USQLTablePreview struct { 2102 autorest.Response `json:"-"` 2103 // TotalRowCount - the total number of rows in the table or partition. 2104 TotalRowCount *int64 `json:"totalRowCount,omitempty"` 2105 // TotalColumnCount - the total number of columns in the table or partition. 2106 TotalColumnCount *int64 `json:"totalColumnCount,omitempty"` 2107 // Rows - the rows of the table or partition preview, where each row is an array of string representations the row's values. Note: Byte arrays will appear as base-64 encoded values, SqlMap and SqlArray objects will appear as escaped JSON objects, and DateTime objects will appear as ISO formatted UTC date-times. 2108 Rows *[][]string `json:"rows,omitempty"` 2109 // Truncated - true if the amount of data in the response is less than expected due to the preview operation's size limitations. This can occur if the requested rows or row counts are too large. 2110 Truncated *bool `json:"truncated,omitempty"` 2111 // Schema - the schema of the table or partition. 2112 Schema *[]USQLTableColumn `json:"schema,omitempty"` 2113} 2114 2115// USQLTableStatistics a Data Lake Analytics catalog U-SQL table statistics item. 2116type USQLTableStatistics struct { 2117 autorest.Response `json:"-"` 2118 // DatabaseName - the name of the database. 2119 DatabaseName *string `json:"databaseName,omitempty"` 2120 // SchemaName - the name of the schema associated with this table and database. 2121 SchemaName *string `json:"schemaName,omitempty"` 2122 // TableName - the name of the table. 2123 TableName *string `json:"tableName,omitempty"` 2124 // Name - the name of the table statistics. 2125 Name *string `json:"statisticsName,omitempty"` 2126 // UserStatName - the name of the user statistics. 2127 UserStatName *string `json:"userStatName,omitempty"` 2128 // StatDataPath - the path to the statistics data. 2129 StatDataPath *string `json:"statDataPath,omitempty"` 2130 // CreateTime - the creation time of the statistics. 2131 CreateTime *date.Time `json:"createTime,omitempty"` 2132 // UpdateTime - the last time the statistics were updated. 2133 UpdateTime *date.Time `json:"updateTime,omitempty"` 2134 // IsUserCreated - the switch indicating if these statistics are user created. 2135 IsUserCreated *bool `json:"isUserCreated,omitempty"` 2136 // IsAutoCreated - the switch indicating if these statistics are automatically created. 2137 IsAutoCreated *bool `json:"isAutoCreated,omitempty"` 2138 // HasFilter - the switch indicating if these statistics have a filter. 2139 HasFilter *bool `json:"hasFilter,omitempty"` 2140 // FilterDefinition - the filter definition for the statistics. 2141 FilterDefinition *string `json:"filterDefinition,omitempty"` 2142 // ColNames - the list of column names associated with these statistics. 2143 ColNames *[]string `json:"colNames,omitempty"` 2144 // ComputeAccountName - the name of the Data Lake Analytics account. 2145 ComputeAccountName *string `json:"computeAccountName,omitempty"` 2146 // Version - the version of the catalog item. 2147 Version *uuid.UUID `json:"version,omitempty"` 2148} 2149 2150// USQLTableStatisticsList a Data Lake Analytics catalog U-SQL table statistics item list. 2151type USQLTableStatisticsList struct { 2152 autorest.Response `json:"-"` 2153 // Value - READ-ONLY; the list of table statistics in the database, schema and table combination 2154 Value *[]USQLTableStatistics `json:"value,omitempty"` 2155 // NextLink - the link to the next page of results. 2156 NextLink *string `json:"nextLink,omitempty"` 2157} 2158 2159// USQLTableStatisticsListIterator provides access to a complete listing of USQLTableStatistics values. 2160type USQLTableStatisticsListIterator struct { 2161 i int 2162 page USQLTableStatisticsListPage 2163} 2164 2165// NextWithContext advances to the next value. If there was an error making 2166// the request the iterator does not advance and the error is returned. 2167func (iter *USQLTableStatisticsListIterator) NextWithContext(ctx context.Context) (err error) { 2168 if tracing.IsEnabled() { 2169 ctx = tracing.StartSpan(ctx, fqdn+"/USQLTableStatisticsListIterator.NextWithContext") 2170 defer func() { 2171 sc := -1 2172 if iter.Response().Response.Response != nil { 2173 sc = iter.Response().Response.Response.StatusCode 2174 } 2175 tracing.EndSpan(ctx, sc, err) 2176 }() 2177 } 2178 iter.i++ 2179 if iter.i < len(iter.page.Values()) { 2180 return nil 2181 } 2182 err = iter.page.NextWithContext(ctx) 2183 if err != nil { 2184 iter.i-- 2185 return err 2186 } 2187 iter.i = 0 2188 return nil 2189} 2190 2191// Next advances to the next value. If there was an error making 2192// the request the iterator does not advance and the error is returned. 2193// Deprecated: Use NextWithContext() instead. 2194func (iter *USQLTableStatisticsListIterator) Next() error { 2195 return iter.NextWithContext(context.Background()) 2196} 2197 2198// NotDone returns true if the enumeration should be started or is not yet complete. 2199func (iter USQLTableStatisticsListIterator) NotDone() bool { 2200 return iter.page.NotDone() && iter.i < len(iter.page.Values()) 2201} 2202 2203// Response returns the raw server response from the last page request. 2204func (iter USQLTableStatisticsListIterator) Response() USQLTableStatisticsList { 2205 return iter.page.Response() 2206} 2207 2208// Value returns the current value or a zero-initialized value if the 2209// iterator has advanced beyond the end of the collection. 2210func (iter USQLTableStatisticsListIterator) Value() USQLTableStatistics { 2211 if !iter.page.NotDone() { 2212 return USQLTableStatistics{} 2213 } 2214 return iter.page.Values()[iter.i] 2215} 2216 2217// Creates a new instance of the USQLTableStatisticsListIterator type. 2218func NewUSQLTableStatisticsListIterator(page USQLTableStatisticsListPage) USQLTableStatisticsListIterator { 2219 return USQLTableStatisticsListIterator{page: page} 2220} 2221 2222// IsEmpty returns true if the ListResult contains no values. 2223func (ustsl USQLTableStatisticsList) IsEmpty() bool { 2224 return ustsl.Value == nil || len(*ustsl.Value) == 0 2225} 2226 2227// uSQLTableStatisticsListPreparer prepares a request to retrieve the next set of results. 2228// It returns nil if no more results exist. 2229func (ustsl USQLTableStatisticsList) uSQLTableStatisticsListPreparer(ctx context.Context) (*http.Request, error) { 2230 if ustsl.NextLink == nil || len(to.String(ustsl.NextLink)) < 1 { 2231 return nil, nil 2232 } 2233 return autorest.Prepare((&http.Request{}).WithContext(ctx), 2234 autorest.AsJSON(), 2235 autorest.AsGet(), 2236 autorest.WithBaseURL(to.String(ustsl.NextLink))) 2237} 2238 2239// USQLTableStatisticsListPage contains a page of USQLTableStatistics values. 2240type USQLTableStatisticsListPage struct { 2241 fn func(context.Context, USQLTableStatisticsList) (USQLTableStatisticsList, error) 2242 utsl USQLTableStatisticsList 2243} 2244 2245// NextWithContext advances to the next page of values. If there was an error making 2246// the request the page does not advance and the error is returned. 2247func (page *USQLTableStatisticsListPage) NextWithContext(ctx context.Context) (err error) { 2248 if tracing.IsEnabled() { 2249 ctx = tracing.StartSpan(ctx, fqdn+"/USQLTableStatisticsListPage.NextWithContext") 2250 defer func() { 2251 sc := -1 2252 if page.Response().Response.Response != nil { 2253 sc = page.Response().Response.Response.StatusCode 2254 } 2255 tracing.EndSpan(ctx, sc, err) 2256 }() 2257 } 2258 next, err := page.fn(ctx, page.utsl) 2259 if err != nil { 2260 return err 2261 } 2262 page.utsl = next 2263 return nil 2264} 2265 2266// Next advances to the next page of values. If there was an error making 2267// the request the page does not advance and the error is returned. 2268// Deprecated: Use NextWithContext() instead. 2269func (page *USQLTableStatisticsListPage) Next() error { 2270 return page.NextWithContext(context.Background()) 2271} 2272 2273// NotDone returns true if the page enumeration should be started or is not yet complete. 2274func (page USQLTableStatisticsListPage) NotDone() bool { 2275 return !page.utsl.IsEmpty() 2276} 2277 2278// Response returns the raw server response from the last page request. 2279func (page USQLTableStatisticsListPage) Response() USQLTableStatisticsList { 2280 return page.utsl 2281} 2282 2283// Values returns the slice of values for the current page or nil if there are no values. 2284func (page USQLTableStatisticsListPage) Values() []USQLTableStatistics { 2285 if page.utsl.IsEmpty() { 2286 return nil 2287 } 2288 return *page.utsl.Value 2289} 2290 2291// Creates a new instance of the USQLTableStatisticsListPage type. 2292func NewUSQLTableStatisticsListPage(getNextPage func(context.Context, USQLTableStatisticsList) (USQLTableStatisticsList, error)) USQLTableStatisticsListPage { 2293 return USQLTableStatisticsListPage{fn: getNextPage} 2294} 2295 2296// USQLTableType a Data Lake Analytics catalog U-SQL table type item. 2297type USQLTableType struct { 2298 autorest.Response `json:"-"` 2299 // Columns - READ-ONLY; the type field information associated with this table type. 2300 Columns *[]TypeFieldInfo `json:"columns,omitempty"` 2301 // DatabaseName - the name of the database. 2302 DatabaseName *string `json:"databaseName,omitempty"` 2303 // SchemaName - the name of the schema associated with this table and database. 2304 SchemaName *string `json:"schemaName,omitempty"` 2305 // Name - the name of type for this type. 2306 Name *string `json:"typeName,omitempty"` 2307 // TypeFamily - the type family for this type. 2308 TypeFamily *string `json:"typeFamily,omitempty"` 2309 // CSharpName - the C# name for this type. 2310 CSharpName *string `json:"cSharpName,omitempty"` 2311 // FullCSharpName - the fully qualified C# name for this type. 2312 FullCSharpName *string `json:"fullCSharpName,omitempty"` 2313 // SystemTypeID - the system type ID for this type. 2314 SystemTypeID *int32 `json:"systemTypeId,omitempty"` 2315 // UserTypeID - the user type ID for this type. 2316 UserTypeID *int32 `json:"userTypeId,omitempty"` 2317 // SchemaID - the schema ID for this type. 2318 SchemaID *int32 `json:"schemaId,omitempty"` 2319 // PrincipalID - the principal ID for this type. 2320 PrincipalID *int32 `json:"principalId,omitempty"` 2321 // IsNullable - The switch indicating if this type is nullable. 2322 IsNullable *bool `json:"isNullable,omitempty"` 2323 // IsUserDefined - The switch indicating if this type is user defined. 2324 IsUserDefined *bool `json:"isUserDefined,omitempty"` 2325 // IsAssemblyType - The switch indicating if this type is an assembly type. 2326 IsAssemblyType *bool `json:"isAssemblyType,omitempty"` 2327 // IsTableType - The switch indicating if this type is a table type. 2328 IsTableType *bool `json:"isTableType,omitempty"` 2329 // IsComplexType - The switch indicating if this type is a complex type. 2330 IsComplexType *bool `json:"isComplexType,omitempty"` 2331 // ComputeAccountName - the name of the Data Lake Analytics account. 2332 ComputeAccountName *string `json:"computeAccountName,omitempty"` 2333 // Version - the version of the catalog item. 2334 Version *uuid.UUID `json:"version,omitempty"` 2335} 2336 2337// USQLTableTypeList a Data Lake Analytics catalog U-SQL table type item list. 2338type USQLTableTypeList struct { 2339 autorest.Response `json:"-"` 2340 // Value - READ-ONLY; the list of table types in the database and schema combination 2341 Value *[]USQLTableType `json:"value,omitempty"` 2342 // NextLink - the link to the next page of results. 2343 NextLink *string `json:"nextLink,omitempty"` 2344} 2345 2346// USQLTableTypeListIterator provides access to a complete listing of USQLTableType values. 2347type USQLTableTypeListIterator struct { 2348 i int 2349 page USQLTableTypeListPage 2350} 2351 2352// NextWithContext advances to the next value. If there was an error making 2353// the request the iterator does not advance and the error is returned. 2354func (iter *USQLTableTypeListIterator) NextWithContext(ctx context.Context) (err error) { 2355 if tracing.IsEnabled() { 2356 ctx = tracing.StartSpan(ctx, fqdn+"/USQLTableTypeListIterator.NextWithContext") 2357 defer func() { 2358 sc := -1 2359 if iter.Response().Response.Response != nil { 2360 sc = iter.Response().Response.Response.StatusCode 2361 } 2362 tracing.EndSpan(ctx, sc, err) 2363 }() 2364 } 2365 iter.i++ 2366 if iter.i < len(iter.page.Values()) { 2367 return nil 2368 } 2369 err = iter.page.NextWithContext(ctx) 2370 if err != nil { 2371 iter.i-- 2372 return err 2373 } 2374 iter.i = 0 2375 return nil 2376} 2377 2378// Next advances to the next value. If there was an error making 2379// the request the iterator does not advance and the error is returned. 2380// Deprecated: Use NextWithContext() instead. 2381func (iter *USQLTableTypeListIterator) Next() error { 2382 return iter.NextWithContext(context.Background()) 2383} 2384 2385// NotDone returns true if the enumeration should be started or is not yet complete. 2386func (iter USQLTableTypeListIterator) NotDone() bool { 2387 return iter.page.NotDone() && iter.i < len(iter.page.Values()) 2388} 2389 2390// Response returns the raw server response from the last page request. 2391func (iter USQLTableTypeListIterator) Response() USQLTableTypeList { 2392 return iter.page.Response() 2393} 2394 2395// Value returns the current value or a zero-initialized value if the 2396// iterator has advanced beyond the end of the collection. 2397func (iter USQLTableTypeListIterator) Value() USQLTableType { 2398 if !iter.page.NotDone() { 2399 return USQLTableType{} 2400 } 2401 return iter.page.Values()[iter.i] 2402} 2403 2404// Creates a new instance of the USQLTableTypeListIterator type. 2405func NewUSQLTableTypeListIterator(page USQLTableTypeListPage) USQLTableTypeListIterator { 2406 return USQLTableTypeListIterator{page: page} 2407} 2408 2409// IsEmpty returns true if the ListResult contains no values. 2410func (usttl USQLTableTypeList) IsEmpty() bool { 2411 return usttl.Value == nil || len(*usttl.Value) == 0 2412} 2413 2414// uSQLTableTypeListPreparer prepares a request to retrieve the next set of results. 2415// It returns nil if no more results exist. 2416func (usttl USQLTableTypeList) uSQLTableTypeListPreparer(ctx context.Context) (*http.Request, error) { 2417 if usttl.NextLink == nil || len(to.String(usttl.NextLink)) < 1 { 2418 return nil, nil 2419 } 2420 return autorest.Prepare((&http.Request{}).WithContext(ctx), 2421 autorest.AsJSON(), 2422 autorest.AsGet(), 2423 autorest.WithBaseURL(to.String(usttl.NextLink))) 2424} 2425 2426// USQLTableTypeListPage contains a page of USQLTableType values. 2427type USQLTableTypeListPage struct { 2428 fn func(context.Context, USQLTableTypeList) (USQLTableTypeList, error) 2429 uttl USQLTableTypeList 2430} 2431 2432// NextWithContext advances to the next page of values. If there was an error making 2433// the request the page does not advance and the error is returned. 2434func (page *USQLTableTypeListPage) NextWithContext(ctx context.Context) (err error) { 2435 if tracing.IsEnabled() { 2436 ctx = tracing.StartSpan(ctx, fqdn+"/USQLTableTypeListPage.NextWithContext") 2437 defer func() { 2438 sc := -1 2439 if page.Response().Response.Response != nil { 2440 sc = page.Response().Response.Response.StatusCode 2441 } 2442 tracing.EndSpan(ctx, sc, err) 2443 }() 2444 } 2445 next, err := page.fn(ctx, page.uttl) 2446 if err != nil { 2447 return err 2448 } 2449 page.uttl = next 2450 return nil 2451} 2452 2453// Next advances to the next page of values. If there was an error making 2454// the request the page does not advance and the error is returned. 2455// Deprecated: Use NextWithContext() instead. 2456func (page *USQLTableTypeListPage) Next() error { 2457 return page.NextWithContext(context.Background()) 2458} 2459 2460// NotDone returns true if the page enumeration should be started or is not yet complete. 2461func (page USQLTableTypeListPage) NotDone() bool { 2462 return !page.uttl.IsEmpty() 2463} 2464 2465// Response returns the raw server response from the last page request. 2466func (page USQLTableTypeListPage) Response() USQLTableTypeList { 2467 return page.uttl 2468} 2469 2470// Values returns the slice of values for the current page or nil if there are no values. 2471func (page USQLTableTypeListPage) Values() []USQLTableType { 2472 if page.uttl.IsEmpty() { 2473 return nil 2474 } 2475 return *page.uttl.Value 2476} 2477 2478// Creates a new instance of the USQLTableTypeListPage type. 2479func NewUSQLTableTypeListPage(getNextPage func(context.Context, USQLTableTypeList) (USQLTableTypeList, error)) USQLTableTypeListPage { 2480 return USQLTableTypeListPage{fn: getNextPage} 2481} 2482 2483// USQLTableValuedFunction a Data Lake Analytics catalog U-SQL table valued function item. 2484type USQLTableValuedFunction struct { 2485 autorest.Response `json:"-"` 2486 // DatabaseName - the name of the database. 2487 DatabaseName *string `json:"databaseName,omitempty"` 2488 // SchemaName - the name of the schema associated with this database. 2489 SchemaName *string `json:"schemaName,omitempty"` 2490 // Name - the name of the table valued function. 2491 Name *string `json:"tvfName,omitempty"` 2492 // Definition - the definition of the table valued function. 2493 Definition *string `json:"definition,omitempty"` 2494 // ComputeAccountName - the name of the Data Lake Analytics account. 2495 ComputeAccountName *string `json:"computeAccountName,omitempty"` 2496 // Version - the version of the catalog item. 2497 Version *uuid.UUID `json:"version,omitempty"` 2498} 2499 2500// USQLTableValuedFunctionList a Data Lake Analytics catalog U-SQL table valued function item list. 2501type USQLTableValuedFunctionList struct { 2502 autorest.Response `json:"-"` 2503 // Value - READ-ONLY; the list of table valued functions in the database and schema combination 2504 Value *[]USQLTableValuedFunction `json:"value,omitempty"` 2505 // NextLink - the link to the next page of results. 2506 NextLink *string `json:"nextLink,omitempty"` 2507} 2508 2509// USQLTableValuedFunctionListIterator provides access to a complete listing of USQLTableValuedFunction 2510// values. 2511type USQLTableValuedFunctionListIterator struct { 2512 i int 2513 page USQLTableValuedFunctionListPage 2514} 2515 2516// NextWithContext advances to the next value. If there was an error making 2517// the request the iterator does not advance and the error is returned. 2518func (iter *USQLTableValuedFunctionListIterator) NextWithContext(ctx context.Context) (err error) { 2519 if tracing.IsEnabled() { 2520 ctx = tracing.StartSpan(ctx, fqdn+"/USQLTableValuedFunctionListIterator.NextWithContext") 2521 defer func() { 2522 sc := -1 2523 if iter.Response().Response.Response != nil { 2524 sc = iter.Response().Response.Response.StatusCode 2525 } 2526 tracing.EndSpan(ctx, sc, err) 2527 }() 2528 } 2529 iter.i++ 2530 if iter.i < len(iter.page.Values()) { 2531 return nil 2532 } 2533 err = iter.page.NextWithContext(ctx) 2534 if err != nil { 2535 iter.i-- 2536 return err 2537 } 2538 iter.i = 0 2539 return nil 2540} 2541 2542// Next advances to the next value. If there was an error making 2543// the request the iterator does not advance and the error is returned. 2544// Deprecated: Use NextWithContext() instead. 2545func (iter *USQLTableValuedFunctionListIterator) Next() error { 2546 return iter.NextWithContext(context.Background()) 2547} 2548 2549// NotDone returns true if the enumeration should be started or is not yet complete. 2550func (iter USQLTableValuedFunctionListIterator) NotDone() bool { 2551 return iter.page.NotDone() && iter.i < len(iter.page.Values()) 2552} 2553 2554// Response returns the raw server response from the last page request. 2555func (iter USQLTableValuedFunctionListIterator) Response() USQLTableValuedFunctionList { 2556 return iter.page.Response() 2557} 2558 2559// Value returns the current value or a zero-initialized value if the 2560// iterator has advanced beyond the end of the collection. 2561func (iter USQLTableValuedFunctionListIterator) Value() USQLTableValuedFunction { 2562 if !iter.page.NotDone() { 2563 return USQLTableValuedFunction{} 2564 } 2565 return iter.page.Values()[iter.i] 2566} 2567 2568// Creates a new instance of the USQLTableValuedFunctionListIterator type. 2569func NewUSQLTableValuedFunctionListIterator(page USQLTableValuedFunctionListPage) USQLTableValuedFunctionListIterator { 2570 return USQLTableValuedFunctionListIterator{page: page} 2571} 2572 2573// IsEmpty returns true if the ListResult contains no values. 2574func (ustvfl USQLTableValuedFunctionList) IsEmpty() bool { 2575 return ustvfl.Value == nil || len(*ustvfl.Value) == 0 2576} 2577 2578// uSQLTableValuedFunctionListPreparer prepares a request to retrieve the next set of results. 2579// It returns nil if no more results exist. 2580func (ustvfl USQLTableValuedFunctionList) uSQLTableValuedFunctionListPreparer(ctx context.Context) (*http.Request, error) { 2581 if ustvfl.NextLink == nil || len(to.String(ustvfl.NextLink)) < 1 { 2582 return nil, nil 2583 } 2584 return autorest.Prepare((&http.Request{}).WithContext(ctx), 2585 autorest.AsJSON(), 2586 autorest.AsGet(), 2587 autorest.WithBaseURL(to.String(ustvfl.NextLink))) 2588} 2589 2590// USQLTableValuedFunctionListPage contains a page of USQLTableValuedFunction values. 2591type USQLTableValuedFunctionListPage struct { 2592 fn func(context.Context, USQLTableValuedFunctionList) (USQLTableValuedFunctionList, error) 2593 utvfl USQLTableValuedFunctionList 2594} 2595 2596// NextWithContext advances to the next page of values. If there was an error making 2597// the request the page does not advance and the error is returned. 2598func (page *USQLTableValuedFunctionListPage) NextWithContext(ctx context.Context) (err error) { 2599 if tracing.IsEnabled() { 2600 ctx = tracing.StartSpan(ctx, fqdn+"/USQLTableValuedFunctionListPage.NextWithContext") 2601 defer func() { 2602 sc := -1 2603 if page.Response().Response.Response != nil { 2604 sc = page.Response().Response.Response.StatusCode 2605 } 2606 tracing.EndSpan(ctx, sc, err) 2607 }() 2608 } 2609 next, err := page.fn(ctx, page.utvfl) 2610 if err != nil { 2611 return err 2612 } 2613 page.utvfl = next 2614 return nil 2615} 2616 2617// Next advances to the next page of values. If there was an error making 2618// the request the page does not advance and the error is returned. 2619// Deprecated: Use NextWithContext() instead. 2620func (page *USQLTableValuedFunctionListPage) Next() error { 2621 return page.NextWithContext(context.Background()) 2622} 2623 2624// NotDone returns true if the page enumeration should be started or is not yet complete. 2625func (page USQLTableValuedFunctionListPage) NotDone() bool { 2626 return !page.utvfl.IsEmpty() 2627} 2628 2629// Response returns the raw server response from the last page request. 2630func (page USQLTableValuedFunctionListPage) Response() USQLTableValuedFunctionList { 2631 return page.utvfl 2632} 2633 2634// Values returns the slice of values for the current page or nil if there are no values. 2635func (page USQLTableValuedFunctionListPage) Values() []USQLTableValuedFunction { 2636 if page.utvfl.IsEmpty() { 2637 return nil 2638 } 2639 return *page.utvfl.Value 2640} 2641 2642// Creates a new instance of the USQLTableValuedFunctionListPage type. 2643func NewUSQLTableValuedFunctionListPage(getNextPage func(context.Context, USQLTableValuedFunctionList) (USQLTableValuedFunctionList, error)) USQLTableValuedFunctionListPage { 2644 return USQLTableValuedFunctionListPage{fn: getNextPage} 2645} 2646 2647// USQLType a Data Lake Analytics catalog U-SQL type item. 2648type USQLType struct { 2649 // DatabaseName - the name of the database. 2650 DatabaseName *string `json:"databaseName,omitempty"` 2651 // SchemaName - the name of the schema associated with this table and database. 2652 SchemaName *string `json:"schemaName,omitempty"` 2653 // Name - the name of type for this type. 2654 Name *string `json:"typeName,omitempty"` 2655 // TypeFamily - the type family for this type. 2656 TypeFamily *string `json:"typeFamily,omitempty"` 2657 // CSharpName - the C# name for this type. 2658 CSharpName *string `json:"cSharpName,omitempty"` 2659 // FullCSharpName - the fully qualified C# name for this type. 2660 FullCSharpName *string `json:"fullCSharpName,omitempty"` 2661 // SystemTypeID - the system type ID for this type. 2662 SystemTypeID *int32 `json:"systemTypeId,omitempty"` 2663 // UserTypeID - the user type ID for this type. 2664 UserTypeID *int32 `json:"userTypeId,omitempty"` 2665 // SchemaID - the schema ID for this type. 2666 SchemaID *int32 `json:"schemaId,omitempty"` 2667 // PrincipalID - the principal ID for this type. 2668 PrincipalID *int32 `json:"principalId,omitempty"` 2669 // IsNullable - The switch indicating if this type is nullable. 2670 IsNullable *bool `json:"isNullable,omitempty"` 2671 // IsUserDefined - The switch indicating if this type is user defined. 2672 IsUserDefined *bool `json:"isUserDefined,omitempty"` 2673 // IsAssemblyType - The switch indicating if this type is an assembly type. 2674 IsAssemblyType *bool `json:"isAssemblyType,omitempty"` 2675 // IsTableType - The switch indicating if this type is a table type. 2676 IsTableType *bool `json:"isTableType,omitempty"` 2677 // IsComplexType - The switch indicating if this type is a complex type. 2678 IsComplexType *bool `json:"isComplexType,omitempty"` 2679 // ComputeAccountName - the name of the Data Lake Analytics account. 2680 ComputeAccountName *string `json:"computeAccountName,omitempty"` 2681 // Version - the version of the catalog item. 2682 Version *uuid.UUID `json:"version,omitempty"` 2683} 2684 2685// USQLTypeList a Data Lake Analytics catalog U-SQL type item list. 2686type USQLTypeList struct { 2687 autorest.Response `json:"-"` 2688 // Value - READ-ONLY; the list of types in the database and schema combination 2689 Value *[]USQLType `json:"value,omitempty"` 2690 // NextLink - the link to the next page of results. 2691 NextLink *string `json:"nextLink,omitempty"` 2692} 2693 2694// USQLTypeListIterator provides access to a complete listing of USQLType values. 2695type USQLTypeListIterator struct { 2696 i int 2697 page USQLTypeListPage 2698} 2699 2700// NextWithContext advances to the next value. If there was an error making 2701// the request the iterator does not advance and the error is returned. 2702func (iter *USQLTypeListIterator) NextWithContext(ctx context.Context) (err error) { 2703 if tracing.IsEnabled() { 2704 ctx = tracing.StartSpan(ctx, fqdn+"/USQLTypeListIterator.NextWithContext") 2705 defer func() { 2706 sc := -1 2707 if iter.Response().Response.Response != nil { 2708 sc = iter.Response().Response.Response.StatusCode 2709 } 2710 tracing.EndSpan(ctx, sc, err) 2711 }() 2712 } 2713 iter.i++ 2714 if iter.i < len(iter.page.Values()) { 2715 return nil 2716 } 2717 err = iter.page.NextWithContext(ctx) 2718 if err != nil { 2719 iter.i-- 2720 return err 2721 } 2722 iter.i = 0 2723 return nil 2724} 2725 2726// Next advances to the next value. If there was an error making 2727// the request the iterator does not advance and the error is returned. 2728// Deprecated: Use NextWithContext() instead. 2729func (iter *USQLTypeListIterator) Next() error { 2730 return iter.NextWithContext(context.Background()) 2731} 2732 2733// NotDone returns true if the enumeration should be started or is not yet complete. 2734func (iter USQLTypeListIterator) NotDone() bool { 2735 return iter.page.NotDone() && iter.i < len(iter.page.Values()) 2736} 2737 2738// Response returns the raw server response from the last page request. 2739func (iter USQLTypeListIterator) Response() USQLTypeList { 2740 return iter.page.Response() 2741} 2742 2743// Value returns the current value or a zero-initialized value if the 2744// iterator has advanced beyond the end of the collection. 2745func (iter USQLTypeListIterator) Value() USQLType { 2746 if !iter.page.NotDone() { 2747 return USQLType{} 2748 } 2749 return iter.page.Values()[iter.i] 2750} 2751 2752// Creates a new instance of the USQLTypeListIterator type. 2753func NewUSQLTypeListIterator(page USQLTypeListPage) USQLTypeListIterator { 2754 return USQLTypeListIterator{page: page} 2755} 2756 2757// IsEmpty returns true if the ListResult contains no values. 2758func (ustl USQLTypeList) IsEmpty() bool { 2759 return ustl.Value == nil || len(*ustl.Value) == 0 2760} 2761 2762// uSQLTypeListPreparer prepares a request to retrieve the next set of results. 2763// It returns nil if no more results exist. 2764func (ustl USQLTypeList) uSQLTypeListPreparer(ctx context.Context) (*http.Request, error) { 2765 if ustl.NextLink == nil || len(to.String(ustl.NextLink)) < 1 { 2766 return nil, nil 2767 } 2768 return autorest.Prepare((&http.Request{}).WithContext(ctx), 2769 autorest.AsJSON(), 2770 autorest.AsGet(), 2771 autorest.WithBaseURL(to.String(ustl.NextLink))) 2772} 2773 2774// USQLTypeListPage contains a page of USQLType values. 2775type USQLTypeListPage struct { 2776 fn func(context.Context, USQLTypeList) (USQLTypeList, error) 2777 utl USQLTypeList 2778} 2779 2780// NextWithContext advances to the next page of values. If there was an error making 2781// the request the page does not advance and the error is returned. 2782func (page *USQLTypeListPage) NextWithContext(ctx context.Context) (err error) { 2783 if tracing.IsEnabled() { 2784 ctx = tracing.StartSpan(ctx, fqdn+"/USQLTypeListPage.NextWithContext") 2785 defer func() { 2786 sc := -1 2787 if page.Response().Response.Response != nil { 2788 sc = page.Response().Response.Response.StatusCode 2789 } 2790 tracing.EndSpan(ctx, sc, err) 2791 }() 2792 } 2793 next, err := page.fn(ctx, page.utl) 2794 if err != nil { 2795 return err 2796 } 2797 page.utl = next 2798 return nil 2799} 2800 2801// Next advances to the next page of values. If there was an error making 2802// the request the page does not advance and the error is returned. 2803// Deprecated: Use NextWithContext() instead. 2804func (page *USQLTypeListPage) Next() error { 2805 return page.NextWithContext(context.Background()) 2806} 2807 2808// NotDone returns true if the page enumeration should be started or is not yet complete. 2809func (page USQLTypeListPage) NotDone() bool { 2810 return !page.utl.IsEmpty() 2811} 2812 2813// Response returns the raw server response from the last page request. 2814func (page USQLTypeListPage) Response() USQLTypeList { 2815 return page.utl 2816} 2817 2818// Values returns the slice of values for the current page or nil if there are no values. 2819func (page USQLTypeListPage) Values() []USQLType { 2820 if page.utl.IsEmpty() { 2821 return nil 2822 } 2823 return *page.utl.Value 2824} 2825 2826// Creates a new instance of the USQLTypeListPage type. 2827func NewUSQLTypeListPage(getNextPage func(context.Context, USQLTypeList) (USQLTypeList, error)) USQLTypeListPage { 2828 return USQLTypeListPage{fn: getNextPage} 2829} 2830 2831// USQLView a Data Lake Analytics catalog U-SQL view item. 2832type USQLView struct { 2833 autorest.Response `json:"-"` 2834 // DatabaseName - the name of the database. 2835 DatabaseName *string `json:"databaseName,omitempty"` 2836 // SchemaName - the name of the schema associated with this view and database. 2837 SchemaName *string `json:"schemaName,omitempty"` 2838 // Name - the name of the view. 2839 Name *string `json:"viewName,omitempty"` 2840 // Definition - the defined query of the view. 2841 Definition *string `json:"definition,omitempty"` 2842 // ComputeAccountName - the name of the Data Lake Analytics account. 2843 ComputeAccountName *string `json:"computeAccountName,omitempty"` 2844 // Version - the version of the catalog item. 2845 Version *uuid.UUID `json:"version,omitempty"` 2846} 2847 2848// USQLViewList a Data Lake Analytics catalog U-SQL view item list. 2849type USQLViewList struct { 2850 autorest.Response `json:"-"` 2851 // Value - READ-ONLY; the list of view in the database and schema combination 2852 Value *[]USQLView `json:"value,omitempty"` 2853 // NextLink - the link to the next page of results. 2854 NextLink *string `json:"nextLink,omitempty"` 2855} 2856 2857// USQLViewListIterator provides access to a complete listing of USQLView values. 2858type USQLViewListIterator struct { 2859 i int 2860 page USQLViewListPage 2861} 2862 2863// NextWithContext advances to the next value. If there was an error making 2864// the request the iterator does not advance and the error is returned. 2865func (iter *USQLViewListIterator) NextWithContext(ctx context.Context) (err error) { 2866 if tracing.IsEnabled() { 2867 ctx = tracing.StartSpan(ctx, fqdn+"/USQLViewListIterator.NextWithContext") 2868 defer func() { 2869 sc := -1 2870 if iter.Response().Response.Response != nil { 2871 sc = iter.Response().Response.Response.StatusCode 2872 } 2873 tracing.EndSpan(ctx, sc, err) 2874 }() 2875 } 2876 iter.i++ 2877 if iter.i < len(iter.page.Values()) { 2878 return nil 2879 } 2880 err = iter.page.NextWithContext(ctx) 2881 if err != nil { 2882 iter.i-- 2883 return err 2884 } 2885 iter.i = 0 2886 return nil 2887} 2888 2889// Next advances to the next value. If there was an error making 2890// the request the iterator does not advance and the error is returned. 2891// Deprecated: Use NextWithContext() instead. 2892func (iter *USQLViewListIterator) Next() error { 2893 return iter.NextWithContext(context.Background()) 2894} 2895 2896// NotDone returns true if the enumeration should be started or is not yet complete. 2897func (iter USQLViewListIterator) NotDone() bool { 2898 return iter.page.NotDone() && iter.i < len(iter.page.Values()) 2899} 2900 2901// Response returns the raw server response from the last page request. 2902func (iter USQLViewListIterator) Response() USQLViewList { 2903 return iter.page.Response() 2904} 2905 2906// Value returns the current value or a zero-initialized value if the 2907// iterator has advanced beyond the end of the collection. 2908func (iter USQLViewListIterator) Value() USQLView { 2909 if !iter.page.NotDone() { 2910 return USQLView{} 2911 } 2912 return iter.page.Values()[iter.i] 2913} 2914 2915// Creates a new instance of the USQLViewListIterator type. 2916func NewUSQLViewListIterator(page USQLViewListPage) USQLViewListIterator { 2917 return USQLViewListIterator{page: page} 2918} 2919 2920// IsEmpty returns true if the ListResult contains no values. 2921func (usvl USQLViewList) IsEmpty() bool { 2922 return usvl.Value == nil || len(*usvl.Value) == 0 2923} 2924 2925// uSQLViewListPreparer prepares a request to retrieve the next set of results. 2926// It returns nil if no more results exist. 2927func (usvl USQLViewList) uSQLViewListPreparer(ctx context.Context) (*http.Request, error) { 2928 if usvl.NextLink == nil || len(to.String(usvl.NextLink)) < 1 { 2929 return nil, nil 2930 } 2931 return autorest.Prepare((&http.Request{}).WithContext(ctx), 2932 autorest.AsJSON(), 2933 autorest.AsGet(), 2934 autorest.WithBaseURL(to.String(usvl.NextLink))) 2935} 2936 2937// USQLViewListPage contains a page of USQLView values. 2938type USQLViewListPage struct { 2939 fn func(context.Context, USQLViewList) (USQLViewList, error) 2940 uvl USQLViewList 2941} 2942 2943// NextWithContext advances to the next page of values. If there was an error making 2944// the request the page does not advance and the error is returned. 2945func (page *USQLViewListPage) NextWithContext(ctx context.Context) (err error) { 2946 if tracing.IsEnabled() { 2947 ctx = tracing.StartSpan(ctx, fqdn+"/USQLViewListPage.NextWithContext") 2948 defer func() { 2949 sc := -1 2950 if page.Response().Response.Response != nil { 2951 sc = page.Response().Response.Response.StatusCode 2952 } 2953 tracing.EndSpan(ctx, sc, err) 2954 }() 2955 } 2956 next, err := page.fn(ctx, page.uvl) 2957 if err != nil { 2958 return err 2959 } 2960 page.uvl = next 2961 return nil 2962} 2963 2964// Next advances to the next page of values. If there was an error making 2965// the request the page does not advance and the error is returned. 2966// Deprecated: Use NextWithContext() instead. 2967func (page *USQLViewListPage) Next() error { 2968 return page.NextWithContext(context.Background()) 2969} 2970 2971// NotDone returns true if the page enumeration should be started or is not yet complete. 2972func (page USQLViewListPage) NotDone() bool { 2973 return !page.uvl.IsEmpty() 2974} 2975 2976// Response returns the raw server response from the last page request. 2977func (page USQLViewListPage) Response() USQLViewList { 2978 return page.uvl 2979} 2980 2981// Values returns the slice of values for the current page or nil if there are no values. 2982func (page USQLViewListPage) Values() []USQLView { 2983 if page.uvl.IsEmpty() { 2984 return nil 2985 } 2986 return *page.uvl.Value 2987} 2988 2989// Creates a new instance of the USQLViewListPage type. 2990func NewUSQLViewListPage(getNextPage func(context.Context, USQLViewList) (USQLViewList, error)) USQLViewListPage { 2991 return USQLViewListPage{fn: getNextPage} 2992} 2993