diff --git a/.codegen/api.java.tmpl b/.codegen/api.java.tmpl index 76756921d..72f03b506 100644 --- a/.codegen/api.java.tmpl +++ b/.codegen/api.java.tmpl @@ -172,7 +172,7 @@ public class {{.PascalName}}API { {{- else if .Pagination.Token -}} { String token = response.get{{.Pagination.Token.Bind.PascalName}}(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.set{{.Pagination.Token.PollField.PascalName}}(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java index b81ad3704..04ebf9ffb 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java @@ -243,7 +243,7 @@ public Iterable list(ListAppsRequest request) { ListAppsResponse::getApps, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -266,7 +266,7 @@ public Iterable listDeployments(ListAppDeploymentsRequest request ListAppDeploymentsResponse::getAppDeployments, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/BudgetsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/BudgetsAPI.java index 1c6472983..5df93d61d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/BudgetsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/BudgetsAPI.java @@ -82,7 +82,7 @@ public Iterable list(ListBudgetConfigurationsRequest reques ListBudgetConfigurationsResponse::getBudgets, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsAPI.java index 68096a0fd..744c57db6 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsAPI.java @@ -89,7 +89,7 @@ public Iterable list(ListCatalogsRequest request) { ListCatalogsResponse::getCatalogs, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ConnectionsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ConnectionsAPI.java index 10b8eafbc..ff8b2cda9 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ConnectionsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ConnectionsAPI.java @@ -91,7 +91,7 @@ public Iterable list(ListConnectionsRequest request) { ListConnectionsResponse::getConnections, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationsAPI.java index 361875fbe..a5c5d698e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationsAPI.java @@ -94,7 +94,7 @@ public Iterable list(ListExternalLocationsRequest request) ListExternalLocationsResponse::getExternalLocations, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionsAPI.java index 136c1d905..3961b6d1d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionsAPI.java @@ -106,7 +106,7 @@ public Iterable list(ListFunctionsRequest request) { ListFunctionsResponse::getFunctions, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ModelVersionsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ModelVersionsAPI.java index a1c4cc0b6..affc50e41 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ModelVersionsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ModelVersionsAPI.java @@ -112,7 +112,7 @@ public Iterable list(ListModelVersionsRequest request) { ListModelVersionsResponse::getModelVersions, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/RegisteredModelsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/RegisteredModelsAPI.java index d5b1fbb25..9c17899de 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/RegisteredModelsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/RegisteredModelsAPI.java @@ -150,7 +150,7 @@ public Iterable list(ListRegisteredModelsRequest request) { ListRegisteredModelsResponse::getRegisteredModels, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ResourceQuotasAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ResourceQuotasAPI.java index 102f057bb..4dd5da2db 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ResourceQuotasAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ResourceQuotasAPI.java @@ -66,7 +66,7 @@ public Iterable listQuotas(ListQuotasRequest request) { ListQuotasResponse::getQuotas, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemasAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemasAPI.java index 441636890..acaa88214 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemasAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemasAPI.java @@ -91,7 +91,7 @@ public Iterable list(ListSchemasRequest request) { ListSchemasResponse::getSchemas, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsAPI.java index 69d3b4f87..89fc74af4 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsAPI.java @@ -92,7 +92,7 @@ public Iterable list(ListStorageCredentialsRequest reques ListStorageCredentialsResponse::getStorageCredentials, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SystemSchemasAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SystemSchemasAPI.java index 5ff7062a5..605036b9e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SystemSchemasAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SystemSchemasAPI.java @@ -73,7 +73,7 @@ public Iterable list(ListSystemSchemasRequest request) { ListSystemSchemasResponse::getSchemas, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TablesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TablesAPI.java index ab00a021b..0717b94b0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TablesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TablesAPI.java @@ -105,7 +105,7 @@ public Iterable list(ListTablesRequest request) { ListTablesResponse::getTables, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -137,7 +137,7 @@ public Iterable listSummaries(ListSummariesRequest request) { ListTableSummariesResponse::getTables, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/VolumesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/VolumesAPI.java index f9d9d96dd..ea0dffa63 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/VolumesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/VolumesAPI.java @@ -107,7 +107,7 @@ public Iterable list(ListVolumesRequest request) { ListVolumesResponseContent::getVolumes, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/WorkspaceBindingsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/WorkspaceBindingsAPI.java index 71a52715d..8bdddadec 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/WorkspaceBindingsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/WorkspaceBindingsAPI.java @@ -74,7 +74,7 @@ public Iterable getBindings(GetBindingsRequest request) { WorkspaceBindingsResponse::getBindings, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ClustersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ClustersAPI.java index ab3fbae39..6cc810fc7 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ClustersAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ClustersAPI.java @@ -291,7 +291,7 @@ public Iterable list(ListClustersRequest request) { ListClustersResponse::getClusters, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PolicyComplianceForClustersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PolicyComplianceForClustersAPI.java index eba5bc734..7af090378 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PolicyComplianceForClustersAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PolicyComplianceForClustersAPI.java @@ -90,7 +90,7 @@ public Iterable listCompliance(ListClusterCompliancesRequest ListClusterCompliancesResponse::getClusters, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PolicyFamiliesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PolicyFamiliesAPI.java index 9854b9a3e..d31df6eaf 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PolicyFamiliesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PolicyFamiliesAPI.java @@ -60,7 +60,7 @@ public Iterable list(ListPolicyFamiliesRequest request) { ListPolicyFamiliesResponse::getPolicyFamilies, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewAPI.java index da3753144..8f7f66050 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewAPI.java @@ -145,7 +145,7 @@ public Iterable list(ListDashboardsRequest request) { ListDashboardsResponse::getDashboards, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -164,7 +164,7 @@ public Iterable listSchedules(ListSchedulesRequest request) { ListSchedulesResponse::getSchedules, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -184,7 +184,7 @@ public Iterable listSubscriptions(ListSubscriptionsRequest request ListSubscriptionsResponse::getSubscriptions, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/files/FilesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/files/FilesAPI.java index d6492c3e9..e4dbf25cc 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/files/FilesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/files/FilesAPI.java @@ -151,7 +151,7 @@ public Iterable listDirectoryContents(ListDirectoryContentsReque ListDirectoryResponse::getContents, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobsAPI.java index db8a03279..a5ec8c8b3 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobsAPI.java @@ -259,7 +259,7 @@ public Iterable list(ListJobsRequest request) { ListJobsResponse::getJobs, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -278,7 +278,7 @@ public Iterable listRuns(ListRunsRequest request) { ListRunsResponse::getRuns, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/PolicyComplianceForJobsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/PolicyComplianceForJobsAPI.java index a33e3907d..11f8eebd3 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/PolicyComplianceForJobsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/PolicyComplianceForJobsAPI.java @@ -84,7 +84,7 @@ public Iterable listCompliance(ListJobComplianceRequest request) ListJobComplianceForPolicyResponse::getJobs, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsAPI.java index bfb94cfdc..3d043206e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsAPI.java @@ -40,7 +40,7 @@ public Iterable get(GetListingContentMetadataRequest request) GetListingContentMetadataResponse::getSharedDataObjects, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -66,7 +66,7 @@ public Iterable list(ListFulfillmentsRequest request) { ListFulfillmentsResponse::getFulfillments, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsAPI.java index 4cb983d47..bb5d91094 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsAPI.java @@ -65,7 +65,7 @@ public Iterable list(ListAllInstallationsRequest request) { ListAllInstallationsResponse::getInstallations, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -88,7 +88,7 @@ public Iterable listListingInstallations(ListInstallationsRe ListInstallationsResponse::getInstallations, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsAPI.java index ef7bd11aa..d58cbdd8d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsAPI.java @@ -61,7 +61,7 @@ public Iterable list(ListListingsRequest request) { ListListingsResponse::getListings, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -85,7 +85,7 @@ public Iterable search(SearchListingsRequest request) { SearchListingsResponse::getListings, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsAPI.java index a762f3e82..f89fa83fe 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsAPI.java @@ -72,7 +72,7 @@ public Iterable list(ListAllPersonalizationRequestsReque ListAllPersonalizationRequestsResponse::getPersonalizationRequests, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersAPI.java index 0dbca45f0..1771bfc30 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersAPI.java @@ -58,7 +58,7 @@ public Iterable list(ListProvidersRequest request) { ListProvidersResponse::getProviders, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersAPI.java index bf1fe037a..1588908ae 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersAPI.java @@ -66,7 +66,7 @@ public Iterable list(ListExchangeFiltersRequest request) { ListExchangeFiltersResponse::getFilters, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesAPI.java index 84954c14e..0abeb6121 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesAPI.java @@ -104,7 +104,7 @@ public Iterable list(ListExchangesRequest request) { ListExchangesResponse::getExchanges, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -127,7 +127,7 @@ public Iterable listExchangesForListing(ListExchangesForListing ListExchangesForListingResponse::getExchangeListing, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -150,7 +150,7 @@ public Iterable listListingsForExchange(ListListingsForExchange ListListingsForExchangeResponse::getExchangeListings, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesAPI.java index cf27c77ec..e10402b7a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesAPI.java @@ -87,7 +87,7 @@ public Iterable list(ListFilesRequest request) { ListFilesResponse::getFileInfos, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsAPI.java index 936d78d47..a1635bdd9 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsAPI.java @@ -78,7 +78,7 @@ public Iterable list(GetListingsRequest request) { GetListingsResponse::getListings, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsAPI.java index d4553b717..71ce3280b 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsAPI.java @@ -41,7 +41,7 @@ public Iterable list(ListAllPersonalizationRequestsReque ListAllPersonalizationRequestsResponse::getPersonalizationRequests, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersAPI.java index a76c6c3b9..71179c421 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersAPI.java @@ -75,7 +75,7 @@ public Iterable list(ListProvidersRequest request) { ListProvidersResponse::getProviders, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsAPI.java index 7d9640a1a..7f3923351 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsAPI.java @@ -166,7 +166,7 @@ public Iterable getHistory(GetHistoryRequest request) { GetMetricHistoryResponse::getMetrics, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -235,7 +235,7 @@ public Iterable listArtifacts(ListArtifactsRequest request) { ListArtifactsResponse::getFiles, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -254,7 +254,7 @@ public Iterable listExperiments(ListExperimentsRequest request) { ListExperimentsResponse::getExperiments, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -414,7 +414,7 @@ public Iterable searchExperiments(SearchExperiments request) { SearchExperimentsResponse::getExperiments, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -435,7 +435,7 @@ public Iterable searchRuns(SearchRuns request) { SearchRunsResponse::getRuns, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ModelRegistryAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ModelRegistryAPI.java index e034e00dd..e70d42047 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ModelRegistryAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ModelRegistryAPI.java @@ -327,7 +327,7 @@ public Iterable listModels(ListModelsRequest request) { ListModelsResponse::getRegisteredModels, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -366,7 +366,7 @@ public Iterable listWebhooks(ListWebhooksRequest request) { ListRegistryWebhooks::getWebhooks, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -413,7 +413,7 @@ public Iterable searchModelVersions(SearchModelVersionsRequest req SearchModelVersionsResponse::getModelVersions, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -432,7 +432,7 @@ public Iterable searchModels(SearchModelsRequest request) { SearchModelsResponse::getRegisteredModels, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/CustomAppIntegrationAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/CustomAppIntegrationAPI.java index 4a5ddaa92..aebeaff88 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/CustomAppIntegrationAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/CustomAppIntegrationAPI.java @@ -77,7 +77,7 @@ public Iterable list(ListCustomAppIntegrationsReq GetCustomAppIntegrationsOutput::getApps, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/OAuthPublishedAppsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/OAuthPublishedAppsAPI.java index ebc702a54..aded91ea2 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/OAuthPublishedAppsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/OAuthPublishedAppsAPI.java @@ -40,7 +40,7 @@ public Iterable list(ListOAuthPublishedAppsRequest request) GetPublishedAppsOutput::getApps, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/PublishedAppIntegrationAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/PublishedAppIntegrationAPI.java index c90911b78..49edacfd0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/PublishedAppIntegrationAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/PublishedAppIntegrationAPI.java @@ -80,7 +80,7 @@ public Iterable list( GetPublishedAppIntegrationsOutput::getApps, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelinesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelinesAPI.java index 31a7bc569..9e00ea3cd 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelinesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelinesAPI.java @@ -223,7 +223,7 @@ public Iterable listPipelineEvents(ListPipelineEventsRequest requ ListPipelineEventsResponse::getEvents, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -242,7 +242,7 @@ public Iterable listPipelines(ListPipelinesRequest request) { ListPipelinesResponse::getStatuses, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityAPI.java index e039d64d4..5c8009be5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityAPI.java @@ -154,7 +154,7 @@ public Iterable listNetworkConnectivityConfigu ListNetworkConnectivityConfigurationsResponse::getItems, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -181,7 +181,7 @@ public Iterable listPrivateEndpointRules( ListNccAzurePrivateEndpointRulesResponse::getItems, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NotificationDestinationsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NotificationDestinationsAPI.java index 0d8a87350..466e31f06 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NotificationDestinationsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NotificationDestinationsAPI.java @@ -77,7 +77,7 @@ public Iterable list( ListNotificationDestinationsResponse::getResults, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/CleanRoomsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/CleanRoomsAPI.java index 582453648..09b1944a0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/CleanRoomsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/CleanRoomsAPI.java @@ -87,7 +87,7 @@ public Iterable list(ListCleanRoomsRequest request) { ListCleanRoomsResponse::getCleanRooms, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ProvidersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ProvidersAPI.java index 0adbfb15c..41e7ea41a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ProvidersAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ProvidersAPI.java @@ -83,7 +83,7 @@ public Iterable list(ListProvidersRequest request) { ListProvidersResponse::getProviders, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/RecipientsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/RecipientsAPI.java index 98a185f31..b3d3c0453 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/RecipientsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/RecipientsAPI.java @@ -97,7 +97,7 @@ public Iterable list(ListRecipientsRequest request) { ListRecipientsResponse::getRecipients, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesAPI.java index f555901ce..74c6df95a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesAPI.java @@ -85,7 +85,7 @@ public Iterable list(ListSharesRequest request) { ListSharesResponse::getShares, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsAPI.java index d09b565e8..8f77b7b94 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsAPI.java @@ -80,7 +80,7 @@ public Iterable list(ListAlertsRequest request) { ListAlertsResponse::getResults, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java index a1900b66f..3b9d4cbb0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java @@ -10,4 +10,5 @@ public enum ChannelName { CHANNEL_NAME_CUSTOM, CHANNEL_NAME_PREVIEW, CHANNEL_NAME_PREVIOUS, + CHANNEL_NAME_UNSPECIFIED, } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesAPI.java index f319bcd6e..4de05140b 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesAPI.java @@ -80,7 +80,7 @@ public Iterable list(ListQueriesRequest request) ListQueryObjectsResponse::getResults, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); @@ -103,7 +103,7 @@ public Iterable listVisualizations(ListVisualizationsForQueryRequ ListVisualizationsForQueryResponse::getResults, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/VectorSearchEndpointsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/VectorSearchEndpointsAPI.java index 2f77789b6..f65ea66c9 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/VectorSearchEndpointsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/VectorSearchEndpointsAPI.java @@ -122,7 +122,7 @@ public Iterable listEndpoints(ListEndpointsRequest request) { ListEndpointResponse::getEndpoints, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/VectorSearchIndexesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/VectorSearchIndexesAPI.java index 0217d992f..6e19bbad6 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/VectorSearchIndexesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/VectorSearchIndexesAPI.java @@ -110,7 +110,7 @@ public Iterable listIndexes(ListIndexesRequest request) { ListVectorIndexesResponse::getVectorIndexes, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/ReposAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/ReposAPI.java index 568ca8777..b1a1271e5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/ReposAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/ReposAPI.java @@ -116,7 +116,7 @@ public Iterable list(ListReposRequest request) { ListReposResponse::getRepos, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (token == null || token.isEmpty()) { return null; } return request.setNextPageToken(token);