@azure-rest/purview-scanning 1.0.0-alpha.20250115.1 → 1.0.0-alpha.20250124.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -11
- package/dist/browser/clientDefinitions.d.ts +277 -0
- package/dist/browser/clientDefinitions.d.ts.map +1 -0
- package/dist/browser/clientDefinitions.js +4 -0
- package/dist/browser/clientDefinitions.js.map +1 -0
- package/dist/browser/index.d.ts +8 -4
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +8 -5
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/isUnexpected.d.ts +60 -0
- package/dist/browser/isUnexpected.d.ts.map +1 -0
- package/dist/browser/isUnexpected.js +136 -0
- package/dist/browser/isUnexpected.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models.d.ts +1347 -752
- package/dist/browser/models.d.ts.map +1 -1
- package/dist/browser/models.js.map +1 -1
- package/dist/browser/outputModels.d.ts +2269 -0
- package/dist/browser/outputModels.d.ts.map +1 -0
- package/dist/browser/outputModels.js +4 -0
- package/dist/browser/outputModels.js.map +1 -0
- package/dist/browser/paginateHelper.d.ts +27 -2
- package/dist/browser/paginateHelper.d.ts.map +1 -1
- package/dist/browser/paginateHelper.js +98 -1
- package/dist/browser/paginateHelper.js.map +1 -1
- package/dist/browser/parameters.d.ts +146 -33
- package/dist/browser/parameters.d.ts.map +1 -1
- package/dist/browser/parameters.js.map +1 -1
- package/dist/browser/pollingHelper.d.ts +76 -0
- package/dist/browser/pollingHelper.d.ts.map +1 -0
- package/dist/browser/pollingHelper.js +104 -0
- package/dist/browser/pollingHelper.js.map +1 -0
- package/dist/browser/purviewScanningRestClient.d.ts +16 -0
- package/dist/browser/purviewScanningRestClient.d.ts.map +1 -0
- package/dist/browser/purviewScanningRestClient.js +43 -0
- package/dist/browser/purviewScanningRestClient.js.map +1 -0
- package/dist/browser/responses.d.ts +793 -266
- package/dist/browser/responses.d.ts.map +1 -1
- package/dist/browser/responses.js.map +1 -1
- package/dist/commonjs/clientDefinitions.d.ts +277 -0
- package/dist/commonjs/clientDefinitions.d.ts.map +1 -0
- package/dist/commonjs/clientDefinitions.js +5 -0
- package/dist/commonjs/clientDefinitions.js.map +1 -0
- package/dist/commonjs/index.d.ts +8 -4
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +8 -5
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/isUnexpected.d.ts +60 -0
- package/dist/commonjs/isUnexpected.d.ts.map +1 -0
- package/dist/commonjs/isUnexpected.js +139 -0
- package/dist/commonjs/isUnexpected.js.map +1 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models.d.ts +1347 -752
- package/dist/commonjs/models.d.ts.map +1 -1
- package/dist/commonjs/models.js.map +1 -1
- package/dist/commonjs/outputModels.d.ts +2269 -0
- package/dist/commonjs/outputModels.d.ts.map +1 -0
- package/dist/commonjs/outputModels.js +5 -0
- package/dist/commonjs/outputModels.js.map +1 -0
- package/dist/commonjs/paginateHelper.d.ts +27 -2
- package/dist/commonjs/paginateHelper.d.ts.map +1 -1
- package/dist/commonjs/paginateHelper.js +99 -2
- package/dist/commonjs/paginateHelper.js.map +1 -1
- package/dist/commonjs/parameters.d.ts +146 -33
- package/dist/commonjs/parameters.d.ts.map +1 -1
- package/dist/commonjs/parameters.js.map +1 -1
- package/dist/commonjs/pollingHelper.d.ts +76 -0
- package/dist/commonjs/pollingHelper.d.ts.map +1 -0
- package/dist/commonjs/pollingHelper.js +107 -0
- package/dist/commonjs/pollingHelper.js.map +1 -0
- package/dist/commonjs/purviewScanningRestClient.d.ts +16 -0
- package/dist/commonjs/purviewScanningRestClient.d.ts.map +1 -0
- package/dist/commonjs/purviewScanningRestClient.js +46 -0
- package/dist/commonjs/purviewScanningRestClient.js.map +1 -0
- package/dist/commonjs/responses.d.ts +793 -266
- package/dist/commonjs/responses.d.ts.map +1 -1
- package/dist/commonjs/responses.js.map +1 -1
- package/dist/esm/clientDefinitions.d.ts +277 -0
- package/dist/esm/clientDefinitions.d.ts.map +1 -0
- package/dist/esm/clientDefinitions.js +4 -0
- package/dist/esm/clientDefinitions.js.map +1 -0
- package/dist/esm/index.d.ts +8 -4
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +8 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/isUnexpected.d.ts +60 -0
- package/dist/esm/isUnexpected.d.ts.map +1 -0
- package/dist/esm/isUnexpected.js +136 -0
- package/dist/esm/isUnexpected.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models.d.ts +1347 -752
- package/dist/esm/models.d.ts.map +1 -1
- package/dist/esm/models.js.map +1 -1
- package/dist/esm/outputModels.d.ts +2269 -0
- package/dist/esm/outputModels.d.ts.map +1 -0
- package/dist/esm/outputModels.js +4 -0
- package/dist/esm/outputModels.js.map +1 -0
- package/dist/esm/paginateHelper.d.ts +27 -2
- package/dist/esm/paginateHelper.d.ts.map +1 -1
- package/dist/esm/paginateHelper.js +98 -1
- package/dist/esm/paginateHelper.js.map +1 -1
- package/dist/esm/parameters.d.ts +146 -33
- package/dist/esm/parameters.d.ts.map +1 -1
- package/dist/esm/parameters.js.map +1 -1
- package/dist/esm/pollingHelper.d.ts +76 -0
- package/dist/esm/pollingHelper.d.ts.map +1 -0
- package/dist/esm/pollingHelper.js +104 -0
- package/dist/esm/pollingHelper.js.map +1 -0
- package/dist/esm/purviewScanningRestClient.d.ts +16 -0
- package/dist/esm/purviewScanningRestClient.d.ts.map +1 -0
- package/dist/esm/purviewScanningRestClient.js +43 -0
- package/dist/esm/purviewScanningRestClient.js.map +1 -0
- package/dist/esm/responses.d.ts +793 -266
- package/dist/esm/responses.d.ts.map +1 -1
- package/dist/esm/responses.js.map +1 -1
- package/dist/react-native/clientDefinitions.d.ts +277 -0
- package/dist/react-native/clientDefinitions.d.ts.map +1 -0
- package/dist/react-native/clientDefinitions.js +4 -0
- package/dist/react-native/clientDefinitions.js.map +1 -0
- package/dist/react-native/index.d.ts +8 -4
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +8 -5
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/isUnexpected.d.ts +60 -0
- package/dist/react-native/isUnexpected.d.ts.map +1 -0
- package/dist/react-native/isUnexpected.js +136 -0
- package/dist/react-native/isUnexpected.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models.d.ts +1347 -752
- package/dist/react-native/models.d.ts.map +1 -1
- package/dist/react-native/models.js.map +1 -1
- package/dist/react-native/outputModels.d.ts +2269 -0
- package/dist/react-native/outputModels.d.ts.map +1 -0
- package/dist/react-native/outputModels.js +4 -0
- package/dist/react-native/outputModels.js.map +1 -0
- package/dist/react-native/paginateHelper.d.ts +27 -2
- package/dist/react-native/paginateHelper.d.ts.map +1 -1
- package/dist/react-native/paginateHelper.js +98 -1
- package/dist/react-native/paginateHelper.js.map +1 -1
- package/dist/react-native/parameters.d.ts +146 -33
- package/dist/react-native/parameters.d.ts.map +1 -1
- package/dist/react-native/parameters.js.map +1 -1
- package/dist/react-native/pollingHelper.d.ts +76 -0
- package/dist/react-native/pollingHelper.d.ts.map +1 -0
- package/dist/react-native/pollingHelper.js +104 -0
- package/dist/react-native/pollingHelper.js.map +1 -0
- package/dist/react-native/purviewScanningRestClient.d.ts +16 -0
- package/dist/react-native/purviewScanningRestClient.d.ts.map +1 -0
- package/dist/react-native/purviewScanningRestClient.js +43 -0
- package/dist/react-native/purviewScanningRestClient.js.map +1 -0
- package/dist/react-native/responses.d.ts +793 -266
- package/dist/react-native/responses.d.ts.map +1 -1
- package/dist/react-native/responses.js.map +1 -1
- package/package.json +12 -10
- package/dist/browser/purviewScanning.d.ts +0 -169
- package/dist/browser/purviewScanning.d.ts.map +0 -1
- package/dist/browser/purviewScanning.js +0 -13
- package/dist/browser/purviewScanning.js.map +0 -1
- package/dist/commonjs/purviewScanning.d.ts +0 -169
- package/dist/commonjs/purviewScanning.d.ts.map +0 -1
- package/dist/commonjs/purviewScanning.js +0 -16
- package/dist/commonjs/purviewScanning.js.map +0 -1
- package/dist/esm/purviewScanning.d.ts +0 -169
- package/dist/esm/purviewScanning.d.ts.map +0 -1
- package/dist/esm/purviewScanning.js +0 -13
- package/dist/esm/purviewScanning.js.map +0 -1
- package/dist/react-native/purviewScanning.d.ts +0 -169
- package/dist/react-native/purviewScanning.d.ts.map +0 -1
- package/dist/react-native/purviewScanning.js +0 -13
- package/dist/react-native/purviewScanning.js.map +0 -1
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import type { KeyVaultConnectionsGetParameters, KeyVaultConnectionsCreateParameters, KeyVaultConnectionsDeleteParameters, KeyVaultConnectionsListAllParameters, ClassificationRulesGetParameters, ClassificationRulesCreateOrUpdateParameters, ClassificationRulesDeleteParameters, ClassificationRulesListAllParameters, ClassificationRulesListVersionsByClassificationRuleNameParameters, ClassificationRulesTagClassificationVersionParameters, DataSourcesCreateOrUpdateParameters, DataSourcesGetParameters, DataSourcesDeleteParameters, DataSourcesListAllParameters, FiltersGetParameters, FiltersCreateOrUpdateParameters, ScansCreateOrUpdateParameters, ScansGetParameters, ScansDeleteParameters, ScansListByDataSourceParameters, ScanResultRunScanParameters, ScanResultCancelScanParameters, ScanResultListScanHistoryParameters, ScanRulesetsGetParameters, ScanRulesetsCreateOrUpdateParameters, ScanRulesetsDeleteParameters, ScanRulesetsListAllParameters, SystemScanRulesetsListAllParameters, SystemScanRulesetsGetParameters, SystemScanRulesetsGetByVersionParameters, SystemScanRulesetsGetLatestParameters, SystemScanRulesetsListVersionsByDataSourceParameters, TriggersGetTriggerParameters, TriggersCreateTriggerParameters, TriggersDeleteTriggerParameters } from "./parameters.js";
|
|
2
|
-
import type { KeyVaultConnectionsGet200Response, KeyVaultConnectionsGetdefaultResponse, KeyVaultConnectionsCreate200Response, KeyVaultConnectionsCreatedefaultResponse, KeyVaultConnectionsDelete200Response, KeyVaultConnectionsDelete204Response, KeyVaultConnectionsDeletedefaultResponse, KeyVaultConnectionsListAll200Response, KeyVaultConnectionsListAlldefaultResponse, ClassificationRulesGet200Response, ClassificationRulesGetdefaultResponse, ClassificationRulesCreateOrUpdate200Response, ClassificationRulesCreateOrUpdate201Response, ClassificationRulesCreateOrUpdatedefaultResponse, ClassificationRulesDelete200Response, ClassificationRulesDelete204Response, ClassificationRulesDeletedefaultResponse, ClassificationRulesListAll200Response, ClassificationRulesListAlldefaultResponse, ClassificationRulesListVersionsByClassificationRuleName200Response, ClassificationRulesListVersionsByClassificationRuleNamedefaultResponse, ClassificationRulesTagClassificationVersion202Response, ClassificationRulesTagClassificationVersiondefaultResponse, DataSourcesCreateOrUpdate200Response, DataSourcesCreateOrUpdate201Response, DataSourcesCreateOrUpdatedefaultResponse, DataSourcesGet200Response, DataSourcesGetdefaultResponse, DataSourcesDelete200Response, DataSourcesDelete204Response, DataSourcesDeletedefaultResponse, DataSourcesListAll200Response, DataSourcesListAlldefaultResponse, FiltersGet200Response, FiltersGetdefaultResponse, FiltersCreateOrUpdate200Response, FiltersCreateOrUpdate201Response, FiltersCreateOrUpdatedefaultResponse, ScansCreateOrUpdate200Response, ScansCreateOrUpdate201Response, ScansCreateOrUpdatedefaultResponse, ScansGet200Response, ScansGetdefaultResponse, ScansDelete200Response, ScansDelete204Response, ScansDeletedefaultResponse, ScansListByDataSource200Response, ScansListByDataSourcedefaultResponse, ScanResultRunScan202Response, ScanResultRunScandefaultResponse, ScanResultCancelScan202Response, ScanResultCancelScandefaultResponse, ScanResultListScanHistory200Response, ScanResultListScanHistorydefaultResponse, ScanRulesetsGet200Response, ScanRulesetsGetdefaultResponse, ScanRulesetsCreateOrUpdate200Response, ScanRulesetsCreateOrUpdate201Response, ScanRulesetsCreateOrUpdatedefaultResponse, ScanRulesetsDelete200Response, ScanRulesetsDelete204Response, ScanRulesetsDeletedefaultResponse, ScanRulesetsListAll200Response, ScanRulesetsListAlldefaultResponse, SystemScanRulesetsListAll200Response, SystemScanRulesetsListAlldefaultResponse, SystemScanRulesetsGet200Response, SystemScanRulesetsGetdefaultResponse, SystemScanRulesetsGetByVersion200Response, SystemScanRulesetsGetByVersiondefaultResponse, SystemScanRulesetsGetLatest200Response, SystemScanRulesetsGetLatestdefaultResponse, SystemScanRulesetsListVersionsByDataSource200Response, SystemScanRulesetsListVersionsByDataSourcedefaultResponse, TriggersGetTrigger200Response, TriggersGetTriggerdefaultResponse, TriggersCreateTrigger200Response, TriggersCreateTrigger201Response, TriggersCreateTriggerdefaultResponse, TriggersDeleteTrigger200Response, TriggersDeleteTrigger204Response, TriggersDeleteTriggerdefaultResponse } from "./responses.js";
|
|
3
|
-
import type { ClientOptions, Client } from "@azure-rest/core-client";
|
|
4
|
-
import type { TokenCredential } from "@azure/core-auth";
|
|
5
|
-
export interface KeyVaultConnectionsGet {
|
|
6
|
-
/** Gets key vault information */
|
|
7
|
-
get(options?: KeyVaultConnectionsGetParameters): Promise<KeyVaultConnectionsGet200Response | KeyVaultConnectionsGetdefaultResponse>;
|
|
8
|
-
/** Creates an instance of a key vault connection */
|
|
9
|
-
put(options: KeyVaultConnectionsCreateParameters): Promise<KeyVaultConnectionsCreate200Response | KeyVaultConnectionsCreatedefaultResponse>;
|
|
10
|
-
/** Deletes the key vault connection associated with the account */
|
|
11
|
-
delete(options?: KeyVaultConnectionsDeleteParameters): Promise<KeyVaultConnectionsDelete200Response | KeyVaultConnectionsDelete204Response | KeyVaultConnectionsDeletedefaultResponse>;
|
|
12
|
-
}
|
|
13
|
-
export interface KeyVaultConnectionsListAll {
|
|
14
|
-
/** List key vault connections in account */
|
|
15
|
-
get(options?: KeyVaultConnectionsListAllParameters): Promise<KeyVaultConnectionsListAll200Response | KeyVaultConnectionsListAlldefaultResponse>;
|
|
16
|
-
}
|
|
17
|
-
export interface ClassificationRulesGet {
|
|
18
|
-
/** Get a classification rule */
|
|
19
|
-
get(options?: ClassificationRulesGetParameters): Promise<ClassificationRulesGet200Response | ClassificationRulesGetdefaultResponse>;
|
|
20
|
-
/** Creates or Updates a classification rule */
|
|
21
|
-
put(options?: ClassificationRulesCreateOrUpdateParameters): Promise<ClassificationRulesCreateOrUpdate200Response | ClassificationRulesCreateOrUpdate201Response | ClassificationRulesCreateOrUpdatedefaultResponse>;
|
|
22
|
-
/** Deletes a classification rule */
|
|
23
|
-
delete(options?: ClassificationRulesDeleteParameters): Promise<ClassificationRulesDelete200Response | ClassificationRulesDelete204Response | ClassificationRulesDeletedefaultResponse>;
|
|
24
|
-
}
|
|
25
|
-
export interface ClassificationRulesListAll {
|
|
26
|
-
/** List classification rules in Account */
|
|
27
|
-
get(options?: ClassificationRulesListAllParameters): Promise<ClassificationRulesListAll200Response | ClassificationRulesListAlldefaultResponse>;
|
|
28
|
-
}
|
|
29
|
-
export interface ClassificationRulesListVersionsByClassificationRuleName {
|
|
30
|
-
/** Lists the rule versions of a classification rule */
|
|
31
|
-
get(options?: ClassificationRulesListVersionsByClassificationRuleNameParameters): Promise<ClassificationRulesListVersionsByClassificationRuleName200Response | ClassificationRulesListVersionsByClassificationRuleNamedefaultResponse>;
|
|
32
|
-
}
|
|
33
|
-
export interface ClassificationRulesTagClassificationVersion {
|
|
34
|
-
/** Sets Classification Action on a specific classification rule version. */
|
|
35
|
-
post(options: ClassificationRulesTagClassificationVersionParameters): Promise<ClassificationRulesTagClassificationVersion202Response | ClassificationRulesTagClassificationVersiondefaultResponse>;
|
|
36
|
-
}
|
|
37
|
-
export interface DataSourcesCreateOrUpdate {
|
|
38
|
-
/** Creates or Updates a data source */
|
|
39
|
-
put(options?: DataSourcesCreateOrUpdateParameters): Promise<DataSourcesCreateOrUpdate200Response | DataSourcesCreateOrUpdate201Response | DataSourcesCreateOrUpdatedefaultResponse>;
|
|
40
|
-
/** Get a data source */
|
|
41
|
-
get(options?: DataSourcesGetParameters): Promise<DataSourcesGet200Response | DataSourcesGetdefaultResponse>;
|
|
42
|
-
/** Deletes a data source */
|
|
43
|
-
delete(options?: DataSourcesDeleteParameters): Promise<DataSourcesDelete200Response | DataSourcesDelete204Response | DataSourcesDeletedefaultResponse>;
|
|
44
|
-
}
|
|
45
|
-
export interface DataSourcesListAll {
|
|
46
|
-
/** List data sources in Data catalog */
|
|
47
|
-
get(options?: DataSourcesListAllParameters): Promise<DataSourcesListAll200Response | DataSourcesListAlldefaultResponse>;
|
|
48
|
-
}
|
|
49
|
-
export interface FiltersGet {
|
|
50
|
-
/** Get a filter */
|
|
51
|
-
get(options?: FiltersGetParameters): Promise<FiltersGet200Response | FiltersGetdefaultResponse>;
|
|
52
|
-
/** Creates or updates a filter */
|
|
53
|
-
put(options?: FiltersCreateOrUpdateParameters): Promise<FiltersCreateOrUpdate200Response | FiltersCreateOrUpdate201Response | FiltersCreateOrUpdatedefaultResponse>;
|
|
54
|
-
}
|
|
55
|
-
export interface ScansCreateOrUpdate {
|
|
56
|
-
/** Creates an instance of a scan */
|
|
57
|
-
put(options: ScansCreateOrUpdateParameters): Promise<ScansCreateOrUpdate200Response | ScansCreateOrUpdate201Response | ScansCreateOrUpdatedefaultResponse>;
|
|
58
|
-
/** Gets a scan information */
|
|
59
|
-
get(options?: ScansGetParameters): Promise<ScansGet200Response | ScansGetdefaultResponse>;
|
|
60
|
-
/** Deletes the scan associated with the data source */
|
|
61
|
-
delete(options?: ScansDeleteParameters): Promise<ScansDelete200Response | ScansDelete204Response | ScansDeletedefaultResponse>;
|
|
62
|
-
}
|
|
63
|
-
export interface ScansListByDataSource {
|
|
64
|
-
/** List scans in data source */
|
|
65
|
-
get(options?: ScansListByDataSourceParameters): Promise<ScansListByDataSource200Response | ScansListByDataSourcedefaultResponse>;
|
|
66
|
-
}
|
|
67
|
-
export interface ScanResultRunScan {
|
|
68
|
-
/** Runs the scan */
|
|
69
|
-
put(options?: ScanResultRunScanParameters): Promise<ScanResultRunScan202Response | ScanResultRunScandefaultResponse>;
|
|
70
|
-
}
|
|
71
|
-
export interface ScanResultCancelScan {
|
|
72
|
-
/** Cancels a scan */
|
|
73
|
-
post(options?: ScanResultCancelScanParameters): Promise<ScanResultCancelScan202Response | ScanResultCancelScandefaultResponse>;
|
|
74
|
-
}
|
|
75
|
-
export interface ScanResultListScanHistory {
|
|
76
|
-
/** Lists the scan history of a scan */
|
|
77
|
-
get(options?: ScanResultListScanHistoryParameters): Promise<ScanResultListScanHistory200Response | ScanResultListScanHistorydefaultResponse>;
|
|
78
|
-
}
|
|
79
|
-
export interface ScanRulesetsGet {
|
|
80
|
-
/** Get a scan ruleset */
|
|
81
|
-
get(options?: ScanRulesetsGetParameters): Promise<ScanRulesetsGet200Response | ScanRulesetsGetdefaultResponse>;
|
|
82
|
-
/** Creates or Updates a scan ruleset */
|
|
83
|
-
put(options?: ScanRulesetsCreateOrUpdateParameters): Promise<ScanRulesetsCreateOrUpdate200Response | ScanRulesetsCreateOrUpdate201Response | ScanRulesetsCreateOrUpdatedefaultResponse>;
|
|
84
|
-
/** Deletes a scan ruleset */
|
|
85
|
-
delete(options?: ScanRulesetsDeleteParameters): Promise<ScanRulesetsDelete200Response | ScanRulesetsDelete204Response | ScanRulesetsDeletedefaultResponse>;
|
|
86
|
-
}
|
|
87
|
-
export interface ScanRulesetsListAll {
|
|
88
|
-
/** List scan rulesets in Data catalog */
|
|
89
|
-
get(options?: ScanRulesetsListAllParameters): Promise<ScanRulesetsListAll200Response | ScanRulesetsListAlldefaultResponse>;
|
|
90
|
-
}
|
|
91
|
-
export interface SystemScanRulesetsListAll {
|
|
92
|
-
/** List all system scan rulesets for an account */
|
|
93
|
-
get(options?: SystemScanRulesetsListAllParameters): Promise<SystemScanRulesetsListAll200Response | SystemScanRulesetsListAlldefaultResponse>;
|
|
94
|
-
}
|
|
95
|
-
export interface SystemScanRulesetsGet {
|
|
96
|
-
/** Get a system scan ruleset for a data source */
|
|
97
|
-
get(options?: SystemScanRulesetsGetParameters): Promise<SystemScanRulesetsGet200Response | SystemScanRulesetsGetdefaultResponse>;
|
|
98
|
-
}
|
|
99
|
-
export interface SystemScanRulesetsGetByVersion {
|
|
100
|
-
/** Get a scan ruleset by version */
|
|
101
|
-
get(options?: SystemScanRulesetsGetByVersionParameters): Promise<SystemScanRulesetsGetByVersion200Response | SystemScanRulesetsGetByVersiondefaultResponse>;
|
|
102
|
-
}
|
|
103
|
-
export interface SystemScanRulesetsGetLatest {
|
|
104
|
-
/** Get the latest version of a system scan ruleset */
|
|
105
|
-
get(options?: SystemScanRulesetsGetLatestParameters): Promise<SystemScanRulesetsGetLatest200Response | SystemScanRulesetsGetLatestdefaultResponse>;
|
|
106
|
-
}
|
|
107
|
-
export interface SystemScanRulesetsListVersionsByDataSource {
|
|
108
|
-
/** List system scan ruleset versions in Data catalog */
|
|
109
|
-
get(options?: SystemScanRulesetsListVersionsByDataSourceParameters): Promise<SystemScanRulesetsListVersionsByDataSource200Response | SystemScanRulesetsListVersionsByDataSourcedefaultResponse>;
|
|
110
|
-
}
|
|
111
|
-
export interface TriggersGetTrigger {
|
|
112
|
-
/** Gets trigger information */
|
|
113
|
-
get(options?: TriggersGetTriggerParameters): Promise<TriggersGetTrigger200Response | TriggersGetTriggerdefaultResponse>;
|
|
114
|
-
/** Creates an instance of a trigger */
|
|
115
|
-
put(options: TriggersCreateTriggerParameters): Promise<TriggersCreateTrigger200Response | TriggersCreateTrigger201Response | TriggersCreateTriggerdefaultResponse>;
|
|
116
|
-
/** Deletes the trigger associated with the scan */
|
|
117
|
-
delete(options?: TriggersDeleteTriggerParameters): Promise<TriggersDeleteTrigger200Response | TriggersDeleteTrigger204Response | TriggersDeleteTriggerdefaultResponse>;
|
|
118
|
-
}
|
|
119
|
-
export interface Routes {
|
|
120
|
-
/** Resource for '/azureKeyVaults/\{keyVaultName\}' has methods for the following verbs: get, put, delete */
|
|
121
|
-
(path: "/azureKeyVaults/{keyVaultName}", keyVaultName: string): KeyVaultConnectionsGet;
|
|
122
|
-
/** Resource for '/azureKeyVaults' has methods for the following verbs: get */
|
|
123
|
-
(path: "/azureKeyVaults"): KeyVaultConnectionsListAll;
|
|
124
|
-
/** Resource for '/classificationrules/\{classificationRuleName\}' has methods for the following verbs: get, put, delete */
|
|
125
|
-
(path: "/classificationrules/{classificationRuleName}", classificationRuleName: string): ClassificationRulesGet;
|
|
126
|
-
/** Resource for '/classificationrules' has methods for the following verbs: get */
|
|
127
|
-
(path: "/classificationrules"): ClassificationRulesListAll;
|
|
128
|
-
/** Resource for '/classificationrules/\{classificationRuleName\}/versions' has methods for the following verbs: get */
|
|
129
|
-
(path: "/classificationrules/{classificationRuleName}/versions", classificationRuleName: string): ClassificationRulesListVersionsByClassificationRuleName;
|
|
130
|
-
/** Resource for '/classificationrules/\{classificationRuleName\}/versions/\{classificationRuleVersion\}/:tag' has methods for the following verbs: post */
|
|
131
|
-
(path: "/classificationrules/{classificationRuleName}/versions/{classificationRuleVersion}/:tag", classificationRuleName: string, classificationRuleVersion: string): ClassificationRulesTagClassificationVersion;
|
|
132
|
-
/** Resource for '/datasources/\{dataSourceName\}' has methods for the following verbs: put, get, delete */
|
|
133
|
-
(path: "/datasources/{dataSourceName}", dataSourceName: string): DataSourcesCreateOrUpdate;
|
|
134
|
-
/** Resource for '/datasources' has methods for the following verbs: get */
|
|
135
|
-
(path: "/datasources"): DataSourcesListAll;
|
|
136
|
-
/** Resource for '/datasources/\{dataSourceName\}/scans/\{scanName\}/filters/custom' has methods for the following verbs: get, put */
|
|
137
|
-
(path: "/datasources/{dataSourceName}/scans/{scanName}/filters/custom", dataSourceName: string, scanName: string): FiltersGet;
|
|
138
|
-
/** Resource for '/datasources/\{dataSourceName\}/scans/\{scanName\}' has methods for the following verbs: put, get, delete */
|
|
139
|
-
(path: "/datasources/{dataSourceName}/scans/{scanName}", dataSourceName: string, scanName: string): ScansCreateOrUpdate;
|
|
140
|
-
/** Resource for '/datasources/\{dataSourceName\}/scans' has methods for the following verbs: get */
|
|
141
|
-
(path: "/datasources/{dataSourceName}/scans", dataSourceName: string): ScansListByDataSource;
|
|
142
|
-
/** Resource for '/datasources/\{dataSourceName\}/scans/\{scanName\}/runs/\{runId\}' has methods for the following verbs: put */
|
|
143
|
-
(path: "/datasources/{dataSourceName}/scans/{scanName}/runs/{runId}", dataSourceName: string, scanName: string, runId: string): ScanResultRunScan;
|
|
144
|
-
/** Resource for '/datasources/\{dataSourceName\}/scans/\{scanName\}/runs/\{runId\}/:cancel' has methods for the following verbs: post */
|
|
145
|
-
(path: "/datasources/{dataSourceName}/scans/{scanName}/runs/{runId}/:cancel", dataSourceName: string, scanName: string, runId: string): ScanResultCancelScan;
|
|
146
|
-
/** Resource for '/datasources/\{dataSourceName\}/scans/\{scanName\}/runs' has methods for the following verbs: get */
|
|
147
|
-
(path: "/datasources/{dataSourceName}/scans/{scanName}/runs", dataSourceName: string, scanName: string): ScanResultListScanHistory;
|
|
148
|
-
/** Resource for '/scanrulesets/\{scanRulesetName\}' has methods for the following verbs: get, put, delete */
|
|
149
|
-
(path: "/scanrulesets/{scanRulesetName}", scanRulesetName: string): ScanRulesetsGet;
|
|
150
|
-
/** Resource for '/scanrulesets' has methods for the following verbs: get */
|
|
151
|
-
(path: "/scanrulesets"): ScanRulesetsListAll;
|
|
152
|
-
/** Resource for '/systemScanRulesets' has methods for the following verbs: get */
|
|
153
|
-
(path: "/systemScanRulesets"): SystemScanRulesetsListAll;
|
|
154
|
-
/** Resource for '/systemScanRulesets/datasources/\{dataSourceType\}' has methods for the following verbs: get */
|
|
155
|
-
(path: "/systemScanRulesets/datasources/{dataSourceType}", dataSourceType: string): SystemScanRulesetsGet;
|
|
156
|
-
/** Resource for '/systemScanRulesets/versions/\{version\}' has methods for the following verbs: get */
|
|
157
|
-
(path: "/systemScanRulesets/versions/{version}", version: string): SystemScanRulesetsGetByVersion;
|
|
158
|
-
/** Resource for '/systemScanRulesets/versions/latest' has methods for the following verbs: get */
|
|
159
|
-
(path: "/systemScanRulesets/versions/latest"): SystemScanRulesetsGetLatest;
|
|
160
|
-
/** Resource for '/systemScanRulesets/versions' has methods for the following verbs: get */
|
|
161
|
-
(path: "/systemScanRulesets/versions"): SystemScanRulesetsListVersionsByDataSource;
|
|
162
|
-
/** Resource for '/datasources/\{dataSourceName\}/scans/\{scanName\}/triggers/default' has methods for the following verbs: get, put, delete */
|
|
163
|
-
(path: "/datasources/{dataSourceName}/scans/{scanName}/triggers/default", dataSourceName: string, scanName: string): TriggersGetTrigger;
|
|
164
|
-
}
|
|
165
|
-
export type PurviewScanningRestClient = Client & {
|
|
166
|
-
path: Routes;
|
|
167
|
-
};
|
|
168
|
-
export default function PurviewScanning(Endpoint: string, credentials: TokenCredential, options?: ClientOptions): PurviewScanningRestClient;
|
|
169
|
-
//# sourceMappingURL=purviewScanning.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"purviewScanning.d.ts","sourceRoot":"","sources":["../../src/purviewScanning.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,gCAAgC,EAChC,mCAAmC,EACnC,mCAAmC,EACnC,oCAAoC,EACpC,gCAAgC,EAChC,2CAA2C,EAC3C,mCAAmC,EACnC,oCAAoC,EACpC,iEAAiE,EACjE,qDAAqD,EACrD,mCAAmC,EACnC,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,oBAAoB,EACpB,+BAA+B,EAC/B,6BAA6B,EAC7B,kBAAkB,EAClB,qBAAqB,EACrB,+BAA+B,EAC/B,2BAA2B,EAC3B,8BAA8B,EAC9B,mCAAmC,EACnC,yBAAyB,EACzB,oC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,CAW3B"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT License.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.default = PurviewScanning;
|
|
6
|
-
const core_client_1 = require("@azure-rest/core-client");
|
|
7
|
-
function PurviewScanning(Endpoint, credentials, options = {}) {
|
|
8
|
-
var _a, _b;
|
|
9
|
-
const baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : `${Endpoint}`;
|
|
10
|
-
options.apiVersion = (_b = options.apiVersion) !== null && _b !== void 0 ? _b : "2018-12-01-preview";
|
|
11
|
-
options = Object.assign(Object.assign({}, options), { credentials: {
|
|
12
|
-
scopes: ["https://purview.azure.net/.default"],
|
|
13
|
-
} });
|
|
14
|
-
return (0, core_client_1.getClient)(baseUrl, credentials, options);
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=purviewScanning.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"purviewScanning.js","sourceRoot":"","sources":["../../src/purviewScanning.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAwdlC,kCAeC;AA3WD,yDAAoD;AA4VpD,SAAwB,eAAe,CACrC,QAAgB,EAChB,WAA4B,EAC5B,UAAyB,EAAE;;IAE3B,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,OAAO,mCAAI,GAAG,QAAQ,EAAE,CAAC;IACjD,OAAO,CAAC,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,oBAAoB,CAAC;IAChE,OAAO,mCACF,OAAO,KACV,WAAW,EAAE;YACX,MAAM,EAAE,CAAC,oCAAoC,CAAC;SAC/C,GACF,CAAC;IAEF,OAAO,IAAA,uBAAS,EAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAA8B,CAAC;AAC/E,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n KeyVaultConnectionsGetParameters,\n KeyVaultConnectionsCreateParameters,\n KeyVaultConnectionsDeleteParameters,\n KeyVaultConnectionsListAllParameters,\n ClassificationRulesGetParameters,\n ClassificationRulesCreateOrUpdateParameters,\n ClassificationRulesDeleteParameters,\n ClassificationRulesListAllParameters,\n ClassificationRulesListVersionsByClassificationRuleNameParameters,\n ClassificationRulesTagClassificationVersionParameters,\n DataSourcesCreateOrUpdateParameters,\n DataSourcesGetParameters,\n DataSourcesDeleteParameters,\n DataSourcesListAllParameters,\n FiltersGetParameters,\n FiltersCreateOrUpdateParameters,\n ScansCreateOrUpdateParameters,\n ScansGetParameters,\n ScansDeleteParameters,\n ScansListByDataSourceParameters,\n ScanResultRunScanParameters,\n ScanResultCancelScanParameters,\n ScanResultListScanHistoryParameters,\n ScanRulesetsGetParameters,\n ScanRulesetsCreateOrUpdateParameters,\n ScanRulesetsDeleteParameters,\n ScanRulesetsListAllParameters,\n SystemScanRulesetsListAllParameters,\n SystemScanRulesetsGetParameters,\n SystemScanRulesetsGetByVersionParameters,\n SystemScanRulesetsGetLatestParameters,\n SystemScanRulesetsListVersionsByDataSourceParameters,\n TriggersGetTriggerParameters,\n TriggersCreateTriggerParameters,\n TriggersDeleteTriggerParameters,\n} from \"./parameters.js\";\nimport type {\n KeyVaultConnectionsGet200Response,\n KeyVaultConnectionsGetdefaultResponse,\n KeyVaultConnectionsCreate200Response,\n KeyVaultConnectionsCreatedefaultResponse,\n KeyVaultConnectionsDelete200Response,\n KeyVaultConnectionsDelete204Response,\n KeyVaultConnectionsDeletedefaultResponse,\n KeyVaultConnectionsListAll200Response,\n KeyVaultConnectionsListAlldefaultResponse,\n ClassificationRulesGet200Response,\n ClassificationRulesGetdefaultResponse,\n ClassificationRulesCreateOrUpdate200Response,\n ClassificationRulesCreateOrUpdate201Response,\n ClassificationRulesCreateOrUpdatedefaultResponse,\n ClassificationRulesDelete200Response,\n ClassificationRulesDelete204Response,\n ClassificationRulesDeletedefaultResponse,\n ClassificationRulesListAll200Response,\n ClassificationRulesListAlldefaultResponse,\n ClassificationRulesListVersionsByClassificationRuleName200Response,\n ClassificationRulesListVersionsByClassificationRuleNamedefaultResponse,\n ClassificationRulesTagClassificationVersion202Response,\n ClassificationRulesTagClassificationVersiondefaultResponse,\n DataSourcesCreateOrUpdate200Response,\n DataSourcesCreateOrUpdate201Response,\n DataSourcesCreateOrUpdatedefaultResponse,\n DataSourcesGet200Response,\n DataSourcesGetdefaultResponse,\n DataSourcesDelete200Response,\n DataSourcesDelete204Response,\n DataSourcesDeletedefaultResponse,\n DataSourcesListAll200Response,\n DataSourcesListAlldefaultResponse,\n FiltersGet200Response,\n FiltersGetdefaultResponse,\n FiltersCreateOrUpdate200Response,\n FiltersCreateOrUpdate201Response,\n FiltersCreateOrUpdatedefaultResponse,\n ScansCreateOrUpdate200Response,\n ScansCreateOrUpdate201Response,\n ScansCreateOrUpdatedefaultResponse,\n ScansGet200Response,\n ScansGetdefaultResponse,\n ScansDelete200Response,\n ScansDelete204Response,\n ScansDeletedefaultResponse,\n ScansListByDataSource200Response,\n ScansListByDataSourcedefaultResponse,\n ScanResultRunScan202Response,\n ScanResultRunScandefaultResponse,\n ScanResultCancelScan202Response,\n ScanResultCancelScandefaultResponse,\n ScanResultListScanHistory200Response,\n ScanResultListScanHistorydefaultResponse,\n ScanRulesetsGet200Response,\n ScanRulesetsGetdefaultResponse,\n ScanRulesetsCreateOrUpdate200Response,\n ScanRulesetsCreateOrUpdate201Response,\n ScanRulesetsCreateOrUpdatedefaultResponse,\n ScanRulesetsDelete200Response,\n ScanRulesetsDelete204Response,\n ScanRulesetsDeletedefaultResponse,\n ScanRulesetsListAll200Response,\n ScanRulesetsListAlldefaultResponse,\n SystemScanRulesetsListAll200Response,\n SystemScanRulesetsListAlldefaultResponse,\n SystemScanRulesetsGet200Response,\n SystemScanRulesetsGetdefaultResponse,\n SystemScanRulesetsGetByVersion200Response,\n SystemScanRulesetsGetByVersiondefaultResponse,\n SystemScanRulesetsGetLatest200Response,\n SystemScanRulesetsGetLatestdefaultResponse,\n SystemScanRulesetsListVersionsByDataSource200Response,\n SystemScanRulesetsListVersionsByDataSourcedefaultResponse,\n TriggersGetTrigger200Response,\n TriggersGetTriggerdefaultResponse,\n TriggersCreateTrigger200Response,\n TriggersCreateTrigger201Response,\n TriggersCreateTriggerdefaultResponse,\n TriggersDeleteTrigger200Response,\n TriggersDeleteTrigger204Response,\n TriggersDeleteTriggerdefaultResponse,\n} from \"./responses.js\";\nimport type { ClientOptions, Client } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\n\nexport interface KeyVaultConnectionsGet {\n /** Gets key vault information */\n get(\n options?: KeyVaultConnectionsGetParameters,\n ): Promise<KeyVaultConnectionsGet200Response | KeyVaultConnectionsGetdefaultResponse>;\n /** Creates an instance of a key vault connection */\n put(\n options: KeyVaultConnectionsCreateParameters,\n ): Promise<KeyVaultConnectionsCreate200Response | KeyVaultConnectionsCreatedefaultResponse>;\n /** Deletes the key vault connection associated with the account */\n delete(\n options?: KeyVaultConnectionsDeleteParameters,\n ): Promise<\n | KeyVaultConnectionsDelete200Response\n | KeyVaultConnectionsDelete204Response\n | KeyVaultConnectionsDeletedefaultResponse\n >;\n}\n\nexport interface KeyVaultConnectionsListAll {\n /** List key vault connections in account */\n get(\n options?: KeyVaultConnectionsListAllParameters,\n ): Promise<KeyVaultConnectionsListAll200Response | KeyVaultConnectionsListAlldefaultResponse>;\n}\n\nexport interface ClassificationRulesGet {\n /** Get a classification rule */\n get(\n options?: ClassificationRulesGetParameters,\n ): Promise<ClassificationRulesGet200Response | ClassificationRulesGetdefaultResponse>;\n /** Creates or Updates a classification rule */\n put(\n options?: ClassificationRulesCreateOrUpdateParameters,\n ): Promise<\n | ClassificationRulesCreateOrUpdate200Response\n | ClassificationRulesCreateOrUpdate201Response\n | ClassificationRulesCreateOrUpdatedefaultResponse\n >;\n /** Deletes a classification rule */\n delete(\n options?: ClassificationRulesDeleteParameters,\n ): Promise<\n | ClassificationRulesDelete200Response\n | ClassificationRulesDelete204Response\n | ClassificationRulesDeletedefaultResponse\n >;\n}\n\nexport interface ClassificationRulesListAll {\n /** List classification rules in Account */\n get(\n options?: ClassificationRulesListAllParameters,\n ): Promise<ClassificationRulesListAll200Response | ClassificationRulesListAlldefaultResponse>;\n}\n\nexport interface ClassificationRulesListVersionsByClassificationRuleName {\n /** Lists the rule versions of a classification rule */\n get(\n options?: ClassificationRulesListVersionsByClassificationRuleNameParameters,\n ): Promise<\n | ClassificationRulesListVersionsByClassificationRuleName200Response\n | ClassificationRulesListVersionsByClassificationRuleNamedefaultResponse\n >;\n}\n\nexport interface ClassificationRulesTagClassificationVersion {\n /** Sets Classification Action on a specific classification rule version. */\n post(\n options: ClassificationRulesTagClassificationVersionParameters,\n ): Promise<\n | ClassificationRulesTagClassificationVersion202Response\n | ClassificationRulesTagClassificationVersiondefaultResponse\n >;\n}\n\nexport interface DataSourcesCreateOrUpdate {\n /** Creates or Updates a data source */\n put(\n options?: DataSourcesCreateOrUpdateParameters,\n ): Promise<\n | DataSourcesCreateOrUpdate200Response\n | DataSourcesCreateOrUpdate201Response\n | DataSourcesCreateOrUpdatedefaultResponse\n >;\n /** Get a data source */\n get(\n options?: DataSourcesGetParameters,\n ): Promise<DataSourcesGet200Response | DataSourcesGetdefaultResponse>;\n /** Deletes a data source */\n delete(\n options?: DataSourcesDeleteParameters,\n ): Promise<\n DataSourcesDelete200Response | DataSourcesDelete204Response | DataSourcesDeletedefaultResponse\n >;\n}\n\nexport interface DataSourcesListAll {\n /** List data sources in Data catalog */\n get(\n options?: DataSourcesListAllParameters,\n ): Promise<DataSourcesListAll200Response | DataSourcesListAlldefaultResponse>;\n}\n\nexport interface FiltersGet {\n /** Get a filter */\n get(options?: FiltersGetParameters): Promise<FiltersGet200Response | FiltersGetdefaultResponse>;\n /** Creates or updates a filter */\n put(\n options?: FiltersCreateOrUpdateParameters,\n ): Promise<\n | FiltersCreateOrUpdate200Response\n | FiltersCreateOrUpdate201Response\n | FiltersCreateOrUpdatedefaultResponse\n >;\n}\n\nexport interface ScansCreateOrUpdate {\n /** Creates an instance of a scan */\n put(\n options: ScansCreateOrUpdateParameters,\n ): Promise<\n | ScansCreateOrUpdate200Response\n | ScansCreateOrUpdate201Response\n | ScansCreateOrUpdatedefaultResponse\n >;\n /** Gets a scan information */\n get(options?: ScansGetParameters): Promise<ScansGet200Response | ScansGetdefaultResponse>;\n /** Deletes the scan associated with the data source */\n delete(\n options?: ScansDeleteParameters,\n ): Promise<ScansDelete200Response | ScansDelete204Response | ScansDeletedefaultResponse>;\n}\n\nexport interface ScansListByDataSource {\n /** List scans in data source */\n get(\n options?: ScansListByDataSourceParameters,\n ): Promise<ScansListByDataSource200Response | ScansListByDataSourcedefaultResponse>;\n}\n\nexport interface ScanResultRunScan {\n /** Runs the scan */\n put(\n options?: ScanResultRunScanParameters,\n ): Promise<ScanResultRunScan202Response | ScanResultRunScandefaultResponse>;\n}\n\nexport interface ScanResultCancelScan {\n /** Cancels a scan */\n post(\n options?: ScanResultCancelScanParameters,\n ): Promise<ScanResultCancelScan202Response | ScanResultCancelScandefaultResponse>;\n}\n\nexport interface ScanResultListScanHistory {\n /** Lists the scan history of a scan */\n get(\n options?: ScanResultListScanHistoryParameters,\n ): Promise<ScanResultListScanHistory200Response | ScanResultListScanHistorydefaultResponse>;\n}\n\nexport interface ScanRulesetsGet {\n /** Get a scan ruleset */\n get(\n options?: ScanRulesetsGetParameters,\n ): Promise<ScanRulesetsGet200Response | ScanRulesetsGetdefaultResponse>;\n /** Creates or Updates a scan ruleset */\n put(\n options?: ScanRulesetsCreateOrUpdateParameters,\n ): Promise<\n | ScanRulesetsCreateOrUpdate200Response\n | ScanRulesetsCreateOrUpdate201Response\n | ScanRulesetsCreateOrUpdatedefaultResponse\n >;\n /** Deletes a scan ruleset */\n delete(\n options?: ScanRulesetsDeleteParameters,\n ): Promise<\n | ScanRulesetsDelete200Response\n | ScanRulesetsDelete204Response\n | ScanRulesetsDeletedefaultResponse\n >;\n}\n\nexport interface ScanRulesetsListAll {\n /** List scan rulesets in Data catalog */\n get(\n options?: ScanRulesetsListAllParameters,\n ): Promise<ScanRulesetsListAll200Response | ScanRulesetsListAlldefaultResponse>;\n}\n\nexport interface SystemScanRulesetsListAll {\n /** List all system scan rulesets for an account */\n get(\n options?: SystemScanRulesetsListAllParameters,\n ): Promise<SystemScanRulesetsListAll200Response | SystemScanRulesetsListAlldefaultResponse>;\n}\n\nexport interface SystemScanRulesetsGet {\n /** Get a system scan ruleset for a data source */\n get(\n options?: SystemScanRulesetsGetParameters,\n ): Promise<SystemScanRulesetsGet200Response | SystemScanRulesetsGetdefaultResponse>;\n}\n\nexport interface SystemScanRulesetsGetByVersion {\n /** Get a scan ruleset by version */\n get(\n options?: SystemScanRulesetsGetByVersionParameters,\n ): Promise<\n SystemScanRulesetsGetByVersion200Response | SystemScanRulesetsGetByVersiondefaultResponse\n >;\n}\n\nexport interface SystemScanRulesetsGetLatest {\n /** Get the latest version of a system scan ruleset */\n get(\n options?: SystemScanRulesetsGetLatestParameters,\n ): Promise<SystemScanRulesetsGetLatest200Response | SystemScanRulesetsGetLatestdefaultResponse>;\n}\n\nexport interface SystemScanRulesetsListVersionsByDataSource {\n /** List system scan ruleset versions in Data catalog */\n get(\n options?: SystemScanRulesetsListVersionsByDataSourceParameters,\n ): Promise<\n | SystemScanRulesetsListVersionsByDataSource200Response\n | SystemScanRulesetsListVersionsByDataSourcedefaultResponse\n >;\n}\n\nexport interface TriggersGetTrigger {\n /** Gets trigger information */\n get(\n options?: TriggersGetTriggerParameters,\n ): Promise<TriggersGetTrigger200Response | TriggersGetTriggerdefaultResponse>;\n /** Creates an instance of a trigger */\n put(\n options: TriggersCreateTriggerParameters,\n ): Promise<\n | TriggersCreateTrigger200Response\n | TriggersCreateTrigger201Response\n | TriggersCreateTriggerdefaultResponse\n >;\n /** Deletes the trigger associated with the scan */\n delete(\n options?: TriggersDeleteTriggerParameters,\n ): Promise<\n | TriggersDeleteTrigger200Response\n | TriggersDeleteTrigger204Response\n | TriggersDeleteTriggerdefaultResponse\n >;\n}\n\nexport interface Routes {\n /** Resource for '/azureKeyVaults/\\{keyVaultName\\}' has methods for the following verbs: get, put, delete */\n (path: \"/azureKeyVaults/{keyVaultName}\", keyVaultName: string): KeyVaultConnectionsGet;\n /** Resource for '/azureKeyVaults' has methods for the following verbs: get */\n (path: \"/azureKeyVaults\"): KeyVaultConnectionsListAll;\n /** Resource for '/classificationrules/\\{classificationRuleName\\}' has methods for the following verbs: get, put, delete */\n (\n path: \"/classificationrules/{classificationRuleName}\",\n classificationRuleName: string,\n ): ClassificationRulesGet;\n /** Resource for '/classificationrules' has methods for the following verbs: get */\n (path: \"/classificationrules\"): ClassificationRulesListAll;\n /** Resource for '/classificationrules/\\{classificationRuleName\\}/versions' has methods for the following verbs: get */\n (\n path: \"/classificationrules/{classificationRuleName}/versions\",\n classificationRuleName: string,\n ): ClassificationRulesListVersionsByClassificationRuleName;\n /** Resource for '/classificationrules/\\{classificationRuleName\\}/versions/\\{classificationRuleVersion\\}/:tag' has methods for the following verbs: post */\n (\n path: \"/classificationrules/{classificationRuleName}/versions/{classificationRuleVersion}/:tag\",\n classificationRuleName: string,\n classificationRuleVersion: string,\n ): ClassificationRulesTagClassificationVersion;\n /** Resource for '/datasources/\\{dataSourceName\\}' has methods for the following verbs: put, get, delete */\n (path: \"/datasources/{dataSourceName}\", dataSourceName: string): DataSourcesCreateOrUpdate;\n /** Resource for '/datasources' has methods for the following verbs: get */\n (path: \"/datasources\"): DataSourcesListAll;\n /** Resource for '/datasources/\\{dataSourceName\\}/scans/\\{scanName\\}/filters/custom' has methods for the following verbs: get, put */\n (\n path: \"/datasources/{dataSourceName}/scans/{scanName}/filters/custom\",\n dataSourceName: string,\n scanName: string,\n ): FiltersGet;\n /** Resource for '/datasources/\\{dataSourceName\\}/scans/\\{scanName\\}' has methods for the following verbs: put, get, delete */\n (\n path: \"/datasources/{dataSourceName}/scans/{scanName}\",\n dataSourceName: string,\n scanName: string,\n ): ScansCreateOrUpdate;\n /** Resource for '/datasources/\\{dataSourceName\\}/scans' has methods for the following verbs: get */\n (path: \"/datasources/{dataSourceName}/scans\", dataSourceName: string): ScansListByDataSource;\n /** Resource for '/datasources/\\{dataSourceName\\}/scans/\\{scanName\\}/runs/\\{runId\\}' has methods for the following verbs: put */\n (\n path: \"/datasources/{dataSourceName}/scans/{scanName}/runs/{runId}\",\n dataSourceName: string,\n scanName: string,\n runId: string,\n ): ScanResultRunScan;\n /** Resource for '/datasources/\\{dataSourceName\\}/scans/\\{scanName\\}/runs/\\{runId\\}/:cancel' has methods for the following verbs: post */\n (\n path: \"/datasources/{dataSourceName}/scans/{scanName}/runs/{runId}/:cancel\",\n dataSourceName: string,\n scanName: string,\n runId: string,\n ): ScanResultCancelScan;\n /** Resource for '/datasources/\\{dataSourceName\\}/scans/\\{scanName\\}/runs' has methods for the following verbs: get */\n (\n path: \"/datasources/{dataSourceName}/scans/{scanName}/runs\",\n dataSourceName: string,\n scanName: string,\n ): ScanResultListScanHistory;\n /** Resource for '/scanrulesets/\\{scanRulesetName\\}' has methods for the following verbs: get, put, delete */\n (path: \"/scanrulesets/{scanRulesetName}\", scanRulesetName: string): ScanRulesetsGet;\n /** Resource for '/scanrulesets' has methods for the following verbs: get */\n (path: \"/scanrulesets\"): ScanRulesetsListAll;\n /** Resource for '/systemScanRulesets' has methods for the following verbs: get */\n (path: \"/systemScanRulesets\"): SystemScanRulesetsListAll;\n /** Resource for '/systemScanRulesets/datasources/\\{dataSourceType\\}' has methods for the following verbs: get */\n (\n path: \"/systemScanRulesets/datasources/{dataSourceType}\",\n dataSourceType: string,\n ): SystemScanRulesetsGet;\n /** Resource for '/systemScanRulesets/versions/\\{version\\}' has methods for the following verbs: get */\n (path: \"/systemScanRulesets/versions/{version}\", version: string): SystemScanRulesetsGetByVersion;\n /** Resource for '/systemScanRulesets/versions/latest' has methods for the following verbs: get */\n (path: \"/systemScanRulesets/versions/latest\"): SystemScanRulesetsGetLatest;\n /** Resource for '/systemScanRulesets/versions' has methods for the following verbs: get */\n (path: \"/systemScanRulesets/versions\"): SystemScanRulesetsListVersionsByDataSource;\n /** Resource for '/datasources/\\{dataSourceName\\}/scans/\\{scanName\\}/triggers/default' has methods for the following verbs: get, put, delete */\n (\n path: \"/datasources/{dataSourceName}/scans/{scanName}/triggers/default\",\n dataSourceName: string,\n scanName: string,\n ): TriggersGetTrigger;\n}\n\nexport type PurviewScanningRestClient = Client & {\n path: Routes;\n};\n\nexport default function PurviewScanning(\n Endpoint: string,\n credentials: TokenCredential,\n options: ClientOptions = {},\n): PurviewScanningRestClient {\n const baseUrl = options.baseUrl ?? `${Endpoint}`;\n options.apiVersion = options.apiVersion ?? \"2018-12-01-preview\";\n options = {\n ...options,\n credentials: {\n scopes: [\"https://purview.azure.net/.default\"],\n },\n };\n\n return getClient(baseUrl, credentials, options) as PurviewScanningRestClient;\n}\n"]}
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import type { KeyVaultConnectionsGetParameters, KeyVaultConnectionsCreateParameters, KeyVaultConnectionsDeleteParameters, KeyVaultConnectionsListAllParameters, ClassificationRulesGetParameters, ClassificationRulesCreateOrUpdateParameters, ClassificationRulesDeleteParameters, ClassificationRulesListAllParameters, ClassificationRulesListVersionsByClassificationRuleNameParameters, ClassificationRulesTagClassificationVersionParameters, DataSourcesCreateOrUpdateParameters, DataSourcesGetParameters, DataSourcesDeleteParameters, DataSourcesListAllParameters, FiltersGetParameters, FiltersCreateOrUpdateParameters, ScansCreateOrUpdateParameters, ScansGetParameters, ScansDeleteParameters, ScansListByDataSourceParameters, ScanResultRunScanParameters, ScanResultCancelScanParameters, ScanResultListScanHistoryParameters, ScanRulesetsGetParameters, ScanRulesetsCreateOrUpdateParameters, ScanRulesetsDeleteParameters, ScanRulesetsListAllParameters, SystemScanRulesetsListAllParameters, SystemScanRulesetsGetParameters, SystemScanRulesetsGetByVersionParameters, SystemScanRulesetsGetLatestParameters, SystemScanRulesetsListVersionsByDataSourceParameters, TriggersGetTriggerParameters, TriggersCreateTriggerParameters, TriggersDeleteTriggerParameters } from "./parameters.js";
|
|
2
|
-
import type { KeyVaultConnectionsGet200Response, KeyVaultConnectionsGetdefaultResponse, KeyVaultConnectionsCreate200Response, KeyVaultConnectionsCreatedefaultResponse, KeyVaultConnectionsDelete200Response, KeyVaultConnectionsDelete204Response, KeyVaultConnectionsDeletedefaultResponse, KeyVaultConnectionsListAll200Response, KeyVaultConnectionsListAlldefaultResponse, ClassificationRulesGet200Response, ClassificationRulesGetdefaultResponse, ClassificationRulesCreateOrUpdate200Response, ClassificationRulesCreateOrUpdate201Response, ClassificationRulesCreateOrUpdatedefaultResponse, ClassificationRulesDelete200Response, ClassificationRulesDelete204Response, ClassificationRulesDeletedefaultResponse, ClassificationRulesListAll200Response, ClassificationRulesListAlldefaultResponse, ClassificationRulesListVersionsByClassificationRuleName200Response, ClassificationRulesListVersionsByClassificationRuleNamedefaultResponse, ClassificationRulesTagClassificationVersion202Response, ClassificationRulesTagClassificationVersiondefaultResponse, DataSourcesCreateOrUpdate200Response, DataSourcesCreateOrUpdate201Response, DataSourcesCreateOrUpdatedefaultResponse, DataSourcesGet200Response, DataSourcesGetdefaultResponse, DataSourcesDelete200Response, DataSourcesDelete204Response, DataSourcesDeletedefaultResponse, DataSourcesListAll200Response, DataSourcesListAlldefaultResponse, FiltersGet200Response, FiltersGetdefaultResponse, FiltersCreateOrUpdate200Response, FiltersCreateOrUpdate201Response, FiltersCreateOrUpdatedefaultResponse, ScansCreateOrUpdate200Response, ScansCreateOrUpdate201Response, ScansCreateOrUpdatedefaultResponse, ScansGet200Response, ScansGetdefaultResponse, ScansDelete200Response, ScansDelete204Response, ScansDeletedefaultResponse, ScansListByDataSource200Response, ScansListByDataSourcedefaultResponse, ScanResultRunScan202Response, ScanResultRunScandefaultResponse, ScanResultCancelScan202Response, ScanResultCancelScandefaultResponse, ScanResultListScanHistory200Response, ScanResultListScanHistorydefaultResponse, ScanRulesetsGet200Response, ScanRulesetsGetdefaultResponse, ScanRulesetsCreateOrUpdate200Response, ScanRulesetsCreateOrUpdate201Response, ScanRulesetsCreateOrUpdatedefaultResponse, ScanRulesetsDelete200Response, ScanRulesetsDelete204Response, ScanRulesetsDeletedefaultResponse, ScanRulesetsListAll200Response, ScanRulesetsListAlldefaultResponse, SystemScanRulesetsListAll200Response, SystemScanRulesetsListAlldefaultResponse, SystemScanRulesetsGet200Response, SystemScanRulesetsGetdefaultResponse, SystemScanRulesetsGetByVersion200Response, SystemScanRulesetsGetByVersiondefaultResponse, SystemScanRulesetsGetLatest200Response, SystemScanRulesetsGetLatestdefaultResponse, SystemScanRulesetsListVersionsByDataSource200Response, SystemScanRulesetsListVersionsByDataSourcedefaultResponse, TriggersGetTrigger200Response, TriggersGetTriggerdefaultResponse, TriggersCreateTrigger200Response, TriggersCreateTrigger201Response, TriggersCreateTriggerdefaultResponse, TriggersDeleteTrigger200Response, TriggersDeleteTrigger204Response, TriggersDeleteTriggerdefaultResponse } from "./responses.js";
|
|
3
|
-
import type { ClientOptions, Client } from "@azure-rest/core-client";
|
|
4
|
-
import type { TokenCredential } from "@azure/core-auth";
|
|
5
|
-
export interface KeyVaultConnectionsGet {
|
|
6
|
-
/** Gets key vault information */
|
|
7
|
-
get(options?: KeyVaultConnectionsGetParameters): Promise<KeyVaultConnectionsGet200Response | KeyVaultConnectionsGetdefaultResponse>;
|
|
8
|
-
/** Creates an instance of a key vault connection */
|
|
9
|
-
put(options: KeyVaultConnectionsCreateParameters): Promise<KeyVaultConnectionsCreate200Response | KeyVaultConnectionsCreatedefaultResponse>;
|
|
10
|
-
/** Deletes the key vault connection associated with the account */
|
|
11
|
-
delete(options?: KeyVaultConnectionsDeleteParameters): Promise<KeyVaultConnectionsDelete200Response | KeyVaultConnectionsDelete204Response | KeyVaultConnectionsDeletedefaultResponse>;
|
|
12
|
-
}
|
|
13
|
-
export interface KeyVaultConnectionsListAll {
|
|
14
|
-
/** List key vault connections in account */
|
|
15
|
-
get(options?: KeyVaultConnectionsListAllParameters): Promise<KeyVaultConnectionsListAll200Response | KeyVaultConnectionsListAlldefaultResponse>;
|
|
16
|
-
}
|
|
17
|
-
export interface ClassificationRulesGet {
|
|
18
|
-
/** Get a classification rule */
|
|
19
|
-
get(options?: ClassificationRulesGetParameters): Promise<ClassificationRulesGet200Response | ClassificationRulesGetdefaultResponse>;
|
|
20
|
-
/** Creates or Updates a classification rule */
|
|
21
|
-
put(options?: ClassificationRulesCreateOrUpdateParameters): Promise<ClassificationRulesCreateOrUpdate200Response | ClassificationRulesCreateOrUpdate201Response | ClassificationRulesCreateOrUpdatedefaultResponse>;
|
|
22
|
-
/** Deletes a classification rule */
|
|
23
|
-
delete(options?: ClassificationRulesDeleteParameters): Promise<ClassificationRulesDelete200Response | ClassificationRulesDelete204Response | ClassificationRulesDeletedefaultResponse>;
|
|
24
|
-
}
|
|
25
|
-
export interface ClassificationRulesListAll {
|
|
26
|
-
/** List classification rules in Account */
|
|
27
|
-
get(options?: ClassificationRulesListAllParameters): Promise<ClassificationRulesListAll200Response | ClassificationRulesListAlldefaultResponse>;
|
|
28
|
-
}
|
|
29
|
-
export interface ClassificationRulesListVersionsByClassificationRuleName {
|
|
30
|
-
/** Lists the rule versions of a classification rule */
|
|
31
|
-
get(options?: ClassificationRulesListVersionsByClassificationRuleNameParameters): Promise<ClassificationRulesListVersionsByClassificationRuleName200Response | ClassificationRulesListVersionsByClassificationRuleNamedefaultResponse>;
|
|
32
|
-
}
|
|
33
|
-
export interface ClassificationRulesTagClassificationVersion {
|
|
34
|
-
/** Sets Classification Action on a specific classification rule version. */
|
|
35
|
-
post(options: ClassificationRulesTagClassificationVersionParameters): Promise<ClassificationRulesTagClassificationVersion202Response | ClassificationRulesTagClassificationVersiondefaultResponse>;
|
|
36
|
-
}
|
|
37
|
-
export interface DataSourcesCreateOrUpdate {
|
|
38
|
-
/** Creates or Updates a data source */
|
|
39
|
-
put(options?: DataSourcesCreateOrUpdateParameters): Promise<DataSourcesCreateOrUpdate200Response | DataSourcesCreateOrUpdate201Response | DataSourcesCreateOrUpdatedefaultResponse>;
|
|
40
|
-
/** Get a data source */
|
|
41
|
-
get(options?: DataSourcesGetParameters): Promise<DataSourcesGet200Response | DataSourcesGetdefaultResponse>;
|
|
42
|
-
/** Deletes a data source */
|
|
43
|
-
delete(options?: DataSourcesDeleteParameters): Promise<DataSourcesDelete200Response | DataSourcesDelete204Response | DataSourcesDeletedefaultResponse>;
|
|
44
|
-
}
|
|
45
|
-
export interface DataSourcesListAll {
|
|
46
|
-
/** List data sources in Data catalog */
|
|
47
|
-
get(options?: DataSourcesListAllParameters): Promise<DataSourcesListAll200Response | DataSourcesListAlldefaultResponse>;
|
|
48
|
-
}
|
|
49
|
-
export interface FiltersGet {
|
|
50
|
-
/** Get a filter */
|
|
51
|
-
get(options?: FiltersGetParameters): Promise<FiltersGet200Response | FiltersGetdefaultResponse>;
|
|
52
|
-
/** Creates or updates a filter */
|
|
53
|
-
put(options?: FiltersCreateOrUpdateParameters): Promise<FiltersCreateOrUpdate200Response | FiltersCreateOrUpdate201Response | FiltersCreateOrUpdatedefaultResponse>;
|
|
54
|
-
}
|
|
55
|
-
export interface ScansCreateOrUpdate {
|
|
56
|
-
/** Creates an instance of a scan */
|
|
57
|
-
put(options: ScansCreateOrUpdateParameters): Promise<ScansCreateOrUpdate200Response | ScansCreateOrUpdate201Response | ScansCreateOrUpdatedefaultResponse>;
|
|
58
|
-
/** Gets a scan information */
|
|
59
|
-
get(options?: ScansGetParameters): Promise<ScansGet200Response | ScansGetdefaultResponse>;
|
|
60
|
-
/** Deletes the scan associated with the data source */
|
|
61
|
-
delete(options?: ScansDeleteParameters): Promise<ScansDelete200Response | ScansDelete204Response | ScansDeletedefaultResponse>;
|
|
62
|
-
}
|
|
63
|
-
export interface ScansListByDataSource {
|
|
64
|
-
/** List scans in data source */
|
|
65
|
-
get(options?: ScansListByDataSourceParameters): Promise<ScansListByDataSource200Response | ScansListByDataSourcedefaultResponse>;
|
|
66
|
-
}
|
|
67
|
-
export interface ScanResultRunScan {
|
|
68
|
-
/** Runs the scan */
|
|
69
|
-
put(options?: ScanResultRunScanParameters): Promise<ScanResultRunScan202Response | ScanResultRunScandefaultResponse>;
|
|
70
|
-
}
|
|
71
|
-
export interface ScanResultCancelScan {
|
|
72
|
-
/** Cancels a scan */
|
|
73
|
-
post(options?: ScanResultCancelScanParameters): Promise<ScanResultCancelScan202Response | ScanResultCancelScandefaultResponse>;
|
|
74
|
-
}
|
|
75
|
-
export interface ScanResultListScanHistory {
|
|
76
|
-
/** Lists the scan history of a scan */
|
|
77
|
-
get(options?: ScanResultListScanHistoryParameters): Promise<ScanResultListScanHistory200Response | ScanResultListScanHistorydefaultResponse>;
|
|
78
|
-
}
|
|
79
|
-
export interface ScanRulesetsGet {
|
|
80
|
-
/** Get a scan ruleset */
|
|
81
|
-
get(options?: ScanRulesetsGetParameters): Promise<ScanRulesetsGet200Response | ScanRulesetsGetdefaultResponse>;
|
|
82
|
-
/** Creates or Updates a scan ruleset */
|
|
83
|
-
put(options?: ScanRulesetsCreateOrUpdateParameters): Promise<ScanRulesetsCreateOrUpdate200Response | ScanRulesetsCreateOrUpdate201Response | ScanRulesetsCreateOrUpdatedefaultResponse>;
|
|
84
|
-
/** Deletes a scan ruleset */
|
|
85
|
-
delete(options?: ScanRulesetsDeleteParameters): Promise<ScanRulesetsDelete200Response | ScanRulesetsDelete204Response | ScanRulesetsDeletedefaultResponse>;
|
|
86
|
-
}
|
|
87
|
-
export interface ScanRulesetsListAll {
|
|
88
|
-
/** List scan rulesets in Data catalog */
|
|
89
|
-
get(options?: ScanRulesetsListAllParameters): Promise<ScanRulesetsListAll200Response | ScanRulesetsListAlldefaultResponse>;
|
|
90
|
-
}
|
|
91
|
-
export interface SystemScanRulesetsListAll {
|
|
92
|
-
/** List all system scan rulesets for an account */
|
|
93
|
-
get(options?: SystemScanRulesetsListAllParameters): Promise<SystemScanRulesetsListAll200Response | SystemScanRulesetsListAlldefaultResponse>;
|
|
94
|
-
}
|
|
95
|
-
export interface SystemScanRulesetsGet {
|
|
96
|
-
/** Get a system scan ruleset for a data source */
|
|
97
|
-
get(options?: SystemScanRulesetsGetParameters): Promise<SystemScanRulesetsGet200Response | SystemScanRulesetsGetdefaultResponse>;
|
|
98
|
-
}
|
|
99
|
-
export interface SystemScanRulesetsGetByVersion {
|
|
100
|
-
/** Get a scan ruleset by version */
|
|
101
|
-
get(options?: SystemScanRulesetsGetByVersionParameters): Promise<SystemScanRulesetsGetByVersion200Response | SystemScanRulesetsGetByVersiondefaultResponse>;
|
|
102
|
-
}
|
|
103
|
-
export interface SystemScanRulesetsGetLatest {
|
|
104
|
-
/** Get the latest version of a system scan ruleset */
|
|
105
|
-
get(options?: SystemScanRulesetsGetLatestParameters): Promise<SystemScanRulesetsGetLatest200Response | SystemScanRulesetsGetLatestdefaultResponse>;
|
|
106
|
-
}
|
|
107
|
-
export interface SystemScanRulesetsListVersionsByDataSource {
|
|
108
|
-
/** List system scan ruleset versions in Data catalog */
|
|
109
|
-
get(options?: SystemScanRulesetsListVersionsByDataSourceParameters): Promise<SystemScanRulesetsListVersionsByDataSource200Response | SystemScanRulesetsListVersionsByDataSourcedefaultResponse>;
|
|
110
|
-
}
|
|
111
|
-
export interface TriggersGetTrigger {
|
|
112
|
-
/** Gets trigger information */
|
|
113
|
-
get(options?: TriggersGetTriggerParameters): Promise<TriggersGetTrigger200Response | TriggersGetTriggerdefaultResponse>;
|
|
114
|
-
/** Creates an instance of a trigger */
|
|
115
|
-
put(options: TriggersCreateTriggerParameters): Promise<TriggersCreateTrigger200Response | TriggersCreateTrigger201Response | TriggersCreateTriggerdefaultResponse>;
|
|
116
|
-
/** Deletes the trigger associated with the scan */
|
|
117
|
-
delete(options?: TriggersDeleteTriggerParameters): Promise<TriggersDeleteTrigger200Response | TriggersDeleteTrigger204Response | TriggersDeleteTriggerdefaultResponse>;
|
|
118
|
-
}
|
|
119
|
-
export interface Routes {
|
|
120
|
-
/** Resource for '/azureKeyVaults/\{keyVaultName\}' has methods for the following verbs: get, put, delete */
|
|
121
|
-
(path: "/azureKeyVaults/{keyVaultName}", keyVaultName: string): KeyVaultConnectionsGet;
|
|
122
|
-
/** Resource for '/azureKeyVaults' has methods for the following verbs: get */
|
|
123
|
-
(path: "/azureKeyVaults"): KeyVaultConnectionsListAll;
|
|
124
|
-
/** Resource for '/classificationrules/\{classificationRuleName\}' has methods for the following verbs: get, put, delete */
|
|
125
|
-
(path: "/classificationrules/{classificationRuleName}", classificationRuleName: string): ClassificationRulesGet;
|
|
126
|
-
/** Resource for '/classificationrules' has methods for the following verbs: get */
|
|
127
|
-
(path: "/classificationrules"): ClassificationRulesListAll;
|
|
128
|
-
/** Resource for '/classificationrules/\{classificationRuleName\}/versions' has methods for the following verbs: get */
|
|
129
|
-
(path: "/classificationrules/{classificationRuleName}/versions", classificationRuleName: string): ClassificationRulesListVersionsByClassificationRuleName;
|
|
130
|
-
/** Resource for '/classificationrules/\{classificationRuleName\}/versions/\{classificationRuleVersion\}/:tag' has methods for the following verbs: post */
|
|
131
|
-
(path: "/classificationrules/{classificationRuleName}/versions/{classificationRuleVersion}/:tag", classificationRuleName: string, classificationRuleVersion: string): ClassificationRulesTagClassificationVersion;
|
|
132
|
-
/** Resource for '/datasources/\{dataSourceName\}' has methods for the following verbs: put, get, delete */
|
|
133
|
-
(path: "/datasources/{dataSourceName}", dataSourceName: string): DataSourcesCreateOrUpdate;
|
|
134
|
-
/** Resource for '/datasources' has methods for the following verbs: get */
|
|
135
|
-
(path: "/datasources"): DataSourcesListAll;
|
|
136
|
-
/** Resource for '/datasources/\{dataSourceName\}/scans/\{scanName\}/filters/custom' has methods for the following verbs: get, put */
|
|
137
|
-
(path: "/datasources/{dataSourceName}/scans/{scanName}/filters/custom", dataSourceName: string, scanName: string): FiltersGet;
|
|
138
|
-
/** Resource for '/datasources/\{dataSourceName\}/scans/\{scanName\}' has methods for the following verbs: put, get, delete */
|
|
139
|
-
(path: "/datasources/{dataSourceName}/scans/{scanName}", dataSourceName: string, scanName: string): ScansCreateOrUpdate;
|
|
140
|
-
/** Resource for '/datasources/\{dataSourceName\}/scans' has methods for the following verbs: get */
|
|
141
|
-
(path: "/datasources/{dataSourceName}/scans", dataSourceName: string): ScansListByDataSource;
|
|
142
|
-
/** Resource for '/datasources/\{dataSourceName\}/scans/\{scanName\}/runs/\{runId\}' has methods for the following verbs: put */
|
|
143
|
-
(path: "/datasources/{dataSourceName}/scans/{scanName}/runs/{runId}", dataSourceName: string, scanName: string, runId: string): ScanResultRunScan;
|
|
144
|
-
/** Resource for '/datasources/\{dataSourceName\}/scans/\{scanName\}/runs/\{runId\}/:cancel' has methods for the following verbs: post */
|
|
145
|
-
(path: "/datasources/{dataSourceName}/scans/{scanName}/runs/{runId}/:cancel", dataSourceName: string, scanName: string, runId: string): ScanResultCancelScan;
|
|
146
|
-
/** Resource for '/datasources/\{dataSourceName\}/scans/\{scanName\}/runs' has methods for the following verbs: get */
|
|
147
|
-
(path: "/datasources/{dataSourceName}/scans/{scanName}/runs", dataSourceName: string, scanName: string): ScanResultListScanHistory;
|
|
148
|
-
/** Resource for '/scanrulesets/\{scanRulesetName\}' has methods for the following verbs: get, put, delete */
|
|
149
|
-
(path: "/scanrulesets/{scanRulesetName}", scanRulesetName: string): ScanRulesetsGet;
|
|
150
|
-
/** Resource for '/scanrulesets' has methods for the following verbs: get */
|
|
151
|
-
(path: "/scanrulesets"): ScanRulesetsListAll;
|
|
152
|
-
/** Resource for '/systemScanRulesets' has methods for the following verbs: get */
|
|
153
|
-
(path: "/systemScanRulesets"): SystemScanRulesetsListAll;
|
|
154
|
-
/** Resource for '/systemScanRulesets/datasources/\{dataSourceType\}' has methods for the following verbs: get */
|
|
155
|
-
(path: "/systemScanRulesets/datasources/{dataSourceType}", dataSourceType: string): SystemScanRulesetsGet;
|
|
156
|
-
/** Resource for '/systemScanRulesets/versions/\{version\}' has methods for the following verbs: get */
|
|
157
|
-
(path: "/systemScanRulesets/versions/{version}", version: string): SystemScanRulesetsGetByVersion;
|
|
158
|
-
/** Resource for '/systemScanRulesets/versions/latest' has methods for the following verbs: get */
|
|
159
|
-
(path: "/systemScanRulesets/versions/latest"): SystemScanRulesetsGetLatest;
|
|
160
|
-
/** Resource for '/systemScanRulesets/versions' has methods for the following verbs: get */
|
|
161
|
-
(path: "/systemScanRulesets/versions"): SystemScanRulesetsListVersionsByDataSource;
|
|
162
|
-
/** Resource for '/datasources/\{dataSourceName\}/scans/\{scanName\}/triggers/default' has methods for the following verbs: get, put, delete */
|
|
163
|
-
(path: "/datasources/{dataSourceName}/scans/{scanName}/triggers/default", dataSourceName: string, scanName: string): TriggersGetTrigger;
|
|
164
|
-
}
|
|
165
|
-
export type PurviewScanningRestClient = Client & {
|
|
166
|
-
path: Routes;
|
|
167
|
-
};
|
|
168
|
-
export default function PurviewScanning(Endpoint: string, credentials: TokenCredential, options?: ClientOptions): PurviewScanningRestClient;
|
|
169
|
-
//# sourceMappingURL=purviewScanning.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"purviewScanning.d.ts","sourceRoot":"","sources":["../../src/purviewScanning.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,gCAAgC,EAChC,mCAAmC,EACnC,mCAAmC,EACnC,oCAAoC,EACpC,gCAAgC,EAChC,2CAA2C,EAC3C,mCAAmC,EACnC,oCAAoC,EACpC,iEAAiE,EACjE,qDAAqD,EACrD,mCAAmC,EACnC,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,oBAAoB,EACpB,+BAA+B,EAC/B,6BAA6B,EAC7B,kBAAkB,EAClB,qBAAqB,EACrB,+BAA+B,EAC/B,2BAA2B,EAC3B,8BAA8B,EAC9B,mCAAmC,EACnC,yBAAyB,EACzB,oCAAoC,EACpC,4BAA4B,EAC5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+0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import { getClient } from "@azure-rest/core-client";
|
|
4
|
-
export default function PurviewScanning(Endpoint, credentials, options = {}) {
|
|
5
|
-
var _a, _b;
|
|
6
|
-
const baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : `${Endpoint}`;
|
|
7
|
-
options.apiVersion = (_b = options.apiVersion) !== null && _b !== void 0 ? _b : "2018-12-01-preview";
|
|
8
|
-
options = Object.assign(Object.assign({}, options), { credentials: {
|
|
9
|
-
scopes: ["https://purview.azure.net/.default"],
|
|
10
|
-
} });
|
|
11
|
-
return getClient(baseUrl, credentials, options);
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=purviewScanning.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"purviewScanning.js","sourceRoot":"","sources":["../../src/purviewScanning.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA4HlC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA4VpD,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,QAAgB,EAChB,WAA4B,EAC5B,UAAyB,EAAE;;IAE3B,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,OAAO,mCAAI,GAAG,QAAQ,EAAE,CAAC;IACjD,OAAO,CAAC,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,oBAAoB,CAAC;IAChE,OAAO,mCACF,OAAO,KACV,WAAW,EAAE;YACX,MAAM,EAAE,CAAC,oCAAoC,CAAC;SAC/C,GACF,CAAC;IAEF,OAAO,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAA8B,CAAC;AAC/E,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n KeyVaultConnectionsGetParameters,\n KeyVaultConnectionsCreateParameters,\n KeyVaultConnectionsDeleteParameters,\n KeyVaultConnectionsListAllParameters,\n ClassificationRulesGetParameters,\n ClassificationRulesCreateOrUpdateParameters,\n ClassificationRulesDeleteParameters,\n ClassificationRulesListAllParameters,\n ClassificationRulesListVersionsByClassificationRuleNameParameters,\n ClassificationRulesTagClassificationVersionParameters,\n DataSourcesCreateOrUpdateParameters,\n DataSourcesGetParameters,\n DataSourcesDeleteParameters,\n DataSourcesListAllParameters,\n FiltersGetParameters,\n FiltersCreateOrUpdateParameters,\n ScansCreateOrUpdateParameters,\n ScansGetParameters,\n ScansDeleteParameters,\n ScansListByDataSourceParameters,\n ScanResultRunScanParameters,\n ScanResultCancelScanParameters,\n ScanResultListScanHistoryParameters,\n ScanRulesetsGetParameters,\n ScanRulesetsCreateOrUpdateParameters,\n ScanRulesetsDeleteParameters,\n ScanRulesetsListAllParameters,\n SystemScanRulesetsListAllParameters,\n SystemScanRulesetsGetParameters,\n SystemScanRulesetsGetByVersionParameters,\n SystemScanRulesetsGetLatestParameters,\n SystemScanRulesetsListVersionsByDataSourceParameters,\n TriggersGetTriggerParameters,\n TriggersCreateTriggerParameters,\n TriggersDeleteTriggerParameters,\n} from \"./parameters.js\";\nimport type {\n KeyVaultConnectionsGet200Response,\n KeyVaultConnectionsGetdefaultResponse,\n KeyVaultConnectionsCreate200Response,\n KeyVaultConnectionsCreatedefaultResponse,\n KeyVaultConnectionsDelete200Response,\n KeyVaultConnectionsDelete204Response,\n KeyVaultConnectionsDeletedefaultResponse,\n KeyVaultConnectionsListAll200Response,\n KeyVaultConnectionsListAlldefaultResponse,\n ClassificationRulesGet200Response,\n ClassificationRulesGetdefaultResponse,\n ClassificationRulesCreateOrUpdate200Response,\n ClassificationRulesCreateOrUpdate201Response,\n ClassificationRulesCreateOrUpdatedefaultResponse,\n ClassificationRulesDelete200Response,\n ClassificationRulesDelete204Response,\n ClassificationRulesDeletedefaultResponse,\n ClassificationRulesListAll200Response,\n ClassificationRulesListAlldefaultResponse,\n ClassificationRulesListVersionsByClassificationRuleName200Response,\n ClassificationRulesListVersionsByClassificationRuleNamedefaultResponse,\n ClassificationRulesTagClassificationVersion202Response,\n ClassificationRulesTagClassificationVersiondefaultResponse,\n DataSourcesCreateOrUpdate200Response,\n DataSourcesCreateOrUpdate201Response,\n DataSourcesCreateOrUpdatedefaultResponse,\n DataSourcesGet200Response,\n DataSourcesGetdefaultResponse,\n DataSourcesDelete200Response,\n DataSourcesDelete204Response,\n DataSourcesDeletedefaultResponse,\n DataSourcesListAll200Response,\n DataSourcesListAlldefaultResponse,\n FiltersGet200Response,\n FiltersGetdefaultResponse,\n FiltersCreateOrUpdate200Response,\n FiltersCreateOrUpdate201Response,\n FiltersCreateOrUpdatedefaultResponse,\n ScansCreateOrUpdate200Response,\n ScansCreateOrUpdate201Response,\n ScansCreateOrUpdatedefaultResponse,\n ScansGet200Response,\n ScansGetdefaultResponse,\n ScansDelete200Response,\n ScansDelete204Response,\n ScansDeletedefaultResponse,\n ScansListByDataSource200Response,\n ScansListByDataSourcedefaultResponse,\n ScanResultRunScan202Response,\n ScanResultRunScandefaultResponse,\n ScanResultCancelScan202Response,\n ScanResultCancelScandefaultResponse,\n ScanResultListScanHistory200Response,\n ScanResultListScanHistorydefaultResponse,\n ScanRulesetsGet200Response,\n ScanRulesetsGetdefaultResponse,\n ScanRulesetsCreateOrUpdate200Response,\n ScanRulesetsCreateOrUpdate201Response,\n ScanRulesetsCreateOrUpdatedefaultResponse,\n ScanRulesetsDelete200Response,\n ScanRulesetsDelete204Response,\n ScanRulesetsDeletedefaultResponse,\n ScanRulesetsListAll200Response,\n ScanRulesetsListAlldefaultResponse,\n SystemScanRulesetsListAll200Response,\n SystemScanRulesetsListAlldefaultResponse,\n SystemScanRulesetsGet200Response,\n SystemScanRulesetsGetdefaultResponse,\n SystemScanRulesetsGetByVersion200Response,\n SystemScanRulesetsGetByVersiondefaultResponse,\n SystemScanRulesetsGetLatest200Response,\n SystemScanRulesetsGetLatestdefaultResponse,\n SystemScanRulesetsListVersionsByDataSource200Response,\n SystemScanRulesetsListVersionsByDataSourcedefaultResponse,\n TriggersGetTrigger200Response,\n TriggersGetTriggerdefaultResponse,\n TriggersCreateTrigger200Response,\n TriggersCreateTrigger201Response,\n TriggersCreateTriggerdefaultResponse,\n TriggersDeleteTrigger200Response,\n TriggersDeleteTrigger204Response,\n TriggersDeleteTriggerdefaultResponse,\n} from \"./responses.js\";\nimport type { ClientOptions, Client } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\n\nexport interface KeyVaultConnectionsGet {\n /** Gets key vault information */\n get(\n options?: KeyVaultConnectionsGetParameters,\n ): Promise<KeyVaultConnectionsGet200Response | KeyVaultConnectionsGetdefaultResponse>;\n /** Creates an instance of a key vault connection */\n put(\n options: KeyVaultConnectionsCreateParameters,\n ): Promise<KeyVaultConnectionsCreate200Response | KeyVaultConnectionsCreatedefaultResponse>;\n /** Deletes the key vault connection associated with the account */\n delete(\n options?: KeyVaultConnectionsDeleteParameters,\n ): Promise<\n | KeyVaultConnectionsDelete200Response\n | KeyVaultConnectionsDelete204Response\n | KeyVaultConnectionsDeletedefaultResponse\n >;\n}\n\nexport interface KeyVaultConnectionsListAll {\n /** List key vault connections in account */\n get(\n options?: KeyVaultConnectionsListAllParameters,\n ): Promise<KeyVaultConnectionsListAll200Response | KeyVaultConnectionsListAlldefaultResponse>;\n}\n\nexport interface ClassificationRulesGet {\n /** Get a classification rule */\n get(\n options?: ClassificationRulesGetParameters,\n ): Promise<ClassificationRulesGet200Response | ClassificationRulesGetdefaultResponse>;\n /** Creates or Updates a classification rule */\n put(\n options?: ClassificationRulesCreateOrUpdateParameters,\n ): Promise<\n | ClassificationRulesCreateOrUpdate200Response\n | ClassificationRulesCreateOrUpdate201Response\n | ClassificationRulesCreateOrUpdatedefaultResponse\n >;\n /** Deletes a classification rule */\n delete(\n options?: ClassificationRulesDeleteParameters,\n ): Promise<\n | ClassificationRulesDelete200Response\n | ClassificationRulesDelete204Response\n | ClassificationRulesDeletedefaultResponse\n >;\n}\n\nexport interface ClassificationRulesListAll {\n /** List classification rules in Account */\n get(\n options?: ClassificationRulesListAllParameters,\n ): Promise<ClassificationRulesListAll200Response | ClassificationRulesListAlldefaultResponse>;\n}\n\nexport interface ClassificationRulesListVersionsByClassificationRuleName {\n /** Lists the rule versions of a classification rule */\n get(\n options?: ClassificationRulesListVersionsByClassificationRuleNameParameters,\n ): Promise<\n | ClassificationRulesListVersionsByClassificationRuleName200Response\n | ClassificationRulesListVersionsByClassificationRuleNamedefaultResponse\n >;\n}\n\nexport interface ClassificationRulesTagClassificationVersion {\n /** Sets Classification Action on a specific classification rule version. */\n post(\n options: ClassificationRulesTagClassificationVersionParameters,\n ): Promise<\n | ClassificationRulesTagClassificationVersion202Response\n | ClassificationRulesTagClassificationVersiondefaultResponse\n >;\n}\n\nexport interface DataSourcesCreateOrUpdate {\n /** Creates or Updates a data source */\n put(\n options?: DataSourcesCreateOrUpdateParameters,\n ): Promise<\n | DataSourcesCreateOrUpdate200Response\n | DataSourcesCreateOrUpdate201Response\n | DataSourcesCreateOrUpdatedefaultResponse\n >;\n /** Get a data source */\n get(\n options?: DataSourcesGetParameters,\n ): Promise<DataSourcesGet200Response | DataSourcesGetdefaultResponse>;\n /** Deletes a data source */\n delete(\n options?: DataSourcesDeleteParameters,\n ): Promise<\n DataSourcesDelete200Response | DataSourcesDelete204Response | DataSourcesDeletedefaultResponse\n >;\n}\n\nexport interface DataSourcesListAll {\n /** List data sources in Data catalog */\n get(\n options?: DataSourcesListAllParameters,\n ): Promise<DataSourcesListAll200Response | DataSourcesListAlldefaultResponse>;\n}\n\nexport interface FiltersGet {\n /** Get a filter */\n get(options?: FiltersGetParameters): Promise<FiltersGet200Response | FiltersGetdefaultResponse>;\n /** Creates or updates a filter */\n put(\n options?: FiltersCreateOrUpdateParameters,\n ): Promise<\n | FiltersCreateOrUpdate200Response\n | FiltersCreateOrUpdate201Response\n | FiltersCreateOrUpdatedefaultResponse\n >;\n}\n\nexport interface ScansCreateOrUpdate {\n /** Creates an instance of a scan */\n put(\n options: ScansCreateOrUpdateParameters,\n ): Promise<\n | ScansCreateOrUpdate200Response\n | ScansCreateOrUpdate201Response\n | ScansCreateOrUpdatedefaultResponse\n >;\n /** Gets a scan information */\n get(options?: ScansGetParameters): Promise<ScansGet200Response | ScansGetdefaultResponse>;\n /** Deletes the scan associated with the data source */\n delete(\n options?: ScansDeleteParameters,\n ): Promise<ScansDelete200Response | ScansDelete204Response | ScansDeletedefaultResponse>;\n}\n\nexport interface ScansListByDataSource {\n /** List scans in data source */\n get(\n options?: ScansListByDataSourceParameters,\n ): Promise<ScansListByDataSource200Response | ScansListByDataSourcedefaultResponse>;\n}\n\nexport interface ScanResultRunScan {\n /** Runs the scan */\n put(\n options?: ScanResultRunScanParameters,\n ): Promise<ScanResultRunScan202Response | ScanResultRunScandefaultResponse>;\n}\n\nexport interface ScanResultCancelScan {\n /** Cancels a scan */\n post(\n options?: ScanResultCancelScanParameters,\n ): Promise<ScanResultCancelScan202Response | ScanResultCancelScandefaultResponse>;\n}\n\nexport interface ScanResultListScanHistory {\n /** Lists the scan history of a scan */\n get(\n options?: ScanResultListScanHistoryParameters,\n ): Promise<ScanResultListScanHistory200Response | ScanResultListScanHistorydefaultResponse>;\n}\n\nexport interface ScanRulesetsGet {\n /** Get a scan ruleset */\n get(\n options?: ScanRulesetsGetParameters,\n ): Promise<ScanRulesetsGet200Response | ScanRulesetsGetdefaultResponse>;\n /** Creates or Updates a scan ruleset */\n put(\n options?: ScanRulesetsCreateOrUpdateParameters,\n ): Promise<\n | ScanRulesetsCreateOrUpdate200Response\n | ScanRulesetsCreateOrUpdate201Response\n | ScanRulesetsCreateOrUpdatedefaultResponse\n >;\n /** Deletes a scan ruleset */\n delete(\n options?: ScanRulesetsDeleteParameters,\n ): Promise<\n | ScanRulesetsDelete200Response\n | ScanRulesetsDelete204Response\n | ScanRulesetsDeletedefaultResponse\n >;\n}\n\nexport interface ScanRulesetsListAll {\n /** List scan rulesets in Data catalog */\n get(\n options?: ScanRulesetsListAllParameters,\n ): Promise<ScanRulesetsListAll200Response | ScanRulesetsListAlldefaultResponse>;\n}\n\nexport interface SystemScanRulesetsListAll {\n /** List all system scan rulesets for an account */\n get(\n options?: SystemScanRulesetsListAllParameters,\n ): Promise<SystemScanRulesetsListAll200Response | SystemScanRulesetsListAlldefaultResponse>;\n}\n\nexport interface SystemScanRulesetsGet {\n /** Get a system scan ruleset for a data source */\n get(\n options?: SystemScanRulesetsGetParameters,\n ): Promise<SystemScanRulesetsGet200Response | SystemScanRulesetsGetdefaultResponse>;\n}\n\nexport interface SystemScanRulesetsGetByVersion {\n /** Get a scan ruleset by version */\n get(\n options?: SystemScanRulesetsGetByVersionParameters,\n ): Promise<\n SystemScanRulesetsGetByVersion200Response | SystemScanRulesetsGetByVersiondefaultResponse\n >;\n}\n\nexport interface SystemScanRulesetsGetLatest {\n /** Get the latest version of a system scan ruleset */\n get(\n options?: SystemScanRulesetsGetLatestParameters,\n ): Promise<SystemScanRulesetsGetLatest200Response | SystemScanRulesetsGetLatestdefaultResponse>;\n}\n\nexport interface SystemScanRulesetsListVersionsByDataSource {\n /** List system scan ruleset versions in Data catalog */\n get(\n options?: SystemScanRulesetsListVersionsByDataSourceParameters,\n ): Promise<\n | SystemScanRulesetsListVersionsByDataSource200Response\n | SystemScanRulesetsListVersionsByDataSourcedefaultResponse\n >;\n}\n\nexport interface TriggersGetTrigger {\n /** Gets trigger information */\n get(\n options?: TriggersGetTriggerParameters,\n ): Promise<TriggersGetTrigger200Response | TriggersGetTriggerdefaultResponse>;\n /** Creates an instance of a trigger */\n put(\n options: TriggersCreateTriggerParameters,\n ): Promise<\n | TriggersCreateTrigger200Response\n | TriggersCreateTrigger201Response\n | TriggersCreateTriggerdefaultResponse\n >;\n /** Deletes the trigger associated with the scan */\n delete(\n options?: TriggersDeleteTriggerParameters,\n ): Promise<\n | TriggersDeleteTrigger200Response\n | TriggersDeleteTrigger204Response\n | TriggersDeleteTriggerdefaultResponse\n >;\n}\n\nexport interface Routes {\n /** Resource for '/azureKeyVaults/\\{keyVaultName\\}' has methods for the following verbs: get, put, delete */\n (path: \"/azureKeyVaults/{keyVaultName}\", keyVaultName: string): KeyVaultConnectionsGet;\n /** Resource for '/azureKeyVaults' has methods for the following verbs: get */\n (path: \"/azureKeyVaults\"): KeyVaultConnectionsListAll;\n /** Resource for '/classificationrules/\\{classificationRuleName\\}' has methods for the following verbs: get, put, delete */\n (\n path: \"/classificationrules/{classificationRuleName}\",\n classificationRuleName: string,\n ): ClassificationRulesGet;\n /** Resource for '/classificationrules' has methods for the following verbs: get */\n (path: \"/classificationrules\"): ClassificationRulesListAll;\n /** Resource for '/classificationrules/\\{classificationRuleName\\}/versions' has methods for the following verbs: get */\n (\n path: \"/classificationrules/{classificationRuleName}/versions\",\n classificationRuleName: string,\n ): ClassificationRulesListVersionsByClassificationRuleName;\n /** Resource for '/classificationrules/\\{classificationRuleName\\}/versions/\\{classificationRuleVersion\\}/:tag' has methods for the following verbs: post */\n (\n path: \"/classificationrules/{classificationRuleName}/versions/{classificationRuleVersion}/:tag\",\n classificationRuleName: string,\n classificationRuleVersion: string,\n ): ClassificationRulesTagClassificationVersion;\n /** Resource for '/datasources/\\{dataSourceName\\}' has methods for the following verbs: put, get, delete */\n (path: \"/datasources/{dataSourceName}\", dataSourceName: string): DataSourcesCreateOrUpdate;\n /** Resource for '/datasources' has methods for the following verbs: get */\n (path: \"/datasources\"): DataSourcesListAll;\n /** Resource for '/datasources/\\{dataSourceName\\}/scans/\\{scanName\\}/filters/custom' has methods for the following verbs: get, put */\n (\n path: \"/datasources/{dataSourceName}/scans/{scanName}/filters/custom\",\n dataSourceName: string,\n scanName: string,\n ): FiltersGet;\n /** Resource for '/datasources/\\{dataSourceName\\}/scans/\\{scanName\\}' has methods for the following verbs: put, get, delete */\n (\n path: \"/datasources/{dataSourceName}/scans/{scanName}\",\n dataSourceName: string,\n scanName: string,\n ): ScansCreateOrUpdate;\n /** Resource for '/datasources/\\{dataSourceName\\}/scans' has methods for the following verbs: get */\n (path: \"/datasources/{dataSourceName}/scans\", dataSourceName: string): ScansListByDataSource;\n /** Resource for '/datasources/\\{dataSourceName\\}/scans/\\{scanName\\}/runs/\\{runId\\}' has methods for the following verbs: put */\n (\n path: \"/datasources/{dataSourceName}/scans/{scanName}/runs/{runId}\",\n dataSourceName: string,\n scanName: string,\n runId: string,\n ): ScanResultRunScan;\n /** Resource for '/datasources/\\{dataSourceName\\}/scans/\\{scanName\\}/runs/\\{runId\\}/:cancel' has methods for the following verbs: post */\n (\n path: \"/datasources/{dataSourceName}/scans/{scanName}/runs/{runId}/:cancel\",\n dataSourceName: string,\n scanName: string,\n runId: string,\n ): ScanResultCancelScan;\n /** Resource for '/datasources/\\{dataSourceName\\}/scans/\\{scanName\\}/runs' has methods for the following verbs: get */\n (\n path: \"/datasources/{dataSourceName}/scans/{scanName}/runs\",\n dataSourceName: string,\n scanName: string,\n ): ScanResultListScanHistory;\n /** Resource for '/scanrulesets/\\{scanRulesetName\\}' has methods for the following verbs: get, put, delete */\n (path: \"/scanrulesets/{scanRulesetName}\", scanRulesetName: string): ScanRulesetsGet;\n /** Resource for '/scanrulesets' has methods for the following verbs: get */\n (path: \"/scanrulesets\"): ScanRulesetsListAll;\n /** Resource for '/systemScanRulesets' has methods for the following verbs: get */\n (path: \"/systemScanRulesets\"): SystemScanRulesetsListAll;\n /** Resource for '/systemScanRulesets/datasources/\\{dataSourceType\\}' has methods for the following verbs: get */\n (\n path: \"/systemScanRulesets/datasources/{dataSourceType}\",\n dataSourceType: string,\n ): SystemScanRulesetsGet;\n /** Resource for '/systemScanRulesets/versions/\\{version\\}' has methods for the following verbs: get */\n (path: \"/systemScanRulesets/versions/{version}\", version: string): SystemScanRulesetsGetByVersion;\n /** Resource for '/systemScanRulesets/versions/latest' has methods for the following verbs: get */\n (path: \"/systemScanRulesets/versions/latest\"): SystemScanRulesetsGetLatest;\n /** Resource for '/systemScanRulesets/versions' has methods for the following verbs: get */\n (path: \"/systemScanRulesets/versions\"): SystemScanRulesetsListVersionsByDataSource;\n /** Resource for '/datasources/\\{dataSourceName\\}/scans/\\{scanName\\}/triggers/default' has methods for the following verbs: get, put, delete */\n (\n path: \"/datasources/{dataSourceName}/scans/{scanName}/triggers/default\",\n dataSourceName: string,\n scanName: string,\n ): TriggersGetTrigger;\n}\n\nexport type PurviewScanningRestClient = Client & {\n path: Routes;\n};\n\nexport default function PurviewScanning(\n Endpoint: string,\n credentials: TokenCredential,\n options: ClientOptions = {},\n): PurviewScanningRestClient {\n const baseUrl = options.baseUrl ?? `${Endpoint}`;\n options.apiVersion = options.apiVersion ?? \"2018-12-01-preview\";\n options = {\n ...options,\n credentials: {\n scopes: [\"https://purview.azure.net/.default\"],\n },\n };\n\n return getClient(baseUrl, credentials, options) as PurviewScanningRestClient;\n}\n"]}
|