Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should-not-export-paged-result-model #2620

Merged
merged 10 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ export interface DataProductInformation {
description: string;
}

// @public
export interface DataProductListResult {
nextLink?: string;
value: DataProduct[];
}

// @public
export interface DataProductNetworkAcls {
allowedQueryIpRangeList: string[];
Expand Down Expand Up @@ -121,12 +115,6 @@ export interface DataProductsCatalog extends ProxyResource {
properties?: DataProductsCatalogProperties;
}

// @public
export interface DataProductsCatalogListResult {
nextLink?: string;
value: DataProductsCatalog[];
}

// @public
export interface DataProductsCatalogProperties {
readonly provisioningState?: ProvisioningState;
Expand Down Expand Up @@ -254,12 +242,6 @@ export interface DataType extends ProxyResource {
properties?: DataTypeProperties;
}

// @public
export interface DataTypeListResult {
nextLink?: string;
value: DataType[];
}

// @public
export interface DataTypeProperties {
databaseCacheRetention?: number;
Expand Down Expand Up @@ -524,12 +506,6 @@ export interface OperationDisplay {
resource?: string;
}

// @public
export interface OperationListResult {
nextLink?: string;
value: Operation[];
}

// @public (undocumented)
export interface OperationsListOptionalParams extends OperationOptions {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
RoleAssignmentCommonProperties,
RoleAssignmentDetail,
ListRoleAssignments,
DataProductListResult,
_DataProductListResult,
} from "../../models/models.js";
import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js";
import { buildPagedAsyncIterator } from "../pagingHelpers.js";
Expand Down Expand Up @@ -1046,7 +1046,7 @@ export async function _listByResourceGroupDeserialize(
result:
| DataProductsListByResourceGroup200Response
| DataProductsListByResourceGroupDefaultResponse,
): Promise<DataProductListResult> {
): Promise<_DataProductListResult> {
if (isUnexpected(result)) {
throw createRestError(result);
}
Expand Down Expand Up @@ -1209,7 +1209,7 @@ export async function _listBySubscriptionDeserialize(
result:
| DataProductsListBySubscription200Response
| DataProductsListBySubscriptionDefaultResponse,
): Promise<DataProductListResult> {
): Promise<_DataProductListResult> {
if (isUnexpected(result)) {
throw createRestError(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import {
DataProductsCatalog,
DataProductsCatalogListResult,
_DataProductsCatalogListResult,
} from "../../models/models.js";
import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js";
import { buildPagedAsyncIterator } from "../pagingHelpers.js";
Expand Down Expand Up @@ -132,7 +132,7 @@ export async function _listByResourceGroupDeserialize(
result:
| DataProductsCatalogsListByResourceGroup200Response
| DataProductsCatalogsListByResourceGroupDefaultResponse,
): Promise<DataProductsCatalogListResult> {
): Promise<_DataProductsCatalogListResult> {
if (isUnexpected(result)) {
throw createRestError(result);
}
Expand Down Expand Up @@ -223,7 +223,7 @@ export async function _listBySubscriptionDeserialize(
result:
| DataProductsCatalogsListBySubscription200Response
| DataProductsCatalogsListBySubscriptionDefaultResponse,
): Promise<DataProductsCatalogListResult> {
): Promise<_DataProductsCatalogListResult> {
if (isUnexpected(result)) {
throw createRestError(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
DataTypeUpdate,
ContainerSaS,
ContainerSasToken,
DataTypeListResult,
_DataTypeListResult,
} from "../../models/models.js";
import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js";
import { buildPagedAsyncIterator } from "../pagingHelpers.js";
Expand Down Expand Up @@ -577,7 +577,7 @@ export async function _listByDataProductDeserialize(
result:
| DataTypesListByDataProduct200Response
| DataTypesListByDataProductDefaultResponse,
): Promise<DataTypeListResult> {
): Promise<_DataTypeListResult> {
if (isUnexpected(result)) {
throw createRestError(result);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { OperationListResult, Operation } from "../../models/models.js";
import { Operation, _OperationListResult } from "../../models/models.js";
import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js";
import { buildPagedAsyncIterator } from "../pagingHelpers.js";
import {
Expand All @@ -28,7 +28,7 @@ export function _listSend(

export async function _listDeserialize(
result: OperationsList200Response | OperationsListDefaultResponse,
): Promise<OperationListResult> {
): Promise<_OperationListResult> {
if (isUnexpected(result)) {
throw createRestError(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export {
KnownDataProductUserRole,
RoleAssignmentDetail,
ListRoleAssignments,
DataProductListResult,
ProxyResource,
DataType,
DataTypeProperties,
Expand All @@ -53,14 +52,11 @@ export {
DataTypeUpdateProperties,
ContainerSaS,
ContainerSasToken,
DataTypeListResult,
DataProductsCatalog,
DataProductsCatalogProperties,
PublisherInformation,
DataProductInformation,
DataProductVersion,
DataProductsCatalogListResult,
OperationListResult,
Operation,
OperationDisplay,
Origin,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export {
KnownDataProductUserRole,
RoleAssignmentDetail,
ListRoleAssignments,
DataProductListResult,
ProxyResource,
DataType,
DataTypeProperties,
Expand All @@ -48,14 +47,11 @@ export {
DataTypeUpdateProperties,
ContainerSaS,
ContainerSasToken,
DataTypeListResult,
DataProductsCatalog,
DataProductsCatalogProperties,
PublisherInformation,
DataProductInformation,
DataProductVersion,
DataProductsCatalogListResult,
OperationListResult,
Operation,
OperationDisplay,
Origin,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ export interface ListRoleAssignments {
}

/** The response of a DataProduct list operation. */
export interface DataProductListResult {
export interface _DataProductListResult {
/** The DataProduct items on this page */
value: DataProduct[];
/** The link to the next page of items */
Expand Down Expand Up @@ -688,7 +688,7 @@ export interface ContainerSasToken {
}

/** The response of a DataType list operation. */
export interface DataTypeListResult {
export interface _DataTypeListResult {
/** The DataType items on this page */
value: DataType[];
/** The link to the next page of items */
Expand Down Expand Up @@ -734,15 +734,15 @@ export interface DataProductVersion {
}

/** The response of a DataProductsCatalog list operation. */
export interface DataProductsCatalogListResult {
export interface _DataProductsCatalogListResult {
/** The DataProductsCatalog items on this page */
value: DataProductsCatalog[];
/** The link to the next page of items */
nextLink?: string;
}

/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */
export interface OperationListResult {
export interface _OperationListResult {
/** The Operation items on this page */
value: Operation[];
/** The link to the next page of items */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,6 @@ export interface MultivariateModelInfo {
status?: ModelStatus;
}

// @public
export interface MultivariateModelList {
currentCount: number;
maxCount: number;
models: MultivariateAnomalyDetectionModel[];
nextLink?: string;
}

// @public
export interface MultivariateModelState {
epochIds?: number[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import {
MultivariateMultivariateBatchDetectionOptions,
MultivariateModelInfo,
MultivariateAnomalyDetectionModel,
MultivariateModelList,
MultivariateMultivariateLastDetectionOptions,
MultivariateMultivariateLastDetectionResult,
_MultivariateModelList,
} from "../../models/models.js";
import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js";
import { buildPagedAsyncIterator } from "../pagingHelpers.js";
Expand Down Expand Up @@ -316,7 +316,7 @@ export async function _listMultivariateModelsDeserialize(
result:
| ListMultivariateModels200Response
| ListMultivariateModelsDefaultResponse,
): Promise<MultivariateModelList> {
): Promise<_MultivariateModelList> {
if (isUnexpected(result)) {
throw createRestError(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export {
MultivariateDiagnosticsInfo,
MultivariateModelState,
MultivariateAnomalyDetectionModel,
MultivariateModelList,
MultivariateMultivariateLastDetectionOptions,
MultivariateVariableValues,
MultivariateMultivariateLastDetectionResult,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export {
MultivariateDiagnosticsInfo,
MultivariateModelState,
MultivariateAnomalyDetectionModel,
MultivariateModelList,
MultivariateMultivariateLastDetectionOptions,
MultivariateVariableValues,
MultivariateMultivariateLastDetectionResult,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export interface MultivariateAnomalyDetectionModel {
}

/** Response of listing models. */
export interface MultivariateModelList {
export interface _MultivariateModelList {
/** List of models. */
models: MultivariateAnomalyDetectionModel[];
/** Number of trained multivariate models. */
Expand Down
Loading
Loading