From 1fa8a245462953e4280d946cfdb8fafcd684b9e6 Mon Sep 17 00:00:00 2001 From: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> Date: Tue, 12 Oct 2021 12:29:46 +0800 Subject: [PATCH] refresh purview scanning for release (#17871) * refresh purview scanning for release * update readme.md * update paginate test support * format update * format fix --- .../purview-scanning-rest/CHANGELOG.md | 4 +- sdk/purview/purview-scanning-rest/README.md | 2 +- .../purview-scanning-rest/package.json | 1 + .../review/purview-scanning.api.md | 2658 ++++++----------- .../purview-scanning-rest/src/index.ts | 1 + .../purview-scanning-rest/src/models.ts | 2600 ++++++---------- .../src/paginateHelper.ts | 131 + .../purview-scanning-rest/src/parameters.ts | 131 +- .../src/purviewScanning.ts | 30 +- .../purview-scanning-rest/src/responses.ts | 8 +- .../purview-scanning-rest/swagger/README.md | 2 +- .../test/public/dataSources.spec.ts | 11 +- 12 files changed, 2156 insertions(+), 3423 deletions(-) create mode 100644 sdk/purview/purview-scanning-rest/src/paginateHelper.ts diff --git a/sdk/purview/purview-scanning-rest/CHANGELOG.md b/sdk/purview/purview-scanning-rest/CHANGELOG.md index 216eaf40f631..b4369721c073 100644 --- a/sdk/purview/purview-scanning-rest/CHANGELOG.md +++ b/sdk/purview/purview-scanning-rest/CHANGELOG.md @@ -1,7 +1,9 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.2 (2021-09-30) +- refresh package with latest swagger and code generator. +- add paging helper support. ## 1.0.0-beta.1 (2021-05-11) diff --git a/sdk/purview/purview-scanning-rest/README.md b/sdk/purview/purview-scanning-rest/README.md index fc5b953fb1e1..ccdfb5001356 100644 --- a/sdk/purview/purview-scanning-rest/README.md +++ b/sdk/purview/purview-scanning-rest/README.md @@ -85,7 +85,7 @@ import { DefaultAzureCredential } from "@azure/identity"; async function main() { console.log("== List dataSources =="); const client = PurviewScanning( - "https://.scan.purview.azure.com", + "https://.purview.azure.com", new DefaultAzureCredential() ); diff --git a/sdk/purview/purview-scanning-rest/package.json b/sdk/purview/purview-scanning-rest/package.json index 4bb53cf49a58..5ee6bf8bf1f8 100644 --- a/sdk/purview/purview-scanning-rest/package.json +++ b/sdk/purview/purview-scanning-rest/package.json @@ -84,6 +84,7 @@ "dependencies": { "@azure/core-auth": "^1.3.0", "@azure-rest/core-client": "1.0.0-beta.7", + "@azure/core-paging": "^1.1.1", "@azure/core-rest-pipeline": "^1.1.0", "@azure/logger": "^1.0.0", "tslib": "^2.2.0" diff --git a/sdk/purview/purview-scanning-rest/review/purview-scanning.api.md b/sdk/purview/purview-scanning-rest/review/purview-scanning.api.md index 801bcc00dfce..9549b73e0973 100644 --- a/sdk/purview/purview-scanning-rest/review/purview-scanning.api.md +++ b/sdk/purview/purview-scanning-rest/review/purview-scanning.api.md @@ -7,291 +7,209 @@ import { Client } from '@azure-rest/core-client'; import { ClientOptions } from '@azure-rest/core-client'; import { HttpResponse } from '@azure-rest/core-client'; +import { PagedAsyncIterableIterator } from '@azure/core-paging'; +import { PathUncheckedResponse } from '@azure-rest/core-client'; import { RequestParameters } from '@azure-rest/core-client'; import { TokenCredential } from '@azure/core-auth'; // @public (undocumented) -export type AdlsGen1CredentialScan = AdlsGen1CredentialScanBase & Scan; - -// @public (undocumented) -export interface AdlsGen1CredentialScanBase { +export interface AdlsGen1CredentialScan extends ScanBase { + // (undocumented) + kind: "AdlsGen1Credential"; // (undocumented) properties?: AdlsGen1CredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AdlsGen1CredentialScanProperties = AdlsGen1CredentialScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export type AdlsGen1CredentialScanPropertiesAutoGenerated = AdlsGen1CredentialScanPropertiesAutoGeneratedBase & AdlsGen1CredentialScanProperties; - -// @public (undocumented) -export interface AdlsGen1CredentialScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface AdlsGen1CredentialScanPropertiesBase { +export interface AdlsGen1CredentialScanProperties extends ScanProperties { // (undocumented) credential?: AdlsGen1CredentialScanPropertiesCredential; } // @public (undocumented) -export type AdlsGen1CredentialScanPropertiesCredential = AdlsGen1CredentialScanPropertiesCredentialBase & CredentialReference; - -// @public (undocumented) -export interface AdlsGen1CredentialScanPropertiesCredentialBase { +export interface AdlsGen1CredentialScanPropertiesAutoGenerated extends AdlsGen1CredentialScanProperties { } // @public (undocumented) -export type AdlsGen1DataSource = AdlsGen1DataSourceBase & DataSource; +export interface AdlsGen1CredentialScanPropertiesCredential extends CredentialReference { +} // @public (undocumented) -export interface AdlsGen1DataSourceBase { +export interface AdlsGen1DataSource extends DataSourceBase { + // (undocumented) + kind: "AdlsGen1"; // (undocumented) properties?: AdlsGen1DataSourceProperties; } // @public (undocumented) -export type AdlsGen1DataSourceProperties = AdlsGen1DataSourcePropertiesBase & AdlsGen1Properties; - -// @public (undocumented) -export interface AdlsGen1DataSourcePropertiesBase { +export interface AdlsGen1DataSourceProperties extends AdlsGen1Properties { } // @public (undocumented) -export type AdlsGen1MsiScan = AdlsGen1MsiScanBase & Scan; - -// @public (undocumented) -export interface AdlsGen1MsiScanBase { +export interface AdlsGen1MsiScan extends ScanBase { + // (undocumented) + kind: "AdlsGen1Msi"; // (undocumented) properties?: AdlsGen1MsiScanPropertiesAutoGenerated; } // @public (undocumented) -export type AdlsGen1MsiScanProperties = AdlsGen1MsiScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export type AdlsGen1MsiScanPropertiesAutoGenerated = AdlsGen1MsiScanPropertiesAutoGeneratedBase & AdlsGen1MsiScanProperties; - -// @public (undocumented) -export interface AdlsGen1MsiScanPropertiesAutoGeneratedBase { +export interface AdlsGen1MsiScanProperties extends ScanProperties { } // @public (undocumented) -export interface AdlsGen1MsiScanPropertiesBase { +export interface AdlsGen1MsiScanPropertiesAutoGenerated extends AdlsGen1MsiScanProperties { } // @public (undocumented) -export type AdlsGen1Properties = AdlsGen1PropertiesBase & AzureDataSourceProperties; - -// @public (undocumented) -export interface AdlsGen1PropertiesBase { +export interface AdlsGen1Properties extends AzureDataSourceProperties { // (undocumented) endpoint?: string; } // @public (undocumented) -export type AdlsGen1ScanRuleset = AdlsGen1ScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface AdlsGen1ScanRulesetBase { +export interface AdlsGen1ScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "AdlsGen1"; // (undocumented) properties?: AdlsGen1ScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type AdlsGen1ScanRulesetProperties = AdlsGen1ScanRulesetPropertiesBase & ScanningRuleScanRulesetProperties; - -// @public (undocumented) -export type AdlsGen1ScanRulesetPropertiesAutoGenerated = AdlsGen1ScanRulesetPropertiesAutoGeneratedBase & AdlsGen1ScanRulesetProperties; - -// @public (undocumented) -export interface AdlsGen1ScanRulesetPropertiesAutoGeneratedBase { +export interface AdlsGen1ScanRulesetProperties extends ScanningRuleScanRulesetProperties { } // @public (undocumented) -export interface AdlsGen1ScanRulesetPropertiesBase { +export interface AdlsGen1ScanRulesetPropertiesAutoGenerated extends AdlsGen1ScanRulesetProperties { } // @public (undocumented) -export type AdlsGen1SystemScanRuleset = AdlsGen1SystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AdlsGen1SystemScanRulesetBase { +export interface AdlsGen1SystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: AdlsGen1SystemScanRulesetProperties; } // @public (undocumented) -export type AdlsGen1SystemScanRulesetProperties = AdlsGen1SystemScanRulesetPropertiesBase & AdlsGen1ScanRulesetProperties; - -// @public (undocumented) -export interface AdlsGen1SystemScanRulesetPropertiesBase { +export interface AdlsGen1SystemScanRulesetProperties extends AdlsGen1ScanRulesetProperties { } // @public (undocumented) -export type AdlsGen2CredentialScan = AdlsGen2CredentialScanBase & Scan; - -// @public (undocumented) -export interface AdlsGen2CredentialScanBase { +export interface AdlsGen2CredentialScan extends ScanBase { + // (undocumented) + kind: "AdlsGen2Credential"; // (undocumented) properties?: AdlsGen2CredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AdlsGen2CredentialScanProperties = AdlsGen2CredentialScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export type AdlsGen2CredentialScanPropertiesAutoGenerated = AdlsGen2CredentialScanPropertiesAutoGeneratedBase & AdlsGen2CredentialScanProperties; - -// @public (undocumented) -export interface AdlsGen2CredentialScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface AdlsGen2CredentialScanPropertiesBase { +export interface AdlsGen2CredentialScanProperties extends ScanProperties { // (undocumented) credential?: AdlsGen2CredentialScanPropertiesCredential; } // @public (undocumented) -export type AdlsGen2CredentialScanPropertiesCredential = AdlsGen2CredentialScanPropertiesCredentialBase & CredentialReference; - -// @public (undocumented) -export interface AdlsGen2CredentialScanPropertiesCredentialBase { +export interface AdlsGen2CredentialScanPropertiesAutoGenerated extends AdlsGen2CredentialScanProperties { } // @public (undocumented) -export type AdlsGen2DataSource = AdlsGen2DataSourceBase & DataSource; +export interface AdlsGen2CredentialScanPropertiesCredential extends CredentialReference { +} // @public (undocumented) -export interface AdlsGen2DataSourceBase { +export interface AdlsGen2DataSource extends DataSourceBase { + // (undocumented) + kind: "AdlsGen2"; // (undocumented) properties?: AdlsGen2DataSourceProperties; } // @public (undocumented) -export type AdlsGen2DataSourceProperties = AdlsGen2DataSourcePropertiesBase & AdlsGen2Properties; - -// @public (undocumented) -export interface AdlsGen2DataSourcePropertiesBase { +export interface AdlsGen2DataSourceProperties extends AdlsGen2Properties { } // @public (undocumented) -export type AdlsGen2MsiScan = AdlsGen2MsiScanBase & Scan; - -// @public (undocumented) -export interface AdlsGen2MsiScanBase { +export interface AdlsGen2MsiScan extends ScanBase { + // (undocumented) + kind: "AdlsGen2Msi"; // (undocumented) properties?: AdlsGen2MsiScanPropertiesAutoGenerated; } // @public (undocumented) -export type AdlsGen2MsiScanProperties = AdlsGen2MsiScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export type AdlsGen2MsiScanPropertiesAutoGenerated = AdlsGen2MsiScanPropertiesAutoGeneratedBase & AdlsGen2MsiScanProperties; - -// @public (undocumented) -export interface AdlsGen2MsiScanPropertiesAutoGeneratedBase { +export interface AdlsGen2MsiScanProperties extends ScanProperties { } // @public (undocumented) -export interface AdlsGen2MsiScanPropertiesBase { +export interface AdlsGen2MsiScanPropertiesAutoGenerated extends AdlsGen2MsiScanProperties { } // @public (undocumented) -export type AdlsGen2Properties = AdlsGen2PropertiesBase & AzureDataSourceProperties; - -// @public (undocumented) -export interface AdlsGen2PropertiesBase { +export interface AdlsGen2Properties extends AzureDataSourceProperties { // (undocumented) endpoint?: string; } // @public (undocumented) -export type AdlsGen2ScanRuleset = AdlsGen2ScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface AdlsGen2ScanRulesetBase { +export interface AdlsGen2ScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "AdlsGen2"; // (undocumented) properties?: AdlsGen2ScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type AdlsGen2ScanRulesetProperties = AdlsGen2ScanRulesetPropertiesBase & ScanningRuleScanRulesetProperties; - -// @public (undocumented) -export type AdlsGen2ScanRulesetPropertiesAutoGenerated = AdlsGen2ScanRulesetPropertiesAutoGeneratedBase & AdlsGen2ScanRulesetProperties; - -// @public (undocumented) -export interface AdlsGen2ScanRulesetPropertiesAutoGeneratedBase { +export interface AdlsGen2ScanRulesetProperties extends ScanningRuleScanRulesetProperties { } // @public (undocumented) -export interface AdlsGen2ScanRulesetPropertiesBase { +export interface AdlsGen2ScanRulesetPropertiesAutoGenerated extends AdlsGen2ScanRulesetProperties { } // @public (undocumented) -export type AdlsGen2SystemScanRuleset = AdlsGen2SystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AdlsGen2SystemScanRulesetBase { +export interface AdlsGen2SystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: AdlsGen2SystemScanRulesetProperties; } // @public (undocumented) -export type AdlsGen2SystemScanRulesetProperties = AdlsGen2SystemScanRulesetPropertiesBase & AdlsGen2ScanRulesetProperties; - -// @public (undocumented) -export interface AdlsGen2SystemScanRulesetPropertiesBase { +export interface AdlsGen2SystemScanRulesetProperties extends AdlsGen2ScanRulesetProperties { } // @public (undocumented) -export type AmazonAccountCredentialScan = AmazonAccountCredentialScanBase & Scan; - -// @public (undocumented) -export interface AmazonAccountCredentialScanBase { +export interface AmazonAccountCredentialScan extends ScanBase { + // (undocumented) + kind: "AmazonAccountCredential"; // (undocumented) properties?: AmazonAccountCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AmazonAccountCredentialScanProperties = AmazonAccountCredentialScanPropertiesBase & ExpandingResourceScanProperties; - -// @public (undocumented) -export type AmazonAccountCredentialScanPropertiesAutoGenerated = AmazonAccountCredentialScanPropertiesAutoGeneratedBase & AmazonAccountCredentialScanProperties; - -// @public (undocumented) -export interface AmazonAccountCredentialScanPropertiesAutoGeneratedBase { +export interface AmazonAccountCredentialScanProperties extends ExpandingResourceScanProperties { } // @public (undocumented) -export interface AmazonAccountCredentialScanPropertiesBase { +export interface AmazonAccountCredentialScanPropertiesAutoGenerated extends AmazonAccountCredentialScanProperties { } // @public (undocumented) -export type AmazonAccountDataSource = AmazonAccountDataSourceBase & DataSource; - -// @public (undocumented) -export interface AmazonAccountDataSourceBase { +export interface AmazonAccountDataSource extends DataSourceBase { + // (undocumented) + kind: "AmazonAccount"; // (undocumented) properties?: AmazonAccountDataSourceProperties; } // @public (undocumented) -export type AmazonAccountDataSourceProperties = AmazonAccountDataSourcePropertiesBase & AmazonAccountProperties; - -// @public (undocumented) -export interface AmazonAccountDataSourcePropertiesBase { +export interface AmazonAccountDataSourceProperties extends AmazonAccountProperties { } // @public (undocumented) -export type AmazonAccountProperties = AmazonAccountPropertiesBase & DataSourceProperties; - -// @public (undocumented) -export interface AmazonAccountPropertiesBase { +export interface AmazonAccountProperties extends DataSourceProperties { // (undocumented) awsAccountId?: string; // (undocumented) @@ -299,65 +217,43 @@ export interface AmazonAccountPropertiesBase { } // @public (undocumented) -export type AmazonAccountScanRuleset = AmazonAccountScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface AmazonAccountScanRulesetBase { +export interface AmazonAccountScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "AmazonAccount"; // (undocumented) properties?: AmazonAccountScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type AmazonAccountScanRulesetProperties = AmazonAccountScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type AmazonAccountScanRulesetPropertiesAutoGenerated = AmazonAccountScanRulesetPropertiesAutoGeneratedBase & AmazonAccountScanRulesetProperties; - -// @public (undocumented) -export interface AmazonAccountScanRulesetPropertiesAutoGeneratedBase { +export interface AmazonAccountScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export interface AmazonAccountScanRulesetPropertiesBase { +export interface AmazonAccountScanRulesetPropertiesAutoGenerated extends AmazonAccountScanRulesetProperties { } // @public (undocumented) -export type AmazonAccountSystemScanRuleset = AmazonAccountSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AmazonAccountSystemScanRulesetBase { +export interface AmazonAccountSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: AmazonAccountSystemScanRulesetProperties; } // @public (undocumented) -export type AmazonAccountSystemScanRulesetProperties = AmazonAccountSystemScanRulesetPropertiesBase & AmazonAccountScanRulesetProperties; - -// @public (undocumented) -export interface AmazonAccountSystemScanRulesetPropertiesBase { +export interface AmazonAccountSystemScanRulesetProperties extends AmazonAccountScanRulesetProperties { } // @public (undocumented) -export type AmazonPostgreSqlCredentialScan = AmazonPostgreSqlCredentialScanBase & Scan; - -// @public (undocumented) -export interface AmazonPostgreSqlCredentialScanBase { +export interface AmazonPostgreSqlCredentialScan extends ScanBase { + // (undocumented) + kind: "AmazonPostgreSqlCredential"; // (undocumented) properties?: AmazonPostgreSqlCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AmazonPostgreSqlCredentialScanProperties = AmazonPostgreSqlCredentialScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export type AmazonPostgreSqlCredentialScanPropertiesAutoGenerated = AmazonPostgreSqlCredentialScanPropertiesAutoGeneratedBase & AmazonPostgreSqlCredentialScanProperties; - -// @public (undocumented) -export interface AmazonPostgreSqlCredentialScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface AmazonPostgreSqlCredentialScanPropertiesBase { +export interface AmazonPostgreSqlCredentialScanProperties extends ScanProperties { // (undocumented) credential?: AmazonPostgreSqlCredentialScanPropertiesCredential; // (undocumented) @@ -369,33 +265,27 @@ export interface AmazonPostgreSqlCredentialScanPropertiesBase { } // @public (undocumented) -export type AmazonPostgreSqlCredentialScanPropertiesCredential = AmazonPostgreSqlCredentialScanPropertiesCredentialBase & CredentialReference; - -// @public (undocumented) -export interface AmazonPostgreSqlCredentialScanPropertiesCredentialBase { +export interface AmazonPostgreSqlCredentialScanPropertiesAutoGenerated extends AmazonPostgreSqlCredentialScanProperties { } // @public (undocumented) -export type AmazonPostgreSqlDataSource = AmazonPostgreSqlDataSourceBase & DataSource; +export interface AmazonPostgreSqlCredentialScanPropertiesCredential extends CredentialReference { +} // @public (undocumented) -export interface AmazonPostgreSqlDataSourceBase { +export interface AmazonPostgreSqlDataSource extends DataSourceBase { + // (undocumented) + kind: "AmazonPostgreSql"; // (undocumented) properties?: AmazonPostgreSqlDataSourceProperties; } // @public (undocumented) -export type AmazonPostgreSqlDataSourceProperties = AmazonPostgreSqlDataSourcePropertiesBase & AmazonPostgreSqlProperties; - -// @public (undocumented) -export interface AmazonPostgreSqlDataSourcePropertiesBase { +export interface AmazonPostgreSqlDataSourceProperties extends AmazonPostgreSqlProperties { } // @public (undocumented) -export type AmazonPostgreSqlProperties = AmazonPostgreSqlPropertiesBase & DataSourceProperties; - -// @public (undocumented) -export interface AmazonPostgreSqlPropertiesBase { +export interface AmazonPostgreSqlProperties extends DataSourceProperties { // (undocumented) port?: string; // (undocumented) @@ -403,65 +293,43 @@ export interface AmazonPostgreSqlPropertiesBase { } // @public (undocumented) -export type AmazonPostgreSqlScanRuleset = AmazonPostgreSqlScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface AmazonPostgreSqlScanRulesetBase { +export interface AmazonPostgreSqlScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "AmazonPostgreSql"; // (undocumented) properties?: AmazonPostgreSqlScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type AmazonPostgreSqlScanRulesetProperties = AmazonPostgreSqlScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type AmazonPostgreSqlScanRulesetPropertiesAutoGenerated = AmazonPostgreSqlScanRulesetPropertiesAutoGeneratedBase & AmazonPostgreSqlScanRulesetProperties; - -// @public (undocumented) -export interface AmazonPostgreSqlScanRulesetPropertiesAutoGeneratedBase { +export interface AmazonPostgreSqlScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export interface AmazonPostgreSqlScanRulesetPropertiesBase { +export interface AmazonPostgreSqlScanRulesetPropertiesAutoGenerated extends AmazonPostgreSqlScanRulesetProperties { } // @public (undocumented) -export type AmazonPostgreSqlSystemScanRuleset = AmazonPostgreSqlSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AmazonPostgreSqlSystemScanRulesetBase { +export interface AmazonPostgreSqlSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: AmazonPostgreSqlSystemScanRulesetProperties; } // @public (undocumented) -export type AmazonPostgreSqlSystemScanRulesetProperties = AmazonPostgreSqlSystemScanRulesetPropertiesBase & AmazonPostgreSqlScanRulesetProperties; - -// @public (undocumented) -export interface AmazonPostgreSqlSystemScanRulesetPropertiesBase { +export interface AmazonPostgreSqlSystemScanRulesetProperties extends AmazonPostgreSqlScanRulesetProperties { } // @public (undocumented) -export type AmazonS3CredentialScan = AmazonS3CredentialScanBase & Scan; - -// @public (undocumented) -export interface AmazonS3CredentialScanBase { +export interface AmazonS3CredentialScan extends ScanBase { + // (undocumented) + kind: "AmazonS3Credential"; // (undocumented) properties?: AmazonS3CredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AmazonS3CredentialScanProperties = AmazonS3CredentialScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export type AmazonS3CredentialScanPropertiesAutoGenerated = AmazonS3CredentialScanPropertiesAutoGeneratedBase & AmazonS3CredentialScanProperties; - -// @public (undocumented) -export interface AmazonS3CredentialScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface AmazonS3CredentialScanPropertiesBase { +export interface AmazonS3CredentialScanProperties extends ScanProperties { // (undocumented) credential?: AmazonS3CredentialScanPropertiesCredential; // (undocumented) @@ -469,33 +337,27 @@ export interface AmazonS3CredentialScanPropertiesBase { } // @public (undocumented) -export type AmazonS3CredentialScanPropertiesCredential = AmazonS3CredentialScanPropertiesCredentialBase & CredentialReference; - -// @public (undocumented) -export interface AmazonS3CredentialScanPropertiesCredentialBase { +export interface AmazonS3CredentialScanPropertiesAutoGenerated extends AmazonS3CredentialScanProperties { } // @public (undocumented) -export type AmazonS3DataSource = AmazonS3DataSourceBase & DataSource; +export interface AmazonS3CredentialScanPropertiesCredential extends CredentialReference { +} // @public (undocumented) -export interface AmazonS3DataSourceBase { +export interface AmazonS3DataSource extends DataSourceBase { + // (undocumented) + kind: "AmazonS3"; // (undocumented) properties?: AmazonS3DataSourceProperties; } // @public (undocumented) -export type AmazonS3DataSourceProperties = AmazonS3DataSourcePropertiesBase & AmazonS3Properties; - -// @public (undocumented) -export interface AmazonS3DataSourcePropertiesBase { +export interface AmazonS3DataSourceProperties extends AmazonS3Properties { } // @public (undocumented) -export type AmazonS3Properties = AmazonS3PropertiesBase & DataSourceProperties; - -// @public (undocumented) -export interface AmazonS3PropertiesBase { +export interface AmazonS3Properties extends DataSourceProperties { // (undocumented) roleARN?: string; // (undocumented) @@ -503,90 +365,61 @@ export interface AmazonS3PropertiesBase { } // @public (undocumented) -export type AmazonS3RoleARNScan = AmazonS3RoleARNScanBase & Scan; - -// @public (undocumented) -export interface AmazonS3RoleARNScanBase { +export interface AmazonS3RoleARNScan extends ScanBase { + // (undocumented) + kind: "AmazonS3RoleARN"; // (undocumented) properties?: AmazonS3RoleARNScanPropertiesAutoGenerated; } // @public (undocumented) -export type AmazonS3RoleARNScanProperties = AmazonS3RoleARNScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export type AmazonS3RoleARNScanPropertiesAutoGenerated = AmazonS3RoleARNScanPropertiesAutoGeneratedBase & AmazonS3RoleARNScanProperties; - -// @public (undocumented) -export interface AmazonS3RoleARNScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface AmazonS3RoleARNScanPropertiesBase { +export interface AmazonS3RoleARNScanProperties extends ScanProperties { // (undocumented) roleARN?: string; } // @public (undocumented) -export type AmazonS3ScanRuleset = AmazonS3ScanRulesetBase & ScanRuleset; +export interface AmazonS3RoleARNScanPropertiesAutoGenerated extends AmazonS3RoleARNScanProperties { +} // @public (undocumented) -export interface AmazonS3ScanRulesetBase { +export interface AmazonS3ScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "AmazonS3"; // (undocumented) properties?: AmazonS3ScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type AmazonS3ScanRulesetProperties = AmazonS3ScanRulesetPropertiesBase & ScanningRuleScanRulesetProperties; - -// @public (undocumented) -export type AmazonS3ScanRulesetPropertiesAutoGenerated = AmazonS3ScanRulesetPropertiesAutoGeneratedBase & AmazonS3ScanRulesetProperties; - -// @public (undocumented) -export interface AmazonS3ScanRulesetPropertiesAutoGeneratedBase { +export interface AmazonS3ScanRulesetProperties extends ScanningRuleScanRulesetProperties { } // @public (undocumented) -export interface AmazonS3ScanRulesetPropertiesBase { +export interface AmazonS3ScanRulesetPropertiesAutoGenerated extends AmazonS3ScanRulesetProperties { } // @public (undocumented) -export type AmazonS3SystemScanRuleset = AmazonS3SystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AmazonS3SystemScanRulesetBase { +export interface AmazonS3SystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: AmazonS3SystemScanRulesetProperties; } // @public (undocumented) -export type AmazonS3SystemScanRulesetProperties = AmazonS3SystemScanRulesetPropertiesBase & AmazonS3ScanRulesetProperties; - -// @public (undocumented) -export interface AmazonS3SystemScanRulesetPropertiesBase { +export interface AmazonS3SystemScanRulesetProperties extends AmazonS3ScanRulesetProperties { } // @public (undocumented) -export type AmazonSqlCredentialScan = AmazonSqlCredentialScanBase & Scan; - -// @public (undocumented) -export interface AmazonSqlCredentialScanBase { +export interface AmazonSqlCredentialScan extends ScanBase { + // (undocumented) + kind: "AmazonSqlCredential"; // (undocumented) properties?: AmazonSqlCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AmazonSqlCredentialScanProperties = AmazonSqlCredentialScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export type AmazonSqlCredentialScanPropertiesAutoGenerated = AmazonSqlCredentialScanPropertiesAutoGeneratedBase & AmazonSqlCredentialScanProperties; - -// @public (undocumented) -export interface AmazonSqlCredentialScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface AmazonSqlCredentialScanPropertiesBase { +export interface AmazonSqlCredentialScanProperties extends ScanProperties { // (undocumented) credential?: AmazonSqlCredentialScanPropertiesCredential; // (undocumented) @@ -596,97 +429,69 @@ export interface AmazonSqlCredentialScanPropertiesBase { } // @public (undocumented) -export type AmazonSqlCredentialScanPropertiesCredential = AmazonSqlCredentialScanPropertiesCredentialBase & CredentialReference; - -// @public (undocumented) -export interface AmazonSqlCredentialScanPropertiesCredentialBase { +export interface AmazonSqlCredentialScanPropertiesAutoGenerated extends AmazonSqlCredentialScanProperties { } // @public (undocumented) -export type AmazonSqlDataSource = AmazonSqlDataSourceBase & DataSource; +export interface AmazonSqlCredentialScanPropertiesCredential extends CredentialReference { +} // @public (undocumented) -export interface AmazonSqlDataSourceBase { +export interface AmazonSqlDataSource extends DataSourceBase { + // (undocumented) + kind: "AmazonSql"; // (undocumented) properties?: AmazonSqlDataSourceProperties; } // @public (undocumented) -export type AmazonSqlDataSourceProperties = AmazonSqlDataSourcePropertiesBase & AmazonSqlProperties; - -// @public (undocumented) -export interface AmazonSqlDataSourcePropertiesBase { +export interface AmazonSqlDataSourceProperties extends AmazonSqlProperties { } // @public (undocumented) -export type AmazonSqlProperties = AmazonSqlPropertiesBase & DataSourceProperties; - -// @public (undocumented) -export interface AmazonSqlPropertiesBase { +export interface AmazonSqlProperties extends DataSourceProperties { // (undocumented) serverEndpoint?: string; } // @public (undocumented) -export type AmazonSqlScanRuleset = AmazonSqlScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface AmazonSqlScanRulesetBase { +export interface AmazonSqlScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "AmazonSql"; // (undocumented) properties?: AmazonSqlScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type AmazonSqlScanRulesetProperties = AmazonSqlScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type AmazonSqlScanRulesetPropertiesAutoGenerated = AmazonSqlScanRulesetPropertiesAutoGeneratedBase & AmazonSqlScanRulesetProperties; - -// @public (undocumented) -export interface AmazonSqlScanRulesetPropertiesAutoGeneratedBase { +export interface AmazonSqlScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export interface AmazonSqlScanRulesetPropertiesBase { +export interface AmazonSqlScanRulesetPropertiesAutoGenerated extends AmazonSqlScanRulesetProperties { } // @public (undocumented) -export type AmazonSqlSystemScanRuleset = AmazonSqlSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AmazonSqlSystemScanRulesetBase { +export interface AmazonSqlSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: AmazonSqlSystemScanRulesetProperties; } // @public (undocumented) -export type AmazonSqlSystemScanRulesetProperties = AmazonSqlSystemScanRulesetPropertiesBase & AmazonSqlScanRulesetProperties; - -// @public (undocumented) -export interface AmazonSqlSystemScanRulesetPropertiesBase { +export interface AmazonSqlSystemScanRulesetProperties extends AmazonSqlScanRulesetProperties { } // @public (undocumented) -export type AzureCosmosDbCredentialScan = AzureCosmosDbCredentialScanBase & Scan; - -// @public (undocumented) -export interface AzureCosmosDbCredentialScanBase { +export interface AzureCosmosDbCredentialScan extends ScanBase { + // (undocumented) + kind: "AzureCosmosDbCredential"; // (undocumented) properties?: AzureCosmosDbCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureCosmosDbCredentialScanProperties = AzureCosmosDbCredentialScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export type AzureCosmosDbCredentialScanPropertiesAutoGenerated = AzureCosmosDbCredentialScanPropertiesAutoGeneratedBase & AzureCosmosDbCredentialScanProperties; - -// @public (undocumented) -export interface AzureCosmosDbCredentialScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface AzureCosmosDbCredentialScanPropertiesBase { +export interface AzureCosmosDbCredentialScanProperties extends ScanProperties { // (undocumented) credential?: AzureCosmosDbCredentialScanPropertiesCredential; // (undocumented) @@ -694,97 +499,69 @@ export interface AzureCosmosDbCredentialScanPropertiesBase { } // @public (undocumented) -export type AzureCosmosDbCredentialScanPropertiesCredential = AzureCosmosDbCredentialScanPropertiesCredentialBase & CredentialReference; - -// @public (undocumented) -export interface AzureCosmosDbCredentialScanPropertiesCredentialBase { +export interface AzureCosmosDbCredentialScanPropertiesAutoGenerated extends AzureCosmosDbCredentialScanProperties { } // @public (undocumented) -export type AzureCosmosDbDataSource = AzureCosmosDbDataSourceBase & DataSource; +export interface AzureCosmosDbCredentialScanPropertiesCredential extends CredentialReference { +} // @public (undocumented) -export interface AzureCosmosDbDataSourceBase { +export interface AzureCosmosDbDataSource extends DataSourceBase { + // (undocumented) + kind: "AzureCosmosDb"; // (undocumented) properties?: AzureCosmosDbDataSourceProperties; } // @public (undocumented) -export type AzureCosmosDbDataSourceProperties = AzureCosmosDbDataSourcePropertiesBase & AzureCosmosDbProperties; - -// @public (undocumented) -export interface AzureCosmosDbDataSourcePropertiesBase { +export interface AzureCosmosDbDataSourceProperties extends AzureCosmosDbProperties { } // @public (undocumented) -export type AzureCosmosDbProperties = AzureCosmosDbPropertiesBase & AzureDataSourceProperties; - -// @public (undocumented) -export interface AzureCosmosDbPropertiesBase { +export interface AzureCosmosDbProperties extends AzureDataSourceProperties { // (undocumented) accountUri?: string; } // @public (undocumented) -export type AzureCosmosDbScanRuleset = AzureCosmosDbScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface AzureCosmosDbScanRulesetBase { +export interface AzureCosmosDbScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "AzureCosmosDb"; // (undocumented) properties?: AzureCosmosDbScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type AzureCosmosDbScanRulesetProperties = AzureCosmosDbScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type AzureCosmosDbScanRulesetPropertiesAutoGenerated = AzureCosmosDbScanRulesetPropertiesAutoGeneratedBase & AzureCosmosDbScanRulesetProperties; - -// @public (undocumented) -export interface AzureCosmosDbScanRulesetPropertiesAutoGeneratedBase { +export interface AzureCosmosDbScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export interface AzureCosmosDbScanRulesetPropertiesBase { +export interface AzureCosmosDbScanRulesetPropertiesAutoGenerated extends AzureCosmosDbScanRulesetProperties { } // @public (undocumented) -export type AzureCosmosDbSystemScanRuleset = AzureCosmosDbSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AzureCosmosDbSystemScanRulesetBase { +export interface AzureCosmosDbSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: AzureCosmosDbSystemScanRulesetProperties; } // @public (undocumented) -export type AzureCosmosDbSystemScanRulesetProperties = AzureCosmosDbSystemScanRulesetPropertiesBase & AzureCosmosDbScanRulesetProperties; - -// @public (undocumented) -export interface AzureCosmosDbSystemScanRulesetPropertiesBase { +export interface AzureCosmosDbSystemScanRulesetProperties extends AzureCosmosDbScanRulesetProperties { } // @public (undocumented) -export type AzureDataExplorerCredentialScan = AzureDataExplorerCredentialScanBase & Scan; - -// @public (undocumented) -export interface AzureDataExplorerCredentialScanBase { +export interface AzureDataExplorerCredentialScan extends ScanBase { + // (undocumented) + kind: "AzureDataExplorerCredential"; // (undocumented) properties?: AzureDataExplorerCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureDataExplorerCredentialScanProperties = AzureDataExplorerCredentialScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export type AzureDataExplorerCredentialScanPropertiesAutoGenerated = AzureDataExplorerCredentialScanPropertiesAutoGeneratedBase & AzureDataExplorerCredentialScanProperties; - -// @public (undocumented) -export interface AzureDataExplorerCredentialScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface AzureDataExplorerCredentialScanPropertiesBase { +export interface AzureDataExplorerCredentialScanProperties extends ScanProperties { // (undocumented) credential?: AzureDataExplorerCredentialScanPropertiesCredential; // (undocumented) @@ -792,106 +569,79 @@ export interface AzureDataExplorerCredentialScanPropertiesBase { } // @public (undocumented) -export type AzureDataExplorerCredentialScanPropertiesCredential = AzureDataExplorerCredentialScanPropertiesCredentialBase & CredentialReference; - -// @public (undocumented) -export interface AzureDataExplorerCredentialScanPropertiesCredentialBase { +export interface AzureDataExplorerCredentialScanPropertiesAutoGenerated extends AzureDataExplorerCredentialScanProperties { } // @public (undocumented) -export type AzureDataExplorerDataSource = AzureDataExplorerDataSourceBase & DataSource; +export interface AzureDataExplorerCredentialScanPropertiesCredential extends CredentialReference { +} // @public (undocumented) -export interface AzureDataExplorerDataSourceBase { +export interface AzureDataExplorerDataSource extends DataSourceBase { + // (undocumented) + kind: "AzureDataExplorer"; // (undocumented) properties?: AzureDataExplorerDataSourceProperties; } // @public (undocumented) -export type AzureDataExplorerDataSourceProperties = AzureDataExplorerDataSourcePropertiesBase & AzureDataExplorerProperties; - -// @public (undocumented) -export interface AzureDataExplorerDataSourcePropertiesBase { +export interface AzureDataExplorerDataSourceProperties extends AzureDataExplorerProperties { } // @public (undocumented) -export type AzureDataExplorerMsiScan = AzureDataExplorerMsiScanBase & Scan; - -// @public (undocumented) -export interface AzureDataExplorerMsiScanBase { +export interface AzureDataExplorerMsiScan extends ScanBase { + // (undocumented) + kind: "AzureDataExplorerMsi"; // (undocumented) properties?: AzureDataExplorerMsiScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureDataExplorerMsiScanProperties = AzureDataExplorerMsiScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export type AzureDataExplorerMsiScanPropertiesAutoGenerated = AzureDataExplorerMsiScanPropertiesAutoGeneratedBase & AzureDataExplorerMsiScanProperties; - -// @public (undocumented) -export interface AzureDataExplorerMsiScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface AzureDataExplorerMsiScanPropertiesBase { +export interface AzureDataExplorerMsiScanProperties extends ScanProperties { // (undocumented) database?: string; } // @public (undocumented) -export type AzureDataExplorerProperties = AzureDataExplorerPropertiesBase & AzureDataSourceProperties; +export interface AzureDataExplorerMsiScanPropertiesAutoGenerated extends AzureDataExplorerMsiScanProperties { +} // @public (undocumented) -export interface AzureDataExplorerPropertiesBase { +export interface AzureDataExplorerProperties extends AzureDataSourceProperties { // (undocumented) endpoint?: string; } // @public (undocumented) -export type AzureDataExplorerScanRuleset = AzureDataExplorerScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface AzureDataExplorerScanRulesetBase { +export interface AzureDataExplorerScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "AzureDataExplorer"; // (undocumented) properties?: AzureDataExplorerScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type AzureDataExplorerScanRulesetProperties = AzureDataExplorerScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type AzureDataExplorerScanRulesetPropertiesAutoGenerated = AzureDataExplorerScanRulesetPropertiesAutoGeneratedBase & AzureDataExplorerScanRulesetProperties; - -// @public (undocumented) -export interface AzureDataExplorerScanRulesetPropertiesAutoGeneratedBase { +export interface AzureDataExplorerScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export interface AzureDataExplorerScanRulesetPropertiesBase { +export interface AzureDataExplorerScanRulesetPropertiesAutoGenerated extends AzureDataExplorerScanRulesetProperties { } // @public (undocumented) -export type AzureDataExplorerSystemScanRuleset = AzureDataExplorerSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AzureDataExplorerSystemScanRulesetBase { +export interface AzureDataExplorerSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: AzureDataExplorerSystemScanRulesetProperties; } // @public (undocumented) -export type AzureDataExplorerSystemScanRulesetProperties = AzureDataExplorerSystemScanRulesetPropertiesBase & AzureDataExplorerScanRulesetProperties; - -// @public (undocumented) -export interface AzureDataExplorerSystemScanRulesetPropertiesBase { +export interface AzureDataExplorerSystemScanRulesetProperties extends AzureDataExplorerScanRulesetProperties { } // @public (undocumented) -export type AzureDataSourceProperties = AzureDataSourcePropertiesBase & DataSourceProperties; - -// @public (undocumented) -export interface AzureDataSourcePropertiesBase { +export interface AzureDataSourceProperties extends DataSourceProperties { // (undocumented) location?: string; // (undocumented) @@ -903,26 +653,15 @@ export interface AzureDataSourcePropertiesBase { } // @public (undocumented) -export type AzureFileServiceCredentialScan = AzureFileServiceCredentialScanBase & Scan; - -// @public (undocumented) -export interface AzureFileServiceCredentialScanBase { +export interface AzureFileServiceCredentialScan extends ScanBase { + // (undocumented) + kind: "AzureFileServiceCredential"; // (undocumented) properties?: AzureFileServiceCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureFileServiceCredentialScanProperties = AzureFileServiceCredentialScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export type AzureFileServiceCredentialScanPropertiesAutoGenerated = AzureFileServiceCredentialScanPropertiesAutoGeneratedBase & AzureFileServiceCredentialScanProperties; - -// @public (undocumented) -export interface AzureFileServiceCredentialScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface AzureFileServiceCredentialScanPropertiesBase { +export interface AzureFileServiceCredentialScanProperties extends ScanProperties { // (undocumented) credential?: AzureFileServiceCredentialScanPropertiesCredential; // (undocumented) @@ -930,83 +669,63 @@ export interface AzureFileServiceCredentialScanPropertiesBase { } // @public (undocumented) -export type AzureFileServiceCredentialScanPropertiesCredential = AzureFileServiceCredentialScanPropertiesCredentialBase & CredentialReference; - -// @public (undocumented) -export interface AzureFileServiceCredentialScanPropertiesCredentialBase { +export interface AzureFileServiceCredentialScanPropertiesAutoGenerated extends AzureFileServiceCredentialScanProperties { } // @public (undocumented) -export type AzureFileServiceDataSource = AzureFileServiceDataSourceBase & DataSource; +export interface AzureFileServiceCredentialScanPropertiesCredential extends CredentialReference { +} // @public (undocumented) -export interface AzureFileServiceDataSourceBase { +export interface AzureFileServiceDataSource extends DataSourceBase { + // (undocumented) + kind: "AzureFileService"; // (undocumented) properties?: AzureFileServiceDataSourceProperties; } // @public (undocumented) -export type AzureFileServiceDataSourceProperties = AzureFileServiceDataSourcePropertiesBase & AzureFileServiceProperties; - -// @public (undocumented) -export interface AzureFileServiceDataSourcePropertiesBase { +export interface AzureFileServiceDataSourceProperties extends AzureFileServiceProperties { } // @public (undocumented) -export type AzureFileServiceProperties = AzureFileServicePropertiesBase & AzureDataSourceProperties; - -// @public (undocumented) -export interface AzureFileServicePropertiesBase { +export interface AzureFileServiceProperties extends AzureDataSourceProperties { // (undocumented) endpoint?: string; } // @public (undocumented) -export type AzureFileServiceScanRuleset = AzureFileServiceScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface AzureFileServiceScanRulesetBase { +export interface AzureFileServiceScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "AzureFileService"; // (undocumented) properties?: AzureFileServiceScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type AzureFileServiceScanRulesetProperties = AzureFileServiceScanRulesetPropertiesBase & ScanningRuleScanRulesetProperties; - -// @public (undocumented) -export type AzureFileServiceScanRulesetPropertiesAutoGenerated = AzureFileServiceScanRulesetPropertiesAutoGeneratedBase & AzureFileServiceScanRulesetProperties; - -// @public (undocumented) -export interface AzureFileServiceScanRulesetPropertiesAutoGeneratedBase { +export interface AzureFileServiceScanRulesetProperties extends ScanningRuleScanRulesetProperties { } // @public (undocumented) -export interface AzureFileServiceScanRulesetPropertiesBase { +export interface AzureFileServiceScanRulesetPropertiesAutoGenerated extends AzureFileServiceScanRulesetProperties { } // @public (undocumented) -export type AzureFileServiceSystemScanRuleset = AzureFileServiceSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AzureFileServiceSystemScanRulesetBase { +export interface AzureFileServiceSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: AzureFileServiceSystemScanRulesetProperties; } // @public (undocumented) -export type AzureFileServiceSystemScanRulesetProperties = AzureFileServiceSystemScanRulesetPropertiesBase & AzureFileServiceScanRulesetProperties; - -// @public (undocumented) -export interface AzureFileServiceSystemScanRulesetPropertiesBase { +export interface AzureFileServiceSystemScanRulesetProperties extends AzureFileServiceScanRulesetProperties { } // @public (undocumented) -export type AzureKeyVault = AzureKeyVaultBase & ProxyResource; - -// @public (undocumented) -export interface AzureKeyVaultBase { +export interface AzureKeyVault extends ProxyResource { // (undocumented) - properties?: AzureKeyVaultProperties; + properties?: AzureKeyVaultPropertiesAutoGenerated; } // @public (undocumented) @@ -1016,14 +735,11 @@ export interface AzureKeyVaultList { // (undocumented) nextLink?: string; // (undocumented) - value?: AzureKeyVault[]; + value?: Array; } // @public (undocumented) -export type AzureKeyVaultProperties = AzureKeyVaultPropertiesBase & AzureKeyVaultPropertiesAutoGenerated; - -// @public (undocumented) -export interface AzureKeyVaultPropertiesAutoGenerated { +export interface AzureKeyVaultProperties { // (undocumented) baseUrl?: string; // (undocumented) @@ -1031,53 +747,39 @@ export interface AzureKeyVaultPropertiesAutoGenerated { } // @public (undocumented) -export interface AzureKeyVaultPropertiesBase { +export interface AzureKeyVaultPropertiesAutoGenerated extends AzureKeyVaultProperties { } // @public (undocumented) -export type AzureMySqlCredentialScan = AzureMySqlCredentialScanBase & Scan; - -// @public (undocumented) -export interface AzureMySqlCredentialScanBase { +export interface AzureMySqlCredentialScan extends ScanBase { + // (undocumented) + kind: "AzureMySqlCredential"; // (undocumented) properties?: AzureMySqlCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureMySqlCredentialScanProperties = AzureMySqlCredentialScanPropertiesBase & AzureMySqlScanProperties; - -// @public (undocumented) -export type AzureMySqlCredentialScanPropertiesAutoGenerated = AzureMySqlCredentialScanPropertiesAutoGeneratedBase & AzureMySqlCredentialScanProperties; - -// @public (undocumented) -export interface AzureMySqlCredentialScanPropertiesAutoGeneratedBase { +export interface AzureMySqlCredentialScanProperties extends AzureMySqlScanProperties { } // @public (undocumented) -export interface AzureMySqlCredentialScanPropertiesBase { +export interface AzureMySqlCredentialScanPropertiesAutoGenerated extends AzureMySqlCredentialScanProperties { } // @public (undocumented) -export type AzureMySqlDataSource = AzureMySqlDataSourceBase & DataSource; - -// @public (undocumented) -export interface AzureMySqlDataSourceBase { +export interface AzureMySqlDataSource extends DataSourceBase { + // (undocumented) + kind: "AzureMySql"; // (undocumented) properties?: AzureMySqlDataSourceProperties; } // @public (undocumented) -export type AzureMySqlDataSourceProperties = AzureMySqlDataSourcePropertiesBase & AzureMySqlProperties; - -// @public (undocumented) -export interface AzureMySqlDataSourcePropertiesBase { +export interface AzureMySqlDataSourceProperties extends AzureMySqlProperties { } // @public (undocumented) -export type AzureMySqlProperties = AzureMySqlPropertiesBase & AzureDataSourceProperties; - -// @public (undocumented) -export interface AzureMySqlPropertiesBase { +export interface AzureMySqlProperties extends AzureDataSourceProperties { // (undocumented) port?: number; // (undocumented) @@ -1085,10 +787,7 @@ export interface AzureMySqlPropertiesBase { } // @public (undocumented) -export type AzureMySqlScanProperties = AzureMySqlScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export interface AzureMySqlScanPropertiesBase { +export interface AzureMySqlScanProperties extends ScanProperties { // (undocumented) credential?: AzureMySqlScanPropertiesCredential; // (undocumented) @@ -1100,72 +799,47 @@ export interface AzureMySqlScanPropertiesBase { } // @public (undocumented) -export type AzureMySqlScanPropertiesCredential = AzureMySqlScanPropertiesCredentialBase & CredentialReference; - -// @public (undocumented) -export interface AzureMySqlScanPropertiesCredentialBase { +export interface AzureMySqlScanPropertiesCredential extends CredentialReference { } // @public (undocumented) -export type AzureMySqlScanRuleset = AzureMySqlScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface AzureMySqlScanRulesetBase { +export interface AzureMySqlScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "AzureMySql"; // (undocumented) properties?: AzureMySqlScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type AzureMySqlScanRulesetProperties = AzureMySqlScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type AzureMySqlScanRulesetPropertiesAutoGenerated = AzureMySqlScanRulesetPropertiesAutoGeneratedBase & AzureMySqlScanRulesetProperties; - -// @public (undocumented) -export interface AzureMySqlScanRulesetPropertiesAutoGeneratedBase { +export interface AzureMySqlScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export interface AzureMySqlScanRulesetPropertiesBase { +export interface AzureMySqlScanRulesetPropertiesAutoGenerated extends AzureMySqlScanRulesetProperties { } // @public (undocumented) -export type AzureMySqlSystemScanRuleset = AzureMySqlSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AzureMySqlSystemScanRulesetBase { +export interface AzureMySqlSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: AzureMySqlSystemScanRulesetProperties; } // @public (undocumented) -export type AzureMySqlSystemScanRulesetProperties = AzureMySqlSystemScanRulesetPropertiesBase & AzureMySqlScanRulesetProperties; - -// @public (undocumented) -export interface AzureMySqlSystemScanRulesetPropertiesBase { +export interface AzureMySqlSystemScanRulesetProperties extends AzureMySqlScanRulesetProperties { } // @public (undocumented) -export type AzurePostgreSqlCredentialScan = AzurePostgreSqlCredentialScanBase & Scan; - -// @public (undocumented) -export interface AzurePostgreSqlCredentialScanBase { +export interface AzurePostgreSqlCredentialScan extends ScanBase { + // (undocumented) + kind: "AzurePostgreSqlCredential"; // (undocumented) properties?: AzurePostgreSqlCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzurePostgreSqlCredentialScanProperties = AzurePostgreSqlCredentialScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export type AzurePostgreSqlCredentialScanPropertiesAutoGenerated = AzurePostgreSqlCredentialScanPropertiesAutoGeneratedBase & AzurePostgreSqlCredentialScanProperties; - -// @public (undocumented) -export interface AzurePostgreSqlCredentialScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface AzurePostgreSqlCredentialScanPropertiesBase { +export interface AzurePostgreSqlCredentialScanProperties extends ScanProperties { // (undocumented) credential?: AzurePostgreSqlCredentialScanPropertiesCredential; // (undocumented) @@ -1179,33 +853,27 @@ export interface AzurePostgreSqlCredentialScanPropertiesBase { } // @public (undocumented) -export type AzurePostgreSqlCredentialScanPropertiesCredential = AzurePostgreSqlCredentialScanPropertiesCredentialBase & CredentialReference; - -// @public (undocumented) -export interface AzurePostgreSqlCredentialScanPropertiesCredentialBase { +export interface AzurePostgreSqlCredentialScanPropertiesAutoGenerated extends AzurePostgreSqlCredentialScanProperties { } // @public (undocumented) -export type AzurePostgreSqlDataSource = AzurePostgreSqlDataSourceBase & DataSource; +export interface AzurePostgreSqlCredentialScanPropertiesCredential extends CredentialReference { +} // @public (undocumented) -export interface AzurePostgreSqlDataSourceBase { +export interface AzurePostgreSqlDataSource extends DataSourceBase { + // (undocumented) + kind: "AzurePostgreSql"; // (undocumented) properties?: AzurePostgreSqlDataSourceProperties; } // @public (undocumented) -export type AzurePostgreSqlDataSourceProperties = AzurePostgreSqlDataSourcePropertiesBase & AzurePostgreSqlProperties; - -// @public (undocumented) -export interface AzurePostgreSqlDataSourcePropertiesBase { +export interface AzurePostgreSqlDataSourceProperties extends AzurePostgreSqlProperties { } // @public (undocumented) -export type AzurePostgreSqlProperties = AzurePostgreSqlPropertiesBase & AzureDataSourceProperties; - -// @public (undocumented) -export interface AzurePostgreSqlPropertiesBase { +export interface AzurePostgreSqlProperties extends AzureDataSourceProperties { // (undocumented) port?: number; // (undocumented) @@ -1213,111 +881,79 @@ export interface AzurePostgreSqlPropertiesBase { } // @public (undocumented) -export type AzurePostgreSqlScanRuleset = AzurePostgreSqlScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface AzurePostgreSqlScanRulesetBase { +export interface AzurePostgreSqlScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "AzurePostgreSql"; // (undocumented) properties?: AzurePostgreSqlScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type AzurePostgreSqlScanRulesetProperties = AzurePostgreSqlScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type AzurePostgreSqlScanRulesetPropertiesAutoGenerated = AzurePostgreSqlScanRulesetPropertiesAutoGeneratedBase & AzurePostgreSqlScanRulesetProperties; - -// @public (undocumented) -export interface AzurePostgreSqlScanRulesetPropertiesAutoGeneratedBase { +export interface AzurePostgreSqlScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export interface AzurePostgreSqlScanRulesetPropertiesBase { +export interface AzurePostgreSqlScanRulesetPropertiesAutoGenerated extends AzurePostgreSqlScanRulesetProperties { } // @public (undocumented) -export type AzurePostgreSqlSystemScanRuleset = AzurePostgreSqlSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AzurePostgreSqlSystemScanRulesetBase { +export interface AzurePostgreSqlSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: AzurePostgreSqlSystemScanRulesetProperties; } // @public (undocumented) -export type AzurePostgreSqlSystemScanRulesetProperties = AzurePostgreSqlSystemScanRulesetPropertiesBase & AzurePostgreSqlScanRulesetProperties; - -// @public (undocumented) -export interface AzurePostgreSqlSystemScanRulesetPropertiesBase { +export interface AzurePostgreSqlSystemScanRulesetProperties extends AzurePostgreSqlScanRulesetProperties { } // @public (undocumented) -export type AzureResourceGroupCredentialScan = AzureResourceGroupCredentialScanBase & Scan; - -// @public (undocumented) -export interface AzureResourceGroupCredentialScanBase { +export interface AzureResourceGroupCredentialScan extends ScanBase { + // (undocumented) + kind: "AzureResourceGroupCredential"; // (undocumented) properties?: AzureResourceGroupCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureResourceGroupCredentialScanProperties = AzureResourceGroupCredentialScanPropertiesBase & ExpandingResourceScanProperties; - -// @public (undocumented) -export type AzureResourceGroupCredentialScanPropertiesAutoGenerated = AzureResourceGroupCredentialScanPropertiesAutoGeneratedBase & AzureResourceGroupCredentialScanProperties; - -// @public (undocumented) -export interface AzureResourceGroupCredentialScanPropertiesAutoGeneratedBase { +export interface AzureResourceGroupCredentialScanProperties extends ExpandingResourceScanProperties { } // @public (undocumented) -export interface AzureResourceGroupCredentialScanPropertiesBase { +export interface AzureResourceGroupCredentialScanPropertiesAutoGenerated extends AzureResourceGroupCredentialScanProperties { } // @public (undocumented) -export type AzureResourceGroupDataSource = AzureResourceGroupDataSourceBase & DataSource; - -// @public (undocumented) -export interface AzureResourceGroupDataSourceBase { +export interface AzureResourceGroupDataSource extends DataSourceBase { + // (undocumented) + kind: "AzureResourceGroup"; // (undocumented) properties?: AzureResourceGroupDataSourceProperties; } // @public (undocumented) -export type AzureResourceGroupDataSourceProperties = AzureResourceGroupDataSourcePropertiesBase & AzureResourceGroupProperties; - -// @public (undocumented) -export interface AzureResourceGroupDataSourcePropertiesBase { +export interface AzureResourceGroupDataSourceProperties extends AzureResourceGroupProperties { } // @public (undocumented) -export type AzureResourceGroupMsiScan = AzureResourceGroupMsiScanBase & Scan; - -// @public (undocumented) -export interface AzureResourceGroupMsiScanBase { +export interface AzureResourceGroupMsiScan extends ScanBase { + // (undocumented) + kind: "AzureResourceGroupMsi"; // (undocumented) properties?: AzureResourceGroupMsiScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureResourceGroupMsiScanProperties = AzureResourceGroupMsiScanPropertiesBase & ExpandingResourceScanProperties; - -// @public (undocumented) -export type AzureResourceGroupMsiScanPropertiesAutoGenerated = AzureResourceGroupMsiScanPropertiesAutoGeneratedBase & AzureResourceGroupMsiScanProperties; - -// @public (undocumented) -export interface AzureResourceGroupMsiScanPropertiesAutoGeneratedBase { +export interface AzureResourceGroupMsiScanProperties extends ExpandingResourceScanProperties { } // @public (undocumented) -export interface AzureResourceGroupMsiScanPropertiesBase { +export interface AzureResourceGroupMsiScanPropertiesAutoGenerated extends AzureResourceGroupMsiScanProperties { } // @public (undocumented) -export type AzureResourceGroupProperties = AzureResourceGroupPropertiesBase & DataSourceProperties; - -// @public (undocumented) -export interface AzureResourceGroupPropertiesBase { +export interface AzureResourceGroupProperties extends DataSourceProperties { // (undocumented) resourceGroup?: string; // (undocumented) @@ -1325,395 +961,279 @@ export interface AzureResourceGroupPropertiesBase { } // @public (undocumented) -export type AzureResourceGroupScanRuleset = AzureResourceGroupScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface AzureResourceGroupScanRulesetBase { +export interface AzureResourceGroupScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "AzureResourceGroup"; // (undocumented) properties?: AzureResourceGroupScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type AzureResourceGroupScanRulesetProperties = AzureResourceGroupScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type AzureResourceGroupScanRulesetPropertiesAutoGenerated = AzureResourceGroupScanRulesetPropertiesAutoGeneratedBase & AzureResourceGroupScanRulesetProperties; - -// @public (undocumented) -export interface AzureResourceGroupScanRulesetPropertiesAutoGeneratedBase { +export interface AzureResourceGroupScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export interface AzureResourceGroupScanRulesetPropertiesBase { +export interface AzureResourceGroupScanRulesetPropertiesAutoGenerated extends AzureResourceGroupScanRulesetProperties { } // @public (undocumented) -export type AzureResourceGroupSystemScanRuleset = AzureResourceGroupSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AzureResourceGroupSystemScanRulesetBase { +export interface AzureResourceGroupSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: AzureResourceGroupSystemScanRulesetProperties; } // @public (undocumented) -export type AzureResourceGroupSystemScanRulesetProperties = AzureResourceGroupSystemScanRulesetPropertiesBase & AzureResourceGroupScanRulesetProperties; - -// @public (undocumented) -export interface AzureResourceGroupSystemScanRulesetPropertiesBase { +export interface AzureResourceGroupSystemScanRulesetProperties extends AzureResourceGroupScanRulesetProperties { } // @public (undocumented) -export type AzureSqlCredentialScanProperties = AzureSqlCredentialScanPropertiesBase & AzureSqlScanProperties; - -// @public (undocumented) -export interface AzureSqlCredentialScanPropertiesBase { +export interface AzureSqlCredentialScanProperties extends AzureSqlScanProperties { // (undocumented) credential?: AzureSqlCredentialScanPropertiesCredential; } // @public (undocumented) -export type AzureSqlCredentialScanPropertiesCredential = AzureSqlCredentialScanPropertiesCredentialBase & CredentialReference; - -// @public (undocumented) -export interface AzureSqlCredentialScanPropertiesCredentialBase { +export interface AzureSqlCredentialScanPropertiesCredential extends CredentialReference { } // @public (undocumented) -export type AzureSqlDatabaseCredentialScan = AzureSqlDatabaseCredentialScanBase & Scan; - -// @public (undocumented) -export interface AzureSqlDatabaseCredentialScanBase { +export interface AzureSqlDatabaseCredentialScan extends ScanBase { + // (undocumented) + kind: "AzureSqlDatabaseCredential"; // (undocumented) properties?: AzureSqlDatabaseCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureSqlDatabaseCredentialScanProperties = AzureSqlDatabaseCredentialScanPropertiesBase & AzureSqlCredentialScanProperties; - -// @public (undocumented) -export type AzureSqlDatabaseCredentialScanPropertiesAutoGenerated = AzureSqlDatabaseCredentialScanPropertiesAutoGeneratedBase & AzureSqlDatabaseCredentialScanProperties; - -// @public (undocumented) -export interface AzureSqlDatabaseCredentialScanPropertiesAutoGeneratedBase { +export interface AzureSqlDatabaseCredentialScanProperties extends AzureSqlCredentialScanProperties { } // @public (undocumented) -export interface AzureSqlDatabaseCredentialScanPropertiesBase { +export interface AzureSqlDatabaseCredentialScanPropertiesAutoGenerated extends AzureSqlDatabaseCredentialScanProperties { } // @public (undocumented) -export type AzureSqlDatabaseDataSource = AzureSqlDatabaseDataSourceBase & DataSource; - -// @public (undocumented) -export interface AzureSqlDatabaseDataSourceBase { +export interface AzureSqlDatabaseDataSource extends DataSourceBase { + // (undocumented) + kind: "AzureSqlDatabase"; // (undocumented) properties?: AzureSqlDatabaseDataSourceProperties; } // @public (undocumented) -export type AzureSqlDatabaseDataSourceProperties = AzureSqlDatabaseDataSourcePropertiesBase & AzureSqlDatabaseProperties; - -// @public (undocumented) -export interface AzureSqlDatabaseDataSourcePropertiesBase { +export interface AzureSqlDatabaseDataSourceProperties extends AzureSqlDatabaseProperties { } // @public (undocumented) -export type AzureSqlDatabaseManagedInstanceCredentialScan = AzureSqlDatabaseManagedInstanceCredentialScanBase & Scan; - -// @public (undocumented) -export interface AzureSqlDatabaseManagedInstanceCredentialScanBase { +export interface AzureSqlDatabaseManagedInstanceCredentialScan extends ScanBase { + // (undocumented) + kind: "AzureSqlDatabaseManagedInstanceCredential"; // (undocumented) properties?: AzureSqlDatabaseManagedInstanceCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureSqlDatabaseManagedInstanceCredentialScanProperties = AzureSqlDatabaseManagedInstanceCredentialScanPropertiesBase & AzureSqlCredentialScanProperties; - -// @public (undocumented) -export type AzureSqlDatabaseManagedInstanceCredentialScanPropertiesAutoGenerated = AzureSqlDatabaseManagedInstanceCredentialScanPropertiesAutoGeneratedBase & AzureSqlDatabaseManagedInstanceCredentialScanProperties; - -// @public (undocumented) -export interface AzureSqlDatabaseManagedInstanceCredentialScanPropertiesAutoGeneratedBase { +export interface AzureSqlDatabaseManagedInstanceCredentialScanProperties extends AzureSqlCredentialScanProperties { } // @public (undocumented) -export interface AzureSqlDatabaseManagedInstanceCredentialScanPropertiesBase { +export interface AzureSqlDatabaseManagedInstanceCredentialScanPropertiesAutoGenerated extends AzureSqlDatabaseManagedInstanceCredentialScanProperties { } // @public (undocumented) -export type AzureSqlDatabaseManagedInstanceDataSource = AzureSqlDatabaseManagedInstanceDataSourceBase & DataSource; - -// @public (undocumented) -export interface AzureSqlDatabaseManagedInstanceDataSourceBase { +export interface AzureSqlDatabaseManagedInstanceDataSource extends DataSourceBase { + // (undocumented) + kind: "AzureSqlDatabaseManagedInstance"; // (undocumented) properties?: AzureSqlDatabaseManagedInstanceDataSourceProperties; } // @public (undocumented) -export type AzureSqlDatabaseManagedInstanceDataSourceProperties = AzureSqlDatabaseManagedInstanceDataSourcePropertiesBase & AzureSqlDatabaseManagedInstanceProperties; - -// @public (undocumented) -export interface AzureSqlDatabaseManagedInstanceDataSourcePropertiesBase { +export interface AzureSqlDatabaseManagedInstanceDataSourceProperties extends AzureSqlDatabaseManagedInstanceProperties { } // @public (undocumented) -export type AzureSqlDatabaseManagedInstanceMsiScan = AzureSqlDatabaseManagedInstanceMsiScanBase & Scan; - -// @public (undocumented) -export interface AzureSqlDatabaseManagedInstanceMsiScanBase { +export interface AzureSqlDatabaseManagedInstanceMsiScan extends ScanBase { + // (undocumented) + kind: "AzureSqlDatabaseManagedInstanceMsi"; // (undocumented) properties?: AzureSqlDatabaseManagedInstanceMsiScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureSqlDatabaseManagedInstanceMsiScanProperties = AzureSqlDatabaseManagedInstanceMsiScanPropertiesBase & AzureSqlScanProperties; - -// @public (undocumented) -export type AzureSqlDatabaseManagedInstanceMsiScanPropertiesAutoGenerated = AzureSqlDatabaseManagedInstanceMsiScanPropertiesAutoGeneratedBase & AzureSqlDatabaseManagedInstanceMsiScanProperties; - -// @public (undocumented) -export interface AzureSqlDatabaseManagedInstanceMsiScanPropertiesAutoGeneratedBase { +export interface AzureSqlDatabaseManagedInstanceMsiScanProperties extends AzureSqlScanProperties { } // @public (undocumented) -export interface AzureSqlDatabaseManagedInstanceMsiScanPropertiesBase { +export interface AzureSqlDatabaseManagedInstanceMsiScanPropertiesAutoGenerated extends AzureSqlDatabaseManagedInstanceMsiScanProperties { } // @public (undocumented) -export type AzureSqlDatabaseManagedInstanceProperties = AzureSqlDatabaseManagedInstancePropertiesBase & AzureDataSourceProperties; - -// @public (undocumented) -export interface AzureSqlDatabaseManagedInstancePropertiesBase { +export interface AzureSqlDatabaseManagedInstanceProperties extends AzureDataSourceProperties { // (undocumented) serverEndpoint?: string; } // @public (undocumented) -export type AzureSqlDatabaseManagedInstanceScanRuleset = AzureSqlDatabaseManagedInstanceScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface AzureSqlDatabaseManagedInstanceScanRulesetBase { +export interface AzureSqlDatabaseManagedInstanceScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "AzureSqlDatabaseManagedInstance"; // (undocumented) properties?: AzureSqlDatabaseManagedInstanceScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type AzureSqlDatabaseManagedInstanceScanRulesetProperties = AzureSqlDatabaseManagedInstanceScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type AzureSqlDatabaseManagedInstanceScanRulesetPropertiesAutoGenerated = AzureSqlDatabaseManagedInstanceScanRulesetPropertiesAutoGeneratedBase & AzureSqlDatabaseManagedInstanceScanRulesetProperties; - -// @public (undocumented) -export interface AzureSqlDatabaseManagedInstanceScanRulesetPropertiesAutoGeneratedBase { +export interface AzureSqlDatabaseManagedInstanceScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export interface AzureSqlDatabaseManagedInstanceScanRulesetPropertiesBase { +export interface AzureSqlDatabaseManagedInstanceScanRulesetPropertiesAutoGenerated extends AzureSqlDatabaseManagedInstanceScanRulesetProperties { } // @public (undocumented) -export type AzureSqlDatabaseManagedInstanceSystemScanRuleset = AzureSqlDatabaseManagedInstanceSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AzureSqlDatabaseManagedInstanceSystemScanRulesetBase { +export interface AzureSqlDatabaseManagedInstanceSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: AzureSqlDatabaseManagedInstanceSystemScanRulesetProperties; } // @public (undocumented) -export type AzureSqlDatabaseManagedInstanceSystemScanRulesetProperties = AzureSqlDatabaseManagedInstanceSystemScanRulesetPropertiesBase & AzureSqlDatabaseManagedInstanceScanRulesetProperties; - -// @public (undocumented) -export interface AzureSqlDatabaseManagedInstanceSystemScanRulesetPropertiesBase { +export interface AzureSqlDatabaseManagedInstanceSystemScanRulesetProperties extends AzureSqlDatabaseManagedInstanceScanRulesetProperties { } // @public (undocumented) -export type AzureSqlDatabaseMsiScan = AzureSqlDatabaseMsiScanBase & Scan; - -// @public (undocumented) -export interface AzureSqlDatabaseMsiScanBase { +export interface AzureSqlDatabaseMsiScan extends ScanBase { + // (undocumented) + kind: "AzureSqlDatabaseMsi"; // (undocumented) properties?: AzureSqlDatabaseMsiScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureSqlDatabaseMsiScanProperties = AzureSqlDatabaseMsiScanPropertiesBase & AzureSqlScanProperties; - -// @public (undocumented) -export type AzureSqlDatabaseMsiScanPropertiesAutoGenerated = AzureSqlDatabaseMsiScanPropertiesAutoGeneratedBase & AzureSqlDatabaseMsiScanProperties; - -// @public (undocumented) -export interface AzureSqlDatabaseMsiScanPropertiesAutoGeneratedBase { +export interface AzureSqlDatabaseMsiScanProperties extends AzureSqlScanProperties { } // @public (undocumented) -export interface AzureSqlDatabaseMsiScanPropertiesBase { +export interface AzureSqlDatabaseMsiScanPropertiesAutoGenerated extends AzureSqlDatabaseMsiScanProperties { } // @public (undocumented) -export type AzureSqlDatabaseProperties = AzureSqlDatabasePropertiesBase & AzureDataSourceProperties; - -// @public (undocumented) -export interface AzureSqlDatabasePropertiesBase { +export interface AzureSqlDatabaseProperties extends AzureDataSourceProperties { // (undocumented) serverEndpoint?: string; } // @public (undocumented) -export type AzureSqlDatabaseScanRuleset = AzureSqlDatabaseScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface AzureSqlDatabaseScanRulesetBase { +export interface AzureSqlDatabaseScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "AzureSqlDatabase"; // (undocumented) properties?: AzureSqlDatabaseScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type AzureSqlDatabaseScanRulesetProperties = AzureSqlDatabaseScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type AzureSqlDatabaseScanRulesetPropertiesAutoGenerated = AzureSqlDatabaseScanRulesetPropertiesAutoGeneratedBase & AzureSqlDatabaseScanRulesetProperties; - -// @public (undocumented) -export interface AzureSqlDatabaseScanRulesetPropertiesAutoGeneratedBase { +export interface AzureSqlDatabaseScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export interface AzureSqlDatabaseScanRulesetPropertiesBase { +export interface AzureSqlDatabaseScanRulesetPropertiesAutoGenerated extends AzureSqlDatabaseScanRulesetProperties { } // @public (undocumented) -export type AzureSqlDatabaseSystemScanRuleset = AzureSqlDatabaseSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AzureSqlDatabaseSystemScanRulesetBase { +export interface AzureSqlDatabaseSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: AzureSqlDatabaseSystemScanRulesetProperties; } // @public (undocumented) -export type AzureSqlDatabaseSystemScanRulesetProperties = AzureSqlDatabaseSystemScanRulesetPropertiesBase & AzureSqlDatabaseScanRulesetProperties; - -// @public (undocumented) -export interface AzureSqlDatabaseSystemScanRulesetPropertiesBase { +export interface AzureSqlDatabaseSystemScanRulesetProperties extends AzureSqlDatabaseScanRulesetProperties { } // @public (undocumented) -export type AzureSqlDataWarehouseCredentialScan = AzureSqlDataWarehouseCredentialScanBase & Scan; - -// @public (undocumented) -export interface AzureSqlDataWarehouseCredentialScanBase { +export interface AzureSqlDataWarehouseCredentialScan extends ScanBase { + // (undocumented) + kind: "AzureSqlDataWarehouseCredential"; // (undocumented) properties?: AzureSqlDataWarehouseCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureSqlDataWarehouseCredentialScanProperties = AzureSqlDataWarehouseCredentialScanPropertiesBase & AzureSqlCredentialScanProperties; - -// @public (undocumented) -export type AzureSqlDataWarehouseCredentialScanPropertiesAutoGenerated = AzureSqlDataWarehouseCredentialScanPropertiesAutoGeneratedBase & AzureSqlDataWarehouseCredentialScanProperties; - -// @public (undocumented) -export interface AzureSqlDataWarehouseCredentialScanPropertiesAutoGeneratedBase { +export interface AzureSqlDataWarehouseCredentialScanProperties extends AzureSqlCredentialScanProperties { } // @public (undocumented) -export interface AzureSqlDataWarehouseCredentialScanPropertiesBase { +export interface AzureSqlDataWarehouseCredentialScanPropertiesAutoGenerated extends AzureSqlDataWarehouseCredentialScanProperties { } // @public (undocumented) -export type AzureSqlDataWarehouseDataSource = AzureSqlDataWarehouseDataSourceBase & DataSource; - -// @public (undocumented) -export interface AzureSqlDataWarehouseDataSourceBase { +export interface AzureSqlDataWarehouseDataSource extends DataSourceBase { + // (undocumented) + kind: "AzureSqlDataWarehouse"; // (undocumented) properties?: AzureSqlDataWarehouseDataSourceProperties; } // @public (undocumented) -export type AzureSqlDataWarehouseDataSourceProperties = AzureSqlDataWarehouseDataSourcePropertiesBase & AzureSqlDataWarehouseProperties; - -// @public (undocumented) -export interface AzureSqlDataWarehouseDataSourcePropertiesBase { +export interface AzureSqlDataWarehouseDataSourceProperties extends AzureSqlDataWarehouseProperties { } // @public (undocumented) -export type AzureSqlDataWarehouseMsiScan = AzureSqlDataWarehouseMsiScanBase & Scan; - -// @public (undocumented) -export interface AzureSqlDataWarehouseMsiScanBase { +export interface AzureSqlDataWarehouseMsiScan extends ScanBase { + // (undocumented) + kind: "AzureSqlDataWarehouseMsi"; // (undocumented) properties?: AzureSqlDataWarehouseMsiScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureSqlDataWarehouseMsiScanProperties = AzureSqlDataWarehouseMsiScanPropertiesBase & AzureSqlScanProperties; - -// @public (undocumented) -export type AzureSqlDataWarehouseMsiScanPropertiesAutoGenerated = AzureSqlDataWarehouseMsiScanPropertiesAutoGeneratedBase & AzureSqlDataWarehouseMsiScanProperties; - -// @public (undocumented) -export interface AzureSqlDataWarehouseMsiScanPropertiesAutoGeneratedBase { +export interface AzureSqlDataWarehouseMsiScanProperties extends AzureSqlScanProperties { } // @public (undocumented) -export interface AzureSqlDataWarehouseMsiScanPropertiesBase { +export interface AzureSqlDataWarehouseMsiScanPropertiesAutoGenerated extends AzureSqlDataWarehouseMsiScanProperties { } // @public (undocumented) -export type AzureSqlDataWarehouseProperties = AzureSqlDataWarehousePropertiesBase & AzureDataSourceProperties; - -// @public (undocumented) -export interface AzureSqlDataWarehousePropertiesBase { +export interface AzureSqlDataWarehouseProperties extends AzureDataSourceProperties { // (undocumented) serverEndpoint?: string; } // @public (undocumented) -export type AzureSqlDataWarehouseScanRuleset = AzureSqlDataWarehouseScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface AzureSqlDataWarehouseScanRulesetBase { +export interface AzureSqlDataWarehouseScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "AzureSqlDataWarehouse"; // (undocumented) properties?: AzureSqlDataWarehouseScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type AzureSqlDataWarehouseScanRulesetProperties = AzureSqlDataWarehouseScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type AzureSqlDataWarehouseScanRulesetPropertiesAutoGenerated = AzureSqlDataWarehouseScanRulesetPropertiesAutoGeneratedBase & AzureSqlDataWarehouseScanRulesetProperties; - -// @public (undocumented) -export interface AzureSqlDataWarehouseScanRulesetPropertiesAutoGeneratedBase { +export interface AzureSqlDataWarehouseScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export interface AzureSqlDataWarehouseScanRulesetPropertiesBase { +export interface AzureSqlDataWarehouseScanRulesetPropertiesAutoGenerated extends AzureSqlDataWarehouseScanRulesetProperties { } // @public (undocumented) -export type AzureSqlDataWarehouseSystemScanRuleset = AzureSqlDataWarehouseSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AzureSqlDataWarehouseSystemScanRulesetBase { +export interface AzureSqlDataWarehouseSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: AzureSqlDataWarehouseSystemScanRulesetProperties; } // @public (undocumented) -export type AzureSqlDataWarehouseSystemScanRulesetProperties = AzureSqlDataWarehouseSystemScanRulesetPropertiesBase & AzureSqlDataWarehouseScanRulesetProperties; - -// @public (undocumented) -export interface AzureSqlDataWarehouseSystemScanRulesetPropertiesBase { +export interface AzureSqlDataWarehouseSystemScanRulesetProperties extends AzureSqlDataWarehouseScanRulesetProperties { } // @public (undocumented) -export type AzureSqlScanProperties = AzureSqlScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export interface AzureSqlScanPropertiesBase { +export interface AzureSqlScanProperties extends ScanProperties { // (undocumented) databaseName?: string; // (undocumented) @@ -1721,301 +1241,213 @@ export interface AzureSqlScanPropertiesBase { } // @public (undocumented) -export type AzureStorageCredentialScan = AzureStorageCredentialScanBase & Scan; - -// @public (undocumented) -export interface AzureStorageCredentialScanBase { +export interface AzureStorageCredentialScan extends ScanBase { + // (undocumented) + kind: "AzureStorageCredential"; // (undocumented) properties?: AzureStorageCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureStorageCredentialScanProperties = AzureStorageCredentialScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export type AzureStorageCredentialScanPropertiesAutoGenerated = AzureStorageCredentialScanPropertiesAutoGeneratedBase & AzureStorageCredentialScanProperties; - -// @public (undocumented) -export interface AzureStorageCredentialScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface AzureStorageCredentialScanPropertiesBase { +export interface AzureStorageCredentialScanProperties extends ScanProperties { // (undocumented) credential?: AzureStorageCredentialScanPropertiesCredential; } // @public (undocumented) -export type AzureStorageCredentialScanPropertiesCredential = AzureStorageCredentialScanPropertiesCredentialBase & CredentialReference; - -// @public (undocumented) -export interface AzureStorageCredentialScanPropertiesCredentialBase { +export interface AzureStorageCredentialScanPropertiesAutoGenerated extends AzureStorageCredentialScanProperties { } // @public (undocumented) -export type AzureStorageDataSource = AzureStorageDataSourceBase & DataSource; +export interface AzureStorageCredentialScanPropertiesCredential extends CredentialReference { +} // @public (undocumented) -export interface AzureStorageDataSourceBase { +export interface AzureStorageDataSource extends DataSourceBase { + // (undocumented) + kind: "AzureStorage"; // (undocumented) properties?: AzureStorageDataSourceProperties; } // @public (undocumented) -export type AzureStorageDataSourceProperties = AzureStorageDataSourcePropertiesBase & AzureStorageProperties; - -// @public (undocumented) -export interface AzureStorageDataSourcePropertiesBase { +export interface AzureStorageDataSourceProperties extends AzureStorageProperties { } // @public (undocumented) -export type AzureStorageMsiScan = AzureStorageMsiScanBase & Scan; - -// @public (undocumented) -export interface AzureStorageMsiScanBase { +export interface AzureStorageMsiScan extends ScanBase { + // (undocumented) + kind: "AzureStorageMsi"; // (undocumented) properties?: AzureStorageMsiScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureStorageMsiScanProperties = AzureStorageMsiScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export type AzureStorageMsiScanPropertiesAutoGenerated = AzureStorageMsiScanPropertiesAutoGeneratedBase & AzureStorageMsiScanProperties; - -// @public (undocumented) -export interface AzureStorageMsiScanPropertiesAutoGeneratedBase { +export interface AzureStorageMsiScanProperties extends ScanProperties { } // @public (undocumented) -export interface AzureStorageMsiScanPropertiesBase { +export interface AzureStorageMsiScanPropertiesAutoGenerated extends AzureStorageMsiScanProperties { } // @public (undocumented) -export type AzureStorageProperties = AzureStoragePropertiesBase & AzureDataSourceProperties; - -// @public (undocumented) -export interface AzureStoragePropertiesBase { +export interface AzureStorageProperties extends AzureDataSourceProperties { // (undocumented) endpoint?: string; } // @public (undocumented) -export type AzureStorageScanRuleset = AzureStorageScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface AzureStorageScanRulesetBase { +export interface AzureStorageScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "AzureStorage"; // (undocumented) properties?: AzureStorageScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type AzureStorageScanRulesetProperties = AzureStorageScanRulesetPropertiesBase & ScanningRuleScanRulesetProperties; - -// @public (undocumented) -export type AzureStorageScanRulesetPropertiesAutoGenerated = AzureStorageScanRulesetPropertiesAutoGeneratedBase & AzureStorageScanRulesetProperties; - -// @public (undocumented) -export interface AzureStorageScanRulesetPropertiesAutoGeneratedBase { +export interface AzureStorageScanRulesetProperties extends ScanningRuleScanRulesetProperties { } // @public (undocumented) -export interface AzureStorageScanRulesetPropertiesBase { +export interface AzureStorageScanRulesetPropertiesAutoGenerated extends AzureStorageScanRulesetProperties { } // @public (undocumented) -export type AzureStorageSystemScanRuleset = AzureStorageSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AzureStorageSystemScanRulesetBase { +export interface AzureStorageSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: AzureStorageSystemScanRulesetProperties; } // @public (undocumented) -export type AzureStorageSystemScanRulesetProperties = AzureStorageSystemScanRulesetPropertiesBase & AzureStorageScanRulesetProperties; - -// @public (undocumented) -export interface AzureStorageSystemScanRulesetPropertiesBase { +export interface AzureStorageSystemScanRulesetProperties extends AzureStorageScanRulesetProperties { } // @public (undocumented) -export type AzureSubscriptionCredentialScan = AzureSubscriptionCredentialScanBase & Scan; - -// @public (undocumented) -export interface AzureSubscriptionCredentialScanBase { +export interface AzureSubscriptionCredentialScan extends ScanBase { + // (undocumented) + kind: "AzureSubscriptionCredential"; // (undocumented) properties?: AzureSubscriptionCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureSubscriptionCredentialScanProperties = AzureSubscriptionCredentialScanPropertiesBase & ExpandingResourceScanProperties; - -// @public (undocumented) -export type AzureSubscriptionCredentialScanPropertiesAutoGenerated = AzureSubscriptionCredentialScanPropertiesAutoGeneratedBase & AzureSubscriptionCredentialScanProperties; - -// @public (undocumented) -export interface AzureSubscriptionCredentialScanPropertiesAutoGeneratedBase { +export interface AzureSubscriptionCredentialScanProperties extends ExpandingResourceScanProperties { } // @public (undocumented) -export interface AzureSubscriptionCredentialScanPropertiesBase { +export interface AzureSubscriptionCredentialScanPropertiesAutoGenerated extends AzureSubscriptionCredentialScanProperties { } // @public (undocumented) -export type AzureSubscriptionDataSource = AzureSubscriptionDataSourceBase & DataSource; - -// @public (undocumented) -export interface AzureSubscriptionDataSourceBase { +export interface AzureSubscriptionDataSource extends DataSourceBase { + // (undocumented) + kind: "AzureSubscription"; // (undocumented) properties?: AzureSubscriptionDataSourceProperties; } // @public (undocumented) -export type AzureSubscriptionDataSourceProperties = AzureSubscriptionDataSourcePropertiesBase & AzureSubscriptionProperties; - -// @public (undocumented) -export interface AzureSubscriptionDataSourcePropertiesBase { +export interface AzureSubscriptionDataSourceProperties extends AzureSubscriptionProperties { } // @public (undocumented) -export type AzureSubscriptionMsiScan = AzureSubscriptionMsiScanBase & Scan; - -// @public (undocumented) -export interface AzureSubscriptionMsiScanBase { +export interface AzureSubscriptionMsiScan extends ScanBase { + // (undocumented) + kind: "AzureSubscriptionMsi"; // (undocumented) properties?: AzureSubscriptionMsiScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureSubscriptionMsiScanProperties = AzureSubscriptionMsiScanPropertiesBase & ExpandingResourceScanProperties; - -// @public (undocumented) -export type AzureSubscriptionMsiScanPropertiesAutoGenerated = AzureSubscriptionMsiScanPropertiesAutoGeneratedBase & AzureSubscriptionMsiScanProperties; - -// @public (undocumented) -export interface AzureSubscriptionMsiScanPropertiesAutoGeneratedBase { +export interface AzureSubscriptionMsiScanProperties extends ExpandingResourceScanProperties { } // @public (undocumented) -export interface AzureSubscriptionMsiScanPropertiesBase { +export interface AzureSubscriptionMsiScanPropertiesAutoGenerated extends AzureSubscriptionMsiScanProperties { } // @public (undocumented) -export type AzureSubscriptionProperties = AzureSubscriptionPropertiesBase & DataSourceProperties; - -// @public (undocumented) -export interface AzureSubscriptionPropertiesBase { +export interface AzureSubscriptionProperties extends DataSourceProperties { // (undocumented) subscriptionId?: string; } // @public (undocumented) -export type AzureSubscriptionScanRuleset = AzureSubscriptionScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface AzureSubscriptionScanRulesetBase { - // (undocumented) - properties?: AzureSubscriptionScanRulesetPropertiesAutoGenerated; -} - -// @public (undocumented) -export type AzureSubscriptionScanRulesetProperties = AzureSubscriptionScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type AzureSubscriptionScanRulesetPropertiesAutoGenerated = AzureSubscriptionScanRulesetPropertiesAutoGeneratedBase & AzureSubscriptionScanRulesetProperties; - -// @public (undocumented) -export interface AzureSubscriptionScanRulesetPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface AzureSubscriptionScanRulesetPropertiesBase { -} - -// @public (undocumented) -export type AzureSubscriptionSystemScanRuleset = AzureSubscriptionSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AzureSubscriptionSystemScanRulesetBase { +export interface AzureSubscriptionScanRuleset extends ScanRulesetBase { // (undocumented) - properties?: AzureSubscriptionSystemScanRulesetProperties; -} - -// @public (undocumented) -export type AzureSubscriptionSystemScanRulesetProperties = AzureSubscriptionSystemScanRulesetPropertiesBase & AzureSubscriptionScanRulesetProperties; - -// @public (undocumented) -export interface AzureSubscriptionSystemScanRulesetPropertiesBase { -} - -// @public (undocumented) -export type AzureSynapseCredentialScan = AzureSynapseCredentialScanBase & Scan; - -// @public (undocumented) -export interface AzureSynapseCredentialScanBase { + kind: "AzureSubscription"; // (undocumented) - properties?: AzureSynapseCredentialScanPropertiesAutoGenerated; -} - -// @public (undocumented) -export type AzureSynapseCredentialScanProperties = AzureSynapseCredentialScanPropertiesBase & ExpandingResourceScanProperties; + properties?: AzureSubscriptionScanRulesetPropertiesAutoGenerated; +} // @public (undocumented) -export type AzureSynapseCredentialScanPropertiesAutoGenerated = AzureSynapseCredentialScanPropertiesAutoGeneratedBase & AzureSynapseCredentialScanProperties; +export interface AzureSubscriptionScanRulesetProperties extends ScanRulesetProperties { +} // @public (undocumented) -export interface AzureSynapseCredentialScanPropertiesAutoGeneratedBase { +export interface AzureSubscriptionScanRulesetPropertiesAutoGenerated extends AzureSubscriptionScanRulesetProperties { } // @public (undocumented) -export interface AzureSynapseCredentialScanPropertiesBase { +export interface AzureSubscriptionSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; + // (undocumented) + properties?: AzureSubscriptionSystemScanRulesetProperties; } // @public (undocumented) -export type AzureSynapseDataSource = AzureSynapseDataSourceBase & DataSource; +export interface AzureSubscriptionSystemScanRulesetProperties extends AzureSubscriptionScanRulesetProperties { +} // @public (undocumented) -export interface AzureSynapseDataSourceBase { +export interface AzureSynapseCredentialScan extends ScanBase { // (undocumented) - properties?: AzureSynapseDataSourceProperties; + kind: "AzureSynapseCredential"; + // (undocumented) + properties?: AzureSynapseCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureSynapseDataSourceProperties = AzureSynapseDataSourcePropertiesBase & AzureSynapseProperties; - -// @public (undocumented) -export interface AzureSynapseDataSourcePropertiesBase { +export interface AzureSynapseCredentialScanProperties extends ExpandingResourceScanProperties { } // @public (undocumented) -export type AzureSynapseMsiScan = AzureSynapseMsiScanBase & Scan; +export interface AzureSynapseCredentialScanPropertiesAutoGenerated extends AzureSynapseCredentialScanProperties { +} // @public (undocumented) -export interface AzureSynapseMsiScanBase { +export interface AzureSynapseDataSource extends DataSourceBase { // (undocumented) - properties?: AzureSynapseMsiScanPropertiesAutoGenerated; + kind: "AzureSynapse"; + // (undocumented) + properties?: AzureSynapseDataSourceProperties; } // @public (undocumented) -export type AzureSynapseMsiScanProperties = AzureSynapseMsiScanPropertiesBase & ExpandingResourceScanProperties; - -// @public (undocumented) -export type AzureSynapseMsiScanPropertiesAutoGenerated = AzureSynapseMsiScanPropertiesAutoGeneratedBase & AzureSynapseMsiScanProperties; +export interface AzureSynapseDataSourceProperties extends AzureSynapseProperties { +} // @public (undocumented) -export interface AzureSynapseMsiScanPropertiesAutoGeneratedBase { +export interface AzureSynapseMsiScan extends ScanBase { + // (undocumented) + kind: "AzureSynapseMsi"; + // (undocumented) + properties?: AzureSynapseMsiScanPropertiesAutoGenerated; } // @public (undocumented) -export interface AzureSynapseMsiScanPropertiesBase { +export interface AzureSynapseMsiScanProperties extends ExpandingResourceScanProperties { } // @public (undocumented) -export type AzureSynapseProperties = AzureSynapsePropertiesBase & AzureDataSourceProperties; +export interface AzureSynapseMsiScanPropertiesAutoGenerated extends AzureSynapseMsiScanProperties { +} // @public (undocumented) -export interface AzureSynapsePropertiesBase { +export interface AzureSynapseProperties extends AzureDataSourceProperties { // (undocumented) sqlEndpoint?: string; // (undocumented) @@ -2023,111 +1455,79 @@ export interface AzureSynapsePropertiesBase { } // @public (undocumented) -export type AzureSynapseScanRuleset = AzureSynapseScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface AzureSynapseScanRulesetBase { +export interface AzureSynapseScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "AzureSynapse"; // (undocumented) properties?: AzureSynapseScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type AzureSynapseScanRulesetProperties = AzureSynapseScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type AzureSynapseScanRulesetPropertiesAutoGenerated = AzureSynapseScanRulesetPropertiesAutoGeneratedBase & AzureSynapseScanRulesetProperties; - -// @public (undocumented) -export interface AzureSynapseScanRulesetPropertiesAutoGeneratedBase { +export interface AzureSynapseScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export interface AzureSynapseScanRulesetPropertiesBase { +export interface AzureSynapseScanRulesetPropertiesAutoGenerated extends AzureSynapseScanRulesetProperties { } // @public (undocumented) -export type AzureSynapseSystemScanRuleset = AzureSynapseSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AzureSynapseSystemScanRulesetBase { +export interface AzureSynapseSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: AzureSynapseSystemScanRulesetProperties; } // @public (undocumented) -export type AzureSynapseSystemScanRulesetProperties = AzureSynapseSystemScanRulesetPropertiesBase & AzureSynapseScanRulesetProperties; - -// @public (undocumented) -export interface AzureSynapseSystemScanRulesetPropertiesBase { +export interface AzureSynapseSystemScanRulesetProperties extends AzureSynapseScanRulesetProperties { } // @public (undocumented) -export type AzureSynapseWorkspaceCredentialScan = AzureSynapseWorkspaceCredentialScanBase & Scan; - -// @public (undocumented) -export interface AzureSynapseWorkspaceCredentialScanBase { +export interface AzureSynapseWorkspaceCredentialScan extends ScanBase { + // (undocumented) + kind: "AzureSynapseWorkspaceCredential"; // (undocumented) properties?: AzureSynapseWorkspaceCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureSynapseWorkspaceCredentialScanProperties = AzureSynapseWorkspaceCredentialScanPropertiesBase & ExpandingResourceScanProperties; - -// @public (undocumented) -export type AzureSynapseWorkspaceCredentialScanPropertiesAutoGenerated = AzureSynapseWorkspaceCredentialScanPropertiesAutoGeneratedBase & AzureSynapseWorkspaceCredentialScanProperties; - -// @public (undocumented) -export interface AzureSynapseWorkspaceCredentialScanPropertiesAutoGeneratedBase { +export interface AzureSynapseWorkspaceCredentialScanProperties extends ExpandingResourceScanProperties { } // @public (undocumented) -export interface AzureSynapseWorkspaceCredentialScanPropertiesBase { +export interface AzureSynapseWorkspaceCredentialScanPropertiesAutoGenerated extends AzureSynapseWorkspaceCredentialScanProperties { } // @public (undocumented) -export type AzureSynapseWorkspaceDataSource = AzureSynapseWorkspaceDataSourceBase & DataSource; - -// @public (undocumented) -export interface AzureSynapseWorkspaceDataSourceBase { +export interface AzureSynapseWorkspaceDataSource extends DataSourceBase { + // (undocumented) + kind: "AzureSynapseWorkspace"; // (undocumented) properties?: AzureSynapseWorkspaceDataSourceProperties; } // @public (undocumented) -export type AzureSynapseWorkspaceDataSourceProperties = AzureSynapseWorkspaceDataSourcePropertiesBase & AzureSynapseWorkspaceProperties; - -// @public (undocumented) -export interface AzureSynapseWorkspaceDataSourcePropertiesBase { +export interface AzureSynapseWorkspaceDataSourceProperties extends AzureSynapseWorkspaceProperties { } // @public (undocumented) -export type AzureSynapseWorkspaceMsiScan = AzureSynapseWorkspaceMsiScanBase & Scan; - -// @public (undocumented) -export interface AzureSynapseWorkspaceMsiScanBase { +export interface AzureSynapseWorkspaceMsiScan extends ScanBase { + // (undocumented) + kind: "AzureSynapseWorkspaceMsi"; // (undocumented) properties?: AzureSynapseWorkspaceMsiScanPropertiesAutoGenerated; } // @public (undocumented) -export type AzureSynapseWorkspaceMsiScanProperties = AzureSynapseWorkspaceMsiScanPropertiesBase & ExpandingResourceScanProperties; - -// @public (undocumented) -export type AzureSynapseWorkspaceMsiScanPropertiesAutoGenerated = AzureSynapseWorkspaceMsiScanPropertiesAutoGeneratedBase & AzureSynapseWorkspaceMsiScanProperties; - -// @public (undocumented) -export interface AzureSynapseWorkspaceMsiScanPropertiesAutoGeneratedBase { +export interface AzureSynapseWorkspaceMsiScanProperties extends ExpandingResourceScanProperties { } // @public (undocumented) -export interface AzureSynapseWorkspaceMsiScanPropertiesBase { +export interface AzureSynapseWorkspaceMsiScanPropertiesAutoGenerated extends AzureSynapseWorkspaceMsiScanProperties { } // @public (undocumented) -export type AzureSynapseWorkspaceProperties = AzureSynapseWorkspacePropertiesBase & AzureDataSourceProperties; - -// @public (undocumented) -export interface AzureSynapseWorkspacePropertiesBase { +export interface AzureSynapseWorkspaceProperties extends AzureDataSourceProperties { // (undocumented) dedicatedSqlEndpoint?: string; // (undocumented) @@ -2135,54 +1535,40 @@ export interface AzureSynapseWorkspacePropertiesBase { } // @public (undocumented) -export type AzureSynapseWorkspaceScanRuleset = AzureSynapseWorkspaceScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface AzureSynapseWorkspaceScanRulesetBase { +export interface AzureSynapseWorkspaceScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "AzureSynapseWorkspace"; // (undocumented) properties?: AzureSynapseWorkspaceScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type AzureSynapseWorkspaceScanRulesetProperties = AzureSynapseWorkspaceScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type AzureSynapseWorkspaceScanRulesetPropertiesAutoGenerated = AzureSynapseWorkspaceScanRulesetPropertiesAutoGeneratedBase & AzureSynapseWorkspaceScanRulesetProperties; - -// @public (undocumented) -export interface AzureSynapseWorkspaceScanRulesetPropertiesAutoGeneratedBase { +export interface AzureSynapseWorkspaceScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export interface AzureSynapseWorkspaceScanRulesetPropertiesBase { +export interface AzureSynapseWorkspaceScanRulesetPropertiesAutoGenerated extends AzureSynapseWorkspaceScanRulesetProperties { } // @public (undocumented) -export type AzureSynapseWorkspaceSystemScanRuleset = AzureSynapseWorkspaceSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface AzureSynapseWorkspaceSystemScanRulesetBase { +export interface AzureSynapseWorkspaceSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: AzureSynapseWorkspaceSystemScanRulesetProperties; } // @public (undocumented) -export type AzureSynapseWorkspaceSystemScanRulesetProperties = AzureSynapseWorkspaceSystemScanRulesetPropertiesBase & AzureSynapseWorkspaceScanRulesetProperties; - -// @public (undocumented) -export interface AzureSynapseWorkspaceSystemScanRulesetPropertiesBase { +export interface AzureSynapseWorkspaceSystemScanRulesetProperties extends AzureSynapseWorkspaceScanRulesetProperties { } // @public (undocumented) -export type ClassificationAction = "Keep" | "Delete"; - -// @public (undocumented) -export type ClassificationRule = ClassificationRuleBase & ProxyResource; +export type ClassificationRule = ClassificationRuleBase | SystemClassificationRule | CustomClassificationRule; // @public (undocumented) -export interface ClassificationRuleBase { +export interface ClassificationRuleBase extends ProxyResource { // (undocumented) - kind: ClassificationRuleType; + kind: "ClassificationRule" | "System" | "Custom"; } // @public (undocumented) @@ -2192,17 +1578,17 @@ export interface ClassificationRuleList { // (undocumented) nextLink?: string; // (undocumented) - value?: ClassificationRule[]; + value?: Array; } // @public (undocumented) -export interface ClassificationRulePattern { - // (undocumented) - kind: ClassificationRulePatternType; -} +export type ClassificationRulePattern = RegexClassificationRulePattern; // @public (undocumented) -export type ClassificationRulePatternType = "Regex"; +export interface ClassificationRulePatternBase { + // (undocumented) + kind: "Regex"; +} // @public export interface ClassificationRulesCreateOrUpdate200Response extends HttpResponse { @@ -2235,14 +1621,7 @@ export interface ClassificationRulesCreateOrUpdatedefaultResponse extends HttpRe } // @public (undocumented) -export type ClassificationRulesCreateOrUpdateParameters = RequestParameters & ClassificationRulesCreateOrUpdateBodyParam; - -// @public (undocumented) -export interface ClassificationRulesDelete { - delete(options?: ClassificationRulesDeleteParameters): Promise; - get(options?: ClassificationRulesGetParameters): Promise; - put(options?: ClassificationRulesCreateOrUpdateParameters): Promise; -} +export type ClassificationRulesCreateOrUpdateParameters = ClassificationRulesCreateOrUpdateBodyParam & RequestParameters; // @public export interface ClassificationRulesDelete200Response extends HttpResponse { @@ -2254,6 +1633,8 @@ export interface ClassificationRulesDelete200Response extends HttpResponse { // @public export interface ClassificationRulesDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -2269,6 +1650,13 @@ export interface ClassificationRulesDeletedefaultResponse extends HttpResponse { // @public (undocumented) export type ClassificationRulesDeleteParameters = RequestParameters; +// @public (undocumented) +export interface ClassificationRulesGet { + delete(options?: ClassificationRulesDeleteParameters): Promise; + get(options?: ClassificationRulesGetParameters): Promise; + put(options?: ClassificationRulesCreateOrUpdateParameters): Promise; +} + // @public export interface ClassificationRulesGet200Response extends HttpResponse { // (undocumented) @@ -2338,7 +1726,7 @@ export type ClassificationRulesListVersionsByClassificationRuleNameParameters = // @public (undocumented) export interface ClassificationRulesTagClassificationVersion { - post(options?: ClassificationRulesTagClassificationVersionParameters): Promise; + post(options: ClassificationRulesTagClassificationVersionParameters): Promise; } // @public @@ -2358,7 +1746,7 @@ export interface ClassificationRulesTagClassificationVersiondefaultResponse exte } // @public (undocumented) -export type ClassificationRulesTagClassificationVersionParameters = RequestParameters & ClassificationRulesTagClassificationVersionQueryParam; +export type ClassificationRulesTagClassificationVersionParameters = ClassificationRulesTagClassificationVersionQueryParam & RequestParameters; // @public (undocumented) export interface ClassificationRulesTagClassificationVersionQueryParam { @@ -2369,14 +1757,18 @@ export interface ClassificationRulesTagClassificationVersionQueryParam { // @public (undocumented) export interface ClassificationRulesTagClassificationVersionQueryParamProperties { // (undocumented) - action: ClassificationAction; + action: "Keep" | "Delete"; } // @public (undocumented) -export type ClassificationRuleStatus = "Enabled" | "Disabled"; - -// @public (undocumented) -export type ClassificationRuleType = "System" | "Custom"; +export interface CollectionReference { + // (undocumented) + lastModifiedAt?: Date; + // (undocumented) + referenceName?: string; + // (undocumented) + type?: string; +} // @public (undocumented) export interface ConnectedVia { @@ -2387,19 +1779,15 @@ export interface ConnectedVia { // @public (undocumented) export interface CredentialReference { // (undocumented) - credentialType?: CredentialType; + credentialType?: "AccountKey" | "ServicePrincipal" | "BasicAuth" | "SqlAuth" | "AmazonARN"; // (undocumented) referenceName?: string; } // @public (undocumented) -export type CredentialType = "AccountKey" | "ServicePrincipal" | "BasicAuth" | "SqlAuth" | "AmazonARN"; - -// @public (undocumented) -export type CustomClassificationRule = CustomClassificationRuleBase & ClassificationRule; - -// @public (undocumented) -export interface CustomClassificationRuleBase { +export interface CustomClassificationRule extends ClassificationRuleBase { + // (undocumented) + kind: "Custom"; // (undocumented) properties?: CustomClassificationRulePropertiesAutoGenerated; } @@ -2407,15 +1795,15 @@ export interface CustomClassificationRuleBase { // @public (undocumented) export interface CustomClassificationRuleProperties { // (undocumented) - classificationAction?: ClassificationAction; + classificationAction?: "Keep" | "Delete"; // (undocumented) classificationName?: string; // (undocumented) - columnPatterns?: ClassificationRulePattern[]; + columnPatterns?: Array; // (undocumented) createdAt?: Date; // (undocumented) - dataPatterns?: ClassificationRulePattern[]; + dataPatterns?: Array; // (undocumented) description?: string; // (undocumented) @@ -2423,16 +1811,13 @@ export interface CustomClassificationRuleProperties { // (undocumented) minimumPercentageMatch?: number; // (undocumented) - ruleStatus?: ClassificationRuleStatus; + ruleStatus?: "Enabled" | "Disabled"; // (undocumented) version?: number; } // @public (undocumented) -export type CustomClassificationRulePropertiesAutoGenerated = CustomClassificationRulePropertiesAutoGeneratedBase & CustomClassificationRuleProperties; - -// @public (undocumented) -export interface CustomClassificationRulePropertiesAutoGeneratedBase { +export interface CustomClassificationRulePropertiesAutoGenerated extends CustomClassificationRuleProperties { } // @public (undocumented) @@ -2448,29 +1833,26 @@ export interface CustomFileExtension { } // @public (undocumented) -export type CustomFileExtensionCustomFileType = CustomFileExtensionCustomFileTypeBase & CustomFileType; - -// @public (undocumented) -export interface CustomFileExtensionCustomFileTypeBase { +export interface CustomFileExtensionCustomFileType extends CustomFileType { } // @public (undocumented) export interface CustomFileType { // (undocumented) - builtInType?: FileExtensionsType; + builtInType?: "AVRO" | "ORC" | "PARQUET" | "JSON" | "TXT" | "XML" | "Documents" | "CSV" | "PSV" | "SSV" | "TSV" | "GZ" | "DOC" | "DOCM" | "DOCX" | "DOT" | "ODP" | "ODS" | "ODT" | "PDF" | "POT" | "PPS" | "PPSX" | "PPT" | "PPTM" | "PPTX" | "XLC" | "XLS" | "XLSB" | "XLSM" | "XLSX" | "XLT"; // (undocumented) customDelimiter?: string; } // @public (undocumented) -export type DataSource = DataSourceBase & ProxyResource; +export type DataSource = DataSourceBase | AzureSubscriptionDataSource | AzureResourceGroupDataSource | AzureSynapseWorkspaceDataSource | AzureSynapseDataSource | AdlsGen1DataSource | AdlsGen2DataSource | AmazonAccountDataSource | AmazonS3DataSource | AmazonSqlDataSource | AzureCosmosDbDataSource | AzureDataExplorerDataSource | AzureFileServiceDataSource | AzureSqlDatabaseDataSource | AmazonPostgreSqlDataSource | AzurePostgreSqlDataSource | SqlServerDatabaseDataSource | AzureSqlDatabaseManagedInstanceDataSource | AzureSqlDataWarehouseDataSource | AzureMySqlDataSource | AzureStorageDataSource | TeradataDataSource | OracleDataSource | SapS4HanaDataSource | SapEccDataSource | PowerBIDataSource; // @public (undocumented) -export interface DataSourceBase { +export interface DataSourceBase extends ProxyResource { // (undocumented) - kind: DataSourceType; + kind: "DataSource" | "AzureSubscription" | "AzureResourceGroup" | "AzureSynapseWorkspace" | "AzureSynapse" | "AdlsGen1" | "AdlsGen2" | "AmazonAccount" | "AmazonS3" | "AmazonSql" | "AzureCosmosDb" | "AzureDataExplorer" | "AzureFileService" | "AzureSqlDatabase" | "AmazonPostgreSql" | "AzurePostgreSql" | "SqlServerDatabase" | "AzureSqlDatabaseManagedInstance" | "AzureSqlDataWarehouse" | "AzureMySql" | "AzureStorage" | "Teradata" | "Oracle" | "SapS4Hana" | "SapEcc" | "PowerBI"; // (undocumented) - scans?: Scan[]; + scans?: Array; } // @public (undocumented) @@ -2480,17 +1862,30 @@ export interface DataSourceList { // (undocumented) nextLink?: string; // (undocumented) - value?: DataSource[]; + value?: Array; } // @public (undocumented) export interface DataSourceProperties { + // (undocumented) + collection?: DataSourcePropertiesCollection; // (undocumented) createdAt?: Date; // (undocumented) lastModifiedAt?: Date; } +// @public (undocumented) +export interface DataSourcePropertiesCollection extends CollectionReference { +} + +// @public (undocumented) +export interface DataSourcesCreateOrUpdate { + delete(options?: DataSourcesDeleteParameters): Promise; + get(options?: DataSourcesGetParameters): Promise; + put(options?: DataSourcesCreateOrUpdateParameters): Promise; +} + // @public export interface DataSourcesCreateOrUpdate200Response extends HttpResponse { // (undocumented) @@ -2522,14 +1917,7 @@ export interface DataSourcesCreateOrUpdatedefaultResponse extends HttpResponse { } // @public (undocumented) -export type DataSourcesCreateOrUpdateParameters = RequestParameters & DataSourcesCreateOrUpdateBodyParam; - -// @public (undocumented) -export interface DataSourcesDelete { - delete(options?: DataSourcesDeleteParameters): Promise; - get(options?: DataSourcesGetParameters): Promise; - put(options?: DataSourcesCreateOrUpdateParameters): Promise; -} +export type DataSourcesCreateOrUpdateParameters = DataSourcesCreateOrUpdateBodyParam & RequestParameters; // @public export interface DataSourcesDelete200Response extends HttpResponse { @@ -2541,6 +1929,8 @@ export interface DataSourcesDelete200Response extends HttpResponse { // @public export interface DataSourcesDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -2599,21 +1989,12 @@ export interface DataSourcesListAlldefaultResponse extends HttpResponse { // @public (undocumented) export type DataSourcesListAllParameters = RequestParameters; -// @public (undocumented) -export type DataSourceType = "None" | "AzureSubscription" | "AzureResourceGroup" | "AzureSynapseWorkspace" | "AzureSynapse" | "AdlsGen1" | "AdlsGen2" | "AmazonAccount" | "AmazonS3" | "AmazonSql" | "AzureCosmosDb" | "AzureDataExplorer" | "AzureFileService" | "AzureSqlDatabase" | "AmazonPostgreSql" | "AzurePostgreSql" | "SqlServerDatabase" | "AzureSqlDatabaseManagedInstance" | "AzureSqlDataWarehouse" | "AzureMySql" | "AzureStorage" | "Teradata" | "Oracle" | "SapS4Hana" | "SapEcc" | "PowerBI"; - -// @public (undocumented) -export type DayOfWeek = "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday"; - -// @public (undocumented) -export type DaysOfWeek = "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday"; - // @public (undocumented) export interface ErrorInfo { // (undocumented) code?: string; // (undocumented) - details?: ErrorInfo[]; + details?: Array; // (undocumented) message?: string; // (undocumented) @@ -2625,7 +2006,7 @@ export interface ErrorModel { // (undocumented) code?: string; // (undocumented) - details?: ErrorModel[]; + details?: Array; // (undocumented) message?: string; // (undocumented) @@ -2639,17 +2020,11 @@ export interface ErrorResponseModel { } // @public (undocumented) -export type ErrorResponseModelError = ErrorResponseModelErrorBase & ErrorModel; - -// @public (undocumented) -export interface ErrorResponseModelErrorBase { +export interface ErrorResponseModelError extends ErrorModel { } // @public (undocumented) -export type ExpandingResourceScanProperties = ExpandingResourceScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export interface ExpandingResourceScanPropertiesBase { +export interface ExpandingResourceScanProperties extends ScanProperties { // (undocumented) credential?: ExpandingResourceScanPropertiesCredential; // (undocumented) @@ -2657,99 +2032,81 @@ export interface ExpandingResourceScanPropertiesBase { } // @public (undocumented) -export type ExpandingResourceScanPropertiesCredential = ExpandingResourceScanPropertiesCredentialBase & CredentialReference; - -// @public (undocumented) -export interface ExpandingResourceScanPropertiesCredentialBase { +export interface ExpandingResourceScanPropertiesCredential extends CredentialReference { } // @public (undocumented) export interface ExpandingResourceScanPropertiesResourceTypes { // (undocumented) - adlsGen1?: ResourceTypeFilter; + AdlsGen1?: ResourceTypeFilter; // (undocumented) - adlsGen2?: ResourceTypeFilter; + AdlsGen2?: ResourceTypeFilter; // (undocumented) - amazonAccount?: ResourceTypeFilter; + AmazonAccount?: ResourceTypeFilter; // (undocumented) - amazonPostgreSql?: ResourceTypeFilter; + AmazonPostgreSql?: ResourceTypeFilter; // (undocumented) - amazonS3?: ResourceTypeFilter; + AmazonS3?: ResourceTypeFilter; // (undocumented) - amazonSql?: ResourceTypeFilter; + AmazonSql?: ResourceTypeFilter; // (undocumented) - azureCosmosDb?: ResourceTypeFilter; + AzureCosmosDb?: ResourceTypeFilter; // (undocumented) - azureDataExplorer?: ResourceTypeFilter; + AzureDataExplorer?: ResourceTypeFilter; // (undocumented) - azureFileService?: ResourceTypeFilter; + AzureFileService?: ResourceTypeFilter; // (undocumented) - azureMySql?: ResourceTypeFilter; + AzureMySql?: ResourceTypeFilter; // (undocumented) - azurePostgreSql?: ResourceTypeFilter; + AzurePostgreSql?: ResourceTypeFilter; // (undocumented) - azureResourceGroup?: ResourceTypeFilter; + AzureResourceGroup?: ResourceTypeFilter; // (undocumented) - azureSqlDatabase?: ResourceTypeFilter; + AzureSqlDatabase?: ResourceTypeFilter; // (undocumented) - azureSqlDatabaseManagedInstance?: ResourceTypeFilter; + AzureSqlDatabaseManagedInstance?: ResourceTypeFilter; // (undocumented) - azureSqlDataWarehouse?: ResourceTypeFilter; + AzureSqlDataWarehouse?: ResourceTypeFilter; // (undocumented) - azureStorage?: ResourceTypeFilter; + AzureStorage?: ResourceTypeFilter; // (undocumented) - azureSubscription?: ResourceTypeFilter; + AzureSubscription?: ResourceTypeFilter; // (undocumented) - azureSynapse?: ResourceTypeFilter; + AzureSynapse?: ResourceTypeFilter; // (undocumented) - azureSynapseWorkspace?: ResourceTypeFilter; + AzureSynapseWorkspace?: ResourceTypeFilter; // (undocumented) - none?: ResourceTypeFilter; + None?: ResourceTypeFilter; // (undocumented) - oracle?: ResourceTypeFilter; + Oracle?: ResourceTypeFilter; // (undocumented) - powerBI?: ResourceTypeFilter; + PowerBI?: ResourceTypeFilter; // (undocumented) - sapEcc?: ResourceTypeFilter; + SapEcc?: ResourceTypeFilter; // (undocumented) - sapS4Hana?: ResourceTypeFilter; + SapS4Hana?: ResourceTypeFilter; // (undocumented) - sqlServerDatabase?: ResourceTypeFilter; + SqlServerDatabase?: ResourceTypeFilter; // (undocumented) - teradata?: ResourceTypeFilter; + Teradata?: ResourceTypeFilter; } // @public (undocumented) -export type FileExtensionsType = "AVRO" | "ORC" | "PARQUET" | "JSON" | "TXT" | "XML" | "Documents" | "CSV" | "PSV" | "SSV" | "TSV" | "GZ" | "DOC" | "DOCM" | "DOCX" | "DOT" | "ODP" | "ODS" | "ODT" | "PDF" | "POT" | "PPS" | "PPSX" | "PPT" | "PPTM" | "PPTX" | "XLC" | "XLS" | "XLSB" | "XLSM" | "XLSX" | "XLT"; - -// @public (undocumented) -export type Filter = FilterBase & ProxyResource; - -// @public (undocumented) -export interface FilterBase { +export interface Filter extends ProxyResource { // (undocumented) - properties?: FilterProperties; + properties?: FilterPropertiesAutoGenerated; } // @public (undocumented) -export type FilterProperties = FilterPropertiesBase & FilterPropertiesAutoGenerated; - -// @public (undocumented) -export interface FilterPropertiesAutoGenerated { +export interface FilterProperties { // (undocumented) - excludeUriPrefixes?: string[]; + excludeUriPrefixes?: Array; // (undocumented) - includeUriPrefixes?: string[]; -} - -// @public (undocumented) -export interface FilterPropertiesBase { + includeUriPrefixes?: Array; } // @public (undocumented) -export interface FiltersCreateOrUpdate { - get(options?: FiltersGetParameters): Promise; - put(options?: FiltersCreateOrUpdateParameters): Promise; +export interface FilterPropertiesAutoGenerated extends FilterProperties { } // @public @@ -2783,7 +2140,13 @@ export interface FiltersCreateOrUpdatedefaultResponse extends HttpResponse { } // @public (undocumented) -export type FiltersCreateOrUpdateParameters = RequestParameters & FiltersCreateOrUpdateBodyParam; +export type FiltersCreateOrUpdateParameters = FiltersCreateOrUpdateBodyParam & RequestParameters; + +// @public (undocumented) +export interface FiltersGet { + get(options?: FiltersGetParameters): Promise; + put(options?: FiltersCreateOrUpdateParameters): Promise; +} // @public export interface FiltersGet200Response extends HttpResponse { @@ -2804,6 +2167,15 @@ export interface FiltersGetdefaultResponse extends HttpResponse { // @public (undocumented) export type FiltersGetParameters = RequestParameters; +// @public +export type GetArrayType = T extends Array ? TData : never; + +// @public +export type GetPage = (pageLink: string, maxPageSize?: number) => Promise<{ + page: TPage; + nextPageLink?: string; +}>; + // @public export interface KeyVaultConnectionsCreate200Response extends HttpResponse { // (undocumented) @@ -2827,14 +2199,7 @@ export interface KeyVaultConnectionsCreatedefaultResponse extends HttpResponse { } // @public (undocumented) -export type KeyVaultConnectionsCreateParameters = RequestParameters & KeyVaultConnectionsCreateBodyParam; - -// @public (undocumented) -export interface KeyVaultConnectionsDelete { - delete(options?: KeyVaultConnectionsDeleteParameters): Promise; - get(options?: KeyVaultConnectionsGetParameters): Promise; - put(options: KeyVaultConnectionsCreateParameters): Promise; -} +export type KeyVaultConnectionsCreateParameters = KeyVaultConnectionsCreateBodyParam & RequestParameters; // @public export interface KeyVaultConnectionsDelete200Response extends HttpResponse { @@ -2846,6 +2211,8 @@ export interface KeyVaultConnectionsDelete200Response extends HttpResponse { // @public export interface KeyVaultConnectionsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -2861,6 +2228,13 @@ export interface KeyVaultConnectionsDeletedefaultResponse extends HttpResponse { // @public (undocumented) export type KeyVaultConnectionsDeleteParameters = RequestParameters; +// @public (undocumented) +export interface KeyVaultConnectionsGet { + delete(options?: KeyVaultConnectionsDeleteParameters): Promise; + get(options?: KeyVaultConnectionsGetParameters): Promise; + put(options: KeyVaultConnectionsCreateParameters): Promise; +} + // @public export interface KeyVaultConnectionsGet200Response extends HttpResponse { // (undocumented) @@ -2905,10 +2279,7 @@ export interface KeyVaultConnectionsListAlldefaultResponse extends HttpResponse export type KeyVaultConnectionsListAllParameters = RequestParameters; // @public (undocumented) -export type MitiScanProperties = MitiScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export interface MitiScanPropertiesBase { +export interface MitiScanProperties extends ScanProperties { // (undocumented) maximumMemoryAllowedInGb?: string; // (undocumented) @@ -2929,45 +2300,27 @@ export interface OperationResponse { endTime?: Date; // (undocumented) error?: OperationResponseError; - // (undocumented) scanResultId?: string; // (undocumented) startTime?: Date; // (undocumented) - status?: OperationStatus; + status?: "Accepted" | "InProgress" | "TransientFailure" | "Succeeded" | "Failed" | "Canceled"; } // @public (undocumented) -export type OperationResponseError = OperationResponseErrorBase & ErrorInfo; - -// @public (undocumented) -export interface OperationResponseErrorBase { +export interface OperationResponseError extends ErrorInfo { } // @public (undocumented) -export type OperationStatus = "Accepted" | "InProgress" | "TransientFailure" | "Succeeded" | "Failed" | "Canceled"; - -// @public (undocumented) -export type OracleCredentialScan = OracleCredentialScanBase & Scan; - -// @public (undocumented) -export interface OracleCredentialScanBase { +export interface OracleCredentialScan extends ScanBase { + // (undocumented) + kind: "OracleOracleCredential"; // (undocumented) properties?: OracleCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type OracleCredentialScanProperties = OracleCredentialScanPropertiesBase & MitiScanProperties; - -// @public (undocumented) -export type OracleCredentialScanPropertiesAutoGenerated = OracleCredentialScanPropertiesAutoGeneratedBase & OracleCredentialScanProperties; - -// @public (undocumented) -export interface OracleCredentialScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface OracleCredentialScanPropertiesBase { +export interface OracleCredentialScanProperties extends MitiScanProperties { // (undocumented) credential?: OracleCredentialScanPropertiesCredential; // (undocumented) @@ -2977,33 +2330,27 @@ export interface OracleCredentialScanPropertiesBase { } // @public (undocumented) -export type OracleCredentialScanPropertiesCredential = OracleCredentialScanPropertiesCredentialBase & CredentialReference; - -// @public (undocumented) -export interface OracleCredentialScanPropertiesCredentialBase { +export interface OracleCredentialScanPropertiesAutoGenerated extends OracleCredentialScanProperties { } // @public (undocumented) -export type OracleDataSource = OracleDataSourceBase & DataSource; +export interface OracleCredentialScanPropertiesCredential extends CredentialReference { +} // @public (undocumented) -export interface OracleDataSourceBase { +export interface OracleDataSource extends DataSourceBase { + // (undocumented) + kind: "Oracle"; // (undocumented) properties?: OracleDataSourceProperties; } // @public (undocumented) -export type OracleDataSourceProperties = OracleDataSourcePropertiesBase & OracleProperties; - -// @public (undocumented) -export interface OracleDataSourcePropertiesBase { +export interface OracleDataSourceProperties extends OracleProperties { } // @public (undocumented) -export type OracleProperties = OraclePropertiesBase & DataSourceProperties; - -// @public (undocumented) -export interface OraclePropertiesBase { +export interface OracleProperties extends DataSourceProperties { // (undocumented) host?: string; // (undocumented) @@ -3013,65 +2360,43 @@ export interface OraclePropertiesBase { } // @public (undocumented) -export type OracleScanRuleset = OracleScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface OracleScanRulesetBase { +export interface OracleScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "Oracle"; // (undocumented) properties?: OracleScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type OracleScanRulesetProperties = OracleScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type OracleScanRulesetPropertiesAutoGenerated = OracleScanRulesetPropertiesAutoGeneratedBase & OracleScanRulesetProperties; - -// @public (undocumented) -export interface OracleScanRulesetPropertiesAutoGeneratedBase { +export interface OracleScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export interface OracleScanRulesetPropertiesBase { +export interface OracleScanRulesetPropertiesAutoGenerated extends OracleScanRulesetProperties { } // @public (undocumented) -export type OracleSystemScanRuleset = OracleSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface OracleSystemScanRulesetBase { +export interface OracleSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: OracleSystemScanRulesetProperties; } // @public (undocumented) -export type OracleSystemScanRulesetProperties = OracleSystemScanRulesetPropertiesBase & OracleScanRulesetProperties; - -// @public (undocumented) -export interface OracleSystemScanRulesetPropertiesBase { +export interface OracleSystemScanRulesetProperties extends OracleScanRulesetProperties { } // @public (undocumented) -export type OracleUserPassScan = OracleUserPassScanBase & Scan; - -// @public (undocumented) -export interface OracleUserPassScanBase { +export interface OracleUserPassScan extends ScanBase { + // (undocumented) + kind: "OracleOracleUserPass"; // (undocumented) properties?: OracleUserPassScanPropertiesAutoGenerated; } // @public (undocumented) -export type OracleUserPassScanProperties = OracleUserPassScanPropertiesBase & MitiScanProperties; - -// @public (undocumented) -export type OracleUserPassScanPropertiesAutoGenerated = OracleUserPassScanPropertiesAutoGeneratedBase & OracleUserPassScanProperties; - -// @public (undocumented) -export interface OracleUserPassScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface OracleUserPassScanPropertiesBase { +export interface OracleUserPassScanProperties extends MitiScanProperties { // (undocumented) driverLocation?: string; // (undocumented) @@ -3083,42 +2408,46 @@ export interface OracleUserPassScanPropertiesBase { } // @public (undocumented) -export type PowerBIDataSource = PowerBIDataSourceBase & DataSource; - -// @public (undocumented) -export interface PowerBIDataSourceBase { - // (undocumented) - properties?: PowerBIDataSourceProperties; +export interface OracleUserPassScanPropertiesAutoGenerated extends OracleUserPassScanProperties { } -// @public (undocumented) -export type PowerBIDataSourceProperties = PowerBIDataSourcePropertiesBase & PowerBIProperties; +// @public +export function paginate(client: Client, initialResponse: TResponse, options?: PagingOptions): PagedAsyncIterableIterator>; -// @public (undocumented) -export interface PowerBIDataSourcePropertiesBase { -} +// @public +export type PaginateReturn = TResult extends { + body: { + value?: infer TPage; + }; +} ? GetArrayType : Array; -// @public (undocumented) -export type PowerBIDelegatedScan = PowerBIDelegatedScanBase & Scan; +// @public +export interface PagingOptions { + customGetPage?: GetPage[]>; +} // @public (undocumented) -export interface PowerBIDelegatedScanBase { +export interface PowerBIDataSource extends DataSourceBase { // (undocumented) - properties?: PowerBIDelegatedScanPropertiesAutoGenerated; + kind: "PowerBI"; + // (undocumented) + properties?: PowerBIDataSourceProperties; } // @public (undocumented) -export type PowerBIDelegatedScanProperties = PowerBIDelegatedScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export type PowerBIDelegatedScanPropertiesAutoGenerated = PowerBIDelegatedScanPropertiesAutoGeneratedBase & PowerBIDelegatedScanProperties; +export interface PowerBIDataSourceProperties extends PowerBIProperties { +} // @public (undocumented) -export interface PowerBIDelegatedScanPropertiesAutoGeneratedBase { +export interface PowerBIDelegatedScan extends ScanBase { + // (undocumented) + kind: "PowerBIDelegated"; + // (undocumented) + properties?: PowerBIDelegatedScanPropertiesAutoGenerated; } // @public (undocumented) -export interface PowerBIDelegatedScanPropertiesBase { +export interface PowerBIDelegatedScanProperties extends ScanProperties { // (undocumented) authenticationType?: string; // (undocumented) @@ -3134,76 +2463,59 @@ export interface PowerBIDelegatedScanPropertiesBase { } // @public (undocumented) -export type PowerBIMsiScan = PowerBIMsiScanBase & Scan; - -// @public (undocumented) -export interface PowerBIMsiScanBase { - // (undocumented) - properties?: PowerBIMsiScanPropertiesAutoGenerated; -} - -// @public (undocumented) -export type PowerBIMsiScanProperties = PowerBIMsiScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export type PowerBIMsiScanPropertiesAutoGenerated = PowerBIMsiScanPropertiesAutoGeneratedBase & PowerBIMsiScanProperties; - -// @public (undocumented) -export interface PowerBIMsiScanPropertiesAutoGeneratedBase { +export interface PowerBIDelegatedScanPropertiesAutoGenerated extends PowerBIDelegatedScanProperties { } // @public (undocumented) -export interface PowerBIMsiScanPropertiesBase { +export interface PowerBIMsiScan extends ScanBase { // (undocumented) - includePersonalWorkspaces?: boolean; -} - -// @public (undocumented) -export type PowerBIProperties = PowerBIPropertiesBase & DataSourceProperties; - -// @public (undocumented) -export interface PowerBIPropertiesBase { + kind: "PowerBIMsi"; // (undocumented) - tenant?: string; + properties?: PowerBIMsiScanPropertiesAutoGenerated; } // @public (undocumented) -export type PowerBIScanRuleset = PowerBIScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface PowerBIScanRulesetBase { +export interface PowerBIMsiScanProperties extends ScanProperties { // (undocumented) - properties?: PowerBIScanRulesetPropertiesAutoGenerated; + includePersonalWorkspaces?: boolean; } // @public (undocumented) -export type PowerBIScanRulesetProperties = PowerBIScanRulesetPropertiesBase & ScanRulesetProperties; +export interface PowerBIMsiScanPropertiesAutoGenerated extends PowerBIMsiScanProperties { +} // @public (undocumented) -export type PowerBIScanRulesetPropertiesAutoGenerated = PowerBIScanRulesetPropertiesAutoGeneratedBase & PowerBIScanRulesetProperties; +export interface PowerBIProperties extends DataSourceProperties { + // (undocumented) + tenant?: string; +} // @public (undocumented) -export interface PowerBIScanRulesetPropertiesAutoGeneratedBase { +export interface PowerBIScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "PowerBI"; + // (undocumented) + properties?: PowerBIScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export interface PowerBIScanRulesetPropertiesBase { +export interface PowerBIScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export type PowerBISystemScanRuleset = PowerBISystemScanRulesetBase & SystemScanRuleset; +export interface PowerBIScanRulesetPropertiesAutoGenerated extends PowerBIScanRulesetProperties { +} // @public (undocumented) -export interface PowerBISystemScanRulesetBase { +export interface PowerBISystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: PowerBISystemScanRulesetProperties; } // @public (undocumented) -export type PowerBISystemScanRulesetProperties = PowerBISystemScanRulesetPropertiesBase & PowerBIScanRulesetProperties; - -// @public (undocumented) -export interface PowerBISystemScanRulesetPropertiesBase { +export interface PowerBISystemScanRulesetProperties extends PowerBIScanRulesetProperties { } // @public (undocumented) @@ -3226,39 +2538,32 @@ export type PurviewScanningRestClient = Client & { // @public (undocumented) export interface RecurrenceSchedule { - additionalProperties?: RecurrenceScheduleAdditionalPropertiesDictionary; + additionalProperties?: Record>; // (undocumented) - hours?: number[]; + hours?: Array; // (undocumented) - minutes?: number[]; + minutes?: Array; // (undocumented) - monthDays?: number[]; + monthDays?: Array; // (undocumented) - monthlyOccurrences?: RecurrenceScheduleOccurrence[]; + monthlyOccurrences?: Array; // (undocumented) - weekDays?: "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday"[]; + weekDays?: Array<"Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday">; } -// @public (undocumented) -export type RecurrenceScheduleAdditionalPropertiesDictionary = Record; - // @public (undocumented) export interface RecurrenceScheduleOccurrence { - additionalProperties?: RecurrenceScheduleOccurrenceAdditionalPropertiesDictionary; + additionalProperties?: Record>; // (undocumented) - day?: DayOfWeek; + day?: "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday"; // (undocumented) occurrence?: number; } // @public (undocumented) -export type RecurrenceScheduleOccurrenceAdditionalPropertiesDictionary = Record; - -// @public (undocumented) -export type RegexClassificationRulePattern = RegexClassificationRulePatternBase & ClassificationRulePattern; - -// @public (undocumented) -export interface RegexClassificationRulePatternBase { +export interface RegexClassificationRulePattern extends ClassificationRulePatternBase { + // (undocumented) + kind: "Regex"; // (undocumented) pattern?: string; } @@ -3266,11 +2571,11 @@ export interface RegexClassificationRulePatternBase { // @public (undocumented) export interface ResourceNameFilter { // (undocumented) - excludePrefixes?: string[]; + excludePrefixes?: Array; // (undocumented) - includePrefixes?: string[]; + includePrefixes?: Array; // (undocumented) - resources?: string[]; + resources?: Array; } // @public (undocumented) @@ -3282,70 +2587,53 @@ export interface ResourceTypeFilter { // (undocumented) scanRulesetName?: string; // (undocumented) - scanRulesetType?: ScanRulesetType; + scanRulesetType?: "Custom" | "System"; } // @public (undocumented) -export type ResourceTypeFilterCredential = ResourceTypeFilterCredentialBase & CredentialReference; - -// @public (undocumented) -export interface ResourceTypeFilterCredentialBase { +export interface ResourceTypeFilterCredential extends CredentialReference { } // @public (undocumented) -export type ResourceTypeFilterResourceNameFilter = ResourceTypeFilterResourceNameFilterBase & ResourceNameFilter; - -// @public (undocumented) -export interface ResourceTypeFilterResourceNameFilterBase { +export interface ResourceTypeFilterResourceNameFilter extends ResourceNameFilter { } // @public (undocumented) export interface Routes { - (path: "/azureKeyVaults/{keyVaultName}", keyVaultName: string): KeyVaultConnectionsDelete; + (path: "/azureKeyVaults/{keyVaultName}", keyVaultName: string): KeyVaultConnectionsGet; (path: "/azureKeyVaults"): KeyVaultConnectionsListAll; - (path: "/classificationrules/{classificationRuleName}", classificationRuleName: string): ClassificationRulesDelete; + (path: "/classificationrules/{classificationRuleName}", classificationRuleName: string): ClassificationRulesGet; (path: "/classificationrules"): ClassificationRulesListAll; (path: "/classificationrules/{classificationRuleName}/versions", classificationRuleName: string): ClassificationRulesListVersionsByClassificationRuleName; (path: "/classificationrules/{classificationRuleName}/versions/{classificationRuleVersion}/:tag", classificationRuleName: string, classificationRuleVersion: string): ClassificationRulesTagClassificationVersion; - (path: "/datasources/{dataSourceName}", dataSourceName: string): DataSourcesDelete; + (path: "/datasources/{dataSourceName}", dataSourceName: string): DataSourcesCreateOrUpdate; (path: "/datasources"): DataSourcesListAll; - (path: "/datasources/{dataSourceName}/scans/{scanName}/filters/custom", dataSourceName: string, scanName: string): FiltersCreateOrUpdate; - (path: "/datasources/{dataSourceName}/scans/{scanName}", dataSourceName: string, scanName: string): ScansDelete; + (path: "/datasources/{dataSourceName}/scans/{scanName}/filters/custom", dataSourceName: string, scanName: string): FiltersGet; + (path: "/datasources/{dataSourceName}/scans/{scanName}", dataSourceName: string, scanName: string): ScansCreateOrUpdate; (path: "/datasources/{dataSourceName}/scans", dataSourceName: string): ScansListByDataSource; (path: "/datasources/{dataSourceName}/scans/{scanName}/runs/{runId}", dataSourceName: string, scanName: string, runId: string): ScanResultRunScan; (path: "/datasources/{dataSourceName}/scans/{scanName}/runs/{runId}/:cancel", dataSourceName: string, scanName: string, runId: string): ScanResultCancelScan; (path: "/datasources/{dataSourceName}/scans/{scanName}/runs", dataSourceName: string, scanName: string): ScanResultListScanHistory; - (path: "/scanrulesets/{scanRulesetName}", scanRulesetName: string): ScanRulesetsDelete; + (path: "/scanrulesets/{scanRulesetName}", scanRulesetName: string): ScanRulesetsGet; (path: "/scanrulesets"): ScanRulesetsListAll; (path: "/systemScanRulesets"): SystemScanRulesetsListAll; (path: "/systemScanRulesets/datasources/{dataSourceType}", dataSourceType: string): SystemScanRulesetsGet; (path: "/systemScanRulesets/versions/{version}", version: string): SystemScanRulesetsGetByVersion; (path: "/systemScanRulesets/versions/latest"): SystemScanRulesetsGetLatest; (path: "/systemScanRulesets/versions"): SystemScanRulesetsListVersionsByDataSource; - (path: "/datasources/{dataSourceName}/scans/{scanName}/triggers/default", dataSourceName: string, scanName: string): TriggersDeleteTrigger; + (path: "/datasources/{dataSourceName}/scans/{scanName}/triggers/default", dataSourceName: string, scanName: string): TriggersGetTrigger; } // @public (undocumented) -export type SapEccCredentialScan = SapEccCredentialScanBase & Scan; - -// @public (undocumented) -export interface SapEccCredentialScanBase { +export interface SapEccCredentialScan extends ScanBase { + // (undocumented) + kind: "SapEccSapEccCredential"; // (undocumented) properties?: SapEccCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type SapEccCredentialScanProperties = SapEccCredentialScanPropertiesBase & MitiScanProperties; - -// @public (undocumented) -export type SapEccCredentialScanPropertiesAutoGenerated = SapEccCredentialScanPropertiesAutoGeneratedBase & SapEccCredentialScanProperties; - -// @public (undocumented) -export interface SapEccCredentialScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface SapEccCredentialScanPropertiesBase { +export interface SapEccCredentialScanProperties extends MitiScanProperties { // (undocumented) clientId?: string; // (undocumented) @@ -3355,33 +2643,27 @@ export interface SapEccCredentialScanPropertiesBase { } // @public (undocumented) -export type SapEccCredentialScanPropertiesCredential = SapEccCredentialScanPropertiesCredentialBase & CredentialReference; - -// @public (undocumented) -export interface SapEccCredentialScanPropertiesCredentialBase { +export interface SapEccCredentialScanPropertiesAutoGenerated extends SapEccCredentialScanProperties { } // @public (undocumented) -export type SapEccDataSource = SapEccDataSourceBase & DataSource; +export interface SapEccCredentialScanPropertiesCredential extends CredentialReference { +} // @public (undocumented) -export interface SapEccDataSourceBase { +export interface SapEccDataSource extends DataSourceBase { + // (undocumented) + kind: "SapEcc"; // (undocumented) properties?: SapEccDataSourceProperties; } // @public (undocumented) -export type SapEccDataSourceProperties = SapEccDataSourcePropertiesBase & SapEccProperties; - -// @public (undocumented) -export interface SapEccDataSourcePropertiesBase { +export interface SapEccDataSourceProperties extends SapEccProperties { } // @public (undocumented) -export type SapEccProperties = SapEccPropertiesBase & DataSourceProperties; - -// @public (undocumented) -export interface SapEccPropertiesBase { +export interface SapEccProperties extends DataSourceProperties { // (undocumented) applicationServer?: string; // (undocumented) @@ -3389,65 +2671,43 @@ export interface SapEccPropertiesBase { } // @public (undocumented) -export type SapEccScanRuleset = SapEccScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface SapEccScanRulesetBase { +export interface SapEccScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "SapEcc"; // (undocumented) properties?: SapEccScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type SapEccScanRulesetProperties = SapEccScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type SapEccScanRulesetPropertiesAutoGenerated = SapEccScanRulesetPropertiesAutoGeneratedBase & SapEccScanRulesetProperties; - -// @public (undocumented) -export interface SapEccScanRulesetPropertiesAutoGeneratedBase { +export interface SapEccScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export interface SapEccScanRulesetPropertiesBase { +export interface SapEccScanRulesetPropertiesAutoGenerated extends SapEccScanRulesetProperties { } // @public (undocumented) -export type SapEccSystemScanRuleset = SapEccSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface SapEccSystemScanRulesetBase { +export interface SapEccSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: SapEccSystemScanRulesetProperties; } // @public (undocumented) -export type SapEccSystemScanRulesetProperties = SapEccSystemScanRulesetPropertiesBase & SapEccScanRulesetProperties; - -// @public (undocumented) -export interface SapEccSystemScanRulesetPropertiesBase { +export interface SapEccSystemScanRulesetProperties extends SapEccScanRulesetProperties { } // @public (undocumented) -export type SapEccUserPassScan = SapEccUserPassScanBase & Scan; - -// @public (undocumented) -export interface SapEccUserPassScanBase { +export interface SapEccUserPassScan extends ScanBase { + // (undocumented) + kind: "SapEccSapEccUserPass"; // (undocumented) properties?: SapEccUserPassScanPropertiesAutoGenerated; } // @public (undocumented) -export type SapEccUserPassScanProperties = SapEccUserPassScanPropertiesBase & MitiScanProperties; - -// @public (undocumented) -export type SapEccUserPassScanPropertiesAutoGenerated = SapEccUserPassScanPropertiesAutoGeneratedBase & SapEccUserPassScanProperties; - -// @public (undocumented) -export interface SapEccUserPassScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface SapEccUserPassScanPropertiesBase { +export interface SapEccUserPassScanProperties extends MitiScanProperties { // (undocumented) clientId?: string; // (undocumented) @@ -3459,26 +2719,23 @@ export interface SapEccUserPassScanPropertiesBase { } // @public (undocumented) -export type SapS4HanaDataSource = SapS4HanaDataSourceBase & DataSource; +export interface SapEccUserPassScanPropertiesAutoGenerated extends SapEccUserPassScanProperties { +} // @public (undocumented) -export interface SapS4HanaDataSourceBase { +export interface SapS4HanaDataSource extends DataSourceBase { + // (undocumented) + kind: "SapS4Hana"; // (undocumented) properties?: SapS4HanaDataSourceProperties; } // @public (undocumented) -export type SapS4HanaDataSourceProperties = SapS4HanaDataSourcePropertiesBase & SapS4HanaProperties; - -// @public (undocumented) -export interface SapS4HanaDataSourcePropertiesBase { +export interface SapS4HanaDataSourceProperties extends SapS4HanaProperties { } // @public (undocumented) -export type SapS4HanaProperties = SapS4HanaPropertiesBase & DataSourceProperties; - -// @public (undocumented) -export interface SapS4HanaPropertiesBase { +export interface SapS4HanaProperties extends DataSourceProperties { // (undocumented) applicationServer?: string; // (undocumented) @@ -3486,26 +2743,15 @@ export interface SapS4HanaPropertiesBase { } // @public (undocumented) -export type SapS4HanaSapS4HanaCredentialScan = SapS4HanaSapS4HanaCredentialScanBase & Scan; - -// @public (undocumented) -export interface SapS4HanaSapS4HanaCredentialScanBase { +export interface SapS4HanaSapS4HanaCredentialScan extends ScanBase { + // (undocumented) + kind: "SapS4HanaSapS4HanaCredential"; // (undocumented) properties?: SapS4HanaSapS4HanaCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type SapS4HanaSapS4HanaCredentialScanProperties = SapS4HanaSapS4HanaCredentialScanPropertiesBase & MitiScanProperties; - -// @public (undocumented) -export type SapS4HanaSapS4HanaCredentialScanPropertiesAutoGenerated = SapS4HanaSapS4HanaCredentialScanPropertiesAutoGeneratedBase & SapS4HanaSapS4HanaCredentialScanProperties; - -// @public (undocumented) -export interface SapS4HanaSapS4HanaCredentialScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface SapS4HanaSapS4HanaCredentialScanPropertiesBase { +export interface SapS4HanaSapS4HanaCredentialScanProperties extends MitiScanProperties { // (undocumented) clientId?: string; // (undocumented) @@ -3515,33 +2761,23 @@ export interface SapS4HanaSapS4HanaCredentialScanPropertiesBase { } // @public (undocumented) -export type SapS4HanaSapS4HanaCredentialScanPropertiesCredential = SapS4HanaSapS4HanaCredentialScanPropertiesCredentialBase & CredentialReference; - -// @public (undocumented) -export interface SapS4HanaSapS4HanaCredentialScanPropertiesCredentialBase { +export interface SapS4HanaSapS4HanaCredentialScanPropertiesAutoGenerated extends SapS4HanaSapS4HanaCredentialScanProperties { } // @public (undocumented) -export type SapS4HanaSapS4HanaUserPassScan = SapS4HanaSapS4HanaUserPassScanBase & Scan; +export interface SapS4HanaSapS4HanaCredentialScanPropertiesCredential extends CredentialReference { +} // @public (undocumented) -export interface SapS4HanaSapS4HanaUserPassScanBase { +export interface SapS4HanaSapS4HanaUserPassScan extends ScanBase { + // (undocumented) + kind: "SapS4HanaSapS4HanaUserPass"; // (undocumented) properties?: SapS4HanaSapS4HanaUserPassScanPropertiesAutoGenerated; } // @public (undocumented) -export type SapS4HanaSapS4HanaUserPassScanProperties = SapS4HanaSapS4HanaUserPassScanPropertiesBase & MitiScanProperties; - -// @public (undocumented) -export type SapS4HanaSapS4HanaUserPassScanPropertiesAutoGenerated = SapS4HanaSapS4HanaUserPassScanPropertiesAutoGeneratedBase & SapS4HanaSapS4HanaUserPassScanProperties; - -// @public (undocumented) -export interface SapS4HanaSapS4HanaUserPassScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface SapS4HanaSapS4HanaUserPassScanPropertiesBase { +export interface SapS4HanaSapS4HanaUserPassScanProperties extends MitiScanProperties { // (undocumented) clientId?: string; // (undocumented) @@ -3553,68 +2789,55 @@ export interface SapS4HanaSapS4HanaUserPassScanPropertiesBase { } // @public (undocumented) -export type SapS4HanaScanRuleset = SapS4HanaScanRulesetBase & ScanRuleset; +export interface SapS4HanaSapS4HanaUserPassScanPropertiesAutoGenerated extends SapS4HanaSapS4HanaUserPassScanProperties { +} // @public (undocumented) -export interface SapS4HanaScanRulesetBase { +export interface SapS4HanaScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "SapS4Hana"; // (undocumented) properties?: SapS4HanaScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type SapS4HanaScanRulesetProperties = SapS4HanaScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type SapS4HanaScanRulesetPropertiesAutoGenerated = SapS4HanaScanRulesetPropertiesAutoGeneratedBase & SapS4HanaScanRulesetProperties; - -// @public (undocumented) -export interface SapS4HanaScanRulesetPropertiesAutoGeneratedBase { +export interface SapS4HanaScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export interface SapS4HanaScanRulesetPropertiesBase { +export interface SapS4HanaScanRulesetPropertiesAutoGenerated extends SapS4HanaScanRulesetProperties { } // @public (undocumented) -export type SapS4HanaSystemScanRuleset = SapS4HanaSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface SapS4HanaSystemScanRulesetBase { +export interface SapS4HanaSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: SapS4HanaSystemScanRulesetProperties; } // @public (undocumented) -export type SapS4HanaSystemScanRulesetProperties = SapS4HanaSystemScanRulesetPropertiesBase & SapS4HanaScanRulesetProperties; - -// @public (undocumented) -export interface SapS4HanaSystemScanRulesetPropertiesBase { +export interface SapS4HanaSystemScanRulesetProperties extends SapS4HanaScanRulesetProperties { } // @public (undocumented) -export type Scan = ScanBase & ProxyResource; +export type Scan = ScanBase | AzureSubscriptionCredentialScan | AzureSubscriptionMsiScan | AzureResourceGroupCredentialScan | AzureResourceGroupMsiScan | AzureSynapseWorkspaceCredentialScan | AzureSynapseWorkspaceMsiScan | AzureSynapseCredentialScan | AzureSynapseMsiScan | AdlsGen1CredentialScan | AdlsGen1MsiScan | AdlsGen2CredentialScan | AdlsGen2MsiScan | AmazonAccountCredentialScan | AmazonS3CredentialScan | AmazonS3RoleARNScan | AmazonSqlCredentialScan | AzureCosmosDbCredentialScan | AzureDataExplorerCredentialScan | AzureDataExplorerMsiScan | AzureFileServiceCredentialScan | AzureSqlDatabaseCredentialScan | AzureSqlDatabaseMsiScan | AmazonPostgreSqlCredentialScan | AzurePostgreSqlCredentialScan | SqlServerDatabaseCredentialScan | AzureSqlDatabaseManagedInstanceCredentialScan | AzureSqlDatabaseManagedInstanceMsiScan | AzureSqlDataWarehouseCredentialScan | AzureSqlDataWarehouseMsiScan | AzureMySqlCredentialScan | AzureStorageCredentialScan | AzureStorageMsiScan | TeradataCredentialScan | TeradataUserPassScan | TeradataUserPassScanAutoGenerated | OracleCredentialScan | OracleUserPassScan | SapS4HanaSapS4HanaCredentialScan | SapS4HanaSapS4HanaUserPassScan | SapEccCredentialScan | SapEccUserPassScan | PowerBIDelegatedScan | PowerBIMsiScan; // @public (undocumented) -export type ScanAuthorizationType = "AzureSubscriptionCredential" | "AzureSubscriptionMsi" | "AzureResourceGroupCredential" | "AzureResourceGroupMsi" | "AzureSynapseWorkspaceCredential" | "AzureSynapseWorkspaceMsi" | "AzureSynapseCredential" | "AzureSynapseMsi" | "AdlsGen1Credential" | "AdlsGen1Msi" | "AdlsGen2Credential" | "AdlsGen2Msi" | "AmazonAccountCredential" | "AmazonS3Credential" | "AmazonS3RoleARN" | "AmazonSqlCredential" | "AzureCosmosDbCredential" | "AzureDataExplorerCredential" | "AzureDataExplorerMsi" | "AzureFileServiceCredential" | "AzureSqlDatabaseCredential" | "AzureSqlDatabaseMsi" | "AmazonPostgreSqlCredential" | "AzurePostgreSqlCredential" | "SqlServerDatabaseCredential" | "AzureSqlDatabaseManagedInstanceCredential" | "AzureSqlDatabaseManagedInstanceMsi" | "AzureSqlDataWarehouseCredential" | "AzureSqlDataWarehouseMsi" | "AzureMySqlCredential" | "AzureStorageCredential" | "AzureStorageMsi" | "TeradataTeradataCredential" | "TeradataTeradataUserPass" | "TeradataUserPass" | "OracleOracleCredential" | "OracleOracleUserPass" | "SapS4HanaSapS4HanaCredential" | "SapS4HanaSapS4HanaUserPass" | "SapEccSapEccCredential" | "SapEccSapEccUserPass" | "PowerBIDelegated" | "PowerBIMsi"; - -// @public (undocumented) -export interface ScanBase { +export interface ScanBase extends ProxyResource { // (undocumented) - kind: ScanAuthorizationType; + kind: "Scan" | "AzureSubscriptionCredential" | "AzureSubscriptionMsi" | "AzureResourceGroupCredential" | "AzureResourceGroupMsi" | "AzureSynapseWorkspaceCredential" | "AzureSynapseWorkspaceMsi" | "AzureSynapseCredential" | "AzureSynapseMsi" | "AdlsGen1Credential" | "AdlsGen1Msi" | "AdlsGen2Credential" | "AdlsGen2Msi" | "AmazonAccountCredential" | "AmazonS3Credential" | "AmazonS3RoleARN" | "AmazonSqlCredential" | "AzureCosmosDbCredential" | "AzureDataExplorerCredential" | "AzureDataExplorerMsi" | "AzureFileServiceCredential" | "AzureSqlDatabaseCredential" | "AzureSqlDatabaseMsi" | "AmazonPostgreSqlCredential" | "AzurePostgreSqlCredential" | "SqlServerDatabaseCredential" | "AzureSqlDatabaseManagedInstanceCredential" | "AzureSqlDatabaseManagedInstanceMsi" | "AzureSqlDataWarehouseCredential" | "AzureSqlDataWarehouseMsi" | "AzureMySqlCredential" | "AzureStorageCredential" | "AzureStorageMsi" | "TeradataTeradataCredential" | "TeradataUserPass" | "TeradataTeradataUserPass" | "OracleOracleCredential" | "OracleOracleUserPass" | "SapS4HanaSapS4HanaCredential" | "SapS4HanaSapS4HanaUserPass" | "SapEccSapEccCredential" | "SapEccSapEccUserPass" | "PowerBIDelegated" | "PowerBIMsi"; // (undocumented) - scanResults?: ScanResult[]; + scanResults?: Array; } // @public (undocumented) export interface ScanDiagnostics { - exceptionCountMap?: ScanDiagnosticsExceptionCountMapDictionary; + exceptionCountMap?: Record; // (undocumented) - notifications?: Notification[]; + notifications?: Array; } -// @public (undocumented) -export type ScanDiagnosticsExceptionCountMapDictionary = Record; - // @public (undocumented) export interface ScanHistoryList { // (undocumented) @@ -3622,12 +2845,9 @@ export interface ScanHistoryList { // (undocumented) nextLink?: string; // (undocumented) - value?: ScanResult[]; + value?: Array; } -// @public (undocumented) -export type ScanLevelType = "Full" | "Incremental"; - // @public (undocumented) export interface ScanList { // (undocumented) @@ -3635,35 +2855,31 @@ export interface ScanList { // (undocumented) nextLink?: string; // (undocumented) - value?: Scan[]; + value?: Array; } // @public (undocumented) export interface ScanningRule { // (undocumented) - customFileExtensions?: CustomFileExtension[]; + customFileExtensions?: Array; // (undocumented) - fileExtensions?: "AVRO" | "ORC" | "PARQUET" | "JSON" | "TXT" | "XML" | "Documents" | "CSV" | "PSV" | "SSV" | "TSV" | "GZ" | "DOC" | "DOCM" | "DOCX" | "DOT" | "ODP" | "ODS" | "ODT" | "PDF" | "POT" | "PPS" | "PPSX" | "PPT" | "PPTM" | "PPTX" | "XLC" | "XLS" | "XLSB" | "XLSM" | "XLSX" | "XLT"[]; + fileExtensions?: Array<"AVRO" | "ORC" | "PARQUET" | "JSON" | "TXT" | "XML" | "Documents" | "CSV" | "PSV" | "SSV" | "TSV" | "GZ" | "DOC" | "DOCM" | "DOCX" | "DOT" | "ODP" | "ODS" | "ODT" | "PDF" | "POT" | "PPS" | "PPSX" | "PPT" | "PPTM" | "PPTX" | "XLC" | "XLS" | "XLSB" | "XLSM" | "XLSX" | "XLT">; } // @public (undocumented) -export type ScanningRuleScanRulesetProperties = ScanningRuleScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export interface ScanningRuleScanRulesetPropertiesBase { +export interface ScanningRuleScanRulesetProperties extends ScanRulesetProperties { // (undocumented) scanningRule?: ScanningRuleScanRulesetPropertiesScanningRule; } // @public (undocumented) -export type ScanningRuleScanRulesetPropertiesScanningRule = ScanningRuleScanRulesetPropertiesScanningRuleBase & ScanningRule; - -// @public (undocumented) -export interface ScanningRuleScanRulesetPropertiesScanningRuleBase { +export interface ScanningRuleScanRulesetPropertiesScanningRule extends ScanningRule { } // @public (undocumented) export interface ScanProperties { + // (undocumented) + collection?: ScanPropertiesCollection; // (undocumented) connectedVia?: ScanPropertiesConnectedVia; // (undocumented) @@ -3673,16 +2889,17 @@ export interface ScanProperties { // (undocumented) scanRulesetName?: string; // (undocumented) - scanRulesetType?: ScanRulesetType; + scanRulesetType?: "Custom" | "System"; // (undocumented) workers?: number; } // @public (undocumented) -export type ScanPropertiesConnectedVia = ScanPropertiesConnectedViaBase & ConnectedVia; +export interface ScanPropertiesCollection extends CollectionReference { +} // @public (undocumented) -export interface ScanPropertiesConnectedViaBase { +export interface ScanPropertiesConnectedVia extends ConnectedVia { } // @public (undocumented) @@ -3692,7 +2909,7 @@ export interface ScanResult { // (undocumented) assetsDiscovered?: number; // (undocumented) - dataSourceType?: DataSourceType; + dataSourceType?: "None" | "AzureSubscription" | "AzureResourceGroup" | "AzureSynapseWorkspace" | "AzureSynapse" | "AdlsGen1" | "AdlsGen2" | "AmazonAccount" | "AmazonS3" | "AmazonSql" | "AzureCosmosDb" | "AzureDataExplorer" | "AzureFileService" | "AzureSqlDatabase" | "AmazonPostgreSql" | "AzurePostgreSql" | "SqlServerDatabase" | "AzureSqlDatabaseManagedInstance" | "AzureSqlDataWarehouse" | "AzureMySql" | "AzureStorage" | "Teradata" | "Oracle" | "SapS4Hana" | "SapEcc" | "PowerBI"; // (undocumented) diagnostics?: ScanResultDiagnostics; // (undocumented) @@ -3714,9 +2931,9 @@ export interface ScanResult { // (undocumented) runType?: string; // (undocumented) - scanLevelType?: ScanLevelType; + scanLevelType?: "Full" | "Incremental"; // (undocumented) - scanRulesetType?: ScanRulesetType; + scanRulesetType?: "Custom" | "System"; // (undocumented) scanRulesetVersion?: number; // (undocumented) @@ -3750,17 +2967,11 @@ export interface ScanResultCancelScandefaultResponse extends HttpResponse { export type ScanResultCancelScanParameters = RequestParameters; // @public (undocumented) -export type ScanResultDiagnostics = ScanResultDiagnosticsBase & ScanDiagnostics; - -// @public (undocumented) -export interface ScanResultDiagnosticsBase { +export interface ScanResultDiagnostics extends ScanDiagnostics { } // @public (undocumented) -export type ScanResultError = ScanResultErrorBase & ErrorModel; - -// @public (undocumented) -export interface ScanResultErrorBase { +export interface ScanResultError extends ErrorModel { } // @public (undocumented) @@ -3809,7 +3020,7 @@ export interface ScanResultRunScandefaultResponse extends HttpResponse { } // @public (undocumented) -export type ScanResultRunScanParameters = RequestParameters & ScanResultRunScanQueryParam; +export type ScanResultRunScanParameters = ScanResultRunScanQueryParam & RequestParameters; // @public (undocumented) export interface ScanResultRunScanQueryParam { @@ -3820,16 +3031,16 @@ export interface ScanResultRunScanQueryParam { // @public (undocumented) export interface ScanResultRunScanQueryParamProperties { // (undocumented) - scanLevel?: ScanLevelType; + scanLevel?: "Full" | "Incremental"; } // @public (undocumented) -export type ScanRuleset = ScanRulesetBase & VersionedScanRuleset; +export type ScanRuleset = ScanRulesetBase | AzureSubscriptionScanRuleset | AzureResourceGroupScanRuleset | AzureSynapseWorkspaceScanRuleset | AzureSynapseScanRuleset | AdlsGen1ScanRuleset | AdlsGen2ScanRuleset | AmazonAccountScanRuleset | AmazonS3ScanRuleset | AmazonSqlScanRuleset | AzureCosmosDbScanRuleset | AzureDataExplorerScanRuleset | AzureFileServiceScanRuleset | AzureSqlDatabaseScanRuleset | AmazonPostgreSqlScanRuleset | AzurePostgreSqlScanRuleset | SqlServerDatabaseScanRuleset | AzureSqlDatabaseManagedInstanceScanRuleset | AzureSqlDataWarehouseScanRuleset | AzureMySqlScanRuleset | AzureStorageScanRuleset | TeradataScanRuleset | OracleScanRuleset | SapS4HanaScanRuleset | SapEccScanRuleset | PowerBIScanRuleset; // @public (undocumented) -export interface ScanRulesetBase { +export interface ScanRulesetBase extends VersionedScanRuleset { // (undocumented) - kind: DataSourceType; + kind: "ScanRuleset" | "AzureSubscription" | "AzureResourceGroup" | "AzureSynapseWorkspace" | "AzureSynapse" | "AdlsGen1" | "AdlsGen2" | "AmazonAccount" | "AmazonS3" | "AmazonSql" | "AzureCosmosDb" | "AzureDataExplorer" | "AzureFileService" | "AzureSqlDatabase" | "AmazonPostgreSql" | "AzurePostgreSql" | "SqlServerDatabase" | "AzureSqlDatabaseManagedInstance" | "AzureSqlDataWarehouse" | "AzureMySql" | "AzureStorage" | "Teradata" | "Oracle" | "SapS4Hana" | "SapEcc" | "PowerBI"; } // @public (undocumented) @@ -3839,7 +3050,7 @@ export interface ScanRulesetList { // (undocumented) nextLink?: string; // (undocumented) - value?: ScanRuleset[]; + value?: Array; } // @public (undocumented) @@ -3849,9 +3060,9 @@ export interface ScanRulesetProperties { // (undocumented) description?: string; // (undocumented) - excludedSystemClassifications?: string[]; + excludedSystemClassifications?: Array; // (undocumented) - includedCustomClassificationRuleNames?: string[]; + includedCustomClassificationRuleNames?: Array; // (undocumented) lastModifiedAt?: Date; } @@ -3887,14 +3098,7 @@ export interface ScanRulesetsCreateOrUpdatedefaultResponse extends HttpResponse } // @public (undocumented) -export type ScanRulesetsCreateOrUpdateParameters = RequestParameters & ScanRulesetsCreateOrUpdateBodyParam; - -// @public (undocumented) -export interface ScanRulesetsDelete { - delete(options?: ScanRulesetsDeleteParameters): Promise; - get(options?: ScanRulesetsGetParameters): Promise; - put(options?: ScanRulesetsCreateOrUpdateParameters): Promise; -} +export type ScanRulesetsCreateOrUpdateParameters = ScanRulesetsCreateOrUpdateBodyParam & RequestParameters; // @public export interface ScanRulesetsDelete200Response extends HttpResponse { @@ -3906,6 +3110,8 @@ export interface ScanRulesetsDelete200Response extends HttpResponse { // @public export interface ScanRulesetsDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -3921,6 +3127,13 @@ export interface ScanRulesetsDeletedefaultResponse extends HttpResponse { // @public (undocumented) export type ScanRulesetsDeleteParameters = RequestParameters; +// @public (undocumented) +export interface ScanRulesetsGet { + delete(options?: ScanRulesetsDeleteParameters): Promise; + get(options?: ScanRulesetsGetParameters): Promise; + put(options?: ScanRulesetsCreateOrUpdateParameters): Promise; +} + // @public export interface ScanRulesetsGet200Response extends HttpResponse { // (undocumented) @@ -3965,10 +3178,11 @@ export interface ScanRulesetsListAlldefaultResponse extends HttpResponse { export type ScanRulesetsListAllParameters = RequestParameters; // @public (undocumented) -export type ScanRulesetStatus = "Enabled" | "Disabled"; - -// @public (undocumented) -export type ScanRulesetType = "Custom" | "System"; +export interface ScansCreateOrUpdate { + delete(options?: ScansDeleteParameters): Promise; + get(options?: ScansGetParameters): Promise; + put(options: ScansCreateOrUpdateParameters): Promise; +} // @public export interface ScansCreateOrUpdate200Response extends HttpResponse { @@ -4001,14 +3215,7 @@ export interface ScansCreateOrUpdatedefaultResponse extends HttpResponse { } // @public (undocumented) -export type ScansCreateOrUpdateParameters = RequestParameters & ScansCreateOrUpdateBodyParam; - -// @public (undocumented) -export interface ScansDelete { - delete(options?: ScansDeleteParameters): Promise; - get(options?: ScansGetParameters): Promise; - put(options: ScansCreateOrUpdateParameters): Promise; -} +export type ScansCreateOrUpdateParameters = ScansCreateOrUpdateBodyParam & RequestParameters; // @public export interface ScansDelete200Response extends HttpResponse { @@ -4020,6 +3227,8 @@ export interface ScansDelete200Response extends HttpResponse { // @public export interface ScansDelete204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -4079,97 +3288,71 @@ export interface ScansListByDataSourcedefaultResponse extends HttpResponse { export type ScansListByDataSourceParameters = RequestParameters; // @public (undocumented) -export type SqlServerDatabaseCredentialScan = SqlServerDatabaseCredentialScanBase & Scan; - -// @public (undocumented) -export interface SqlServerDatabaseCredentialScanBase { +export interface SqlServerDatabaseCredentialScan extends ScanBase { + // (undocumented) + kind: "SqlServerDatabaseCredential"; // (undocumented) properties?: SqlServerDatabaseCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type SqlServerDatabaseCredentialScanProperties = SqlServerDatabaseCredentialScanPropertiesBase & AzureSqlCredentialScanProperties; - -// @public (undocumented) -export type SqlServerDatabaseCredentialScanPropertiesAutoGenerated = SqlServerDatabaseCredentialScanPropertiesAutoGeneratedBase & SqlServerDatabaseCredentialScanProperties; - -// @public (undocumented) -export interface SqlServerDatabaseCredentialScanPropertiesAutoGeneratedBase { +export interface SqlServerDatabaseCredentialScanProperties extends AzureSqlCredentialScanProperties { } // @public (undocumented) -export interface SqlServerDatabaseCredentialScanPropertiesBase { +export interface SqlServerDatabaseCredentialScanPropertiesAutoGenerated extends SqlServerDatabaseCredentialScanProperties { } // @public (undocumented) -export type SqlServerDatabaseDataSource = SqlServerDatabaseDataSourceBase & DataSource; - -// @public (undocumented) -export interface SqlServerDatabaseDataSourceBase { +export interface SqlServerDatabaseDataSource extends DataSourceBase { + // (undocumented) + kind: "SqlServerDatabase"; // (undocumented) properties?: SqlServerDatabaseDataSourceProperties; } // @public (undocumented) -export type SqlServerDatabaseDataSourceProperties = SqlServerDatabaseDataSourcePropertiesBase & SqlServerDatabaseProperties; - -// @public (undocumented) -export interface SqlServerDatabaseDataSourcePropertiesBase { +export interface SqlServerDatabaseDataSourceProperties extends SqlServerDatabaseProperties { } // @public (undocumented) -export type SqlServerDatabaseProperties = SqlServerDatabasePropertiesBase & AzureDataSourceProperties; - -// @public (undocumented) -export interface SqlServerDatabasePropertiesBase { +export interface SqlServerDatabaseProperties extends AzureDataSourceProperties { // (undocumented) serverEndpoint?: string; } // @public (undocumented) -export type SqlServerDatabaseScanRuleset = SqlServerDatabaseScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface SqlServerDatabaseScanRulesetBase { +export interface SqlServerDatabaseScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "SqlServerDatabase"; // (undocumented) properties?: SqlServerDatabaseScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type SqlServerDatabaseScanRulesetProperties = SqlServerDatabaseScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type SqlServerDatabaseScanRulesetPropertiesAutoGenerated = SqlServerDatabaseScanRulesetPropertiesAutoGeneratedBase & SqlServerDatabaseScanRulesetProperties; - -// @public (undocumented) -export interface SqlServerDatabaseScanRulesetPropertiesAutoGeneratedBase { +export interface SqlServerDatabaseScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export interface SqlServerDatabaseScanRulesetPropertiesBase { +export interface SqlServerDatabaseScanRulesetPropertiesAutoGenerated extends SqlServerDatabaseScanRulesetProperties { } // @public (undocumented) -export type SqlServerDatabaseSystemScanRuleset = SqlServerDatabaseSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface SqlServerDatabaseSystemScanRulesetBase { +export interface SqlServerDatabaseSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: SqlServerDatabaseSystemScanRulesetProperties; } // @public (undocumented) -export type SqlServerDatabaseSystemScanRulesetProperties = SqlServerDatabaseSystemScanRulesetPropertiesBase & SqlServerDatabaseScanRulesetProperties; - -// @public (undocumented) -export interface SqlServerDatabaseSystemScanRulesetPropertiesBase { +export interface SqlServerDatabaseSystemScanRulesetProperties extends SqlServerDatabaseScanRulesetProperties { } // @public (undocumented) -export type SystemClassificationRule = SystemClassificationRuleBase & ClassificationRule; - -// @public (undocumented) -export interface SystemClassificationRuleBase { +export interface SystemClassificationRule extends ClassificationRuleBase { + // (undocumented) + kind: "System"; // (undocumented) properties?: SystemClassificationRulePropertiesAutoGenerated; } @@ -4185,25 +3368,22 @@ export interface SystemClassificationRuleProperties { // (undocumented) lastModifiedAt?: Date; // (undocumented) - ruleStatus?: ClassificationRuleStatus; + ruleStatus?: "Enabled" | "Disabled"; // (undocumented) version?: number; } // @public (undocumented) -export type SystemClassificationRulePropertiesAutoGenerated = SystemClassificationRulePropertiesAutoGeneratedBase & SystemClassificationRuleProperties; - -// @public (undocumented) -export interface SystemClassificationRulePropertiesAutoGeneratedBase { +export interface SystemClassificationRulePropertiesAutoGenerated extends SystemClassificationRuleProperties { } // @public (undocumented) -export type SystemScanRuleset = SystemScanRulesetBase & VersionedScanRuleset; +export type SystemScanRuleset = SystemScanRulesetBase | AzureSubscriptionSystemScanRuleset | AzureResourceGroupSystemScanRuleset | AzureSynapseWorkspaceSystemScanRuleset | AzureSynapseSystemScanRuleset | AdlsGen1SystemScanRuleset | AdlsGen2SystemScanRuleset | AmazonAccountSystemScanRuleset | AmazonS3SystemScanRuleset | AmazonSqlSystemScanRuleset | AzureCosmosDbSystemScanRuleset | AzureDataExplorerSystemScanRuleset | AzureFileServiceSystemScanRuleset | AzureSqlDatabaseSystemScanRuleset | AmazonPostgreSqlSystemScanRuleset | AzurePostgreSqlSystemScanRuleset | SqlServerDatabaseSystemScanRuleset | AzureSqlDatabaseManagedInstanceSystemScanRuleset | AzureSqlDataWarehouseSystemScanRuleset | AzureMySqlSystemScanRuleset | AzureStorageSystemScanRuleset | TeradataSystemScanRuleset | OracleSystemScanRuleset | SapS4HanaSystemScanRuleset | SapEccSystemScanRuleset | PowerBISystemScanRuleset; // @public (undocumented) -export interface SystemScanRulesetBase { +export interface SystemScanRulesetBase extends VersionedScanRuleset { // (undocumented) - kind: DataSourceType; + kind: "SystemScanRuleset" | "None"; } // @public (undocumented) @@ -4213,7 +3393,7 @@ export interface SystemScanRulesetList { // (undocumented) nextLink?: string; // (undocumented) - value?: SystemScanRuleset[]; + value?: Array; } // @public (undocumented) @@ -4251,7 +3431,7 @@ export interface SystemScanRulesetsGetByVersiondefaultResponse extends HttpRespo } // @public (undocumented) -export type SystemScanRulesetsGetByVersionParameters = RequestParameters & SystemScanRulesetsGetByVersionQueryParam; +export type SystemScanRulesetsGetByVersionParameters = SystemScanRulesetsGetByVersionQueryParam & RequestParameters; // @public (undocumented) export interface SystemScanRulesetsGetByVersionQueryParam { @@ -4262,7 +3442,7 @@ export interface SystemScanRulesetsGetByVersionQueryParam { // @public (undocumented) export interface SystemScanRulesetsGetByVersionQueryParamProperties { // (undocumented) - dataSourceType?: DataSourceType; + dataSourceType?: "None" | "AzureSubscription" | "AzureResourceGroup" | "AzureSynapseWorkspace" | "AzureSynapse" | "AdlsGen1" | "AdlsGen2" | "AmazonAccount" | "AmazonS3" | "AmazonSql" | "AzureCosmosDb" | "AzureDataExplorer" | "AzureFileService" | "AzureSqlDatabase" | "AmazonPostgreSql" | "AzurePostgreSql" | "SqlServerDatabase" | "AzureSqlDatabaseManagedInstance" | "AzureSqlDataWarehouse" | "AzureMySql" | "AzureStorage" | "Teradata" | "Oracle" | "SapS4Hana" | "SapEcc" | "PowerBI"; } // @public @@ -4295,7 +3475,7 @@ export interface SystemScanRulesetsGetLatestdefaultResponse extends HttpResponse } // @public (undocumented) -export type SystemScanRulesetsGetLatestParameters = RequestParameters & SystemScanRulesetsGetLatestQueryParam; +export type SystemScanRulesetsGetLatestParameters = SystemScanRulesetsGetLatestQueryParam & RequestParameters; // @public (undocumented) export interface SystemScanRulesetsGetLatestQueryParam { @@ -4306,7 +3486,7 @@ export interface SystemScanRulesetsGetLatestQueryParam { // @public (undocumented) export interface SystemScanRulesetsGetLatestQueryParamProperties { // (undocumented) - dataSourceType?: DataSourceType; + dataSourceType?: "None" | "AzureSubscription" | "AzureResourceGroup" | "AzureSynapseWorkspace" | "AzureSynapse" | "AdlsGen1" | "AdlsGen2" | "AmazonAccount" | "AmazonS3" | "AmazonSql" | "AzureCosmosDb" | "AzureDataExplorer" | "AzureFileService" | "AzureSqlDatabase" | "AmazonPostgreSql" | "AzurePostgreSql" | "SqlServerDatabase" | "AzureSqlDatabaseManagedInstance" | "AzureSqlDataWarehouse" | "AzureMySql" | "AzureStorage" | "Teradata" | "Oracle" | "SapS4Hana" | "SapEcc" | "PowerBI"; } // @public (undocumented) @@ -4358,7 +3538,7 @@ export interface SystemScanRulesetsListVersionsByDataSourcedefaultResponse exten } // @public (undocumented) -export type SystemScanRulesetsListVersionsByDataSourceParameters = RequestParameters & SystemScanRulesetsListVersionsByDataSourceQueryParam; +export type SystemScanRulesetsListVersionsByDataSourceParameters = SystemScanRulesetsListVersionsByDataSourceQueryParam & RequestParameters; // @public (undocumented) export interface SystemScanRulesetsListVersionsByDataSourceQueryParam { @@ -4369,30 +3549,19 @@ export interface SystemScanRulesetsListVersionsByDataSourceQueryParam { // @public (undocumented) export interface SystemScanRulesetsListVersionsByDataSourceQueryParamProperties { // (undocumented) - dataSourceType?: DataSourceType; + dataSourceType?: "None" | "AzureSubscription" | "AzureResourceGroup" | "AzureSynapseWorkspace" | "AzureSynapse" | "AdlsGen1" | "AdlsGen2" | "AmazonAccount" | "AmazonS3" | "AmazonSql" | "AzureCosmosDb" | "AzureDataExplorer" | "AzureFileService" | "AzureSqlDatabase" | "AmazonPostgreSql" | "AzurePostgreSql" | "SqlServerDatabase" | "AzureSqlDatabaseManagedInstance" | "AzureSqlDataWarehouse" | "AzureMySql" | "AzureStorage" | "Teradata" | "Oracle" | "SapS4Hana" | "SapEcc" | "PowerBI"; } // @public (undocumented) -export type TeradataCredentialScan = TeradataCredentialScanBase & Scan; - -// @public (undocumented) -export interface TeradataCredentialScanBase { +export interface TeradataCredentialScan extends ScanBase { + // (undocumented) + kind: "TeradataTeradataCredential"; // (undocumented) properties?: TeradataCredentialScanPropertiesAutoGenerated; } // @public (undocumented) -export type TeradataCredentialScanProperties = TeradataCredentialScanPropertiesBase & MitiScanProperties; - -// @public (undocumented) -export type TeradataCredentialScanPropertiesAutoGenerated = TeradataCredentialScanPropertiesAutoGeneratedBase & TeradataCredentialScanProperties; - -// @public (undocumented) -export interface TeradataCredentialScanPropertiesAutoGeneratedBase { -} - -// @public (undocumented) -export interface TeradataCredentialScanPropertiesBase { +export interface TeradataCredentialScanProperties extends MitiScanProperties { // (undocumented) credential?: TeradataCredentialScanPropertiesCredential; // (undocumented) @@ -4402,151 +3571,111 @@ export interface TeradataCredentialScanPropertiesBase { } // @public (undocumented) -export type TeradataCredentialScanPropertiesCredential = TeradataCredentialScanPropertiesCredentialBase & CredentialReference; - -// @public (undocumented) -export interface TeradataCredentialScanPropertiesCredentialBase { +export interface TeradataCredentialScanPropertiesAutoGenerated extends TeradataCredentialScanProperties { } // @public (undocumented) -export type TeradataDataSource = TeradataDataSourceBase & DataSource; +export interface TeradataCredentialScanPropertiesCredential extends CredentialReference { +} // @public (undocumented) -export interface TeradataDataSourceBase { +export interface TeradataDataSource extends DataSourceBase { + // (undocumented) + kind: "Teradata"; // (undocumented) properties?: TeradataDataSourceProperties; } // @public (undocumented) -export type TeradataDataSourceProperties = TeradataDataSourcePropertiesBase & TeradataProperties; - -// @public (undocumented) -export interface TeradataDataSourcePropertiesBase { +export interface TeradataDataSourceProperties extends TeradataProperties { } // @public (undocumented) -export type TeradataProperties = TeradataPropertiesBase & DataSourceProperties; - -// @public (undocumented) -export interface TeradataPropertiesBase { +export interface TeradataProperties extends DataSourceProperties { // (undocumented) host?: string; } // @public (undocumented) -export type TeradataScanRuleset = TeradataScanRulesetBase & ScanRuleset; - -// @public (undocumented) -export interface TeradataScanRulesetBase { +export interface TeradataScanRuleset extends ScanRulesetBase { + // (undocumented) + kind: "Teradata"; // (undocumented) properties?: TeradataScanRulesetPropertiesAutoGenerated; } // @public (undocumented) -export type TeradataScanRulesetProperties = TeradataScanRulesetPropertiesBase & ScanRulesetProperties; - -// @public (undocumented) -export type TeradataScanRulesetPropertiesAutoGenerated = TeradataScanRulesetPropertiesAutoGeneratedBase & TeradataScanRulesetProperties; - -// @public (undocumented) -export interface TeradataScanRulesetPropertiesAutoGeneratedBase { +export interface TeradataScanRulesetProperties extends ScanRulesetProperties { } // @public (undocumented) -export interface TeradataScanRulesetPropertiesBase { +export interface TeradataScanRulesetPropertiesAutoGenerated extends TeradataScanRulesetProperties { } // @public (undocumented) -export type TeradataSystemScanRuleset = TeradataSystemScanRulesetBase & SystemScanRuleset; - -// @public (undocumented) -export interface TeradataSystemScanRulesetBase { +export interface TeradataSystemScanRuleset extends SystemScanRulesetBase { + // (undocumented) + kind: "None"; // (undocumented) properties?: TeradataSystemScanRulesetProperties; } // @public (undocumented) -export type TeradataSystemScanRulesetProperties = TeradataSystemScanRulesetPropertiesBase & TeradataScanRulesetProperties; - -// @public (undocumented) -export interface TeradataSystemScanRulesetPropertiesBase { +export interface TeradataSystemScanRulesetProperties extends TeradataScanRulesetProperties { } // @public (undocumented) -export type TeradataUserPassScan = TeradataUserPassScanBase & Scan; - -// @public (undocumented) -export type TeradataUserPassScanAutoGenerated = TeradataUserPassScanAutoGeneratedBase & Scan; - -// @public (undocumented) -export interface TeradataUserPassScanAutoGeneratedBase { +export interface TeradataUserPassScan extends ScanBase { // (undocumented) - properties?: TeradataUserPassScanPropertiesAutoGenerated3; -} - -// @public (undocumented) -export interface TeradataUserPassScanBase { + kind: "TeradataUserPass"; // (undocumented) properties?: TeradataUserPassScanPropertiesAutoGenerated; } // @public (undocumented) -export type TeradataUserPassScanProperties = TeradataUserPassScanPropertiesBase & ScanProperties; - -// @public (undocumented) -export type TeradataUserPassScanPropertiesAutoGenerated = TeradataUserPassScanPropertiesAutoGeneratedBase & TeradataUserPassScanProperties; - -// @public (undocumented) -export type TeradataUserPassScanPropertiesAutoGenerated2 = TeradataUserPassScanPropertiesAutoGenerated2Base & MitiScanProperties; +export interface TeradataUserPassScanAutoGenerated extends ScanBase { + // (undocumented) + kind: "TeradataTeradataUserPass"; + // (undocumented) + properties?: TeradataUserPassScanPropertiesAutoGenerated3; +} // @public (undocumented) -export interface TeradataUserPassScanPropertiesAutoGenerated2Base { - // (undocumented) - driverLocation?: string; +export interface TeradataUserPassScanProperties extends ScanProperties { // (undocumented) password?: string; // (undocumented) - schema?: string; - // (undocumented) username?: string; } // @public (undocumented) -export type TeradataUserPassScanPropertiesAutoGenerated3 = TeradataUserPassScanPropertiesAutoGenerated3Base & TeradataUserPassScanPropertiesAutoGenerated2; - -// @public (undocumented) -export interface TeradataUserPassScanPropertiesAutoGenerated3Base { -} - -// @public (undocumented) -export interface TeradataUserPassScanPropertiesAutoGeneratedBase { +export interface TeradataUserPassScanPropertiesAutoGenerated extends TeradataUserPassScanProperties { } // @public (undocumented) -export interface TeradataUserPassScanPropertiesBase { +export interface TeradataUserPassScanPropertiesAutoGenerated2 extends MitiScanProperties { + // (undocumented) + driverLocation?: string; // (undocumented) password?: string; // (undocumented) + schema?: string; + // (undocumented) username?: string; } // @public (undocumented) -export type Trigger = TriggerBase & ProxyResource; +export interface TeradataUserPassScanPropertiesAutoGenerated3 extends TeradataUserPassScanPropertiesAutoGenerated2 { +} // @public (undocumented) -export interface TriggerBase { +export interface Trigger extends ProxyResource { // (undocumented) - properties?: TriggerProperties; + properties?: TriggerPropertiesAutoGenerated; } // @public (undocumented) -export type TriggerFrequency = "Week" | "Month"; - -// @public (undocumented) -export type TriggerProperties = TriggerPropertiesBase & TriggerPropertiesAutoGenerated; - -// @public (undocumented) -export interface TriggerPropertiesAutoGenerated { +export interface TriggerProperties { // (undocumented) createdAt?: Date; // (undocumented) @@ -4560,18 +3689,15 @@ export interface TriggerPropertiesAutoGenerated { // (undocumented) recurrenceInterval?: string; // (undocumented) - scanLevel?: ScanLevelType; + scanLevel?: "Full" | "Incremental"; } // @public (undocumented) -export interface TriggerPropertiesBase { +export interface TriggerPropertiesAutoGenerated extends TriggerProperties { } // @public (undocumented) -export type TriggerPropertiesRecurrence = TriggerPropertiesRecurrenceBase & TriggerRecurrence; - -// @public (undocumented) -export interface TriggerPropertiesRecurrenceBase { +export interface TriggerPropertiesRecurrence extends TriggerRecurrence { } // @public (undocumented) @@ -4579,7 +3705,7 @@ export interface TriggerRecurrence { // (undocumented) endTime?: Date; // (undocumented) - frequency?: TriggerFrequency; + frequency?: "Week" | "Month"; // (undocumented) interval?: number; // (undocumented) @@ -4591,10 +3717,7 @@ export interface TriggerRecurrence { } // @public (undocumented) -export type TriggerRecurrenceSchedule = TriggerRecurrenceScheduleBase & RecurrenceSchedule; - -// @public (undocumented) -export interface TriggerRecurrenceScheduleBase { +export interface TriggerRecurrenceSchedule extends RecurrenceSchedule { } // @public @@ -4628,14 +3751,7 @@ export interface TriggersCreateTriggerdefaultResponse extends HttpResponse { } // @public (undocumented) -export type TriggersCreateTriggerParameters = RequestParameters & TriggersCreateTriggerBodyParam; - -// @public (undocumented) -export interface TriggersDeleteTrigger { - delete(options?: TriggersDeleteTriggerParameters): Promise; - get(options?: TriggersGetTriggerParameters): Promise; - put(options: TriggersCreateTriggerParameters): Promise; -} +export type TriggersCreateTriggerParameters = TriggersCreateTriggerBodyParam & RequestParameters; // @public export interface TriggersDeleteTrigger200Response extends HttpResponse { @@ -4647,6 +3763,8 @@ export interface TriggersDeleteTrigger200Response extends HttpResponse { // @public export interface TriggersDeleteTrigger204Response extends HttpResponse { + // (undocumented) + body: Record; // (undocumented) status: "204"; } @@ -4662,6 +3780,13 @@ export interface TriggersDeleteTriggerdefaultResponse extends HttpResponse { // @public (undocumented) export type TriggersDeleteTriggerParameters = RequestParameters; +// @public (undocumented) +export interface TriggersGetTrigger { + delete(options?: TriggersDeleteTriggerParameters): Promise; + get(options?: TriggersGetTriggerParameters): Promise; + put(options: TriggersCreateTriggerParameters): Promise; +} + // @public export interface TriggersGetTrigger200Response extends HttpResponse { // (undocumented) @@ -4682,14 +3807,11 @@ export interface TriggersGetTriggerdefaultResponse extends HttpResponse { export type TriggersGetTriggerParameters = RequestParameters; // @public (undocumented) -export type VersionedScanRuleset = VersionedScanRulesetBase & ProxyResource; - -// @public (undocumented) -export interface VersionedScanRulesetBase { +export interface VersionedScanRuleset extends ProxyResource { // (undocumented) - scanRulesetType?: ScanRulesetType; + scanRulesetType?: "Custom" | "System"; // (undocumented) - status?: ScanRulesetStatus; + status?: "Enabled" | "Disabled"; // (undocumented) version?: number; } diff --git a/sdk/purview/purview-scanning-rest/src/index.ts b/sdk/purview/purview-scanning-rest/src/index.ts index 7063c9006065..5c9e2adfdbe3 100644 --- a/sdk/purview/purview-scanning-rest/src/index.ts +++ b/sdk/purview/purview-scanning-rest/src/index.ts @@ -7,5 +7,6 @@ export * from "./purviewScanning"; export * from "./models"; export * from "./parameters"; export * from "./responses"; +export * from "./paginateHelper"; export default PurviewScanning; diff --git a/sdk/purview/purview-scanning-rest/src/models.ts b/sdk/purview/purview-scanning-rest/src/models.ts index a61763b32a9b..5ed41232b470 100644 --- a/sdk/purview/purview-scanning-rest/src/models.ts +++ b/sdk/purview/purview-scanning-rest/src/models.ts @@ -1,91 +1,147 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export type AzureKeyVault = AzureKeyVaultBase & ProxyResource; - -export interface AzureKeyVaultBase { - properties?: AzureKeyVaultProperties; +export interface ProxyResource { + id?: string; + name?: string; } -export type AzureKeyVaultProperties = AzureKeyVaultPropertiesBase & - AzureKeyVaultPropertiesAutoGenerated; - -export interface AzureKeyVaultPropertiesBase {} +export interface AzureKeyVault extends ProxyResource { + properties?: AzureKeyVaultPropertiesAutoGenerated; +} -export interface AzureKeyVaultPropertiesAutoGenerated { +export interface AzureKeyVaultProperties { baseUrl?: string; description?: string; } -export interface ProxyResource { - id?: string; - name?: string; -} +export interface AzureKeyVaultPropertiesAutoGenerated extends AzureKeyVaultProperties {} export interface ErrorResponseModel { error?: ErrorResponseModelError; } -export type ErrorResponseModelError = ErrorResponseModelErrorBase & ErrorModel; - -export interface ErrorResponseModelErrorBase {} - export interface ErrorModel { code?: string; message?: string; target?: string; - details?: ErrorModel[]; + details?: Array; } +export interface ErrorResponseModelError extends ErrorModel {} + export interface AzureKeyVaultList { - value?: AzureKeyVault[]; + value?: Array; nextLink?: string; count?: number; } -export type ClassificationRule = ClassificationRuleBase & ProxyResource; - -export interface ClassificationRuleBase { - kind: ClassificationRuleType; +export interface ClassificationRuleBase extends ProxyResource { + kind: "ClassificationRule" | "System" | "Custom"; } export interface ClassificationRuleList { - value?: ClassificationRule[]; + value?: Array; nextLink?: string; count?: number; } export interface OperationResponse { + /** Value may contain a UUID */ scanResultId?: string; startTime?: Date; endTime?: Date; - status?: OperationStatus; + status?: "Accepted" | "InProgress" | "TransientFailure" | "Succeeded" | "Failed" | "Canceled"; error?: OperationResponseError; } -export type OperationResponseError = OperationResponseErrorBase & ErrorInfo; - -export interface OperationResponseErrorBase {} - export interface ErrorInfo { code?: string; message?: string; target?: string; - details?: ErrorInfo[]; -} - -export type DataSource = DataSourceBase & ProxyResource; - -export interface DataSourceBase { - kind: DataSourceType; - scans?: Scan[]; -} - -export type Scan = ScanBase & ProxyResource; - -export interface ScanBase { - kind: ScanAuthorizationType; - scanResults?: ScanResult[]; + details?: Array; +} + +export interface OperationResponseError extends ErrorInfo {} + +export interface DataSourceBase extends ProxyResource { + scans?: Array; + kind: + | "DataSource" + | "AzureSubscription" + | "AzureResourceGroup" + | "AzureSynapseWorkspace" + | "AzureSynapse" + | "AdlsGen1" + | "AdlsGen2" + | "AmazonAccount" + | "AmazonS3" + | "AmazonSql" + | "AzureCosmosDb" + | "AzureDataExplorer" + | "AzureFileService" + | "AzureSqlDatabase" + | "AmazonPostgreSql" + | "AzurePostgreSql" + | "SqlServerDatabase" + | "AzureSqlDatabaseManagedInstance" + | "AzureSqlDataWarehouse" + | "AzureMySql" + | "AzureStorage" + | "Teradata" + | "Oracle" + | "SapS4Hana" + | "SapEcc" + | "PowerBI"; +} + +export interface ScanBase extends ProxyResource { + scanResults?: Array; + kind: + | "Scan" + | "AzureSubscriptionCredential" + | "AzureSubscriptionMsi" + | "AzureResourceGroupCredential" + | "AzureResourceGroupMsi" + | "AzureSynapseWorkspaceCredential" + | "AzureSynapseWorkspaceMsi" + | "AzureSynapseCredential" + | "AzureSynapseMsi" + | "AdlsGen1Credential" + | "AdlsGen1Msi" + | "AdlsGen2Credential" + | "AdlsGen2Msi" + | "AmazonAccountCredential" + | "AmazonS3Credential" + | "AmazonS3RoleARN" + | "AmazonSqlCredential" + | "AzureCosmosDbCredential" + | "AzureDataExplorerCredential" + | "AzureDataExplorerMsi" + | "AzureFileServiceCredential" + | "AzureSqlDatabaseCredential" + | "AzureSqlDatabaseMsi" + | "AmazonPostgreSqlCredential" + | "AzurePostgreSqlCredential" + | "SqlServerDatabaseCredential" + | "AzureSqlDatabaseManagedInstanceCredential" + | "AzureSqlDatabaseManagedInstanceMsi" + | "AzureSqlDataWarehouseCredential" + | "AzureSqlDataWarehouseMsi" + | "AzureMySqlCredential" + | "AzureStorageCredential" + | "AzureStorageMsi" + | "TeradataTeradataCredential" + | "TeradataUserPass" + | "TeradataTeradataUserPass" + | "OracleOracleCredential" + | "OracleOracleUserPass" + | "SapS4HanaSapS4HanaCredential" + | "SapS4HanaSapS4HanaUserPass" + | "SapEccSapEccCredential" + | "SapEccSapEccUserPass" + | "PowerBIDelegated" + | "PowerBIMsi"; } export interface ScanResult { @@ -101,22 +157,44 @@ export interface ScanResult { pipelineStartTime?: Date; endTime?: Date; scanRulesetVersion?: number; - scanRulesetType?: ScanRulesetType; - scanLevelType?: ScanLevelType; + scanRulesetType?: "Custom" | "System"; + scanLevelType?: "Full" | "Incremental"; errorMessage?: string; error?: ScanResultError; runType?: string; - dataSourceType?: DataSourceType; + dataSourceType?: + | "None" + | "AzureSubscription" + | "AzureResourceGroup" + | "AzureSynapseWorkspace" + | "AzureSynapse" + | "AdlsGen1" + | "AdlsGen2" + | "AmazonAccount" + | "AmazonS3" + | "AmazonSql" + | "AzureCosmosDb" + | "AzureDataExplorer" + | "AzureFileService" + | "AzureSqlDatabase" + | "AmazonPostgreSql" + | "AzurePostgreSql" + | "SqlServerDatabase" + | "AzureSqlDatabaseManagedInstance" + | "AzureSqlDataWarehouse" + | "AzureMySql" + | "AzureStorage" + | "Teradata" + | "Oracle" + | "SapS4Hana" + | "SapEcc" + | "PowerBI"; } -export type ScanResultDiagnostics = ScanResultDiagnosticsBase & ScanDiagnostics; - -export interface ScanResultDiagnosticsBase {} - export interface ScanDiagnostics { - notifications?: Notification[]; + notifications?: Array; /** Dictionary of */ - exceptionCountMap?: ScanDiagnosticsExceptionCountMapDictionary; + exceptionCountMap?: Record; } export interface Notification { @@ -124,101 +202,107 @@ export interface Notification { code?: number; } -export type ScanResultError = ScanResultErrorBase & ErrorModel; +export interface ScanResultDiagnostics extends ScanDiagnostics {} -export interface ScanResultErrorBase {} +export interface ScanResultError extends ErrorModel {} export interface DataSourceList { - value?: DataSource[]; + value?: Array; nextLink?: string; count?: number; } -export type Filter = FilterBase & ProxyResource; - -export interface FilterBase { - properties?: FilterProperties; +export interface Filter extends ProxyResource { + properties?: FilterPropertiesAutoGenerated; } -export type FilterProperties = FilterPropertiesBase & FilterPropertiesAutoGenerated; - -export interface FilterPropertiesBase {} - -export interface FilterPropertiesAutoGenerated { - excludeUriPrefixes?: string[]; - includeUriPrefixes?: string[]; +export interface FilterProperties { + excludeUriPrefixes?: Array; + includeUriPrefixes?: Array; } +export interface FilterPropertiesAutoGenerated extends FilterProperties {} + export interface ScanList { - value?: Scan[]; + value?: Array; nextLink?: string; count?: number; } export interface ScanHistoryList { - value?: ScanResult[]; + value?: Array; nextLink?: string; count?: number; } -export type ScanRuleset = ScanRulesetBase & VersionedScanRuleset; - -export interface ScanRulesetBase { - kind: DataSourceType; +export interface VersionedScanRuleset extends ProxyResource { + scanRulesetType?: "Custom" | "System"; + status?: "Enabled" | "Disabled"; + version?: number; } -export type VersionedScanRuleset = VersionedScanRulesetBase & ProxyResource; - -export interface VersionedScanRulesetBase { - scanRulesetType?: ScanRulesetType; - status?: ScanRulesetStatus; - version?: number; +export interface ScanRulesetBase extends VersionedScanRuleset { + kind: + | "ScanRuleset" + | "AzureSubscription" + | "AzureResourceGroup" + | "AzureSynapseWorkspace" + | "AzureSynapse" + | "AdlsGen1" + | "AdlsGen2" + | "AmazonAccount" + | "AmazonS3" + | "AmazonSql" + | "AzureCosmosDb" + | "AzureDataExplorer" + | "AzureFileService" + | "AzureSqlDatabase" + | "AmazonPostgreSql" + | "AzurePostgreSql" + | "SqlServerDatabase" + | "AzureSqlDatabaseManagedInstance" + | "AzureSqlDataWarehouse" + | "AzureMySql" + | "AzureStorage" + | "Teradata" + | "Oracle" + | "SapS4Hana" + | "SapEcc" + | "PowerBI"; } export interface ScanRulesetList { - value?: ScanRuleset[]; + value?: Array; nextLink?: string; count?: number; } export interface SystemScanRulesetList { - value?: SystemScanRuleset[]; + value?: Array; nextLink?: string; count?: number; } -export type SystemScanRuleset = SystemScanRulesetBase & VersionedScanRuleset; - -export interface SystemScanRulesetBase { - kind: DataSourceType; +export interface SystemScanRulesetBase extends VersionedScanRuleset { + kind: "SystemScanRuleset" | "None"; } -export type Trigger = TriggerBase & ProxyResource; - -export interface TriggerBase { - properties?: TriggerProperties; +export interface Trigger extends ProxyResource { + properties?: TriggerPropertiesAutoGenerated; } -export type TriggerProperties = TriggerPropertiesBase & TriggerPropertiesAutoGenerated; - -export interface TriggerPropertiesBase {} - -export interface TriggerPropertiesAutoGenerated { +export interface TriggerProperties { recurrence?: TriggerPropertiesRecurrence; recurrenceInterval?: string; createdAt?: Date; lastModifiedAt?: Date; lastScheduled?: Date; - scanLevel?: ScanLevelType; + scanLevel?: "Full" | "Incremental"; incrementalScanStartTime?: Date; } -export type TriggerPropertiesRecurrence = TriggerPropertiesRecurrenceBase & TriggerRecurrence; - -export interface TriggerPropertiesRecurrenceBase {} - export interface TriggerRecurrence { - frequency?: TriggerFrequency; + frequency?: "Week" | "Month"; interval?: number; startTime?: Date; endTime?: Date; @@ -226,604 +310,471 @@ export interface TriggerRecurrence { timeZone?: string; } -export type TriggerRecurrenceSchedule = TriggerRecurrenceScheduleBase & RecurrenceSchedule; - -export interface TriggerRecurrenceScheduleBase {} - export interface RecurrenceSchedule { - /** Dictionary of */ - additionalProperties?: RecurrenceScheduleAdditionalPropertiesDictionary; - minutes?: number[]; - hours?: number[]; - weekDays?: "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday"[]; - monthDays?: number[]; - monthlyOccurrences?: RecurrenceScheduleOccurrence[]; + /** Dictionary of */ + additionalProperties?: Record>; + minutes?: Array; + hours?: Array; + weekDays?: Array< + "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" + >; + monthDays?: Array; + monthlyOccurrences?: Array; } export interface RecurrenceScheduleOccurrence { - /** Dictionary of */ - additionalProperties?: RecurrenceScheduleOccurrenceAdditionalPropertiesDictionary; - day?: DayOfWeek; + /** Dictionary of */ + additionalProperties?: Record>; + day?: "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday"; occurrence?: number; } +export interface TriggerRecurrenceSchedule extends RecurrenceSchedule {} + +export interface TriggerPropertiesRecurrence extends TriggerRecurrence {} + +export interface TriggerPropertiesAutoGenerated extends TriggerProperties {} + +export interface CollectionReference { + lastModifiedAt?: Date; + referenceName?: string; + type?: string; +} + export interface SystemClassificationRuleProperties { description?: string; version?: number; classificationName?: string; - ruleStatus?: ClassificationRuleStatus; + ruleStatus?: "Enabled" | "Disabled"; createdAt?: Date; lastModifiedAt?: Date; } -export type SystemClassificationRule = SystemClassificationRuleBase & ClassificationRule; - -export interface SystemClassificationRuleBase { +export interface SystemClassificationRule extends ClassificationRuleBase { properties?: SystemClassificationRulePropertiesAutoGenerated; + kind: "System"; } -export type SystemClassificationRulePropertiesAutoGenerated = SystemClassificationRulePropertiesAutoGeneratedBase & - SystemClassificationRuleProperties; - -export interface SystemClassificationRulePropertiesAutoGeneratedBase {} +export interface SystemClassificationRulePropertiesAutoGenerated + extends SystemClassificationRuleProperties {} -export interface ClassificationRulePattern { - kind: ClassificationRulePatternType; +export interface ClassificationRulePatternBase { + kind: "Regex"; } export interface CustomClassificationRuleProperties { minimumPercentageMatch?: number; - classificationAction?: ClassificationAction; - dataPatterns?: ClassificationRulePattern[]; - columnPatterns?: ClassificationRulePattern[]; + classificationAction?: "Keep" | "Delete"; + dataPatterns?: Array; + columnPatterns?: Array; description?: string; version?: number; classificationName?: string; - ruleStatus?: ClassificationRuleStatus; + ruleStatus?: "Enabled" | "Disabled"; createdAt?: Date; lastModifiedAt?: Date; } -export type CustomClassificationRule = CustomClassificationRuleBase & ClassificationRule; - -export interface CustomClassificationRuleBase { +export interface CustomClassificationRule extends ClassificationRuleBase { properties?: CustomClassificationRulePropertiesAutoGenerated; + kind: "Custom"; } -export type CustomClassificationRulePropertiesAutoGenerated = CustomClassificationRulePropertiesAutoGeneratedBase & - CustomClassificationRuleProperties; - -export interface CustomClassificationRulePropertiesAutoGeneratedBase {} - -export type RegexClassificationRulePattern = RegexClassificationRulePatternBase & - ClassificationRulePattern; +export interface CustomClassificationRulePropertiesAutoGenerated + extends CustomClassificationRuleProperties {} -export interface RegexClassificationRulePatternBase { +export interface RegexClassificationRulePattern extends ClassificationRulePatternBase { pattern?: string; + kind: "Regex"; } export interface DataSourceProperties { createdAt?: Date; lastModifiedAt?: Date; + collection?: DataSourcePropertiesCollection; } -export type AzureSubscriptionProperties = AzureSubscriptionPropertiesBase & DataSourceProperties; +export interface DataSourcePropertiesCollection extends CollectionReference {} -export interface AzureSubscriptionPropertiesBase { +export interface AzureSubscriptionProperties extends DataSourceProperties { subscriptionId?: string; } -export type AzureSubscriptionDataSource = AzureSubscriptionDataSourceBase & DataSource; - -export interface AzureSubscriptionDataSourceBase { +export interface AzureSubscriptionDataSource extends DataSourceBase { properties?: AzureSubscriptionDataSourceProperties; + kind: "AzureSubscription"; } -export type AzureSubscriptionDataSourceProperties = AzureSubscriptionDataSourcePropertiesBase & - AzureSubscriptionProperties; - -export interface AzureSubscriptionDataSourcePropertiesBase {} - -export type AzureResourceGroupProperties = AzureResourceGroupPropertiesBase & DataSourceProperties; +export interface AzureSubscriptionDataSourceProperties extends AzureSubscriptionProperties {} -export interface AzureResourceGroupPropertiesBase { +export interface AzureResourceGroupProperties extends DataSourceProperties { subscriptionId?: string; resourceGroup?: string; } -export type AzureResourceGroupDataSource = AzureResourceGroupDataSourceBase & DataSource; - -export interface AzureResourceGroupDataSourceBase { +export interface AzureResourceGroupDataSource extends DataSourceBase { properties?: AzureResourceGroupDataSourceProperties; + kind: "AzureResourceGroup"; } -export type AzureResourceGroupDataSourceProperties = AzureResourceGroupDataSourcePropertiesBase & - AzureResourceGroupProperties; - -export interface AzureResourceGroupDataSourcePropertiesBase {} +export interface AzureResourceGroupDataSourceProperties extends AzureResourceGroupProperties {} -export type AzureDataSourceProperties = AzureDataSourcePropertiesBase & DataSourceProperties; - -export interface AzureDataSourcePropertiesBase { +export interface AzureDataSourceProperties extends DataSourceProperties { resourceGroup?: string; subscriptionId?: string; location?: string; resourceName?: string; } -export type AzureSynapseWorkspaceProperties = AzureSynapseWorkspacePropertiesBase & - AzureDataSourceProperties; - -export interface AzureSynapseWorkspacePropertiesBase { +export interface AzureSynapseWorkspaceProperties extends AzureDataSourceProperties { dedicatedSqlEndpoint?: string; serverlessSqlEndpoint?: string; } -export type AzureSynapseWorkspaceDataSource = AzureSynapseWorkspaceDataSourceBase & DataSource; - -export interface AzureSynapseWorkspaceDataSourceBase { +export interface AzureSynapseWorkspaceDataSource extends DataSourceBase { properties?: AzureSynapseWorkspaceDataSourceProperties; + kind: "AzureSynapseWorkspace"; } -export type AzureSynapseWorkspaceDataSourceProperties = AzureSynapseWorkspaceDataSourcePropertiesBase & - AzureSynapseWorkspaceProperties; - -export interface AzureSynapseWorkspaceDataSourcePropertiesBase {} - -export type AzureSynapseProperties = AzureSynapsePropertiesBase & AzureDataSourceProperties; +export interface AzureSynapseWorkspaceDataSourceProperties + extends AzureSynapseWorkspaceProperties {} -export interface AzureSynapsePropertiesBase { +export interface AzureSynapseProperties extends AzureDataSourceProperties { sqlEndpoint?: string; sqlOnDemandEndpoint?: string; } -export type AzureSynapseDataSource = AzureSynapseDataSourceBase & DataSource; - -export interface AzureSynapseDataSourceBase { +export interface AzureSynapseDataSource extends DataSourceBase { properties?: AzureSynapseDataSourceProperties; + kind: "AzureSynapse"; } -export type AzureSynapseDataSourceProperties = AzureSynapseDataSourcePropertiesBase & - AzureSynapseProperties; - -export interface AzureSynapseDataSourcePropertiesBase {} +export interface AzureSynapseDataSourceProperties extends AzureSynapseProperties {} -export type AdlsGen1Properties = AdlsGen1PropertiesBase & AzureDataSourceProperties; - -export interface AdlsGen1PropertiesBase { +export interface AdlsGen1Properties extends AzureDataSourceProperties { endpoint?: string; } -export type AdlsGen1DataSource = AdlsGen1DataSourceBase & DataSource; - -export interface AdlsGen1DataSourceBase { +export interface AdlsGen1DataSource extends DataSourceBase { properties?: AdlsGen1DataSourceProperties; + kind: "AdlsGen1"; } -export type AdlsGen1DataSourceProperties = AdlsGen1DataSourcePropertiesBase & AdlsGen1Properties; +export interface AdlsGen1DataSourceProperties extends AdlsGen1Properties {} -export interface AdlsGen1DataSourcePropertiesBase {} - -export type AdlsGen2Properties = AdlsGen2PropertiesBase & AzureDataSourceProperties; - -export interface AdlsGen2PropertiesBase { +export interface AdlsGen2Properties extends AzureDataSourceProperties { endpoint?: string; } -export type AdlsGen2DataSource = AdlsGen2DataSourceBase & DataSource; - -export interface AdlsGen2DataSourceBase { +export interface AdlsGen2DataSource extends DataSourceBase { properties?: AdlsGen2DataSourceProperties; + kind: "AdlsGen2"; } -export type AdlsGen2DataSourceProperties = AdlsGen2DataSourcePropertiesBase & AdlsGen2Properties; +export interface AdlsGen2DataSourceProperties extends AdlsGen2Properties {} -export interface AdlsGen2DataSourcePropertiesBase {} - -export type AmazonAccountProperties = AmazonAccountPropertiesBase & DataSourceProperties; - -export interface AmazonAccountPropertiesBase { +export interface AmazonAccountProperties extends DataSourceProperties { awsAccountId?: string; roleARN?: string; } -export type AmazonAccountDataSource = AmazonAccountDataSourceBase & DataSource; - -export interface AmazonAccountDataSourceBase { +export interface AmazonAccountDataSource extends DataSourceBase { properties?: AmazonAccountDataSourceProperties; + kind: "AmazonAccount"; } -export type AmazonAccountDataSourceProperties = AmazonAccountDataSourcePropertiesBase & - AmazonAccountProperties; - -export interface AmazonAccountDataSourcePropertiesBase {} +export interface AmazonAccountDataSourceProperties extends AmazonAccountProperties {} -export type AmazonS3Properties = AmazonS3PropertiesBase & DataSourceProperties; - -export interface AmazonS3PropertiesBase { +export interface AmazonS3Properties extends DataSourceProperties { serviceUrl?: string; roleARN?: string; } -export type AmazonS3DataSource = AmazonS3DataSourceBase & DataSource; - -export interface AmazonS3DataSourceBase { +export interface AmazonS3DataSource extends DataSourceBase { properties?: AmazonS3DataSourceProperties; + kind: "AmazonS3"; } -export type AmazonS3DataSourceProperties = AmazonS3DataSourcePropertiesBase & AmazonS3Properties; - -export interface AmazonS3DataSourcePropertiesBase {} +export interface AmazonS3DataSourceProperties extends AmazonS3Properties {} -export type AmazonSqlProperties = AmazonSqlPropertiesBase & DataSourceProperties; - -export interface AmazonSqlPropertiesBase { +export interface AmazonSqlProperties extends DataSourceProperties { serverEndpoint?: string; } -export type AmazonSqlDataSource = AmazonSqlDataSourceBase & DataSource; - -export interface AmazonSqlDataSourceBase { +export interface AmazonSqlDataSource extends DataSourceBase { properties?: AmazonSqlDataSourceProperties; + kind: "AmazonSql"; } -export type AmazonSqlDataSourceProperties = AmazonSqlDataSourcePropertiesBase & AmazonSqlProperties; - -export interface AmazonSqlDataSourcePropertiesBase {} - -export type AzureCosmosDbProperties = AzureCosmosDbPropertiesBase & AzureDataSourceProperties; +export interface AmazonSqlDataSourceProperties extends AmazonSqlProperties {} -export interface AzureCosmosDbPropertiesBase { +export interface AzureCosmosDbProperties extends AzureDataSourceProperties { accountUri?: string; } -export type AzureCosmosDbDataSource = AzureCosmosDbDataSourceBase & DataSource; - -export interface AzureCosmosDbDataSourceBase { +export interface AzureCosmosDbDataSource extends DataSourceBase { properties?: AzureCosmosDbDataSourceProperties; + kind: "AzureCosmosDb"; } -export type AzureCosmosDbDataSourceProperties = AzureCosmosDbDataSourcePropertiesBase & - AzureCosmosDbProperties; - -export interface AzureCosmosDbDataSourcePropertiesBase {} - -export type AzureDataExplorerProperties = AzureDataExplorerPropertiesBase & - AzureDataSourceProperties; +export interface AzureCosmosDbDataSourceProperties extends AzureCosmosDbProperties {} -export interface AzureDataExplorerPropertiesBase { +export interface AzureDataExplorerProperties extends AzureDataSourceProperties { endpoint?: string; } -export type AzureDataExplorerDataSource = AzureDataExplorerDataSourceBase & DataSource; - -export interface AzureDataExplorerDataSourceBase { +export interface AzureDataExplorerDataSource extends DataSourceBase { properties?: AzureDataExplorerDataSourceProperties; + kind: "AzureDataExplorer"; } -export type AzureDataExplorerDataSourceProperties = AzureDataExplorerDataSourcePropertiesBase & - AzureDataExplorerProperties; - -export interface AzureDataExplorerDataSourcePropertiesBase {} +export interface AzureDataExplorerDataSourceProperties extends AzureDataExplorerProperties {} -export type AzureFileServiceProperties = AzureFileServicePropertiesBase & AzureDataSourceProperties; - -export interface AzureFileServicePropertiesBase { +export interface AzureFileServiceProperties extends AzureDataSourceProperties { endpoint?: string; } -export type AzureFileServiceDataSource = AzureFileServiceDataSourceBase & DataSource; - -export interface AzureFileServiceDataSourceBase { +export interface AzureFileServiceDataSource extends DataSourceBase { properties?: AzureFileServiceDataSourceProperties; + kind: "AzureFileService"; } -export type AzureFileServiceDataSourceProperties = AzureFileServiceDataSourcePropertiesBase & - AzureFileServiceProperties; +export interface AzureFileServiceDataSourceProperties extends AzureFileServiceProperties {} -export interface AzureFileServiceDataSourcePropertiesBase {} - -export type AzureSqlDatabaseProperties = AzureSqlDatabasePropertiesBase & AzureDataSourceProperties; - -export interface AzureSqlDatabasePropertiesBase { +export interface AzureSqlDatabaseProperties extends AzureDataSourceProperties { serverEndpoint?: string; } -export type AzureSqlDatabaseDataSource = AzureSqlDatabaseDataSourceBase & DataSource; - -export interface AzureSqlDatabaseDataSourceBase { +export interface AzureSqlDatabaseDataSource extends DataSourceBase { properties?: AzureSqlDatabaseDataSourceProperties; + kind: "AzureSqlDatabase"; } -export type AzureSqlDatabaseDataSourceProperties = AzureSqlDatabaseDataSourcePropertiesBase & - AzureSqlDatabaseProperties; +export interface AzureSqlDatabaseDataSourceProperties extends AzureSqlDatabaseProperties {} -export interface AzureSqlDatabaseDataSourcePropertiesBase {} - -export type AmazonPostgreSqlProperties = AmazonPostgreSqlPropertiesBase & DataSourceProperties; - -export interface AmazonPostgreSqlPropertiesBase { +export interface AmazonPostgreSqlProperties extends DataSourceProperties { serverEndpoint?: string; port?: string; } -export type AmazonPostgreSqlDataSource = AmazonPostgreSqlDataSourceBase & DataSource; - -export interface AmazonPostgreSqlDataSourceBase { +export interface AmazonPostgreSqlDataSource extends DataSourceBase { properties?: AmazonPostgreSqlDataSourceProperties; + kind: "AmazonPostgreSql"; } -export type AmazonPostgreSqlDataSourceProperties = AmazonPostgreSqlDataSourcePropertiesBase & - AmazonPostgreSqlProperties; - -export interface AmazonPostgreSqlDataSourcePropertiesBase {} +export interface AmazonPostgreSqlDataSourceProperties extends AmazonPostgreSqlProperties {} -export type AzurePostgreSqlProperties = AzurePostgreSqlPropertiesBase & AzureDataSourceProperties; - -export interface AzurePostgreSqlPropertiesBase { +export interface AzurePostgreSqlProperties extends AzureDataSourceProperties { serverEndpoint?: string; port?: number; } -export type AzurePostgreSqlDataSource = AzurePostgreSqlDataSourceBase & DataSource; - -export interface AzurePostgreSqlDataSourceBase { +export interface AzurePostgreSqlDataSource extends DataSourceBase { properties?: AzurePostgreSqlDataSourceProperties; + kind: "AzurePostgreSql"; } -export type AzurePostgreSqlDataSourceProperties = AzurePostgreSqlDataSourcePropertiesBase & - AzurePostgreSqlProperties; - -export interface AzurePostgreSqlDataSourcePropertiesBase {} +export interface AzurePostgreSqlDataSourceProperties extends AzurePostgreSqlProperties {} -export type SqlServerDatabaseProperties = SqlServerDatabasePropertiesBase & - AzureDataSourceProperties; - -export interface SqlServerDatabasePropertiesBase { +export interface SqlServerDatabaseProperties extends AzureDataSourceProperties { serverEndpoint?: string; } -export type SqlServerDatabaseDataSource = SqlServerDatabaseDataSourceBase & DataSource; - -export interface SqlServerDatabaseDataSourceBase { +export interface SqlServerDatabaseDataSource extends DataSourceBase { properties?: SqlServerDatabaseDataSourceProperties; + kind: "SqlServerDatabase"; } -export type SqlServerDatabaseDataSourceProperties = SqlServerDatabaseDataSourcePropertiesBase & - SqlServerDatabaseProperties; - -export interface SqlServerDatabaseDataSourcePropertiesBase {} - -export type AzureSqlDatabaseManagedInstanceProperties = AzureSqlDatabaseManagedInstancePropertiesBase & - AzureDataSourceProperties; +export interface SqlServerDatabaseDataSourceProperties extends SqlServerDatabaseProperties {} -export interface AzureSqlDatabaseManagedInstancePropertiesBase { +export interface AzureSqlDatabaseManagedInstanceProperties extends AzureDataSourceProperties { serverEndpoint?: string; } -export type AzureSqlDatabaseManagedInstanceDataSource = AzureSqlDatabaseManagedInstanceDataSourceBase & - DataSource; - -export interface AzureSqlDatabaseManagedInstanceDataSourceBase { +export interface AzureSqlDatabaseManagedInstanceDataSource extends DataSourceBase { properties?: AzureSqlDatabaseManagedInstanceDataSourceProperties; + kind: "AzureSqlDatabaseManagedInstance"; } -export type AzureSqlDatabaseManagedInstanceDataSourceProperties = AzureSqlDatabaseManagedInstanceDataSourcePropertiesBase & - AzureSqlDatabaseManagedInstanceProperties; - -export interface AzureSqlDatabaseManagedInstanceDataSourcePropertiesBase {} - -export type AzureSqlDataWarehouseProperties = AzureSqlDataWarehousePropertiesBase & - AzureDataSourceProperties; +export interface AzureSqlDatabaseManagedInstanceDataSourceProperties + extends AzureSqlDatabaseManagedInstanceProperties {} -export interface AzureSqlDataWarehousePropertiesBase { +export interface AzureSqlDataWarehouseProperties extends AzureDataSourceProperties { serverEndpoint?: string; } -export type AzureSqlDataWarehouseDataSource = AzureSqlDataWarehouseDataSourceBase & DataSource; - -export interface AzureSqlDataWarehouseDataSourceBase { +export interface AzureSqlDataWarehouseDataSource extends DataSourceBase { properties?: AzureSqlDataWarehouseDataSourceProperties; + kind: "AzureSqlDataWarehouse"; } -export type AzureSqlDataWarehouseDataSourceProperties = AzureSqlDataWarehouseDataSourcePropertiesBase & - AzureSqlDataWarehouseProperties; - -export interface AzureSqlDataWarehouseDataSourcePropertiesBase {} - -export type AzureMySqlProperties = AzureMySqlPropertiesBase & AzureDataSourceProperties; +export interface AzureSqlDataWarehouseDataSourceProperties + extends AzureSqlDataWarehouseProperties {} -export interface AzureMySqlPropertiesBase { +export interface AzureMySqlProperties extends AzureDataSourceProperties { serverEndpoint?: string; port?: number; } -export type AzureMySqlDataSource = AzureMySqlDataSourceBase & DataSource; - -export interface AzureMySqlDataSourceBase { +export interface AzureMySqlDataSource extends DataSourceBase { properties?: AzureMySqlDataSourceProperties; + kind: "AzureMySql"; } -export type AzureMySqlDataSourceProperties = AzureMySqlDataSourcePropertiesBase & - AzureMySqlProperties; - -export interface AzureMySqlDataSourcePropertiesBase {} - -export type AzureStorageProperties = AzureStoragePropertiesBase & AzureDataSourceProperties; +export interface AzureMySqlDataSourceProperties extends AzureMySqlProperties {} -export interface AzureStoragePropertiesBase { +export interface AzureStorageProperties extends AzureDataSourceProperties { endpoint?: string; } -export type AzureStorageDataSource = AzureStorageDataSourceBase & DataSource; - -export interface AzureStorageDataSourceBase { +export interface AzureStorageDataSource extends DataSourceBase { properties?: AzureStorageDataSourceProperties; + kind: "AzureStorage"; } -export type AzureStorageDataSourceProperties = AzureStorageDataSourcePropertiesBase & - AzureStorageProperties; - -export interface AzureStorageDataSourcePropertiesBase {} +export interface AzureStorageDataSourceProperties extends AzureStorageProperties {} -export type TeradataProperties = TeradataPropertiesBase & DataSourceProperties; - -export interface TeradataPropertiesBase { +export interface TeradataProperties extends DataSourceProperties { host?: string; } -export type TeradataDataSource = TeradataDataSourceBase & DataSource; - -export interface TeradataDataSourceBase { +export interface TeradataDataSource extends DataSourceBase { properties?: TeradataDataSourceProperties; + kind: "Teradata"; } -export type TeradataDataSourceProperties = TeradataDataSourcePropertiesBase & TeradataProperties; +export interface TeradataDataSourceProperties extends TeradataProperties {} -export interface TeradataDataSourcePropertiesBase {} - -export type OracleProperties = OraclePropertiesBase & DataSourceProperties; - -export interface OraclePropertiesBase { +export interface OracleProperties extends DataSourceProperties { host?: string; port?: string; service?: string; } -export type OracleDataSource = OracleDataSourceBase & DataSource; - -export interface OracleDataSourceBase { +export interface OracleDataSource extends DataSourceBase { properties?: OracleDataSourceProperties; + kind: "Oracle"; } -export type OracleDataSourceProperties = OracleDataSourcePropertiesBase & OracleProperties; +export interface OracleDataSourceProperties extends OracleProperties {} -export interface OracleDataSourcePropertiesBase {} - -export type SapS4HanaProperties = SapS4HanaPropertiesBase & DataSourceProperties; - -export interface SapS4HanaPropertiesBase { +export interface SapS4HanaProperties extends DataSourceProperties { applicationServer?: string; systemNumber?: string; } -export type SapS4HanaDataSource = SapS4HanaDataSourceBase & DataSource; - -export interface SapS4HanaDataSourceBase { +export interface SapS4HanaDataSource extends DataSourceBase { properties?: SapS4HanaDataSourceProperties; + kind: "SapS4Hana"; } -export type SapS4HanaDataSourceProperties = SapS4HanaDataSourcePropertiesBase & SapS4HanaProperties; - -export interface SapS4HanaDataSourcePropertiesBase {} +export interface SapS4HanaDataSourceProperties extends SapS4HanaProperties {} -export type SapEccProperties = SapEccPropertiesBase & DataSourceProperties; - -export interface SapEccPropertiesBase { +export interface SapEccProperties extends DataSourceProperties { applicationServer?: string; systemNumber?: string; } -export type SapEccDataSource = SapEccDataSourceBase & DataSource; - -export interface SapEccDataSourceBase { +export interface SapEccDataSource extends DataSourceBase { properties?: SapEccDataSourceProperties; + kind: "SapEcc"; } -export type SapEccDataSourceProperties = SapEccDataSourcePropertiesBase & SapEccProperties; - -export interface SapEccDataSourcePropertiesBase {} +export interface SapEccDataSourceProperties extends SapEccProperties {} -export type PowerBIProperties = PowerBIPropertiesBase & DataSourceProperties; - -export interface PowerBIPropertiesBase { +export interface PowerBIProperties extends DataSourceProperties { tenant?: string; } -export type PowerBIDataSource = PowerBIDataSourceBase & DataSource; - -export interface PowerBIDataSourceBase { +export interface PowerBIDataSource extends DataSourceBase { properties?: PowerBIDataSourceProperties; + kind: "PowerBI"; } -export type PowerBIDataSourceProperties = PowerBIDataSourcePropertiesBase & PowerBIProperties; - -export interface PowerBIDataSourcePropertiesBase {} +export interface PowerBIDataSourceProperties extends PowerBIProperties {} export interface ScanRulesetProperties { createdAt?: Date; description?: string; - excludedSystemClassifications?: string[]; - includedCustomClassificationRuleNames?: string[]; + excludedSystemClassifications?: Array; + includedCustomClassificationRuleNames?: Array; lastModifiedAt?: Date; } -export type AzureSubscriptionScanRulesetProperties = AzureSubscriptionScanRulesetPropertiesBase & - ScanRulesetProperties; - -export interface AzureSubscriptionScanRulesetPropertiesBase {} +export interface AzureSubscriptionScanRulesetProperties extends ScanRulesetProperties {} -export type AzureSubscriptionScanRuleset = AzureSubscriptionScanRulesetBase & ScanRuleset; - -export interface AzureSubscriptionScanRulesetBase { +export interface AzureSubscriptionScanRuleset extends ScanRulesetBase { properties?: AzureSubscriptionScanRulesetPropertiesAutoGenerated; + kind: "AzureSubscription"; } -export type AzureSubscriptionScanRulesetPropertiesAutoGenerated = AzureSubscriptionScanRulesetPropertiesAutoGeneratedBase & - AzureSubscriptionScanRulesetProperties; - -export interface AzureSubscriptionScanRulesetPropertiesAutoGeneratedBase {} - -export type AzureResourceGroupScanRulesetProperties = AzureResourceGroupScanRulesetPropertiesBase & - ScanRulesetProperties; +export interface AzureSubscriptionScanRulesetPropertiesAutoGenerated + extends AzureSubscriptionScanRulesetProperties {} -export interface AzureResourceGroupScanRulesetPropertiesBase {} +export interface AzureResourceGroupScanRulesetProperties extends ScanRulesetProperties {} -export type AzureResourceGroupScanRuleset = AzureResourceGroupScanRulesetBase & ScanRuleset; - -export interface AzureResourceGroupScanRulesetBase { +export interface AzureResourceGroupScanRuleset extends ScanRulesetBase { properties?: AzureResourceGroupScanRulesetPropertiesAutoGenerated; + kind: "AzureResourceGroup"; } -export type AzureResourceGroupScanRulesetPropertiesAutoGenerated = AzureResourceGroupScanRulesetPropertiesAutoGeneratedBase & - AzureResourceGroupScanRulesetProperties; - -export interface AzureResourceGroupScanRulesetPropertiesAutoGeneratedBase {} - -export type AzureSynapseWorkspaceScanRulesetProperties = AzureSynapseWorkspaceScanRulesetPropertiesBase & - ScanRulesetProperties; - -export interface AzureSynapseWorkspaceScanRulesetPropertiesBase {} +export interface AzureResourceGroupScanRulesetPropertiesAutoGenerated + extends AzureResourceGroupScanRulesetProperties {} -export type AzureSynapseWorkspaceScanRuleset = AzureSynapseWorkspaceScanRulesetBase & ScanRuleset; +export interface AzureSynapseWorkspaceScanRulesetProperties extends ScanRulesetProperties {} -export interface AzureSynapseWorkspaceScanRulesetBase { +export interface AzureSynapseWorkspaceScanRuleset extends ScanRulesetBase { properties?: AzureSynapseWorkspaceScanRulesetPropertiesAutoGenerated; + kind: "AzureSynapseWorkspace"; } -export type AzureSynapseWorkspaceScanRulesetPropertiesAutoGenerated = AzureSynapseWorkspaceScanRulesetPropertiesAutoGeneratedBase & - AzureSynapseWorkspaceScanRulesetProperties; - -export interface AzureSynapseWorkspaceScanRulesetPropertiesAutoGeneratedBase {} - -export type AzureSynapseScanRulesetProperties = AzureSynapseScanRulesetPropertiesBase & - ScanRulesetProperties; - -export interface AzureSynapseScanRulesetPropertiesBase {} +export interface AzureSynapseWorkspaceScanRulesetPropertiesAutoGenerated + extends AzureSynapseWorkspaceScanRulesetProperties {} -export type AzureSynapseScanRuleset = AzureSynapseScanRulesetBase & ScanRuleset; +export interface AzureSynapseScanRulesetProperties extends ScanRulesetProperties {} -export interface AzureSynapseScanRulesetBase { +export interface AzureSynapseScanRuleset extends ScanRulesetBase { properties?: AzureSynapseScanRulesetPropertiesAutoGenerated; + kind: "AzureSynapse"; } -export type AzureSynapseScanRulesetPropertiesAutoGenerated = AzureSynapseScanRulesetPropertiesAutoGeneratedBase & - AzureSynapseScanRulesetProperties; - -export interface AzureSynapseScanRulesetPropertiesAutoGeneratedBase {} +export interface AzureSynapseScanRulesetPropertiesAutoGenerated + extends AzureSynapseScanRulesetProperties {} export interface CustomFileType { - builtInType?: FileExtensionsType; + builtInType?: + | "AVRO" + | "ORC" + | "PARQUET" + | "JSON" + | "TXT" + | "XML" + | "Documents" + | "CSV" + | "PSV" + | "SSV" + | "TSV" + | "GZ" + | "DOC" + | "DOCM" + | "DOCX" + | "DOT" + | "ODP" + | "ODS" + | "ODT" + | "PDF" + | "POT" + | "PPS" + | "PPSX" + | "PPT" + | "PPTM" + | "PPTX" + | "XLC" + | "XLS" + | "XLSB" + | "XLSM" + | "XLSX" + | "XLT"; customDelimiter?: string; } @@ -834,13 +785,10 @@ export interface CustomFileExtension { fileExtension?: string; } -export type CustomFileExtensionCustomFileType = CustomFileExtensionCustomFileTypeBase & - CustomFileType; - -export interface CustomFileExtensionCustomFileTypeBase {} +export interface CustomFileExtensionCustomFileType extends CustomFileType {} export interface ScanningRule { - fileExtensions?: + fileExtensions?: Array< | "AVRO" | "ORC" | "PARQUET" @@ -872,382 +820,242 @@ export interface ScanningRule { | "XLSB" | "XLSM" | "XLSX" - | "XLT"[]; - customFileExtensions?: CustomFileExtension[]; + | "XLT" + >; + customFileExtensions?: Array; } -export type ScanningRuleScanRulesetProperties = ScanningRuleScanRulesetPropertiesBase & - ScanRulesetProperties; - -export interface ScanningRuleScanRulesetPropertiesBase { +export interface ScanningRuleScanRulesetProperties extends ScanRulesetProperties { scanningRule?: ScanningRuleScanRulesetPropertiesScanningRule; } -export type ScanningRuleScanRulesetPropertiesScanningRule = ScanningRuleScanRulesetPropertiesScanningRuleBase & - ScanningRule; +export interface ScanningRuleScanRulesetPropertiesScanningRule extends ScanningRule {} -export interface ScanningRuleScanRulesetPropertiesScanningRuleBase {} +export interface AdlsGen1ScanRulesetProperties extends ScanningRuleScanRulesetProperties {} -export type AdlsGen1ScanRulesetProperties = AdlsGen1ScanRulesetPropertiesBase & - ScanningRuleScanRulesetProperties; - -export interface AdlsGen1ScanRulesetPropertiesBase {} - -export type AdlsGen1ScanRuleset = AdlsGen1ScanRulesetBase & ScanRuleset; - -export interface AdlsGen1ScanRulesetBase { +export interface AdlsGen1ScanRuleset extends ScanRulesetBase { properties?: AdlsGen1ScanRulesetPropertiesAutoGenerated; + kind: "AdlsGen1"; } -export type AdlsGen1ScanRulesetPropertiesAutoGenerated = AdlsGen1ScanRulesetPropertiesAutoGeneratedBase & - AdlsGen1ScanRulesetProperties; - -export interface AdlsGen1ScanRulesetPropertiesAutoGeneratedBase {} +export interface AdlsGen1ScanRulesetPropertiesAutoGenerated extends AdlsGen1ScanRulesetProperties {} -export type AdlsGen2ScanRulesetProperties = AdlsGen2ScanRulesetPropertiesBase & - ScanningRuleScanRulesetProperties; +export interface AdlsGen2ScanRulesetProperties extends ScanningRuleScanRulesetProperties {} -export interface AdlsGen2ScanRulesetPropertiesBase {} - -export type AdlsGen2ScanRuleset = AdlsGen2ScanRulesetBase & ScanRuleset; - -export interface AdlsGen2ScanRulesetBase { +export interface AdlsGen2ScanRuleset extends ScanRulesetBase { properties?: AdlsGen2ScanRulesetPropertiesAutoGenerated; + kind: "AdlsGen2"; } -export type AdlsGen2ScanRulesetPropertiesAutoGenerated = AdlsGen2ScanRulesetPropertiesAutoGeneratedBase & - AdlsGen2ScanRulesetProperties; - -export interface AdlsGen2ScanRulesetPropertiesAutoGeneratedBase {} +export interface AdlsGen2ScanRulesetPropertiesAutoGenerated extends AdlsGen2ScanRulesetProperties {} -export type AmazonAccountScanRulesetProperties = AmazonAccountScanRulesetPropertiesBase & - ScanRulesetProperties; +export interface AmazonAccountScanRulesetProperties extends ScanRulesetProperties {} -export interface AmazonAccountScanRulesetPropertiesBase {} - -export type AmazonAccountScanRuleset = AmazonAccountScanRulesetBase & ScanRuleset; - -export interface AmazonAccountScanRulesetBase { +export interface AmazonAccountScanRuleset extends ScanRulesetBase { properties?: AmazonAccountScanRulesetPropertiesAutoGenerated; + kind: "AmazonAccount"; } -export type AmazonAccountScanRulesetPropertiesAutoGenerated = AmazonAccountScanRulesetPropertiesAutoGeneratedBase & - AmazonAccountScanRulesetProperties; - -export interface AmazonAccountScanRulesetPropertiesAutoGeneratedBase {} - -export type AmazonS3ScanRulesetProperties = AmazonS3ScanRulesetPropertiesBase & - ScanningRuleScanRulesetProperties; +export interface AmazonAccountScanRulesetPropertiesAutoGenerated + extends AmazonAccountScanRulesetProperties {} -export interface AmazonS3ScanRulesetPropertiesBase {} +export interface AmazonS3ScanRulesetProperties extends ScanningRuleScanRulesetProperties {} -export type AmazonS3ScanRuleset = AmazonS3ScanRulesetBase & ScanRuleset; - -export interface AmazonS3ScanRulesetBase { +export interface AmazonS3ScanRuleset extends ScanRulesetBase { properties?: AmazonS3ScanRulesetPropertiesAutoGenerated; + kind: "AmazonS3"; } -export type AmazonS3ScanRulesetPropertiesAutoGenerated = AmazonS3ScanRulesetPropertiesAutoGeneratedBase & - AmazonS3ScanRulesetProperties; - -export interface AmazonS3ScanRulesetPropertiesAutoGeneratedBase {} - -export type AmazonSqlScanRulesetProperties = AmazonSqlScanRulesetPropertiesBase & - ScanRulesetProperties; +export interface AmazonS3ScanRulesetPropertiesAutoGenerated extends AmazonS3ScanRulesetProperties {} -export interface AmazonSqlScanRulesetPropertiesBase {} +export interface AmazonSqlScanRulesetProperties extends ScanRulesetProperties {} -export type AmazonSqlScanRuleset = AmazonSqlScanRulesetBase & ScanRuleset; - -export interface AmazonSqlScanRulesetBase { +export interface AmazonSqlScanRuleset extends ScanRulesetBase { properties?: AmazonSqlScanRulesetPropertiesAutoGenerated; + kind: "AmazonSql"; } -export type AmazonSqlScanRulesetPropertiesAutoGenerated = AmazonSqlScanRulesetPropertiesAutoGeneratedBase & - AmazonSqlScanRulesetProperties; - -export interface AmazonSqlScanRulesetPropertiesAutoGeneratedBase {} - -export type AzureCosmosDbScanRulesetProperties = AzureCosmosDbScanRulesetPropertiesBase & - ScanRulesetProperties; +export interface AmazonSqlScanRulesetPropertiesAutoGenerated + extends AmazonSqlScanRulesetProperties {} -export interface AzureCosmosDbScanRulesetPropertiesBase {} +export interface AzureCosmosDbScanRulesetProperties extends ScanRulesetProperties {} -export type AzureCosmosDbScanRuleset = AzureCosmosDbScanRulesetBase & ScanRuleset; - -export interface AzureCosmosDbScanRulesetBase { +export interface AzureCosmosDbScanRuleset extends ScanRulesetBase { properties?: AzureCosmosDbScanRulesetPropertiesAutoGenerated; + kind: "AzureCosmosDb"; } -export type AzureCosmosDbScanRulesetPropertiesAutoGenerated = AzureCosmosDbScanRulesetPropertiesAutoGeneratedBase & - AzureCosmosDbScanRulesetProperties; - -export interface AzureCosmosDbScanRulesetPropertiesAutoGeneratedBase {} - -export type AzureDataExplorerScanRulesetProperties = AzureDataExplorerScanRulesetPropertiesBase & - ScanRulesetProperties; +export interface AzureCosmosDbScanRulesetPropertiesAutoGenerated + extends AzureCosmosDbScanRulesetProperties {} -export interface AzureDataExplorerScanRulesetPropertiesBase {} +export interface AzureDataExplorerScanRulesetProperties extends ScanRulesetProperties {} -export type AzureDataExplorerScanRuleset = AzureDataExplorerScanRulesetBase & ScanRuleset; - -export interface AzureDataExplorerScanRulesetBase { +export interface AzureDataExplorerScanRuleset extends ScanRulesetBase { properties?: AzureDataExplorerScanRulesetPropertiesAutoGenerated; + kind: "AzureDataExplorer"; } -export type AzureDataExplorerScanRulesetPropertiesAutoGenerated = AzureDataExplorerScanRulesetPropertiesAutoGeneratedBase & - AzureDataExplorerScanRulesetProperties; - -export interface AzureDataExplorerScanRulesetPropertiesAutoGeneratedBase {} - -export type AzureFileServiceScanRulesetProperties = AzureFileServiceScanRulesetPropertiesBase & - ScanningRuleScanRulesetProperties; - -export interface AzureFileServiceScanRulesetPropertiesBase {} +export interface AzureDataExplorerScanRulesetPropertiesAutoGenerated + extends AzureDataExplorerScanRulesetProperties {} -export type AzureFileServiceScanRuleset = AzureFileServiceScanRulesetBase & ScanRuleset; +export interface AzureFileServiceScanRulesetProperties extends ScanningRuleScanRulesetProperties {} -export interface AzureFileServiceScanRulesetBase { +export interface AzureFileServiceScanRuleset extends ScanRulesetBase { properties?: AzureFileServiceScanRulesetPropertiesAutoGenerated; + kind: "AzureFileService"; } -export type AzureFileServiceScanRulesetPropertiesAutoGenerated = AzureFileServiceScanRulesetPropertiesAutoGeneratedBase & - AzureFileServiceScanRulesetProperties; - -export interface AzureFileServiceScanRulesetPropertiesAutoGeneratedBase {} - -export type AzureSqlDatabaseScanRulesetProperties = AzureSqlDatabaseScanRulesetPropertiesBase & - ScanRulesetProperties; - -export interface AzureSqlDatabaseScanRulesetPropertiesBase {} +export interface AzureFileServiceScanRulesetPropertiesAutoGenerated + extends AzureFileServiceScanRulesetProperties {} -export type AzureSqlDatabaseScanRuleset = AzureSqlDatabaseScanRulesetBase & ScanRuleset; +export interface AzureSqlDatabaseScanRulesetProperties extends ScanRulesetProperties {} -export interface AzureSqlDatabaseScanRulesetBase { +export interface AzureSqlDatabaseScanRuleset extends ScanRulesetBase { properties?: AzureSqlDatabaseScanRulesetPropertiesAutoGenerated; + kind: "AzureSqlDatabase"; } -export type AzureSqlDatabaseScanRulesetPropertiesAutoGenerated = AzureSqlDatabaseScanRulesetPropertiesAutoGeneratedBase & - AzureSqlDatabaseScanRulesetProperties; +export interface AzureSqlDatabaseScanRulesetPropertiesAutoGenerated + extends AzureSqlDatabaseScanRulesetProperties {} -export interface AzureSqlDatabaseScanRulesetPropertiesAutoGeneratedBase {} +export interface AmazonPostgreSqlScanRulesetProperties extends ScanRulesetProperties {} -export type AmazonPostgreSqlScanRulesetProperties = AmazonPostgreSqlScanRulesetPropertiesBase & - ScanRulesetProperties; - -export interface AmazonPostgreSqlScanRulesetPropertiesBase {} - -export type AmazonPostgreSqlScanRuleset = AmazonPostgreSqlScanRulesetBase & ScanRuleset; - -export interface AmazonPostgreSqlScanRulesetBase { +export interface AmazonPostgreSqlScanRuleset extends ScanRulesetBase { properties?: AmazonPostgreSqlScanRulesetPropertiesAutoGenerated; + kind: "AmazonPostgreSql"; } -export type AmazonPostgreSqlScanRulesetPropertiesAutoGenerated = AmazonPostgreSqlScanRulesetPropertiesAutoGeneratedBase & - AmazonPostgreSqlScanRulesetProperties; - -export interface AmazonPostgreSqlScanRulesetPropertiesAutoGeneratedBase {} +export interface AmazonPostgreSqlScanRulesetPropertiesAutoGenerated + extends AmazonPostgreSqlScanRulesetProperties {} -export type AzurePostgreSqlScanRulesetProperties = AzurePostgreSqlScanRulesetPropertiesBase & - ScanRulesetProperties; +export interface AzurePostgreSqlScanRulesetProperties extends ScanRulesetProperties {} -export interface AzurePostgreSqlScanRulesetPropertiesBase {} - -export type AzurePostgreSqlScanRuleset = AzurePostgreSqlScanRulesetBase & ScanRuleset; - -export interface AzurePostgreSqlScanRulesetBase { +export interface AzurePostgreSqlScanRuleset extends ScanRulesetBase { properties?: AzurePostgreSqlScanRulesetPropertiesAutoGenerated; + kind: "AzurePostgreSql"; } -export type AzurePostgreSqlScanRulesetPropertiesAutoGenerated = AzurePostgreSqlScanRulesetPropertiesAutoGeneratedBase & - AzurePostgreSqlScanRulesetProperties; - -export interface AzurePostgreSqlScanRulesetPropertiesAutoGeneratedBase {} +export interface AzurePostgreSqlScanRulesetPropertiesAutoGenerated + extends AzurePostgreSqlScanRulesetProperties {} -export type SqlServerDatabaseScanRulesetProperties = SqlServerDatabaseScanRulesetPropertiesBase & - ScanRulesetProperties; +export interface SqlServerDatabaseScanRulesetProperties extends ScanRulesetProperties {} -export interface SqlServerDatabaseScanRulesetPropertiesBase {} - -export type SqlServerDatabaseScanRuleset = SqlServerDatabaseScanRulesetBase & ScanRuleset; - -export interface SqlServerDatabaseScanRulesetBase { +export interface SqlServerDatabaseScanRuleset extends ScanRulesetBase { properties?: SqlServerDatabaseScanRulesetPropertiesAutoGenerated; + kind: "SqlServerDatabase"; } -export type SqlServerDatabaseScanRulesetPropertiesAutoGenerated = SqlServerDatabaseScanRulesetPropertiesAutoGeneratedBase & - SqlServerDatabaseScanRulesetProperties; - -export interface SqlServerDatabaseScanRulesetPropertiesAutoGeneratedBase {} - -export type AzureSqlDatabaseManagedInstanceScanRulesetProperties = AzureSqlDatabaseManagedInstanceScanRulesetPropertiesBase & - ScanRulesetProperties; +export interface SqlServerDatabaseScanRulesetPropertiesAutoGenerated + extends SqlServerDatabaseScanRulesetProperties {} -export interface AzureSqlDatabaseManagedInstanceScanRulesetPropertiesBase {} +export interface AzureSqlDatabaseManagedInstanceScanRulesetProperties + extends ScanRulesetProperties {} -export type AzureSqlDatabaseManagedInstanceScanRuleset = AzureSqlDatabaseManagedInstanceScanRulesetBase & - ScanRuleset; - -export interface AzureSqlDatabaseManagedInstanceScanRulesetBase { +export interface AzureSqlDatabaseManagedInstanceScanRuleset extends ScanRulesetBase { properties?: AzureSqlDatabaseManagedInstanceScanRulesetPropertiesAutoGenerated; + kind: "AzureSqlDatabaseManagedInstance"; } -export type AzureSqlDatabaseManagedInstanceScanRulesetPropertiesAutoGenerated = AzureSqlDatabaseManagedInstanceScanRulesetPropertiesAutoGeneratedBase & - AzureSqlDatabaseManagedInstanceScanRulesetProperties; - -export interface AzureSqlDatabaseManagedInstanceScanRulesetPropertiesAutoGeneratedBase {} - -export type AzureSqlDataWarehouseScanRulesetProperties = AzureSqlDataWarehouseScanRulesetPropertiesBase & - ScanRulesetProperties; +export interface AzureSqlDatabaseManagedInstanceScanRulesetPropertiesAutoGenerated + extends AzureSqlDatabaseManagedInstanceScanRulesetProperties {} -export interface AzureSqlDataWarehouseScanRulesetPropertiesBase {} +export interface AzureSqlDataWarehouseScanRulesetProperties extends ScanRulesetProperties {} -export type AzureSqlDataWarehouseScanRuleset = AzureSqlDataWarehouseScanRulesetBase & ScanRuleset; - -export interface AzureSqlDataWarehouseScanRulesetBase { +export interface AzureSqlDataWarehouseScanRuleset extends ScanRulesetBase { properties?: AzureSqlDataWarehouseScanRulesetPropertiesAutoGenerated; + kind: "AzureSqlDataWarehouse"; } -export type AzureSqlDataWarehouseScanRulesetPropertiesAutoGenerated = AzureSqlDataWarehouseScanRulesetPropertiesAutoGeneratedBase & - AzureSqlDataWarehouseScanRulesetProperties; - -export interface AzureSqlDataWarehouseScanRulesetPropertiesAutoGeneratedBase {} - -export type AzureMySqlScanRulesetProperties = AzureMySqlScanRulesetPropertiesBase & - ScanRulesetProperties; +export interface AzureSqlDataWarehouseScanRulesetPropertiesAutoGenerated + extends AzureSqlDataWarehouseScanRulesetProperties {} -export interface AzureMySqlScanRulesetPropertiesBase {} +export interface AzureMySqlScanRulesetProperties extends ScanRulesetProperties {} -export type AzureMySqlScanRuleset = AzureMySqlScanRulesetBase & ScanRuleset; - -export interface AzureMySqlScanRulesetBase { +export interface AzureMySqlScanRuleset extends ScanRulesetBase { properties?: AzureMySqlScanRulesetPropertiesAutoGenerated; + kind: "AzureMySql"; } -export type AzureMySqlScanRulesetPropertiesAutoGenerated = AzureMySqlScanRulesetPropertiesAutoGeneratedBase & - AzureMySqlScanRulesetProperties; - -export interface AzureMySqlScanRulesetPropertiesAutoGeneratedBase {} - -export type AzureStorageScanRulesetProperties = AzureStorageScanRulesetPropertiesBase & - ScanningRuleScanRulesetProperties; +export interface AzureMySqlScanRulesetPropertiesAutoGenerated + extends AzureMySqlScanRulesetProperties {} -export interface AzureStorageScanRulesetPropertiesBase {} +export interface AzureStorageScanRulesetProperties extends ScanningRuleScanRulesetProperties {} -export type AzureStorageScanRuleset = AzureStorageScanRulesetBase & ScanRuleset; - -export interface AzureStorageScanRulesetBase { +export interface AzureStorageScanRuleset extends ScanRulesetBase { properties?: AzureStorageScanRulesetPropertiesAutoGenerated; + kind: "AzureStorage"; } -export type AzureStorageScanRulesetPropertiesAutoGenerated = AzureStorageScanRulesetPropertiesAutoGeneratedBase & - AzureStorageScanRulesetProperties; - -export interface AzureStorageScanRulesetPropertiesAutoGeneratedBase {} - -export type TeradataScanRulesetProperties = TeradataScanRulesetPropertiesBase & - ScanRulesetProperties; - -export interface TeradataScanRulesetPropertiesBase {} +export interface AzureStorageScanRulesetPropertiesAutoGenerated + extends AzureStorageScanRulesetProperties {} -export type TeradataScanRuleset = TeradataScanRulesetBase & ScanRuleset; +export interface TeradataScanRulesetProperties extends ScanRulesetProperties {} -export interface TeradataScanRulesetBase { +export interface TeradataScanRuleset extends ScanRulesetBase { properties?: TeradataScanRulesetPropertiesAutoGenerated; + kind: "Teradata"; } -export type TeradataScanRulesetPropertiesAutoGenerated = TeradataScanRulesetPropertiesAutoGeneratedBase & - TeradataScanRulesetProperties; - -export interface TeradataScanRulesetPropertiesAutoGeneratedBase {} - -export type OracleScanRulesetProperties = OracleScanRulesetPropertiesBase & ScanRulesetProperties; - -export interface OracleScanRulesetPropertiesBase {} +export interface TeradataScanRulesetPropertiesAutoGenerated extends TeradataScanRulesetProperties {} -export type OracleScanRuleset = OracleScanRulesetBase & ScanRuleset; +export interface OracleScanRulesetProperties extends ScanRulesetProperties {} -export interface OracleScanRulesetBase { +export interface OracleScanRuleset extends ScanRulesetBase { properties?: OracleScanRulesetPropertiesAutoGenerated; + kind: "Oracle"; } -export type OracleScanRulesetPropertiesAutoGenerated = OracleScanRulesetPropertiesAutoGeneratedBase & - OracleScanRulesetProperties; +export interface OracleScanRulesetPropertiesAutoGenerated extends OracleScanRulesetProperties {} -export interface OracleScanRulesetPropertiesAutoGeneratedBase {} +export interface SapS4HanaScanRulesetProperties extends ScanRulesetProperties {} -export type SapS4HanaScanRulesetProperties = SapS4HanaScanRulesetPropertiesBase & - ScanRulesetProperties; - -export interface SapS4HanaScanRulesetPropertiesBase {} - -export type SapS4HanaScanRuleset = SapS4HanaScanRulesetBase & ScanRuleset; - -export interface SapS4HanaScanRulesetBase { +export interface SapS4HanaScanRuleset extends ScanRulesetBase { properties?: SapS4HanaScanRulesetPropertiesAutoGenerated; + kind: "SapS4Hana"; } -export type SapS4HanaScanRulesetPropertiesAutoGenerated = SapS4HanaScanRulesetPropertiesAutoGeneratedBase & - SapS4HanaScanRulesetProperties; - -export interface SapS4HanaScanRulesetPropertiesAutoGeneratedBase {} +export interface SapS4HanaScanRulesetPropertiesAutoGenerated + extends SapS4HanaScanRulesetProperties {} -export type SapEccScanRulesetProperties = SapEccScanRulesetPropertiesBase & ScanRulesetProperties; +export interface SapEccScanRulesetProperties extends ScanRulesetProperties {} -export interface SapEccScanRulesetPropertiesBase {} - -export type SapEccScanRuleset = SapEccScanRulesetBase & ScanRuleset; - -export interface SapEccScanRulesetBase { +export interface SapEccScanRuleset extends ScanRulesetBase { properties?: SapEccScanRulesetPropertiesAutoGenerated; + kind: "SapEcc"; } -export type SapEccScanRulesetPropertiesAutoGenerated = SapEccScanRulesetPropertiesAutoGeneratedBase & - SapEccScanRulesetProperties; - -export interface SapEccScanRulesetPropertiesAutoGeneratedBase {} +export interface SapEccScanRulesetPropertiesAutoGenerated extends SapEccScanRulesetProperties {} -export type PowerBIScanRulesetProperties = PowerBIScanRulesetPropertiesBase & ScanRulesetProperties; +export interface PowerBIScanRulesetProperties extends ScanRulesetProperties {} -export interface PowerBIScanRulesetPropertiesBase {} - -export type PowerBIScanRuleset = PowerBIScanRulesetBase & ScanRuleset; - -export interface PowerBIScanRulesetBase { +export interface PowerBIScanRuleset extends ScanRulesetBase { properties?: PowerBIScanRulesetPropertiesAutoGenerated; + kind: "PowerBI"; } -export type PowerBIScanRulesetPropertiesAutoGenerated = PowerBIScanRulesetPropertiesAutoGeneratedBase & - PowerBIScanRulesetProperties; - -export interface PowerBIScanRulesetPropertiesAutoGeneratedBase {} +export interface PowerBIScanRulesetPropertiesAutoGenerated extends PowerBIScanRulesetProperties {} export interface ResourceNameFilter { - excludePrefixes?: string[]; - includePrefixes?: string[]; - resources?: string[]; + excludePrefixes?: Array; + includePrefixes?: Array; + resources?: Array; } export interface CredentialReference { referenceName?: string; - credentialType?: CredentialType; + credentialType?: "AccountKey" | "ServicePrincipal" | "BasicAuth" | "SqlAuth" | "AmazonARN"; } export interface ResourceTypeFilter { scanRulesetName?: string; - scanRulesetType?: ScanRulesetType; + scanRulesetType?: "Custom" | "System"; resourceNameFilter?: ResourceTypeFilterResourceNameFilter; credential?: ResourceTypeFilterCredential; } -export type ResourceTypeFilterResourceNameFilter = ResourceTypeFilterResourceNameFilterBase & - ResourceNameFilter; - -export interface ResourceTypeFilterResourceNameFilterBase {} +export interface ResourceTypeFilterResourceNameFilter extends ResourceNameFilter {} -export type ResourceTypeFilterCredential = ResourceTypeFilterCredentialBase & CredentialReference; - -export interface ResourceTypeFilterCredentialBase {} +export interface ResourceTypeFilterCredential extends CredentialReference {} export interface ConnectedVia { referenceName?: string; @@ -1255,515 +1063,341 @@ export interface ConnectedVia { export interface ScanProperties { scanRulesetName?: string; - scanRulesetType?: ScanRulesetType; + scanRulesetType?: "Custom" | "System"; + collection?: ScanPropertiesCollection; workers?: number; createdAt?: Date; lastModifiedAt?: Date; connectedVia?: ScanPropertiesConnectedVia; } -export type ScanPropertiesConnectedVia = ScanPropertiesConnectedViaBase & ConnectedVia; - -export interface ScanPropertiesConnectedViaBase {} +export interface ScanPropertiesCollection extends CollectionReference {} -export type ExpandingResourceScanProperties = ExpandingResourceScanPropertiesBase & ScanProperties; +export interface ScanPropertiesConnectedVia extends ConnectedVia {} -export interface ExpandingResourceScanPropertiesBase { +export interface ExpandingResourceScanProperties extends ScanProperties { resourceTypes?: ExpandingResourceScanPropertiesResourceTypes; credential?: ExpandingResourceScanPropertiesCredential; } export interface ExpandingResourceScanPropertiesResourceTypes { - none?: ResourceTypeFilter; - azureSubscription?: ResourceTypeFilter; - azureResourceGroup?: ResourceTypeFilter; - azureSynapseWorkspace?: ResourceTypeFilter; - azureSynapse?: ResourceTypeFilter; - adlsGen1?: ResourceTypeFilter; - adlsGen2?: ResourceTypeFilter; - amazonAccount?: ResourceTypeFilter; - amazonS3?: ResourceTypeFilter; - amazonSql?: ResourceTypeFilter; - azureCosmosDb?: ResourceTypeFilter; - azureDataExplorer?: ResourceTypeFilter; - azureFileService?: ResourceTypeFilter; - azureSqlDatabase?: ResourceTypeFilter; - amazonPostgreSql?: ResourceTypeFilter; - azurePostgreSql?: ResourceTypeFilter; - sqlServerDatabase?: ResourceTypeFilter; - azureSqlDatabaseManagedInstance?: ResourceTypeFilter; - azureSqlDataWarehouse?: ResourceTypeFilter; - azureMySql?: ResourceTypeFilter; - azureStorage?: ResourceTypeFilter; - teradata?: ResourceTypeFilter; - oracle?: ResourceTypeFilter; - sapS4Hana?: ResourceTypeFilter; - sapEcc?: ResourceTypeFilter; - powerBI?: ResourceTypeFilter; -} - -export type ExpandingResourceScanPropertiesCredential = ExpandingResourceScanPropertiesCredentialBase & - CredentialReference; - -export interface ExpandingResourceScanPropertiesCredentialBase {} - -export type AzureSubscriptionCredentialScanProperties = AzureSubscriptionCredentialScanPropertiesBase & - ExpandingResourceScanProperties; - -export interface AzureSubscriptionCredentialScanPropertiesBase {} - -export type AzureSubscriptionCredentialScan = AzureSubscriptionCredentialScanBase & Scan; - -export interface AzureSubscriptionCredentialScanBase { + None?: ResourceTypeFilter; + AzureSubscription?: ResourceTypeFilter; + AzureResourceGroup?: ResourceTypeFilter; + AzureSynapseWorkspace?: ResourceTypeFilter; + AzureSynapse?: ResourceTypeFilter; + AdlsGen1?: ResourceTypeFilter; + AdlsGen2?: ResourceTypeFilter; + AmazonAccount?: ResourceTypeFilter; + AmazonS3?: ResourceTypeFilter; + AmazonSql?: ResourceTypeFilter; + AzureCosmosDb?: ResourceTypeFilter; + AzureDataExplorer?: ResourceTypeFilter; + AzureFileService?: ResourceTypeFilter; + AzureSqlDatabase?: ResourceTypeFilter; + AmazonPostgreSql?: ResourceTypeFilter; + AzurePostgreSql?: ResourceTypeFilter; + SqlServerDatabase?: ResourceTypeFilter; + AzureSqlDatabaseManagedInstance?: ResourceTypeFilter; + AzureSqlDataWarehouse?: ResourceTypeFilter; + AzureMySql?: ResourceTypeFilter; + AzureStorage?: ResourceTypeFilter; + Teradata?: ResourceTypeFilter; + Oracle?: ResourceTypeFilter; + SapS4Hana?: ResourceTypeFilter; + SapEcc?: ResourceTypeFilter; + PowerBI?: ResourceTypeFilter; +} + +export interface ExpandingResourceScanPropertiesCredential extends CredentialReference {} + +export interface AzureSubscriptionCredentialScanProperties + extends ExpandingResourceScanProperties {} + +export interface AzureSubscriptionCredentialScan extends ScanBase { properties?: AzureSubscriptionCredentialScanPropertiesAutoGenerated; + kind: "AzureSubscriptionCredential"; } -export type AzureSubscriptionCredentialScanPropertiesAutoGenerated = AzureSubscriptionCredentialScanPropertiesAutoGeneratedBase & - AzureSubscriptionCredentialScanProperties; - -export interface AzureSubscriptionCredentialScanPropertiesAutoGeneratedBase {} +export interface AzureSubscriptionCredentialScanPropertiesAutoGenerated + extends AzureSubscriptionCredentialScanProperties {} -export type AzureSubscriptionMsiScanProperties = AzureSubscriptionMsiScanPropertiesBase & - ExpandingResourceScanProperties; +export interface AzureSubscriptionMsiScanProperties extends ExpandingResourceScanProperties {} -export interface AzureSubscriptionMsiScanPropertiesBase {} - -export type AzureSubscriptionMsiScan = AzureSubscriptionMsiScanBase & Scan; - -export interface AzureSubscriptionMsiScanBase { +export interface AzureSubscriptionMsiScan extends ScanBase { properties?: AzureSubscriptionMsiScanPropertiesAutoGenerated; + kind: "AzureSubscriptionMsi"; } -export type AzureSubscriptionMsiScanPropertiesAutoGenerated = AzureSubscriptionMsiScanPropertiesAutoGeneratedBase & - AzureSubscriptionMsiScanProperties; - -export interface AzureSubscriptionMsiScanPropertiesAutoGeneratedBase {} - -export type AzureResourceGroupCredentialScanProperties = AzureResourceGroupCredentialScanPropertiesBase & - ExpandingResourceScanProperties; +export interface AzureSubscriptionMsiScanPropertiesAutoGenerated + extends AzureSubscriptionMsiScanProperties {} -export interface AzureResourceGroupCredentialScanPropertiesBase {} +export interface AzureResourceGroupCredentialScanProperties + extends ExpandingResourceScanProperties {} -export type AzureResourceGroupCredentialScan = AzureResourceGroupCredentialScanBase & Scan; - -export interface AzureResourceGroupCredentialScanBase { +export interface AzureResourceGroupCredentialScan extends ScanBase { properties?: AzureResourceGroupCredentialScanPropertiesAutoGenerated; + kind: "AzureResourceGroupCredential"; } -export type AzureResourceGroupCredentialScanPropertiesAutoGenerated = AzureResourceGroupCredentialScanPropertiesAutoGeneratedBase & - AzureResourceGroupCredentialScanProperties; - -export interface AzureResourceGroupCredentialScanPropertiesAutoGeneratedBase {} - -export type AzureResourceGroupMsiScanProperties = AzureResourceGroupMsiScanPropertiesBase & - ExpandingResourceScanProperties; +export interface AzureResourceGroupCredentialScanPropertiesAutoGenerated + extends AzureResourceGroupCredentialScanProperties {} -export interface AzureResourceGroupMsiScanPropertiesBase {} +export interface AzureResourceGroupMsiScanProperties extends ExpandingResourceScanProperties {} -export type AzureResourceGroupMsiScan = AzureResourceGroupMsiScanBase & Scan; - -export interface AzureResourceGroupMsiScanBase { +export interface AzureResourceGroupMsiScan extends ScanBase { properties?: AzureResourceGroupMsiScanPropertiesAutoGenerated; + kind: "AzureResourceGroupMsi"; } -export type AzureResourceGroupMsiScanPropertiesAutoGenerated = AzureResourceGroupMsiScanPropertiesAutoGeneratedBase & - AzureResourceGroupMsiScanProperties; - -export interface AzureResourceGroupMsiScanPropertiesAutoGeneratedBase {} - -export type AzureSynapseWorkspaceCredentialScanProperties = AzureSynapseWorkspaceCredentialScanPropertiesBase & - ExpandingResourceScanProperties; - -export interface AzureSynapseWorkspaceCredentialScanPropertiesBase {} +export interface AzureResourceGroupMsiScanPropertiesAutoGenerated + extends AzureResourceGroupMsiScanProperties {} -export type AzureSynapseWorkspaceCredentialScan = AzureSynapseWorkspaceCredentialScanBase & Scan; +export interface AzureSynapseWorkspaceCredentialScanProperties + extends ExpandingResourceScanProperties {} -export interface AzureSynapseWorkspaceCredentialScanBase { +export interface AzureSynapseWorkspaceCredentialScan extends ScanBase { properties?: AzureSynapseWorkspaceCredentialScanPropertiesAutoGenerated; + kind: "AzureSynapseWorkspaceCredential"; } -export type AzureSynapseWorkspaceCredentialScanPropertiesAutoGenerated = AzureSynapseWorkspaceCredentialScanPropertiesAutoGeneratedBase & - AzureSynapseWorkspaceCredentialScanProperties; - -export interface AzureSynapseWorkspaceCredentialScanPropertiesAutoGeneratedBase {} - -export type AzureSynapseWorkspaceMsiScanProperties = AzureSynapseWorkspaceMsiScanPropertiesBase & - ExpandingResourceScanProperties; - -export interface AzureSynapseWorkspaceMsiScanPropertiesBase {} +export interface AzureSynapseWorkspaceCredentialScanPropertiesAutoGenerated + extends AzureSynapseWorkspaceCredentialScanProperties {} -export type AzureSynapseWorkspaceMsiScan = AzureSynapseWorkspaceMsiScanBase & Scan; +export interface AzureSynapseWorkspaceMsiScanProperties extends ExpandingResourceScanProperties {} -export interface AzureSynapseWorkspaceMsiScanBase { +export interface AzureSynapseWorkspaceMsiScan extends ScanBase { properties?: AzureSynapseWorkspaceMsiScanPropertiesAutoGenerated; + kind: "AzureSynapseWorkspaceMsi"; } -export type AzureSynapseWorkspaceMsiScanPropertiesAutoGenerated = AzureSynapseWorkspaceMsiScanPropertiesAutoGeneratedBase & - AzureSynapseWorkspaceMsiScanProperties; +export interface AzureSynapseWorkspaceMsiScanPropertiesAutoGenerated + extends AzureSynapseWorkspaceMsiScanProperties {} -export interface AzureSynapseWorkspaceMsiScanPropertiesAutoGeneratedBase {} +export interface AzureSynapseCredentialScanProperties extends ExpandingResourceScanProperties {} -export type AzureSynapseCredentialScanProperties = AzureSynapseCredentialScanPropertiesBase & - ExpandingResourceScanProperties; - -export interface AzureSynapseCredentialScanPropertiesBase {} - -export type AzureSynapseCredentialScan = AzureSynapseCredentialScanBase & Scan; - -export interface AzureSynapseCredentialScanBase { +export interface AzureSynapseCredentialScan extends ScanBase { properties?: AzureSynapseCredentialScanPropertiesAutoGenerated; + kind: "AzureSynapseCredential"; } -export type AzureSynapseCredentialScanPropertiesAutoGenerated = AzureSynapseCredentialScanPropertiesAutoGeneratedBase & - AzureSynapseCredentialScanProperties; - -export interface AzureSynapseCredentialScanPropertiesAutoGeneratedBase {} +export interface AzureSynapseCredentialScanPropertiesAutoGenerated + extends AzureSynapseCredentialScanProperties {} -export type AzureSynapseMsiScanProperties = AzureSynapseMsiScanPropertiesBase & - ExpandingResourceScanProperties; +export interface AzureSynapseMsiScanProperties extends ExpandingResourceScanProperties {} -export interface AzureSynapseMsiScanPropertiesBase {} - -export type AzureSynapseMsiScan = AzureSynapseMsiScanBase & Scan; - -export interface AzureSynapseMsiScanBase { +export interface AzureSynapseMsiScan extends ScanBase { properties?: AzureSynapseMsiScanPropertiesAutoGenerated; + kind: "AzureSynapseMsi"; } -export type AzureSynapseMsiScanPropertiesAutoGenerated = AzureSynapseMsiScanPropertiesAutoGeneratedBase & - AzureSynapseMsiScanProperties; - -export interface AzureSynapseMsiScanPropertiesAutoGeneratedBase {} +export interface AzureSynapseMsiScanPropertiesAutoGenerated extends AzureSynapseMsiScanProperties {} -export type AdlsGen1CredentialScanProperties = AdlsGen1CredentialScanPropertiesBase & - ScanProperties; - -export interface AdlsGen1CredentialScanPropertiesBase { +export interface AdlsGen1CredentialScanProperties extends ScanProperties { credential?: AdlsGen1CredentialScanPropertiesCredential; } -export type AdlsGen1CredentialScanPropertiesCredential = AdlsGen1CredentialScanPropertiesCredentialBase & - CredentialReference; - -export interface AdlsGen1CredentialScanPropertiesCredentialBase {} +export interface AdlsGen1CredentialScanPropertiesCredential extends CredentialReference {} -export type AdlsGen1CredentialScan = AdlsGen1CredentialScanBase & Scan; - -export interface AdlsGen1CredentialScanBase { +export interface AdlsGen1CredentialScan extends ScanBase { properties?: AdlsGen1CredentialScanPropertiesAutoGenerated; + kind: "AdlsGen1Credential"; } -export type AdlsGen1CredentialScanPropertiesAutoGenerated = AdlsGen1CredentialScanPropertiesAutoGeneratedBase & - AdlsGen1CredentialScanProperties; - -export interface AdlsGen1CredentialScanPropertiesAutoGeneratedBase {} +export interface AdlsGen1CredentialScanPropertiesAutoGenerated + extends AdlsGen1CredentialScanProperties {} -export type AdlsGen1MsiScanProperties = AdlsGen1MsiScanPropertiesBase & ScanProperties; +export interface AdlsGen1MsiScanProperties extends ScanProperties {} -export interface AdlsGen1MsiScanPropertiesBase {} - -export type AdlsGen1MsiScan = AdlsGen1MsiScanBase & Scan; - -export interface AdlsGen1MsiScanBase { +export interface AdlsGen1MsiScan extends ScanBase { properties?: AdlsGen1MsiScanPropertiesAutoGenerated; + kind: "AdlsGen1Msi"; } -export type AdlsGen1MsiScanPropertiesAutoGenerated = AdlsGen1MsiScanPropertiesAutoGeneratedBase & - AdlsGen1MsiScanProperties; - -export interface AdlsGen1MsiScanPropertiesAutoGeneratedBase {} +export interface AdlsGen1MsiScanPropertiesAutoGenerated extends AdlsGen1MsiScanProperties {} -export type AdlsGen2CredentialScanProperties = AdlsGen2CredentialScanPropertiesBase & - ScanProperties; - -export interface AdlsGen2CredentialScanPropertiesBase { +export interface AdlsGen2CredentialScanProperties extends ScanProperties { credential?: AdlsGen2CredentialScanPropertiesCredential; } -export type AdlsGen2CredentialScanPropertiesCredential = AdlsGen2CredentialScanPropertiesCredentialBase & - CredentialReference; - -export interface AdlsGen2CredentialScanPropertiesCredentialBase {} - -export type AdlsGen2CredentialScan = AdlsGen2CredentialScanBase & Scan; +export interface AdlsGen2CredentialScanPropertiesCredential extends CredentialReference {} -export interface AdlsGen2CredentialScanBase { +export interface AdlsGen2CredentialScan extends ScanBase { properties?: AdlsGen2CredentialScanPropertiesAutoGenerated; + kind: "AdlsGen2Credential"; } -export type AdlsGen2CredentialScanPropertiesAutoGenerated = AdlsGen2CredentialScanPropertiesAutoGeneratedBase & - AdlsGen2CredentialScanProperties; - -export interface AdlsGen2CredentialScanPropertiesAutoGeneratedBase {} - -export type AdlsGen2MsiScanProperties = AdlsGen2MsiScanPropertiesBase & ScanProperties; - -export interface AdlsGen2MsiScanPropertiesBase {} +export interface AdlsGen2CredentialScanPropertiesAutoGenerated + extends AdlsGen2CredentialScanProperties {} -export type AdlsGen2MsiScan = AdlsGen2MsiScanBase & Scan; +export interface AdlsGen2MsiScanProperties extends ScanProperties {} -export interface AdlsGen2MsiScanBase { +export interface AdlsGen2MsiScan extends ScanBase { properties?: AdlsGen2MsiScanPropertiesAutoGenerated; + kind: "AdlsGen2Msi"; } -export type AdlsGen2MsiScanPropertiesAutoGenerated = AdlsGen2MsiScanPropertiesAutoGeneratedBase & - AdlsGen2MsiScanProperties; +export interface AdlsGen2MsiScanPropertiesAutoGenerated extends AdlsGen2MsiScanProperties {} -export interface AdlsGen2MsiScanPropertiesAutoGeneratedBase {} +export interface AmazonAccountCredentialScanProperties extends ExpandingResourceScanProperties {} -export type AmazonAccountCredentialScanProperties = AmazonAccountCredentialScanPropertiesBase & - ExpandingResourceScanProperties; - -export interface AmazonAccountCredentialScanPropertiesBase {} - -export type AmazonAccountCredentialScan = AmazonAccountCredentialScanBase & Scan; - -export interface AmazonAccountCredentialScanBase { +export interface AmazonAccountCredentialScan extends ScanBase { properties?: AmazonAccountCredentialScanPropertiesAutoGenerated; + kind: "AmazonAccountCredential"; } -export type AmazonAccountCredentialScanPropertiesAutoGenerated = AmazonAccountCredentialScanPropertiesAutoGeneratedBase & - AmazonAccountCredentialScanProperties; - -export interface AmazonAccountCredentialScanPropertiesAutoGeneratedBase {} +export interface AmazonAccountCredentialScanPropertiesAutoGenerated + extends AmazonAccountCredentialScanProperties {} -export type AmazonS3CredentialScanProperties = AmazonS3CredentialScanPropertiesBase & - ScanProperties; - -export interface AmazonS3CredentialScanPropertiesBase { +export interface AmazonS3CredentialScanProperties extends ScanProperties { credential?: AmazonS3CredentialScanPropertiesCredential; roleARN?: string; } -export type AmazonS3CredentialScanPropertiesCredential = AmazonS3CredentialScanPropertiesCredentialBase & - CredentialReference; - -export interface AmazonS3CredentialScanPropertiesCredentialBase {} - -export type AmazonS3CredentialScan = AmazonS3CredentialScanBase & Scan; +export interface AmazonS3CredentialScanPropertiesCredential extends CredentialReference {} -export interface AmazonS3CredentialScanBase { +export interface AmazonS3CredentialScan extends ScanBase { properties?: AmazonS3CredentialScanPropertiesAutoGenerated; + kind: "AmazonS3Credential"; } -export type AmazonS3CredentialScanPropertiesAutoGenerated = AmazonS3CredentialScanPropertiesAutoGeneratedBase & - AmazonS3CredentialScanProperties; +export interface AmazonS3CredentialScanPropertiesAutoGenerated + extends AmazonS3CredentialScanProperties {} -export interface AmazonS3CredentialScanPropertiesAutoGeneratedBase {} - -export type AmazonS3RoleARNScanProperties = AmazonS3RoleARNScanPropertiesBase & ScanProperties; - -export interface AmazonS3RoleARNScanPropertiesBase { +export interface AmazonS3RoleARNScanProperties extends ScanProperties { roleARN?: string; } -export type AmazonS3RoleARNScan = AmazonS3RoleARNScanBase & Scan; - -export interface AmazonS3RoleARNScanBase { +export interface AmazonS3RoleARNScan extends ScanBase { properties?: AmazonS3RoleARNScanPropertiesAutoGenerated; + kind: "AmazonS3RoleARN"; } -export type AmazonS3RoleARNScanPropertiesAutoGenerated = AmazonS3RoleARNScanPropertiesAutoGeneratedBase & - AmazonS3RoleARNScanProperties; - -export interface AmazonS3RoleARNScanPropertiesAutoGeneratedBase {} +export interface AmazonS3RoleARNScanPropertiesAutoGenerated extends AmazonS3RoleARNScanProperties {} -export type AmazonSqlCredentialScanProperties = AmazonSqlCredentialScanPropertiesBase & - ScanProperties; - -export interface AmazonSqlCredentialScanPropertiesBase { +export interface AmazonSqlCredentialScanProperties extends ScanProperties { credential?: AmazonSqlCredentialScanPropertiesCredential; serverEndpoint?: string; databaseName?: string; } -export type AmazonSqlCredentialScanPropertiesCredential = AmazonSqlCredentialScanPropertiesCredentialBase & - CredentialReference; - -export interface AmazonSqlCredentialScanPropertiesCredentialBase {} - -export type AmazonSqlCredentialScan = AmazonSqlCredentialScanBase & Scan; +export interface AmazonSqlCredentialScanPropertiesCredential extends CredentialReference {} -export interface AmazonSqlCredentialScanBase { +export interface AmazonSqlCredentialScan extends ScanBase { properties?: AmazonSqlCredentialScanPropertiesAutoGenerated; + kind: "AmazonSqlCredential"; } -export type AmazonSqlCredentialScanPropertiesAutoGenerated = AmazonSqlCredentialScanPropertiesAutoGeneratedBase & - AmazonSqlCredentialScanProperties; +export interface AmazonSqlCredentialScanPropertiesAutoGenerated + extends AmazonSqlCredentialScanProperties {} -export interface AmazonSqlCredentialScanPropertiesAutoGeneratedBase {} - -export type AzureCosmosDbCredentialScanProperties = AzureCosmosDbCredentialScanPropertiesBase & - ScanProperties; - -export interface AzureCosmosDbCredentialScanPropertiesBase { +export interface AzureCosmosDbCredentialScanProperties extends ScanProperties { credential?: AzureCosmosDbCredentialScanPropertiesCredential; databaseName?: string; } -export type AzureCosmosDbCredentialScanPropertiesCredential = AzureCosmosDbCredentialScanPropertiesCredentialBase & - CredentialReference; - -export interface AzureCosmosDbCredentialScanPropertiesCredentialBase {} - -export type AzureCosmosDbCredentialScan = AzureCosmosDbCredentialScanBase & Scan; +export interface AzureCosmosDbCredentialScanPropertiesCredential extends CredentialReference {} -export interface AzureCosmosDbCredentialScanBase { +export interface AzureCosmosDbCredentialScan extends ScanBase { properties?: AzureCosmosDbCredentialScanPropertiesAutoGenerated; + kind: "AzureCosmosDbCredential"; } -export type AzureCosmosDbCredentialScanPropertiesAutoGenerated = AzureCosmosDbCredentialScanPropertiesAutoGeneratedBase & - AzureCosmosDbCredentialScanProperties; +export interface AzureCosmosDbCredentialScanPropertiesAutoGenerated + extends AzureCosmosDbCredentialScanProperties {} -export interface AzureCosmosDbCredentialScanPropertiesAutoGeneratedBase {} - -export type AzureDataExplorerCredentialScanProperties = AzureDataExplorerCredentialScanPropertiesBase & - ScanProperties; - -export interface AzureDataExplorerCredentialScanPropertiesBase { +export interface AzureDataExplorerCredentialScanProperties extends ScanProperties { credential?: AzureDataExplorerCredentialScanPropertiesCredential; database?: string; } -export type AzureDataExplorerCredentialScanPropertiesCredential = AzureDataExplorerCredentialScanPropertiesCredentialBase & - CredentialReference; - -export interface AzureDataExplorerCredentialScanPropertiesCredentialBase {} +export interface AzureDataExplorerCredentialScanPropertiesCredential extends CredentialReference {} -export type AzureDataExplorerCredentialScan = AzureDataExplorerCredentialScanBase & Scan; - -export interface AzureDataExplorerCredentialScanBase { +export interface AzureDataExplorerCredentialScan extends ScanBase { properties?: AzureDataExplorerCredentialScanPropertiesAutoGenerated; + kind: "AzureDataExplorerCredential"; } -export type AzureDataExplorerCredentialScanPropertiesAutoGenerated = AzureDataExplorerCredentialScanPropertiesAutoGeneratedBase & - AzureDataExplorerCredentialScanProperties; - -export interface AzureDataExplorerCredentialScanPropertiesAutoGeneratedBase {} - -export type AzureDataExplorerMsiScanProperties = AzureDataExplorerMsiScanPropertiesBase & - ScanProperties; +export interface AzureDataExplorerCredentialScanPropertiesAutoGenerated + extends AzureDataExplorerCredentialScanProperties {} -export interface AzureDataExplorerMsiScanPropertiesBase { +export interface AzureDataExplorerMsiScanProperties extends ScanProperties { database?: string; } -export type AzureDataExplorerMsiScan = AzureDataExplorerMsiScanBase & Scan; - -export interface AzureDataExplorerMsiScanBase { +export interface AzureDataExplorerMsiScan extends ScanBase { properties?: AzureDataExplorerMsiScanPropertiesAutoGenerated; + kind: "AzureDataExplorerMsi"; } -export type AzureDataExplorerMsiScanPropertiesAutoGenerated = AzureDataExplorerMsiScanPropertiesAutoGeneratedBase & - AzureDataExplorerMsiScanProperties; - -export interface AzureDataExplorerMsiScanPropertiesAutoGeneratedBase {} - -export type AzureFileServiceCredentialScanProperties = AzureFileServiceCredentialScanPropertiesBase & - ScanProperties; +export interface AzureDataExplorerMsiScanPropertiesAutoGenerated + extends AzureDataExplorerMsiScanProperties {} -export interface AzureFileServiceCredentialScanPropertiesBase { +export interface AzureFileServiceCredentialScanProperties extends ScanProperties { credential?: AzureFileServiceCredentialScanPropertiesCredential; shareName?: string; } -export type AzureFileServiceCredentialScanPropertiesCredential = AzureFileServiceCredentialScanPropertiesCredentialBase & - CredentialReference; +export interface AzureFileServiceCredentialScanPropertiesCredential extends CredentialReference {} -export interface AzureFileServiceCredentialScanPropertiesCredentialBase {} - -export type AzureFileServiceCredentialScan = AzureFileServiceCredentialScanBase & Scan; - -export interface AzureFileServiceCredentialScanBase { +export interface AzureFileServiceCredentialScan extends ScanBase { properties?: AzureFileServiceCredentialScanPropertiesAutoGenerated; + kind: "AzureFileServiceCredential"; } -export type AzureFileServiceCredentialScanPropertiesAutoGenerated = AzureFileServiceCredentialScanPropertiesAutoGeneratedBase & - AzureFileServiceCredentialScanProperties; - -export interface AzureFileServiceCredentialScanPropertiesAutoGeneratedBase {} - -export type AzureSqlScanProperties = AzureSqlScanPropertiesBase & ScanProperties; +export interface AzureFileServiceCredentialScanPropertiesAutoGenerated + extends AzureFileServiceCredentialScanProperties {} -export interface AzureSqlScanPropertiesBase { +export interface AzureSqlScanProperties extends ScanProperties { serverEndpoint?: string; databaseName?: string; } -export type AzureSqlCredentialScanProperties = AzureSqlCredentialScanPropertiesBase & - AzureSqlScanProperties; - -export interface AzureSqlCredentialScanPropertiesBase { +export interface AzureSqlCredentialScanProperties extends AzureSqlScanProperties { credential?: AzureSqlCredentialScanPropertiesCredential; } -export type AzureSqlCredentialScanPropertiesCredential = AzureSqlCredentialScanPropertiesCredentialBase & - CredentialReference; - -export interface AzureSqlCredentialScanPropertiesCredentialBase {} - -export type AzureSqlDatabaseCredentialScanProperties = AzureSqlDatabaseCredentialScanPropertiesBase & - AzureSqlCredentialScanProperties; +export interface AzureSqlCredentialScanPropertiesCredential extends CredentialReference {} -export interface AzureSqlDatabaseCredentialScanPropertiesBase {} +export interface AzureSqlDatabaseCredentialScanProperties + extends AzureSqlCredentialScanProperties {} -export type AzureSqlDatabaseCredentialScan = AzureSqlDatabaseCredentialScanBase & Scan; - -export interface AzureSqlDatabaseCredentialScanBase { +export interface AzureSqlDatabaseCredentialScan extends ScanBase { properties?: AzureSqlDatabaseCredentialScanPropertiesAutoGenerated; + kind: "AzureSqlDatabaseCredential"; } -export type AzureSqlDatabaseCredentialScanPropertiesAutoGenerated = AzureSqlDatabaseCredentialScanPropertiesAutoGeneratedBase & - AzureSqlDatabaseCredentialScanProperties; - -export interface AzureSqlDatabaseCredentialScanPropertiesAutoGeneratedBase {} - -export type AzureSqlDatabaseMsiScanProperties = AzureSqlDatabaseMsiScanPropertiesBase & - AzureSqlScanProperties; - -export interface AzureSqlDatabaseMsiScanPropertiesBase {} +export interface AzureSqlDatabaseCredentialScanPropertiesAutoGenerated + extends AzureSqlDatabaseCredentialScanProperties {} -export type AzureSqlDatabaseMsiScan = AzureSqlDatabaseMsiScanBase & Scan; +export interface AzureSqlDatabaseMsiScanProperties extends AzureSqlScanProperties {} -export interface AzureSqlDatabaseMsiScanBase { +export interface AzureSqlDatabaseMsiScan extends ScanBase { properties?: AzureSqlDatabaseMsiScanPropertiesAutoGenerated; + kind: "AzureSqlDatabaseMsi"; } -export type AzureSqlDatabaseMsiScanPropertiesAutoGenerated = AzureSqlDatabaseMsiScanPropertiesAutoGeneratedBase & - AzureSqlDatabaseMsiScanProperties; +export interface AzureSqlDatabaseMsiScanPropertiesAutoGenerated + extends AzureSqlDatabaseMsiScanProperties {} -export interface AzureSqlDatabaseMsiScanPropertiesAutoGeneratedBase {} - -export type AmazonPostgreSqlCredentialScanProperties = AmazonPostgreSqlCredentialScanPropertiesBase & - ScanProperties; - -export interface AmazonPostgreSqlCredentialScanPropertiesBase { +export interface AmazonPostgreSqlCredentialScanProperties extends ScanProperties { credential?: AmazonPostgreSqlCredentialScanPropertiesCredential; serverEndpoint?: string; databaseName?: string; port?: string; } -export type AmazonPostgreSqlCredentialScanPropertiesCredential = AmazonPostgreSqlCredentialScanPropertiesCredentialBase & - CredentialReference; - -export interface AmazonPostgreSqlCredentialScanPropertiesCredentialBase {} +export interface AmazonPostgreSqlCredentialScanPropertiesCredential extends CredentialReference {} -export type AmazonPostgreSqlCredentialScan = AmazonPostgreSqlCredentialScanBase & Scan; - -export interface AmazonPostgreSqlCredentialScanBase { +export interface AmazonPostgreSqlCredentialScan extends ScanBase { properties?: AmazonPostgreSqlCredentialScanPropertiesAutoGenerated; + kind: "AmazonPostgreSqlCredential"; } -export type AmazonPostgreSqlCredentialScanPropertiesAutoGenerated = AmazonPostgreSqlCredentialScanPropertiesAutoGeneratedBase & - AmazonPostgreSqlCredentialScanProperties; - -export interface AmazonPostgreSqlCredentialScanPropertiesAutoGeneratedBase {} +export interface AmazonPostgreSqlCredentialScanPropertiesAutoGenerated + extends AmazonPostgreSqlCredentialScanProperties {} -export type AzurePostgreSqlCredentialScanProperties = AzurePostgreSqlCredentialScanPropertiesBase & - ScanProperties; - -export interface AzurePostgreSqlCredentialScanPropertiesBase { +export interface AzurePostgreSqlCredentialScanProperties extends ScanProperties { credential?: AzurePostgreSqlCredentialScanPropertiesCredential; serverEndpoint?: string; databaseName?: string; @@ -1771,382 +1405,252 @@ export interface AzurePostgreSqlCredentialScanPropertiesBase { sslMode?: number; } -export type AzurePostgreSqlCredentialScanPropertiesCredential = AzurePostgreSqlCredentialScanPropertiesCredentialBase & - CredentialReference; - -export interface AzurePostgreSqlCredentialScanPropertiesCredentialBase {} +export interface AzurePostgreSqlCredentialScanPropertiesCredential extends CredentialReference {} -export type AzurePostgreSqlCredentialScan = AzurePostgreSqlCredentialScanBase & Scan; - -export interface AzurePostgreSqlCredentialScanBase { +export interface AzurePostgreSqlCredentialScan extends ScanBase { properties?: AzurePostgreSqlCredentialScanPropertiesAutoGenerated; + kind: "AzurePostgreSqlCredential"; } -export type AzurePostgreSqlCredentialScanPropertiesAutoGenerated = AzurePostgreSqlCredentialScanPropertiesAutoGeneratedBase & - AzurePostgreSqlCredentialScanProperties; - -export interface AzurePostgreSqlCredentialScanPropertiesAutoGeneratedBase {} - -export type SqlServerDatabaseCredentialScanProperties = SqlServerDatabaseCredentialScanPropertiesBase & - AzureSqlCredentialScanProperties; +export interface AzurePostgreSqlCredentialScanPropertiesAutoGenerated + extends AzurePostgreSqlCredentialScanProperties {} -export interface SqlServerDatabaseCredentialScanPropertiesBase {} +export interface SqlServerDatabaseCredentialScanProperties + extends AzureSqlCredentialScanProperties {} -export type SqlServerDatabaseCredentialScan = SqlServerDatabaseCredentialScanBase & Scan; - -export interface SqlServerDatabaseCredentialScanBase { +export interface SqlServerDatabaseCredentialScan extends ScanBase { properties?: SqlServerDatabaseCredentialScanPropertiesAutoGenerated; + kind: "SqlServerDatabaseCredential"; } -export type SqlServerDatabaseCredentialScanPropertiesAutoGenerated = SqlServerDatabaseCredentialScanPropertiesAutoGeneratedBase & - SqlServerDatabaseCredentialScanProperties; - -export interface SqlServerDatabaseCredentialScanPropertiesAutoGeneratedBase {} - -export type AzureSqlDatabaseManagedInstanceCredentialScanProperties = AzureSqlDatabaseManagedInstanceCredentialScanPropertiesBase & - AzureSqlCredentialScanProperties; +export interface SqlServerDatabaseCredentialScanPropertiesAutoGenerated + extends SqlServerDatabaseCredentialScanProperties {} -export interface AzureSqlDatabaseManagedInstanceCredentialScanPropertiesBase {} +export interface AzureSqlDatabaseManagedInstanceCredentialScanProperties + extends AzureSqlCredentialScanProperties {} -export type AzureSqlDatabaseManagedInstanceCredentialScan = AzureSqlDatabaseManagedInstanceCredentialScanBase & - Scan; - -export interface AzureSqlDatabaseManagedInstanceCredentialScanBase { +export interface AzureSqlDatabaseManagedInstanceCredentialScan extends ScanBase { properties?: AzureSqlDatabaseManagedInstanceCredentialScanPropertiesAutoGenerated; + kind: "AzureSqlDatabaseManagedInstanceCredential"; } -export type AzureSqlDatabaseManagedInstanceCredentialScanPropertiesAutoGenerated = AzureSqlDatabaseManagedInstanceCredentialScanPropertiesAutoGeneratedBase & - AzureSqlDatabaseManagedInstanceCredentialScanProperties; - -export interface AzureSqlDatabaseManagedInstanceCredentialScanPropertiesAutoGeneratedBase {} - -export type AzureSqlDatabaseManagedInstanceMsiScanProperties = AzureSqlDatabaseManagedInstanceMsiScanPropertiesBase & - AzureSqlScanProperties; +export interface AzureSqlDatabaseManagedInstanceCredentialScanPropertiesAutoGenerated + extends AzureSqlDatabaseManagedInstanceCredentialScanProperties {} -export interface AzureSqlDatabaseManagedInstanceMsiScanPropertiesBase {} +export interface AzureSqlDatabaseManagedInstanceMsiScanProperties extends AzureSqlScanProperties {} -export type AzureSqlDatabaseManagedInstanceMsiScan = AzureSqlDatabaseManagedInstanceMsiScanBase & - Scan; - -export interface AzureSqlDatabaseManagedInstanceMsiScanBase { +export interface AzureSqlDatabaseManagedInstanceMsiScan extends ScanBase { properties?: AzureSqlDatabaseManagedInstanceMsiScanPropertiesAutoGenerated; + kind: "AzureSqlDatabaseManagedInstanceMsi"; } -export type AzureSqlDatabaseManagedInstanceMsiScanPropertiesAutoGenerated = AzureSqlDatabaseManagedInstanceMsiScanPropertiesAutoGeneratedBase & - AzureSqlDatabaseManagedInstanceMsiScanProperties; - -export interface AzureSqlDatabaseManagedInstanceMsiScanPropertiesAutoGeneratedBase {} - -export type AzureSqlDataWarehouseCredentialScanProperties = AzureSqlDataWarehouseCredentialScanPropertiesBase & - AzureSqlCredentialScanProperties; - -export interface AzureSqlDataWarehouseCredentialScanPropertiesBase {} +export interface AzureSqlDatabaseManagedInstanceMsiScanPropertiesAutoGenerated + extends AzureSqlDatabaseManagedInstanceMsiScanProperties {} -export type AzureSqlDataWarehouseCredentialScan = AzureSqlDataWarehouseCredentialScanBase & Scan; +export interface AzureSqlDataWarehouseCredentialScanProperties + extends AzureSqlCredentialScanProperties {} -export interface AzureSqlDataWarehouseCredentialScanBase { +export interface AzureSqlDataWarehouseCredentialScan extends ScanBase { properties?: AzureSqlDataWarehouseCredentialScanPropertiesAutoGenerated; + kind: "AzureSqlDataWarehouseCredential"; } -export type AzureSqlDataWarehouseCredentialScanPropertiesAutoGenerated = AzureSqlDataWarehouseCredentialScanPropertiesAutoGeneratedBase & - AzureSqlDataWarehouseCredentialScanProperties; - -export interface AzureSqlDataWarehouseCredentialScanPropertiesAutoGeneratedBase {} - -export type AzureSqlDataWarehouseMsiScanProperties = AzureSqlDataWarehouseMsiScanPropertiesBase & - AzureSqlScanProperties; - -export interface AzureSqlDataWarehouseMsiScanPropertiesBase {} +export interface AzureSqlDataWarehouseCredentialScanPropertiesAutoGenerated + extends AzureSqlDataWarehouseCredentialScanProperties {} -export type AzureSqlDataWarehouseMsiScan = AzureSqlDataWarehouseMsiScanBase & Scan; +export interface AzureSqlDataWarehouseMsiScanProperties extends AzureSqlScanProperties {} -export interface AzureSqlDataWarehouseMsiScanBase { +export interface AzureSqlDataWarehouseMsiScan extends ScanBase { properties?: AzureSqlDataWarehouseMsiScanPropertiesAutoGenerated; + kind: "AzureSqlDataWarehouseMsi"; } -export type AzureSqlDataWarehouseMsiScanPropertiesAutoGenerated = AzureSqlDataWarehouseMsiScanPropertiesAutoGeneratedBase & - AzureSqlDataWarehouseMsiScanProperties; +export interface AzureSqlDataWarehouseMsiScanPropertiesAutoGenerated + extends AzureSqlDataWarehouseMsiScanProperties {} -export interface AzureSqlDataWarehouseMsiScanPropertiesAutoGeneratedBase {} - -export type AzureMySqlScanProperties = AzureMySqlScanPropertiesBase & ScanProperties; - -export interface AzureMySqlScanPropertiesBase { +export interface AzureMySqlScanProperties extends ScanProperties { serverEndpoint?: string; port?: number; databaseName?: string; credential?: AzureMySqlScanPropertiesCredential; } -export type AzureMySqlScanPropertiesCredential = AzureMySqlScanPropertiesCredentialBase & - CredentialReference; - -export interface AzureMySqlScanPropertiesCredentialBase {} - -export type AzureMySqlCredentialScanProperties = AzureMySqlCredentialScanPropertiesBase & - AzureMySqlScanProperties; +export interface AzureMySqlScanPropertiesCredential extends CredentialReference {} -export interface AzureMySqlCredentialScanPropertiesBase {} +export interface AzureMySqlCredentialScanProperties extends AzureMySqlScanProperties {} -export type AzureMySqlCredentialScan = AzureMySqlCredentialScanBase & Scan; - -export interface AzureMySqlCredentialScanBase { +export interface AzureMySqlCredentialScan extends ScanBase { properties?: AzureMySqlCredentialScanPropertiesAutoGenerated; + kind: "AzureMySqlCredential"; } -export type AzureMySqlCredentialScanPropertiesAutoGenerated = AzureMySqlCredentialScanPropertiesAutoGeneratedBase & - AzureMySqlCredentialScanProperties; - -export interface AzureMySqlCredentialScanPropertiesAutoGeneratedBase {} - -export type MitiScanProperties = MitiScanPropertiesBase & ScanProperties; +export interface AzureMySqlCredentialScanPropertiesAutoGenerated + extends AzureMySqlCredentialScanProperties {} -export interface MitiScanPropertiesBase { +export interface MitiScanProperties extends ScanProperties { maximumMemoryAllowedInGb?: string; mitiCache?: string; } -export type AzureStorageCredentialScanProperties = AzureStorageCredentialScanPropertiesBase & - ScanProperties; - -export interface AzureStorageCredentialScanPropertiesBase { +export interface AzureStorageCredentialScanProperties extends ScanProperties { credential?: AzureStorageCredentialScanPropertiesCredential; } -export type AzureStorageCredentialScanPropertiesCredential = AzureStorageCredentialScanPropertiesCredentialBase & - CredentialReference; - -export interface AzureStorageCredentialScanPropertiesCredentialBase {} +export interface AzureStorageCredentialScanPropertiesCredential extends CredentialReference {} -export type AzureStorageCredentialScan = AzureStorageCredentialScanBase & Scan; - -export interface AzureStorageCredentialScanBase { +export interface AzureStorageCredentialScan extends ScanBase { properties?: AzureStorageCredentialScanPropertiesAutoGenerated; + kind: "AzureStorageCredential"; } -export type AzureStorageCredentialScanPropertiesAutoGenerated = AzureStorageCredentialScanPropertiesAutoGeneratedBase & - AzureStorageCredentialScanProperties; - -export interface AzureStorageCredentialScanPropertiesAutoGeneratedBase {} +export interface AzureStorageCredentialScanPropertiesAutoGenerated + extends AzureStorageCredentialScanProperties {} -export type AzureStorageMsiScanProperties = AzureStorageMsiScanPropertiesBase & ScanProperties; +export interface AzureStorageMsiScanProperties extends ScanProperties {} -export interface AzureStorageMsiScanPropertiesBase {} - -export type AzureStorageMsiScan = AzureStorageMsiScanBase & Scan; - -export interface AzureStorageMsiScanBase { +export interface AzureStorageMsiScan extends ScanBase { properties?: AzureStorageMsiScanPropertiesAutoGenerated; + kind: "AzureStorageMsi"; } -export type AzureStorageMsiScanPropertiesAutoGenerated = AzureStorageMsiScanPropertiesAutoGeneratedBase & - AzureStorageMsiScanProperties; - -export interface AzureStorageMsiScanPropertiesAutoGeneratedBase {} +export interface AzureStorageMsiScanPropertiesAutoGenerated extends AzureStorageMsiScanProperties {} -export type TeradataCredentialScanProperties = TeradataCredentialScanPropertiesBase & - MitiScanProperties; - -export interface TeradataCredentialScanPropertiesBase { +export interface TeradataCredentialScanProperties extends MitiScanProperties { credential?: TeradataCredentialScanPropertiesCredential; schema?: string; driverLocation?: string; } -export type TeradataCredentialScanPropertiesCredential = TeradataCredentialScanPropertiesCredentialBase & - CredentialReference; - -export interface TeradataCredentialScanPropertiesCredentialBase {} +export interface TeradataCredentialScanPropertiesCredential extends CredentialReference {} -export type TeradataCredentialScan = TeradataCredentialScanBase & Scan; - -export interface TeradataCredentialScanBase { +export interface TeradataCredentialScan extends ScanBase { properties?: TeradataCredentialScanPropertiesAutoGenerated; + kind: "TeradataTeradataCredential"; } -export type TeradataCredentialScanPropertiesAutoGenerated = TeradataCredentialScanPropertiesAutoGeneratedBase & - TeradataCredentialScanProperties; - -export interface TeradataCredentialScanPropertiesAutoGeneratedBase {} +export interface TeradataCredentialScanPropertiesAutoGenerated + extends TeradataCredentialScanProperties {} -export type TeradataUserPassScanProperties = TeradataUserPassScanPropertiesBase & ScanProperties; - -export interface TeradataUserPassScanPropertiesBase { +export interface TeradataUserPassScanProperties extends ScanProperties { username?: string; password?: string; } -export type TeradataUserPassScan = TeradataUserPassScanBase & Scan; - -export interface TeradataUserPassScanBase { +export interface TeradataUserPassScan extends ScanBase { properties?: TeradataUserPassScanPropertiesAutoGenerated; + kind: "TeradataUserPass"; } -export type TeradataUserPassScanPropertiesAutoGenerated = TeradataUserPassScanPropertiesAutoGeneratedBase & - TeradataUserPassScanProperties; - -export interface TeradataUserPassScanPropertiesAutoGeneratedBase {} +export interface TeradataUserPassScanPropertiesAutoGenerated + extends TeradataUserPassScanProperties {} -export type TeradataUserPassScanPropertiesAutoGenerated2 = TeradataUserPassScanPropertiesAutoGenerated2Base & - MitiScanProperties; - -export interface TeradataUserPassScanPropertiesAutoGenerated2Base { +export interface TeradataUserPassScanPropertiesAutoGenerated2 extends MitiScanProperties { username?: string; password?: string; schema?: string; driverLocation?: string; } -export type TeradataUserPassScanAutoGenerated = TeradataUserPassScanAutoGeneratedBase & Scan; - -export interface TeradataUserPassScanAutoGeneratedBase { +export interface TeradataUserPassScanAutoGenerated extends ScanBase { properties?: TeradataUserPassScanPropertiesAutoGenerated3; + kind: "TeradataTeradataUserPass"; } -export type TeradataUserPassScanPropertiesAutoGenerated3 = TeradataUserPassScanPropertiesAutoGenerated3Base & - TeradataUserPassScanPropertiesAutoGenerated2; - -export interface TeradataUserPassScanPropertiesAutoGenerated3Base {} - -export type OracleCredentialScanProperties = OracleCredentialScanPropertiesBase & - MitiScanProperties; +export interface TeradataUserPassScanPropertiesAutoGenerated3 + extends TeradataUserPassScanPropertiesAutoGenerated2 {} -export interface OracleCredentialScanPropertiesBase { +export interface OracleCredentialScanProperties extends MitiScanProperties { credential?: OracleCredentialScanPropertiesCredential; schema?: string; driverLocation?: string; } -export type OracleCredentialScanPropertiesCredential = OracleCredentialScanPropertiesCredentialBase & - CredentialReference; +export interface OracleCredentialScanPropertiesCredential extends CredentialReference {} -export interface OracleCredentialScanPropertiesCredentialBase {} - -export type OracleCredentialScan = OracleCredentialScanBase & Scan; - -export interface OracleCredentialScanBase { +export interface OracleCredentialScan extends ScanBase { properties?: OracleCredentialScanPropertiesAutoGenerated; + kind: "OracleOracleCredential"; } -export type OracleCredentialScanPropertiesAutoGenerated = OracleCredentialScanPropertiesAutoGeneratedBase & - OracleCredentialScanProperties; - -export interface OracleCredentialScanPropertiesAutoGeneratedBase {} +export interface OracleCredentialScanPropertiesAutoGenerated + extends OracleCredentialScanProperties {} -export type OracleUserPassScanProperties = OracleUserPassScanPropertiesBase & MitiScanProperties; - -export interface OracleUserPassScanPropertiesBase { +export interface OracleUserPassScanProperties extends MitiScanProperties { username?: string; password?: string; schema?: string; driverLocation?: string; } -export type OracleUserPassScan = OracleUserPassScanBase & Scan; - -export interface OracleUserPassScanBase { +export interface OracleUserPassScan extends ScanBase { properties?: OracleUserPassScanPropertiesAutoGenerated; + kind: "OracleOracleUserPass"; } -export type OracleUserPassScanPropertiesAutoGenerated = OracleUserPassScanPropertiesAutoGeneratedBase & - OracleUserPassScanProperties; - -export interface OracleUserPassScanPropertiesAutoGeneratedBase {} - -export type SapS4HanaSapS4HanaCredentialScanProperties = SapS4HanaSapS4HanaCredentialScanPropertiesBase & - MitiScanProperties; +export interface OracleUserPassScanPropertiesAutoGenerated extends OracleUserPassScanProperties {} -export interface SapS4HanaSapS4HanaCredentialScanPropertiesBase { +export interface SapS4HanaSapS4HanaCredentialScanProperties extends MitiScanProperties { clientId?: string; credential?: SapS4HanaSapS4HanaCredentialScanPropertiesCredential; jCoLibraryPath?: string; } -export type SapS4HanaSapS4HanaCredentialScanPropertiesCredential = SapS4HanaSapS4HanaCredentialScanPropertiesCredentialBase & - CredentialReference; +export interface SapS4HanaSapS4HanaCredentialScanPropertiesCredential extends CredentialReference {} -export interface SapS4HanaSapS4HanaCredentialScanPropertiesCredentialBase {} - -export type SapS4HanaSapS4HanaCredentialScan = SapS4HanaSapS4HanaCredentialScanBase & Scan; - -export interface SapS4HanaSapS4HanaCredentialScanBase { +export interface SapS4HanaSapS4HanaCredentialScan extends ScanBase { properties?: SapS4HanaSapS4HanaCredentialScanPropertiesAutoGenerated; + kind: "SapS4HanaSapS4HanaCredential"; } -export type SapS4HanaSapS4HanaCredentialScanPropertiesAutoGenerated = SapS4HanaSapS4HanaCredentialScanPropertiesAutoGeneratedBase & - SapS4HanaSapS4HanaCredentialScanProperties; - -export interface SapS4HanaSapS4HanaCredentialScanPropertiesAutoGeneratedBase {} +export interface SapS4HanaSapS4HanaCredentialScanPropertiesAutoGenerated + extends SapS4HanaSapS4HanaCredentialScanProperties {} -export type SapS4HanaSapS4HanaUserPassScanProperties = SapS4HanaSapS4HanaUserPassScanPropertiesBase & - MitiScanProperties; - -export interface SapS4HanaSapS4HanaUserPassScanPropertiesBase { +export interface SapS4HanaSapS4HanaUserPassScanProperties extends MitiScanProperties { clientId?: string; username?: string; password?: string; jCoLibraryPath?: string; } -export type SapS4HanaSapS4HanaUserPassScan = SapS4HanaSapS4HanaUserPassScanBase & Scan; - -export interface SapS4HanaSapS4HanaUserPassScanBase { +export interface SapS4HanaSapS4HanaUserPassScan extends ScanBase { properties?: SapS4HanaSapS4HanaUserPassScanPropertiesAutoGenerated; + kind: "SapS4HanaSapS4HanaUserPass"; } -export type SapS4HanaSapS4HanaUserPassScanPropertiesAutoGenerated = SapS4HanaSapS4HanaUserPassScanPropertiesAutoGeneratedBase & - SapS4HanaSapS4HanaUserPassScanProperties; - -export interface SapS4HanaSapS4HanaUserPassScanPropertiesAutoGeneratedBase {} - -export type SapEccCredentialScanProperties = SapEccCredentialScanPropertiesBase & - MitiScanProperties; +export interface SapS4HanaSapS4HanaUserPassScanPropertiesAutoGenerated + extends SapS4HanaSapS4HanaUserPassScanProperties {} -export interface SapEccCredentialScanPropertiesBase { +export interface SapEccCredentialScanProperties extends MitiScanProperties { clientId?: string; credential?: SapEccCredentialScanPropertiesCredential; jCoLibraryPath?: string; } -export type SapEccCredentialScanPropertiesCredential = SapEccCredentialScanPropertiesCredentialBase & - CredentialReference; +export interface SapEccCredentialScanPropertiesCredential extends CredentialReference {} -export interface SapEccCredentialScanPropertiesCredentialBase {} - -export type SapEccCredentialScan = SapEccCredentialScanBase & Scan; - -export interface SapEccCredentialScanBase { +export interface SapEccCredentialScan extends ScanBase { properties?: SapEccCredentialScanPropertiesAutoGenerated; + kind: "SapEccSapEccCredential"; } -export type SapEccCredentialScanPropertiesAutoGenerated = SapEccCredentialScanPropertiesAutoGeneratedBase & - SapEccCredentialScanProperties; - -export interface SapEccCredentialScanPropertiesAutoGeneratedBase {} +export interface SapEccCredentialScanPropertiesAutoGenerated + extends SapEccCredentialScanProperties {} -export type SapEccUserPassScanProperties = SapEccUserPassScanPropertiesBase & MitiScanProperties; - -export interface SapEccUserPassScanPropertiesBase { +export interface SapEccUserPassScanProperties extends MitiScanProperties { clientId?: string; username?: string; password?: string; jCoLibraryPath?: string; } -export type SapEccUserPassScan = SapEccUserPassScanBase & Scan; - -export interface SapEccUserPassScanBase { +export interface SapEccUserPassScan extends ScanBase { properties?: SapEccUserPassScanPropertiesAutoGenerated; + kind: "SapEccSapEccUserPass"; } -export type SapEccUserPassScanPropertiesAutoGenerated = SapEccUserPassScanPropertiesAutoGeneratedBase & - SapEccUserPassScanProperties; - -export interface SapEccUserPassScanPropertiesAutoGeneratedBase {} +export interface SapEccUserPassScanPropertiesAutoGenerated extends SapEccUserPassScanProperties {} -export type PowerBIDelegatedScanProperties = PowerBIDelegatedScanPropertiesBase & ScanProperties; - -export interface PowerBIDelegatedScanPropertiesBase { +export interface PowerBIDelegatedScanProperties extends ScanProperties { tenant?: string; authenticationType?: string; clientId?: string; @@ -2155,461 +1659,343 @@ export interface PowerBIDelegatedScanPropertiesBase { includePersonalWorkspaces?: boolean; } -export type PowerBIDelegatedScan = PowerBIDelegatedScanBase & Scan; - -export interface PowerBIDelegatedScanBase { +export interface PowerBIDelegatedScan extends ScanBase { properties?: PowerBIDelegatedScanPropertiesAutoGenerated; + kind: "PowerBIDelegated"; } -export type PowerBIDelegatedScanPropertiesAutoGenerated = PowerBIDelegatedScanPropertiesAutoGeneratedBase & - PowerBIDelegatedScanProperties; - -export interface PowerBIDelegatedScanPropertiesAutoGeneratedBase {} +export interface PowerBIDelegatedScanPropertiesAutoGenerated + extends PowerBIDelegatedScanProperties {} -export type PowerBIMsiScanProperties = PowerBIMsiScanPropertiesBase & ScanProperties; - -export interface PowerBIMsiScanPropertiesBase { +export interface PowerBIMsiScanProperties extends ScanProperties { includePersonalWorkspaces?: boolean; } -export type PowerBIMsiScan = PowerBIMsiScanBase & Scan; - -export interface PowerBIMsiScanBase { +export interface PowerBIMsiScan extends ScanBase { properties?: PowerBIMsiScanPropertiesAutoGenerated; + kind: "PowerBIMsi"; } -export type PowerBIMsiScanPropertiesAutoGenerated = PowerBIMsiScanPropertiesAutoGeneratedBase & - PowerBIMsiScanProperties; - -export interface PowerBIMsiScanPropertiesAutoGeneratedBase {} - -export type AzureSubscriptionSystemScanRuleset = AzureSubscriptionSystemScanRulesetBase & - SystemScanRuleset; +export interface PowerBIMsiScanPropertiesAutoGenerated extends PowerBIMsiScanProperties {} -export interface AzureSubscriptionSystemScanRulesetBase { +export interface AzureSubscriptionSystemScanRuleset extends SystemScanRulesetBase { properties?: AzureSubscriptionSystemScanRulesetProperties; + kind: "None"; } -export type AzureSubscriptionSystemScanRulesetProperties = AzureSubscriptionSystemScanRulesetPropertiesBase & - AzureSubscriptionScanRulesetProperties; +export interface AzureSubscriptionSystemScanRulesetProperties + extends AzureSubscriptionScanRulesetProperties {} -export interface AzureSubscriptionSystemScanRulesetPropertiesBase {} - -export type AzureResourceGroupSystemScanRuleset = AzureResourceGroupSystemScanRulesetBase & - SystemScanRuleset; - -export interface AzureResourceGroupSystemScanRulesetBase { +export interface AzureResourceGroupSystemScanRuleset extends SystemScanRulesetBase { properties?: AzureResourceGroupSystemScanRulesetProperties; + kind: "None"; } -export type AzureResourceGroupSystemScanRulesetProperties = AzureResourceGroupSystemScanRulesetPropertiesBase & - AzureResourceGroupScanRulesetProperties; - -export interface AzureResourceGroupSystemScanRulesetPropertiesBase {} +export interface AzureResourceGroupSystemScanRulesetProperties + extends AzureResourceGroupScanRulesetProperties {} -export type AzureSynapseWorkspaceSystemScanRuleset = AzureSynapseWorkspaceSystemScanRulesetBase & - SystemScanRuleset; - -export interface AzureSynapseWorkspaceSystemScanRulesetBase { +export interface AzureSynapseWorkspaceSystemScanRuleset extends SystemScanRulesetBase { properties?: AzureSynapseWorkspaceSystemScanRulesetProperties; + kind: "None"; } -export type AzureSynapseWorkspaceSystemScanRulesetProperties = AzureSynapseWorkspaceSystemScanRulesetPropertiesBase & - AzureSynapseWorkspaceScanRulesetProperties; - -export interface AzureSynapseWorkspaceSystemScanRulesetPropertiesBase {} +export interface AzureSynapseWorkspaceSystemScanRulesetProperties + extends AzureSynapseWorkspaceScanRulesetProperties {} -export type AzureSynapseSystemScanRuleset = AzureSynapseSystemScanRulesetBase & SystemScanRuleset; - -export interface AzureSynapseSystemScanRulesetBase { +export interface AzureSynapseSystemScanRuleset extends SystemScanRulesetBase { properties?: AzureSynapseSystemScanRulesetProperties; + kind: "None"; } -export type AzureSynapseSystemScanRulesetProperties = AzureSynapseSystemScanRulesetPropertiesBase & - AzureSynapseScanRulesetProperties; - -export interface AzureSynapseSystemScanRulesetPropertiesBase {} +export interface AzureSynapseSystemScanRulesetProperties + extends AzureSynapseScanRulesetProperties {} -export type AdlsGen1SystemScanRuleset = AdlsGen1SystemScanRulesetBase & SystemScanRuleset; - -export interface AdlsGen1SystemScanRulesetBase { +export interface AdlsGen1SystemScanRuleset extends SystemScanRulesetBase { properties?: AdlsGen1SystemScanRulesetProperties; + kind: "None"; } -export type AdlsGen1SystemScanRulesetProperties = AdlsGen1SystemScanRulesetPropertiesBase & - AdlsGen1ScanRulesetProperties; - -export interface AdlsGen1SystemScanRulesetPropertiesBase {} - -export type AdlsGen2SystemScanRuleset = AdlsGen2SystemScanRulesetBase & SystemScanRuleset; +export interface AdlsGen1SystemScanRulesetProperties extends AdlsGen1ScanRulesetProperties {} -export interface AdlsGen2SystemScanRulesetBase { +export interface AdlsGen2SystemScanRuleset extends SystemScanRulesetBase { properties?: AdlsGen2SystemScanRulesetProperties; + kind: "None"; } -export type AdlsGen2SystemScanRulesetProperties = AdlsGen2SystemScanRulesetPropertiesBase & - AdlsGen2ScanRulesetProperties; +export interface AdlsGen2SystemScanRulesetProperties extends AdlsGen2ScanRulesetProperties {} -export interface AdlsGen2SystemScanRulesetPropertiesBase {} - -export type AmazonAccountSystemScanRuleset = AmazonAccountSystemScanRulesetBase & SystemScanRuleset; - -export interface AmazonAccountSystemScanRulesetBase { +export interface AmazonAccountSystemScanRuleset extends SystemScanRulesetBase { properties?: AmazonAccountSystemScanRulesetProperties; + kind: "None"; } -export type AmazonAccountSystemScanRulesetProperties = AmazonAccountSystemScanRulesetPropertiesBase & - AmazonAccountScanRulesetProperties; - -export interface AmazonAccountSystemScanRulesetPropertiesBase {} - -export type AmazonS3SystemScanRuleset = AmazonS3SystemScanRulesetBase & SystemScanRuleset; +export interface AmazonAccountSystemScanRulesetProperties + extends AmazonAccountScanRulesetProperties {} -export interface AmazonS3SystemScanRulesetBase { +export interface AmazonS3SystemScanRuleset extends SystemScanRulesetBase { properties?: AmazonS3SystemScanRulesetProperties; + kind: "None"; } -export type AmazonS3SystemScanRulesetProperties = AmazonS3SystemScanRulesetPropertiesBase & - AmazonS3ScanRulesetProperties; +export interface AmazonS3SystemScanRulesetProperties extends AmazonS3ScanRulesetProperties {} -export interface AmazonS3SystemScanRulesetPropertiesBase {} - -export type AmazonSqlSystemScanRuleset = AmazonSqlSystemScanRulesetBase & SystemScanRuleset; - -export interface AmazonSqlSystemScanRulesetBase { +export interface AmazonSqlSystemScanRuleset extends SystemScanRulesetBase { properties?: AmazonSqlSystemScanRulesetProperties; + kind: "None"; } -export type AmazonSqlSystemScanRulesetProperties = AmazonSqlSystemScanRulesetPropertiesBase & - AmazonSqlScanRulesetProperties; - -export interface AmazonSqlSystemScanRulesetPropertiesBase {} +export interface AmazonSqlSystemScanRulesetProperties extends AmazonSqlScanRulesetProperties {} -export type AzureCosmosDbSystemScanRuleset = AzureCosmosDbSystemScanRulesetBase & SystemScanRuleset; - -export interface AzureCosmosDbSystemScanRulesetBase { +export interface AzureCosmosDbSystemScanRuleset extends SystemScanRulesetBase { properties?: AzureCosmosDbSystemScanRulesetProperties; + kind: "None"; } -export type AzureCosmosDbSystemScanRulesetProperties = AzureCosmosDbSystemScanRulesetPropertiesBase & - AzureCosmosDbScanRulesetProperties; - -export interface AzureCosmosDbSystemScanRulesetPropertiesBase {} - -export type AzureDataExplorerSystemScanRuleset = AzureDataExplorerSystemScanRulesetBase & - SystemScanRuleset; +export interface AzureCosmosDbSystemScanRulesetProperties + extends AzureCosmosDbScanRulesetProperties {} -export interface AzureDataExplorerSystemScanRulesetBase { +export interface AzureDataExplorerSystemScanRuleset extends SystemScanRulesetBase { properties?: AzureDataExplorerSystemScanRulesetProperties; + kind: "None"; } -export type AzureDataExplorerSystemScanRulesetProperties = AzureDataExplorerSystemScanRulesetPropertiesBase & - AzureDataExplorerScanRulesetProperties; +export interface AzureDataExplorerSystemScanRulesetProperties + extends AzureDataExplorerScanRulesetProperties {} -export interface AzureDataExplorerSystemScanRulesetPropertiesBase {} - -export type AzureFileServiceSystemScanRuleset = AzureFileServiceSystemScanRulesetBase & - SystemScanRuleset; - -export interface AzureFileServiceSystemScanRulesetBase { +export interface AzureFileServiceSystemScanRuleset extends SystemScanRulesetBase { properties?: AzureFileServiceSystemScanRulesetProperties; + kind: "None"; } -export type AzureFileServiceSystemScanRulesetProperties = AzureFileServiceSystemScanRulesetPropertiesBase & - AzureFileServiceScanRulesetProperties; - -export interface AzureFileServiceSystemScanRulesetPropertiesBase {} +export interface AzureFileServiceSystemScanRulesetProperties + extends AzureFileServiceScanRulesetProperties {} -export type AzureSqlDatabaseSystemScanRuleset = AzureSqlDatabaseSystemScanRulesetBase & - SystemScanRuleset; - -export interface AzureSqlDatabaseSystemScanRulesetBase { +export interface AzureSqlDatabaseSystemScanRuleset extends SystemScanRulesetBase { properties?: AzureSqlDatabaseSystemScanRulesetProperties; + kind: "None"; } -export type AzureSqlDatabaseSystemScanRulesetProperties = AzureSqlDatabaseSystemScanRulesetPropertiesBase & - AzureSqlDatabaseScanRulesetProperties; - -export interface AzureSqlDatabaseSystemScanRulesetPropertiesBase {} +export interface AzureSqlDatabaseSystemScanRulesetProperties + extends AzureSqlDatabaseScanRulesetProperties {} -export type AmazonPostgreSqlSystemScanRuleset = AmazonPostgreSqlSystemScanRulesetBase & - SystemScanRuleset; - -export interface AmazonPostgreSqlSystemScanRulesetBase { +export interface AmazonPostgreSqlSystemScanRuleset extends SystemScanRulesetBase { properties?: AmazonPostgreSqlSystemScanRulesetProperties; + kind: "None"; } -export type AmazonPostgreSqlSystemScanRulesetProperties = AmazonPostgreSqlSystemScanRulesetPropertiesBase & - AmazonPostgreSqlScanRulesetProperties; - -export interface AmazonPostgreSqlSystemScanRulesetPropertiesBase {} +export interface AmazonPostgreSqlSystemScanRulesetProperties + extends AmazonPostgreSqlScanRulesetProperties {} -export type AzurePostgreSqlSystemScanRuleset = AzurePostgreSqlSystemScanRulesetBase & - SystemScanRuleset; - -export interface AzurePostgreSqlSystemScanRulesetBase { +export interface AzurePostgreSqlSystemScanRuleset extends SystemScanRulesetBase { properties?: AzurePostgreSqlSystemScanRulesetProperties; + kind: "None"; } -export type AzurePostgreSqlSystemScanRulesetProperties = AzurePostgreSqlSystemScanRulesetPropertiesBase & - AzurePostgreSqlScanRulesetProperties; - -export interface AzurePostgreSqlSystemScanRulesetPropertiesBase {} - -export type SqlServerDatabaseSystemScanRuleset = SqlServerDatabaseSystemScanRulesetBase & - SystemScanRuleset; +export interface AzurePostgreSqlSystemScanRulesetProperties + extends AzurePostgreSqlScanRulesetProperties {} -export interface SqlServerDatabaseSystemScanRulesetBase { +export interface SqlServerDatabaseSystemScanRuleset extends SystemScanRulesetBase { properties?: SqlServerDatabaseSystemScanRulesetProperties; + kind: "None"; } -export type SqlServerDatabaseSystemScanRulesetProperties = SqlServerDatabaseSystemScanRulesetPropertiesBase & - SqlServerDatabaseScanRulesetProperties; +export interface SqlServerDatabaseSystemScanRulesetProperties + extends SqlServerDatabaseScanRulesetProperties {} -export interface SqlServerDatabaseSystemScanRulesetPropertiesBase {} - -export type AzureSqlDatabaseManagedInstanceSystemScanRuleset = AzureSqlDatabaseManagedInstanceSystemScanRulesetBase & - SystemScanRuleset; - -export interface AzureSqlDatabaseManagedInstanceSystemScanRulesetBase { +export interface AzureSqlDatabaseManagedInstanceSystemScanRuleset extends SystemScanRulesetBase { properties?: AzureSqlDatabaseManagedInstanceSystemScanRulesetProperties; + kind: "None"; } -export type AzureSqlDatabaseManagedInstanceSystemScanRulesetProperties = AzureSqlDatabaseManagedInstanceSystemScanRulesetPropertiesBase & - AzureSqlDatabaseManagedInstanceScanRulesetProperties; - -export interface AzureSqlDatabaseManagedInstanceSystemScanRulesetPropertiesBase {} - -export type AzureSqlDataWarehouseSystemScanRuleset = AzureSqlDataWarehouseSystemScanRulesetBase & - SystemScanRuleset; +export interface AzureSqlDatabaseManagedInstanceSystemScanRulesetProperties + extends AzureSqlDatabaseManagedInstanceScanRulesetProperties {} -export interface AzureSqlDataWarehouseSystemScanRulesetBase { +export interface AzureSqlDataWarehouseSystemScanRuleset extends SystemScanRulesetBase { properties?: AzureSqlDataWarehouseSystemScanRulesetProperties; + kind: "None"; } -export type AzureSqlDataWarehouseSystemScanRulesetProperties = AzureSqlDataWarehouseSystemScanRulesetPropertiesBase & - AzureSqlDataWarehouseScanRulesetProperties; +export interface AzureSqlDataWarehouseSystemScanRulesetProperties + extends AzureSqlDataWarehouseScanRulesetProperties {} -export interface AzureSqlDataWarehouseSystemScanRulesetPropertiesBase {} - -export type AzureMySqlSystemScanRuleset = AzureMySqlSystemScanRulesetBase & SystemScanRuleset; - -export interface AzureMySqlSystemScanRulesetBase { +export interface AzureMySqlSystemScanRuleset extends SystemScanRulesetBase { properties?: AzureMySqlSystemScanRulesetProperties; + kind: "None"; } -export type AzureMySqlSystemScanRulesetProperties = AzureMySqlSystemScanRulesetPropertiesBase & - AzureMySqlScanRulesetProperties; - -export interface AzureMySqlSystemScanRulesetPropertiesBase {} +export interface AzureMySqlSystemScanRulesetProperties extends AzureMySqlScanRulesetProperties {} -export type AzureStorageSystemScanRuleset = AzureStorageSystemScanRulesetBase & SystemScanRuleset; - -export interface AzureStorageSystemScanRulesetBase { +export interface AzureStorageSystemScanRuleset extends SystemScanRulesetBase { properties?: AzureStorageSystemScanRulesetProperties; + kind: "None"; } -export type AzureStorageSystemScanRulesetProperties = AzureStorageSystemScanRulesetPropertiesBase & - AzureStorageScanRulesetProperties; - -export interface AzureStorageSystemScanRulesetPropertiesBase {} +export interface AzureStorageSystemScanRulesetProperties + extends AzureStorageScanRulesetProperties {} -export type TeradataSystemScanRuleset = TeradataSystemScanRulesetBase & SystemScanRuleset; - -export interface TeradataSystemScanRulesetBase { +export interface TeradataSystemScanRuleset extends SystemScanRulesetBase { properties?: TeradataSystemScanRulesetProperties; + kind: "None"; } -export type TeradataSystemScanRulesetProperties = TeradataSystemScanRulesetPropertiesBase & - TeradataScanRulesetProperties; - -export interface TeradataSystemScanRulesetPropertiesBase {} +export interface TeradataSystemScanRulesetProperties extends TeradataScanRulesetProperties {} -export type OracleSystemScanRuleset = OracleSystemScanRulesetBase & SystemScanRuleset; - -export interface OracleSystemScanRulesetBase { +export interface OracleSystemScanRuleset extends SystemScanRulesetBase { properties?: OracleSystemScanRulesetProperties; + kind: "None"; } -export type OracleSystemScanRulesetProperties = OracleSystemScanRulesetPropertiesBase & - OracleScanRulesetProperties; - -export interface OracleSystemScanRulesetPropertiesBase {} - -export type SapS4HanaSystemScanRuleset = SapS4HanaSystemScanRulesetBase & SystemScanRuleset; +export interface OracleSystemScanRulesetProperties extends OracleScanRulesetProperties {} -export interface SapS4HanaSystemScanRulesetBase { +export interface SapS4HanaSystemScanRuleset extends SystemScanRulesetBase { properties?: SapS4HanaSystemScanRulesetProperties; + kind: "None"; } -export type SapS4HanaSystemScanRulesetProperties = SapS4HanaSystemScanRulesetPropertiesBase & - SapS4HanaScanRulesetProperties; +export interface SapS4HanaSystemScanRulesetProperties extends SapS4HanaScanRulesetProperties {} -export interface SapS4HanaSystemScanRulesetPropertiesBase {} - -export type SapEccSystemScanRuleset = SapEccSystemScanRulesetBase & SystemScanRuleset; - -export interface SapEccSystemScanRulesetBase { +export interface SapEccSystemScanRuleset extends SystemScanRulesetBase { properties?: SapEccSystemScanRulesetProperties; + kind: "None"; } -export type SapEccSystemScanRulesetProperties = SapEccSystemScanRulesetPropertiesBase & - SapEccScanRulesetProperties; - -export interface SapEccSystemScanRulesetPropertiesBase {} +export interface SapEccSystemScanRulesetProperties extends SapEccScanRulesetProperties {} -export type PowerBISystemScanRuleset = PowerBISystemScanRulesetBase & SystemScanRuleset; - -export interface PowerBISystemScanRulesetBase { +export interface PowerBISystemScanRuleset extends SystemScanRulesetBase { properties?: PowerBISystemScanRulesetProperties; -} - -export type PowerBISystemScanRulesetProperties = PowerBISystemScanRulesetPropertiesBase & - PowerBIScanRulesetProperties; - -export interface PowerBISystemScanRulesetPropertiesBase {} - -export type ClassificationRuleType = "System" | "Custom"; -export type ClassificationAction = "Keep" | "Delete"; -export type OperationStatus = - | "Accepted" - | "InProgress" - | "TransientFailure" - | "Succeeded" - | "Failed" - | "Canceled"; -export type DataSourceType = - | "None" - | "AzureSubscription" - | "AzureResourceGroup" - | "AzureSynapseWorkspace" - | "AzureSynapse" - | "AdlsGen1" - | "AdlsGen2" - | "AmazonAccount" - | "AmazonS3" - | "AmazonSql" - | "AzureCosmosDb" - | "AzureDataExplorer" - | "AzureFileService" - | "AzureSqlDatabase" - | "AmazonPostgreSql" - | "AzurePostgreSql" - | "SqlServerDatabase" - | "AzureSqlDatabaseManagedInstance" - | "AzureSqlDataWarehouse" - | "AzureMySql" - | "AzureStorage" - | "Teradata" - | "Oracle" - | "SapS4Hana" - | "SapEcc" - | "PowerBI"; -export type ScanAuthorizationType = - | "AzureSubscriptionCredential" - | "AzureSubscriptionMsi" - | "AzureResourceGroupCredential" - | "AzureResourceGroupMsi" - | "AzureSynapseWorkspaceCredential" - | "AzureSynapseWorkspaceMsi" - | "AzureSynapseCredential" - | "AzureSynapseMsi" - | "AdlsGen1Credential" - | "AdlsGen1Msi" - | "AdlsGen2Credential" - | "AdlsGen2Msi" - | "AmazonAccountCredential" - | "AmazonS3Credential" - | "AmazonS3RoleARN" - | "AmazonSqlCredential" - | "AzureCosmosDbCredential" - | "AzureDataExplorerCredential" - | "AzureDataExplorerMsi" - | "AzureFileServiceCredential" - | "AzureSqlDatabaseCredential" - | "AzureSqlDatabaseMsi" - | "AmazonPostgreSqlCredential" - | "AzurePostgreSqlCredential" - | "SqlServerDatabaseCredential" - | "AzureSqlDatabaseManagedInstanceCredential" - | "AzureSqlDatabaseManagedInstanceMsi" - | "AzureSqlDataWarehouseCredential" - | "AzureSqlDataWarehouseMsi" - | "AzureMySqlCredential" - | "AzureStorageCredential" - | "AzureStorageMsi" - | "TeradataTeradataCredential" - | "TeradataTeradataUserPass" - | "TeradataUserPass" - | "OracleOracleCredential" - | "OracleOracleUserPass" - | "SapS4HanaSapS4HanaCredential" - | "SapS4HanaSapS4HanaUserPass" - | "SapEccSapEccCredential" - | "SapEccSapEccUserPass" - | "PowerBIDelegated" - | "PowerBIMsi"; -export type ScanRulesetType = "Custom" | "System"; -export type ScanLevelType = "Full" | "Incremental"; -export type ScanRulesetStatus = "Enabled" | "Disabled"; -export type TriggerFrequency = "Week" | "Month"; -export type DaysOfWeek = - | "Sunday" - | "Monday" - | "Tuesday" - | "Wednesday" - | "Thursday" - | "Friday" - | "Saturday"; -export type DayOfWeek = - | "Sunday" - | "Monday" - | "Tuesday" - | "Wednesday" - | "Thursday" - | "Friday" - | "Saturday"; -export type ClassificationRuleStatus = "Enabled" | "Disabled"; -export type ClassificationRulePatternType = "Regex"; -export type FileExtensionsType = - | "AVRO" - | "ORC" - | "PARQUET" - | "JSON" - | "TXT" - | "XML" - | "Documents" - | "CSV" - | "PSV" - | "SSV" - | "TSV" - | "GZ" - | "DOC" - | "DOCM" - | "DOCX" - | "DOT" - | "ODP" - | "ODS" - | "ODT" - | "PDF" - | "POT" - | "PPS" - | "PPSX" - | "PPT" - | "PPTM" - | "PPTX" - | "XLC" - | "XLS" - | "XLSB" - | "XLSM" - | "XLSX" - | "XLT"; -export type CredentialType = - | "AccountKey" - | "ServicePrincipal" - | "BasicAuth" - | "SqlAuth" - | "AmazonARN"; -export type ScanDiagnosticsExceptionCountMapDictionary = Record; -export type RecurrenceScheduleAdditionalPropertiesDictionary = Record; -export type RecurrenceScheduleOccurrenceAdditionalPropertiesDictionary = Record; + kind: "None"; +} + +export interface PowerBISystemScanRulesetProperties extends PowerBIScanRulesetProperties {} + +export type ClassificationRule = + | ClassificationRuleBase + | SystemClassificationRule + | CustomClassificationRule; +export type DataSource = + | DataSourceBase + | AzureSubscriptionDataSource + | AzureResourceGroupDataSource + | AzureSynapseWorkspaceDataSource + | AzureSynapseDataSource + | AdlsGen1DataSource + | AdlsGen2DataSource + | AmazonAccountDataSource + | AmazonS3DataSource + | AmazonSqlDataSource + | AzureCosmosDbDataSource + | AzureDataExplorerDataSource + | AzureFileServiceDataSource + | AzureSqlDatabaseDataSource + | AmazonPostgreSqlDataSource + | AzurePostgreSqlDataSource + | SqlServerDatabaseDataSource + | AzureSqlDatabaseManagedInstanceDataSource + | AzureSqlDataWarehouseDataSource + | AzureMySqlDataSource + | AzureStorageDataSource + | TeradataDataSource + | OracleDataSource + | SapS4HanaDataSource + | SapEccDataSource + | PowerBIDataSource; +export type Scan = + | ScanBase + | AzureSubscriptionCredentialScan + | AzureSubscriptionMsiScan + | AzureResourceGroupCredentialScan + | AzureResourceGroupMsiScan + | AzureSynapseWorkspaceCredentialScan + | AzureSynapseWorkspaceMsiScan + | AzureSynapseCredentialScan + | AzureSynapseMsiScan + | AdlsGen1CredentialScan + | AdlsGen1MsiScan + | AdlsGen2CredentialScan + | AdlsGen2MsiScan + | AmazonAccountCredentialScan + | AmazonS3CredentialScan + | AmazonS3RoleARNScan + | AmazonSqlCredentialScan + | AzureCosmosDbCredentialScan + | AzureDataExplorerCredentialScan + | AzureDataExplorerMsiScan + | AzureFileServiceCredentialScan + | AzureSqlDatabaseCredentialScan + | AzureSqlDatabaseMsiScan + | AmazonPostgreSqlCredentialScan + | AzurePostgreSqlCredentialScan + | SqlServerDatabaseCredentialScan + | AzureSqlDatabaseManagedInstanceCredentialScan + | AzureSqlDatabaseManagedInstanceMsiScan + | AzureSqlDataWarehouseCredentialScan + | AzureSqlDataWarehouseMsiScan + | AzureMySqlCredentialScan + | AzureStorageCredentialScan + | AzureStorageMsiScan + | TeradataCredentialScan + | TeradataUserPassScan + | TeradataUserPassScanAutoGenerated + | OracleCredentialScan + | OracleUserPassScan + | SapS4HanaSapS4HanaCredentialScan + | SapS4HanaSapS4HanaUserPassScan + | SapEccCredentialScan + | SapEccUserPassScan + | PowerBIDelegatedScan + | PowerBIMsiScan; +export type ScanRuleset = + | ScanRulesetBase + | AzureSubscriptionScanRuleset + | AzureResourceGroupScanRuleset + | AzureSynapseWorkspaceScanRuleset + | AzureSynapseScanRuleset + | AdlsGen1ScanRuleset + | AdlsGen2ScanRuleset + | AmazonAccountScanRuleset + | AmazonS3ScanRuleset + | AmazonSqlScanRuleset + | AzureCosmosDbScanRuleset + | AzureDataExplorerScanRuleset + | AzureFileServiceScanRuleset + | AzureSqlDatabaseScanRuleset + | AmazonPostgreSqlScanRuleset + | AzurePostgreSqlScanRuleset + | SqlServerDatabaseScanRuleset + | AzureSqlDatabaseManagedInstanceScanRuleset + | AzureSqlDataWarehouseScanRuleset + | AzureMySqlScanRuleset + | AzureStorageScanRuleset + | TeradataScanRuleset + | OracleScanRuleset + | SapS4HanaScanRuleset + | SapEccScanRuleset + | PowerBIScanRuleset; +export type SystemScanRuleset = + | SystemScanRulesetBase + | AzureSubscriptionSystemScanRuleset + | AzureResourceGroupSystemScanRuleset + | AzureSynapseWorkspaceSystemScanRuleset + | AzureSynapseSystemScanRuleset + | AdlsGen1SystemScanRuleset + | AdlsGen2SystemScanRuleset + | AmazonAccountSystemScanRuleset + | AmazonS3SystemScanRuleset + | AmazonSqlSystemScanRuleset + | AzureCosmosDbSystemScanRuleset + | AzureDataExplorerSystemScanRuleset + | AzureFileServiceSystemScanRuleset + | AzureSqlDatabaseSystemScanRuleset + | AmazonPostgreSqlSystemScanRuleset + | AzurePostgreSqlSystemScanRuleset + | SqlServerDatabaseSystemScanRuleset + | AzureSqlDatabaseManagedInstanceSystemScanRuleset + | AzureSqlDataWarehouseSystemScanRuleset + | AzureMySqlSystemScanRuleset + | AzureStorageSystemScanRuleset + | TeradataSystemScanRuleset + | OracleSystemScanRuleset + | SapS4HanaSystemScanRuleset + | SapEccSystemScanRuleset + | PowerBISystemScanRuleset; +export type ClassificationRulePattern = RegexClassificationRulePattern; diff --git a/sdk/purview/purview-scanning-rest/src/paginateHelper.ts b/sdk/purview/purview-scanning-rest/src/paginateHelper.ts new file mode 100644 index 000000000000..477bace4a37f --- /dev/null +++ b/sdk/purview/purview-scanning-rest/src/paginateHelper.ts @@ -0,0 +1,131 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { getPagedAsyncIterator, PagedAsyncIterableIterator, PagedResult } from "@azure/core-paging"; +import { Client, createRestError, PathUncheckedResponse } from "@azure-rest/core-client"; + +/** + * Helper type to extract the type of an array + */ +export type GetArrayType = T extends Array ? TData : never; + +/** + * The type of a custom function that defines how to get a page and a link to the next one if any. + */ +export type GetPage = ( + pageLink: string, + maxPageSize?: number +) => Promise<{ + page: TPage; + nextPageLink?: string; +}>; + +/** + * Options for the paging helper + */ +export interface PagingOptions { + /** + * Custom function to extract pagination details for crating the PagedAsyncIterableIterator + */ + customGetPage?: GetPage[]>; +} + +/** + * Helper type to infer the Type of the paged elements from the response type + * This type is generated based on the swagger information for x-ms-pageable + * specifically on the itemName property which indicates the property of the response + * where the page items are found. The default value is `value`. + * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter + */ +export type PaginateReturn = TResult extends { + body: { value?: infer TPage }; +} + ? GetArrayType + : Array; + +/** + * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension + * @param client - Client to use for sending the next page requests + * @param initialResponse - Initial response containing the nextLink and current page of elements + * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results + * @returns - PagedAsyncIterableIterator to iterate the elements + */ +export function paginate( + client: Client, + initialResponse: TResponse, + options: PagingOptions = {} +): PagedAsyncIterableIterator> { + // Extract element type from initial response + type TElement = PaginateReturn; + let firstRun = true; + const itemName = "value"; + const nextLinkName = "nextLink"; + const { customGetPage } = options; + const pagedResult: PagedResult = { + firstPageLink: "", + getPage: + typeof customGetPage === "function" + ? customGetPage + : async (pageLink: string) => { + const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get(); + firstRun = false; + checkPagingRequest(result); + const nextLink = getNextLink(result.body, nextLinkName); + const values = getElements(result.body, itemName); + return { + page: values, + nextPageLink: nextLink, + }; + }, + }; + + return getPagedAsyncIterator(pagedResult); +} + +/** + * Gets for the value of nextLink in the body + */ +function getNextLink(body: unknown, nextLinkName?: string): string | undefined { + if (!nextLinkName) { + return undefined; + } + + const nextLink = (body as Record)[nextLinkName]; + + if (typeof nextLink !== "string" && typeof nextLink !== "undefined") { + throw new Error(`Body Property ${nextLinkName} should be a string or undefined`); + } + + return nextLink; +} + +/** + * Gets the elements of the current request in the body. + */ +function getElements(body: unknown, itemName: string): T[] { + const value = (body as Record)[itemName] as T[]; + + // value has to be an array according to the x-ms-pageable extension. + // The fact that this must be an array is used above to calculate the + // type of elements in the page in PaginateReturn + if (!Array.isArray(value)) { + throw new Error( + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}` + ); + } + + return value ?? []; +} + +/** + * Checks if a request failed + */ +function checkPagingRequest(response: PathUncheckedResponse): void { + const Http2xxStatusCodes = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226"]; + if (!Http2xxStatusCodes.includes(response.status)) { + throw createRestError( + `Pagination failed with unexpected statusCode ${response.status}`, + response + ); + } +} diff --git a/sdk/purview/purview-scanning-rest/src/parameters.ts b/sdk/purview/purview-scanning-rest/src/parameters.ts index 94a00fa8677a..7aa9f834b7bf 100644 --- a/sdk/purview/purview-scanning-rest/src/parameters.ts +++ b/sdk/purview/purview-scanning-rest/src/parameters.ts @@ -5,13 +5,10 @@ import { RequestParameters } from "@azure-rest/core-client"; import { AzureKeyVault, ClassificationRule, - ClassificationAction, DataSource, Filter, Scan, - ScanLevelType, ScanRuleset, - DataSourceType, Trigger, } from "./models"; @@ -21,8 +18,8 @@ export interface KeyVaultConnectionsCreateBodyParam { body: AzureKeyVault; } -export type KeyVaultConnectionsCreateParameters = RequestParameters & - KeyVaultConnectionsCreateBodyParam; +export type KeyVaultConnectionsCreateParameters = KeyVaultConnectionsCreateBodyParam & + RequestParameters; export type KeyVaultConnectionsDeleteParameters = RequestParameters; export type KeyVaultConnectionsListAllParameters = RequestParameters; export type ClassificationRulesGetParameters = RequestParameters; @@ -31,29 +28,29 @@ export interface ClassificationRulesCreateOrUpdateBodyParam { body?: ClassificationRule; } -export type ClassificationRulesCreateOrUpdateParameters = RequestParameters & - ClassificationRulesCreateOrUpdateBodyParam; +export type ClassificationRulesCreateOrUpdateParameters = ClassificationRulesCreateOrUpdateBodyParam & + RequestParameters; export type ClassificationRulesDeleteParameters = RequestParameters; export type ClassificationRulesListAllParameters = RequestParameters; export type ClassificationRulesListVersionsByClassificationRuleNameParameters = RequestParameters; export interface ClassificationRulesTagClassificationVersionQueryParamProperties { - action: ClassificationAction; + action: "Keep" | "Delete"; } export interface ClassificationRulesTagClassificationVersionQueryParam { queryParameters: ClassificationRulesTagClassificationVersionQueryParamProperties; } -export type ClassificationRulesTagClassificationVersionParameters = RequestParameters & - ClassificationRulesTagClassificationVersionQueryParam; +export type ClassificationRulesTagClassificationVersionParameters = ClassificationRulesTagClassificationVersionQueryParam & + RequestParameters; export interface DataSourcesCreateOrUpdateBodyParam { body?: DataSource; } -export type DataSourcesCreateOrUpdateParameters = RequestParameters & - DataSourcesCreateOrUpdateBodyParam; +export type DataSourcesCreateOrUpdateParameters = DataSourcesCreateOrUpdateBodyParam & + RequestParameters; export type DataSourcesGetParameters = RequestParameters; export type DataSourcesDeleteParameters = RequestParameters; export type DataSourcesListAllParameters = RequestParameters; @@ -63,26 +60,26 @@ export interface FiltersCreateOrUpdateBodyParam { body?: Filter; } -export type FiltersCreateOrUpdateParameters = RequestParameters & FiltersCreateOrUpdateBodyParam; +export type FiltersCreateOrUpdateParameters = FiltersCreateOrUpdateBodyParam & RequestParameters; export interface ScansCreateOrUpdateBodyParam { body: Scan; } -export type ScansCreateOrUpdateParameters = RequestParameters & ScansCreateOrUpdateBodyParam; +export type ScansCreateOrUpdateParameters = ScansCreateOrUpdateBodyParam & RequestParameters; export type ScansGetParameters = RequestParameters; export type ScansDeleteParameters = RequestParameters; export type ScansListByDataSourceParameters = RequestParameters; export interface ScanResultRunScanQueryParamProperties { - scanLevel?: ScanLevelType; + scanLevel?: "Full" | "Incremental"; } export interface ScanResultRunScanQueryParam { queryParameters?: ScanResultRunScanQueryParamProperties; } -export type ScanResultRunScanParameters = RequestParameters & ScanResultRunScanQueryParam; +export type ScanResultRunScanParameters = ScanResultRunScanQueryParam & RequestParameters; export type ScanResultCancelScanParameters = RequestParameters; export type ScanResultListScanHistoryParameters = RequestParameters; export type ScanRulesetsGetParameters = RequestParameters; @@ -91,50 +88,128 @@ export interface ScanRulesetsCreateOrUpdateBodyParam { body?: ScanRuleset; } -export type ScanRulesetsCreateOrUpdateParameters = RequestParameters & - ScanRulesetsCreateOrUpdateBodyParam; +export type ScanRulesetsCreateOrUpdateParameters = ScanRulesetsCreateOrUpdateBodyParam & + RequestParameters; export type ScanRulesetsDeleteParameters = RequestParameters; export type ScanRulesetsListAllParameters = RequestParameters; export type SystemScanRulesetsListAllParameters = RequestParameters; export type SystemScanRulesetsGetParameters = RequestParameters; export interface SystemScanRulesetsGetByVersionQueryParamProperties { - dataSourceType?: DataSourceType; + dataSourceType?: + | "None" + | "AzureSubscription" + | "AzureResourceGroup" + | "AzureSynapseWorkspace" + | "AzureSynapse" + | "AdlsGen1" + | "AdlsGen2" + | "AmazonAccount" + | "AmazonS3" + | "AmazonSql" + | "AzureCosmosDb" + | "AzureDataExplorer" + | "AzureFileService" + | "AzureSqlDatabase" + | "AmazonPostgreSql" + | "AzurePostgreSql" + | "SqlServerDatabase" + | "AzureSqlDatabaseManagedInstance" + | "AzureSqlDataWarehouse" + | "AzureMySql" + | "AzureStorage" + | "Teradata" + | "Oracle" + | "SapS4Hana" + | "SapEcc" + | "PowerBI"; } export interface SystemScanRulesetsGetByVersionQueryParam { queryParameters?: SystemScanRulesetsGetByVersionQueryParamProperties; } -export type SystemScanRulesetsGetByVersionParameters = RequestParameters & - SystemScanRulesetsGetByVersionQueryParam; +export type SystemScanRulesetsGetByVersionParameters = SystemScanRulesetsGetByVersionQueryParam & + RequestParameters; export interface SystemScanRulesetsGetLatestQueryParamProperties { - dataSourceType?: DataSourceType; + dataSourceType?: + | "None" + | "AzureSubscription" + | "AzureResourceGroup" + | "AzureSynapseWorkspace" + | "AzureSynapse" + | "AdlsGen1" + | "AdlsGen2" + | "AmazonAccount" + | "AmazonS3" + | "AmazonSql" + | "AzureCosmosDb" + | "AzureDataExplorer" + | "AzureFileService" + | "AzureSqlDatabase" + | "AmazonPostgreSql" + | "AzurePostgreSql" + | "SqlServerDatabase" + | "AzureSqlDatabaseManagedInstance" + | "AzureSqlDataWarehouse" + | "AzureMySql" + | "AzureStorage" + | "Teradata" + | "Oracle" + | "SapS4Hana" + | "SapEcc" + | "PowerBI"; } export interface SystemScanRulesetsGetLatestQueryParam { queryParameters?: SystemScanRulesetsGetLatestQueryParamProperties; } -export type SystemScanRulesetsGetLatestParameters = RequestParameters & - SystemScanRulesetsGetLatestQueryParam; +export type SystemScanRulesetsGetLatestParameters = SystemScanRulesetsGetLatestQueryParam & + RequestParameters; export interface SystemScanRulesetsListVersionsByDataSourceQueryParamProperties { - dataSourceType?: DataSourceType; + dataSourceType?: + | "None" + | "AzureSubscription" + | "AzureResourceGroup" + | "AzureSynapseWorkspace" + | "AzureSynapse" + | "AdlsGen1" + | "AdlsGen2" + | "AmazonAccount" + | "AmazonS3" + | "AmazonSql" + | "AzureCosmosDb" + | "AzureDataExplorer" + | "AzureFileService" + | "AzureSqlDatabase" + | "AmazonPostgreSql" + | "AzurePostgreSql" + | "SqlServerDatabase" + | "AzureSqlDatabaseManagedInstance" + | "AzureSqlDataWarehouse" + | "AzureMySql" + | "AzureStorage" + | "Teradata" + | "Oracle" + | "SapS4Hana" + | "SapEcc" + | "PowerBI"; } export interface SystemScanRulesetsListVersionsByDataSourceQueryParam { queryParameters?: SystemScanRulesetsListVersionsByDataSourceQueryParamProperties; } -export type SystemScanRulesetsListVersionsByDataSourceParameters = RequestParameters & - SystemScanRulesetsListVersionsByDataSourceQueryParam; +export type SystemScanRulesetsListVersionsByDataSourceParameters = SystemScanRulesetsListVersionsByDataSourceQueryParam & + RequestParameters; export type TriggersGetTriggerParameters = RequestParameters; export interface TriggersCreateTriggerBodyParam { body: Trigger; } -export type TriggersCreateTriggerParameters = RequestParameters & TriggersCreateTriggerBodyParam; +export type TriggersCreateTriggerParameters = TriggersCreateTriggerBodyParam & RequestParameters; export type TriggersDeleteTriggerParameters = RequestParameters; diff --git a/sdk/purview/purview-scanning-rest/src/purviewScanning.ts b/sdk/purview/purview-scanning-rest/src/purviewScanning.ts index 1d442dc48894..5d2439146241 100644 --- a/sdk/purview/purview-scanning-rest/src/purviewScanning.ts +++ b/sdk/purview/purview-scanning-rest/src/purviewScanning.ts @@ -125,7 +125,7 @@ import { import { getClient, ClientOptions, Client } from "@azure-rest/core-client"; import { TokenCredential } from "@azure/core-auth"; -export interface KeyVaultConnectionsDelete { +export interface KeyVaultConnectionsGet { /** Gets key vault information */ get( options?: KeyVaultConnectionsGetParameters @@ -151,7 +151,7 @@ export interface KeyVaultConnectionsListAll { ): Promise; } -export interface ClassificationRulesDelete { +export interface ClassificationRulesGet { /** Get a classification rule */ get( options?: ClassificationRulesGetParameters @@ -194,14 +194,14 @@ export interface ClassificationRulesListVersionsByClassificationRuleName { export interface ClassificationRulesTagClassificationVersion { /** Sets Classification Action on a specific classification rule version. */ post( - options?: ClassificationRulesTagClassificationVersionParameters + options: ClassificationRulesTagClassificationVersionParameters ): Promise< | ClassificationRulesTagClassificationVersion202Response | ClassificationRulesTagClassificationVersiondefaultResponse >; } -export interface DataSourcesDelete { +export interface DataSourcesCreateOrUpdate { /** Creates or Updates a data source */ put( options?: DataSourcesCreateOrUpdateParameters @@ -229,7 +229,7 @@ export interface DataSourcesListAll { ): Promise; } -export interface FiltersCreateOrUpdate { +export interface FiltersGet { /** Get a filter */ get(options?: FiltersGetParameters): Promise; /** Creates or updates a filter */ @@ -242,7 +242,7 @@ export interface FiltersCreateOrUpdate { >; } -export interface ScansDelete { +export interface ScansCreateOrUpdate { /** Creates an instance of a scan */ put( options: ScansCreateOrUpdateParameters @@ -287,7 +287,7 @@ export interface ScanResultListScanHistory { ): Promise; } -export interface ScanRulesetsDelete { +export interface ScanRulesetsGet { /** Get a scan ruleset */ get( options?: ScanRulesetsGetParameters @@ -357,7 +357,7 @@ export interface SystemScanRulesetsListVersionsByDataSource { >; } -export interface TriggersDeleteTrigger { +export interface TriggersGetTrigger { /** Gets trigger information */ get( options?: TriggersGetTriggerParameters @@ -382,14 +382,14 @@ export interface TriggersDeleteTrigger { export interface Routes { /** Resource for '/azureKeyVaults/\{keyVaultName\}' has methods for the following verbs: get, put, delete */ - (path: "/azureKeyVaults/{keyVaultName}", keyVaultName: string): KeyVaultConnectionsDelete; + (path: "/azureKeyVaults/{keyVaultName}", keyVaultName: string): KeyVaultConnectionsGet; /** Resource for '/azureKeyVaults' has methods for the following verbs: get */ (path: "/azureKeyVaults"): KeyVaultConnectionsListAll; /** Resource for '/classificationrules/\{classificationRuleName\}' has methods for the following verbs: get, put, delete */ ( path: "/classificationrules/{classificationRuleName}", classificationRuleName: string - ): ClassificationRulesDelete; + ): ClassificationRulesGet; /** Resource for '/classificationrules' has methods for the following verbs: get */ (path: "/classificationrules"): ClassificationRulesListAll; /** Resource for '/classificationrules/\{classificationRuleName\}/versions' has methods for the following verbs: get */ @@ -404,7 +404,7 @@ export interface Routes { classificationRuleVersion: string ): ClassificationRulesTagClassificationVersion; /** Resource for '/datasources/\{dataSourceName\}' has methods for the following verbs: put, get, delete */ - (path: "/datasources/{dataSourceName}", dataSourceName: string): DataSourcesDelete; + (path: "/datasources/{dataSourceName}", dataSourceName: string): DataSourcesCreateOrUpdate; /** Resource for '/datasources' has methods for the following verbs: get */ (path: "/datasources"): DataSourcesListAll; /** Resource for '/datasources/\{dataSourceName\}/scans/\{scanName\}/filters/custom' has methods for the following verbs: get, put */ @@ -412,13 +412,13 @@ export interface Routes { path: "/datasources/{dataSourceName}/scans/{scanName}/filters/custom", dataSourceName: string, scanName: string - ): FiltersCreateOrUpdate; + ): FiltersGet; /** Resource for '/datasources/\{dataSourceName\}/scans/\{scanName\}' has methods for the following verbs: put, get, delete */ ( path: "/datasources/{dataSourceName}/scans/{scanName}", dataSourceName: string, scanName: string - ): ScansDelete; + ): ScansCreateOrUpdate; /** Resource for '/datasources/\{dataSourceName\}/scans' has methods for the following verbs: get */ (path: "/datasources/{dataSourceName}/scans", dataSourceName: string): ScansListByDataSource; /** Resource for '/datasources/\{dataSourceName\}/scans/\{scanName\}/runs/\{runId\}' has methods for the following verbs: put */ @@ -442,7 +442,7 @@ export interface Routes { scanName: string ): ScanResultListScanHistory; /** Resource for '/scanrulesets/\{scanRulesetName\}' has methods for the following verbs: get, put, delete */ - (path: "/scanrulesets/{scanRulesetName}", scanRulesetName: string): ScanRulesetsDelete; + (path: "/scanrulesets/{scanRulesetName}", scanRulesetName: string): ScanRulesetsGet; /** Resource for '/scanrulesets' has methods for the following verbs: get */ (path: "/scanrulesets"): ScanRulesetsListAll; /** Resource for '/systemScanRulesets' has methods for the following verbs: get */ @@ -463,7 +463,7 @@ export interface Routes { path: "/datasources/{dataSourceName}/scans/{scanName}/triggers/default", dataSourceName: string, scanName: string - ): TriggersDeleteTrigger; + ): TriggersGetTrigger; } export type PurviewScanningRestClient = Client & { diff --git a/sdk/purview/purview-scanning-rest/src/responses.ts b/sdk/purview/purview-scanning-rest/src/responses.ts index fac16cf6c74a..b1085a8eb8ad 100644 --- a/sdk/purview/purview-scanning-rest/src/responses.ts +++ b/sdk/purview/purview-scanning-rest/src/responses.ts @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +import { HttpResponse } from "@azure-rest/core-client"; import { AzureKeyVault, ErrorResponseModel, @@ -20,7 +21,6 @@ import { SystemScanRuleset, Trigger, } from "./models"; -import { HttpResponse } from "@azure-rest/core-client"; /** Gets key vault information */ export interface KeyVaultConnectionsGet200Response extends HttpResponse { @@ -55,6 +55,7 @@ export interface KeyVaultConnectionsDelete200Response extends HttpResponse { /** Deletes the key vault connection associated with the account */ export interface KeyVaultConnectionsDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes the key vault connection associated with the account */ @@ -114,6 +115,7 @@ export interface ClassificationRulesDelete200Response extends HttpResponse { /** Deletes a classification rule */ export interface ClassificationRulesDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes a classification rule */ @@ -199,6 +201,7 @@ export interface DataSourcesDelete200Response extends HttpResponse { /** Deletes a data source */ export interface DataSourcesDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes a data source */ @@ -288,6 +291,7 @@ export interface ScansDelete200Response extends HttpResponse { /** Deletes the scan associated with the data source */ export interface ScansDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes the scan associated with the data source */ @@ -383,6 +387,7 @@ export interface ScanRulesetsDelete200Response extends HttpResponse { /** Deletes a scan ruleset */ export interface ScanRulesetsDelete204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes a scan ruleset */ @@ -502,6 +507,7 @@ export interface TriggersDeleteTrigger200Response extends HttpResponse { /** Deletes the trigger associated with the scan */ export interface TriggersDeleteTrigger204Response extends HttpResponse { status: "204"; + body: Record; } /** Deletes the trigger associated with the scan */ diff --git a/sdk/purview/purview-scanning-rest/swagger/README.md b/sdk/purview/purview-scanning-rest/swagger/README.md index 1225a7645289..981a9d31e20d 100644 --- a/sdk/purview/purview-scanning-rest/swagger/README.md +++ b/sdk/purview/purview-scanning-rest/swagger/README.md @@ -18,7 +18,7 @@ rest-level-client: true add-credentials: true credential-scopes: "https://purview.azure.net/.default" use-extension: - "@autorest/typescript": "https://aka.ms/azsdk/typescript/rlc" + "@autorest/typescript": "6.0.0-beta.13" modelerfour: lenient-model-deduplication: true ``` diff --git a/sdk/purview/purview-scanning-rest/test/public/dataSources.spec.ts b/sdk/purview/purview-scanning-rest/test/public/dataSources.spec.ts index 6497134ea991..ed03e1bab675 100644 --- a/sdk/purview/purview-scanning-rest/test/public/dataSources.spec.ts +++ b/sdk/purview/purview-scanning-rest/test/public/dataSources.spec.ts @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { PurviewScanningRestClient } from "../../src"; +import { PurviewScanningRestClient, paginate } from "../../src"; import { Recorder } from "@azure-tools/test-recorder"; import { assert } from "chai"; @@ -22,6 +22,15 @@ describe("List data sources", () => { it("should list all available data sources", async () => { const result = await client.path("/datasources").get(); + const iter = paginate(client, result); + + const items = []; + + for await (const item of iter) { + items.push(item); + } + + assert.strictEqual(items.length, 2); if (result.status !== "200") { assert.fail(`GET "/datasources" failed with ${result.status}`);