@azure-rest/defender-easm 1.0.0-alpha.20250122.1 → 1.0.0-alpha.20250127.1
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/LICENSE +21 -0
- package/README.md +4 -8
- package/dist/browser/clientDefinitions.d.ts +7 -7
- package/dist/browser/clientDefinitions.d.ts.map +1 -1
- package/dist/browser/clientDefinitions.js.map +1 -1
- package/dist/browser/easmClient.d.ts +16 -0
- package/dist/browser/easmClient.d.ts.map +1 -0
- package/dist/browser/easmClient.js +43 -0
- package/dist/browser/easmClient.js.map +1 -0
- package/dist/browser/index.d.ts +3 -3
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +3 -4
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models.d.ts +52 -38
- package/dist/browser/models.d.ts.map +1 -1
- package/dist/browser/models.js.map +1 -1
- package/dist/browser/outputModels.d.ts +188 -117
- package/dist/browser/outputModels.d.ts.map +1 -1
- package/dist/browser/outputModels.js.map +1 -1
- 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 +8 -8
- package/dist/browser/parameters.d.ts.map +1 -1
- package/dist/browser/parameters.js.map +1 -1
- package/dist/commonjs/clientDefinitions.d.ts +7 -7
- package/dist/commonjs/clientDefinitions.d.ts.map +1 -1
- package/dist/commonjs/clientDefinitions.js.map +1 -1
- package/dist/commonjs/easmClient.d.ts +16 -0
- package/dist/commonjs/easmClient.d.ts.map +1 -0
- package/dist/commonjs/easmClient.js +46 -0
- package/dist/commonjs/easmClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +3 -3
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +3 -4
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models.d.ts +52 -38
- package/dist/commonjs/models.d.ts.map +1 -1
- package/dist/commonjs/models.js.map +1 -1
- package/dist/commonjs/outputModels.d.ts +188 -117
- package/dist/commonjs/outputModels.d.ts.map +1 -1
- package/dist/commonjs/outputModels.js.map +1 -1
- 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 +8 -8
- package/dist/commonjs/parameters.d.ts.map +1 -1
- package/dist/commonjs/parameters.js.map +1 -1
- package/dist/esm/clientDefinitions.d.ts +7 -7
- package/dist/esm/clientDefinitions.d.ts.map +1 -1
- package/dist/esm/clientDefinitions.js.map +1 -1
- package/dist/esm/easmClient.d.ts +16 -0
- package/dist/esm/easmClient.d.ts.map +1 -0
- package/dist/esm/easmClient.js +43 -0
- package/dist/esm/easmClient.js.map +1 -0
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +3 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models.d.ts +52 -38
- package/dist/esm/models.d.ts.map +1 -1
- package/dist/esm/models.js.map +1 -1
- package/dist/esm/outputModels.d.ts +188 -117
- package/dist/esm/outputModels.d.ts.map +1 -1
- package/dist/esm/outputModels.js.map +1 -1
- 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 +8 -8
- package/dist/esm/parameters.d.ts.map +1 -1
- package/dist/esm/parameters.js.map +1 -1
- package/dist/react-native/clientDefinitions.d.ts +7 -7
- package/dist/react-native/clientDefinitions.d.ts.map +1 -1
- package/dist/react-native/clientDefinitions.js.map +1 -1
- package/dist/react-native/easmClient.d.ts +16 -0
- package/dist/react-native/easmClient.d.ts.map +1 -0
- package/dist/react-native/easmClient.js +43 -0
- package/dist/react-native/easmClient.js.map +1 -0
- package/dist/react-native/index.d.ts +3 -3
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +3 -4
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models.d.ts +52 -38
- 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 +188 -117
- package/dist/react-native/outputModels.d.ts.map +1 -1
- package/dist/react-native/outputModels.js.map +1 -1
- 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 +8 -8
- package/dist/react-native/parameters.d.ts.map +1 -1
- package/dist/react-native/parameters.js.map +1 -1
- package/package.json +75 -74
- package/dist/browser/easm.d.ts +0 -14
- package/dist/browser/easm.d.ts.map +0 -1
- package/dist/browser/easm.js +0 -33
- package/dist/browser/easm.js.map +0 -1
- package/dist/commonjs/easm.d.ts +0 -14
- package/dist/commonjs/easm.d.ts.map +0 -1
- package/dist/commonjs/easm.js +0 -36
- package/dist/commonjs/easm.js.map +0 -1
- package/dist/esm/easm.d.ts +0 -14
- package/dist/esm/easm.d.ts.map +0 -1
- package/dist/esm/easm.js +0 -33
- package/dist/esm/easm.js.map +0 -1
- package/dist/react-native/easm.d.ts +0 -14
- package/dist/react-native/easm.d.ts.map +0 -1
- package/dist/react-native/easm.js +0 -33
- package/dist/react-native/easm.js.map +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Microsoft
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Azure
|
|
1
|
+
# Azure Easm REST client library for JavaScript
|
|
2
2
|
|
|
3
3
|
Defender EASM discovers and maps your digital attack surface to provide an "outside-in" perspective using probes to discover assets. The assets are provided with detailed metadata associated, including vulnerabilities, configurations and web components, allowing customers to view and prioritize external risk. The EASM REST API enables you to develop clients that integrate with your application.
|
|
4
4
|
|
|
@@ -8,8 +8,7 @@ Key links:
|
|
|
8
8
|
|
|
9
9
|
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/easm/defender-easm-rest)
|
|
10
10
|
- [Package (NPM)](https://www.npmjs.com/package/@azure-rest/defender-easm)
|
|
11
|
-
- [API reference documentation](https://
|
|
12
|
-
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/easm/defender-easm-rest/samples/v1-beta)
|
|
11
|
+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure-rest/defender-easm?view=azure-node-preview)
|
|
13
12
|
|
|
14
13
|
## Getting started
|
|
15
14
|
|
|
@@ -23,7 +22,7 @@ Key links:
|
|
|
23
22
|
|
|
24
23
|
### Install the `@azure-rest/defender-easm` package
|
|
25
24
|
|
|
26
|
-
Install the Azure
|
|
25
|
+
Install the Azure Easm REST client REST client library for JavaScript with `npm`:
|
|
27
26
|
|
|
28
27
|
```bash
|
|
29
28
|
npm install @azure-rest/defender-easm
|
|
@@ -35,15 +34,12 @@ To use an [Azure Active Directory (AAD) token credential](https://github.com/Azu
|
|
|
35
34
|
provide an instance of the desired credential type obtained from the
|
|
36
35
|
[@azure/identity](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) library.
|
|
37
36
|
|
|
38
|
-
To authenticate with AAD, you must first `npm` install [`@azure/identity`](https://www.npmjs.com/package/@azure/identity)
|
|
37
|
+
To authenticate with AAD, you must first `npm` install [`@azure/identity`](https://www.npmjs.com/package/@azure/identity)
|
|
39
38
|
|
|
40
39
|
After setup, you can choose which type of [credential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) from `@azure/identity` to use.
|
|
41
40
|
As an example, [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential)
|
|
42
41
|
can be used to authenticate the client.
|
|
43
42
|
|
|
44
|
-
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables:
|
|
45
|
-
AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET
|
|
46
|
-
|
|
47
43
|
## Troubleshooting
|
|
48
44
|
|
|
49
45
|
### Logging
|
|
@@ -17,13 +17,13 @@ export interface ListDataConnection {
|
|
|
17
17
|
}
|
|
18
18
|
export interface ValidateDataConnection {
|
|
19
19
|
/** Validate a data connection with a given dataConnectionName. */
|
|
20
|
-
post(options
|
|
20
|
+
post(options: ValidateDataConnectionParameters): StreamableMethod<ValidateDataConnection200Response | ValidateDataConnectionDefaultResponse>;
|
|
21
21
|
}
|
|
22
22
|
export interface GetDataConnection {
|
|
23
23
|
/** Retrieve a data connection with a given dataConnectionName. */
|
|
24
24
|
get(options?: GetDataConnectionParameters): StreamableMethod<GetDataConnection200Response | GetDataConnectionDefaultResponse>;
|
|
25
25
|
/** Create or replace a data connection with a given dataConnectionName. */
|
|
26
|
-
put(options
|
|
26
|
+
put(options: CreateOrReplaceDataConnectionParameters): StreamableMethod<CreateOrReplaceDataConnection200Response | CreateOrReplaceDataConnectionDefaultResponse>;
|
|
27
27
|
/** Delete a data connection with a given dataConnectionName. */
|
|
28
28
|
delete(options?: DeleteDataConnectionParameters): StreamableMethod<DeleteDataConnection204Response | DeleteDataConnectionDefaultResponse>;
|
|
29
29
|
}
|
|
@@ -33,13 +33,13 @@ export interface ListDiscoGroup {
|
|
|
33
33
|
}
|
|
34
34
|
export interface ValidateDiscoGroup {
|
|
35
35
|
/** Validate a discovery group with a given groupName. */
|
|
36
|
-
post(options
|
|
36
|
+
post(options: ValidateDiscoGroupParameters): StreamableMethod<ValidateDiscoGroup200Response | ValidateDiscoGroupDefaultResponse>;
|
|
37
37
|
}
|
|
38
38
|
export interface GetDiscoGroup {
|
|
39
39
|
/** Retrieve a discovery group with a given groupName. */
|
|
40
40
|
get(options?: GetDiscoGroupParameters): StreamableMethod<GetDiscoGroup200Response | GetDiscoGroupDefaultResponse>;
|
|
41
41
|
/** Create a discovery group with a given groupName. */
|
|
42
|
-
put(options
|
|
42
|
+
put(options: CreateOrReplaceDiscoGroupParameters): StreamableMethod<CreateOrReplaceDiscoGroup200Response | CreateOrReplaceDiscoGroupDefaultResponse>;
|
|
43
43
|
}
|
|
44
44
|
export interface RunDiscoGroup {
|
|
45
45
|
/** Run a discovery group with a given groupName. */
|
|
@@ -63,11 +63,11 @@ export interface GetBillable {
|
|
|
63
63
|
}
|
|
64
64
|
export interface GetSnapshot {
|
|
65
65
|
/** Get the most recent snapshot of asset summary values for the snapshot request. */
|
|
66
|
-
post(options
|
|
66
|
+
post(options: GetSnapshotParameters): StreamableMethod<GetSnapshot200Response | GetSnapshotDefaultResponse>;
|
|
67
67
|
}
|
|
68
68
|
export interface GetSummary {
|
|
69
69
|
/** Get asset summary details for the summary request. */
|
|
70
|
-
post(options
|
|
70
|
+
post(options: GetSummaryParameters): StreamableMethod<GetSummary200Response | GetSummaryDefaultResponse>;
|
|
71
71
|
}
|
|
72
72
|
export interface ListSavedFilter {
|
|
73
73
|
/** Retrieve a list of saved filters for the provided search parameters. */
|
|
@@ -77,7 +77,7 @@ export interface GetSavedFilter {
|
|
|
77
77
|
/** Retrieve a saved filter by filterName. */
|
|
78
78
|
get(options?: GetSavedFilterParameters): StreamableMethod<GetSavedFilter200Response | GetSavedFilterDefaultResponse>;
|
|
79
79
|
/** Create or replace a saved filter with a given filterName. */
|
|
80
|
-
put(options
|
|
80
|
+
put(options: CreateOrReplaceSavedFilterParameters): StreamableMethod<CreateOrReplaceSavedFilter200Response | CreateOrReplaceSavedFilterDefaultResponse>;
|
|
81
81
|
/** Delete a saved filter with a given filterName. */
|
|
82
82
|
delete(options?: DeleteSavedFilterParameters): StreamableMethod<DeleteSavedFilter204Response | DeleteSavedFilterDefaultResponse>;
|
|
83
83
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["../../src/clientDefinitions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,2BAA2B,EAC3B,sBAAsB,EACtB,0BAA0B,EAC1B,4BAA4B,EAC5B,gCAAgC,EAChC,2BAA2B,EAC3B,uCAAuC,EACvC,8BAA8B,EAC9B,wBAAwB,EACxB,4BAA4B,EAC5B,uBAAuB,EACvB,mCAAmC,EACnC,uBAAuB,EACvB,kBAAkB,EAClB,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,oCAAoC,EACpC,2B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AM,WAAW,gBAAgB;IAC/B,oCAAoC;IACpC,GAAG,CACD,OAAO,CAAC,EAAE,0BAA0B,GACnC,gBAAgB,CAAC,2BAA2B,GAAG,+BAA+B,CAAC,CAAC;CACpF;AAED,MAAM,WAAW,kBAAkB;IACjC,2CAA2C;IAC3C,GAAG,CACD,OAAO,CAAC,EAAE,4BAA4B,GACrC,gBAAgB,CAAC,6BAA6B,GAAG,iCAAiC,CAAC,CAAC;CACxF;AAED,MAAM,WAAW,sBAAsB;IACrC,kEAAkE;IAClE,IAAI,CACF,OAAO,
|
|
1
|
+
{"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["../../src/clientDefinitions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,2BAA2B,EAC3B,sBAAsB,EACtB,0BAA0B,EAC1B,4BAA4B,EAC5B,gCAAgC,EAChC,2BAA2B,EAC3B,uCAAuC,EACvC,8BAA8B,EAC9B,wBAAwB,EACxB,4BAA4B,EAC5B,uBAAuB,EACvB,mCAAmC,EACnC,uBAAuB,EACvB,kBAAkB,EAClB,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,oCAAoC,EACpC,2BAA2B,EAC3B,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACV,4BAA4B,EAC5B,gCAAgC,EAChC,uBAAuB,EACvB,2BAA2B,EAC3B,2BAA2B,EAC3B,+BAA+B,EAC/B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EACjC,qCAAqC,EACrC,4BAA4B,EAC5B,gCAAgC,EAChC,wCAAwC,EACxC,4CAA4C,EAC5C,+BAA+B,EAC/B,mCAAmC,EACnC,yBAAyB,EACzB,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,wBAAwB,EACxB,4BAA4B,EAC5B,oCAAoC,EACpC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G,iBAAiB,CAAC;IAC7C,6FAA6F;IAC7F,CAAC,IAAI,EAAE,8BAA8B,EAAE,UAAU,EAAE,MAAM,GAAG,gBAAgB,CAAC;IAC7E,2FAA2F;IAC3F,CAAC,IAAI,EAAE,6BAA6B,GAAG,WAAW,CAAC;IACnD,2FAA2F;IAC3F,CAAC,IAAI,EAAE,6BAA6B,GAAG,WAAW,CAAC;IACnD,0FAA0F;IAC1F,CAAC,IAAI,EAAE,4BAA4B,GAAG,UAAU,CAAC;IACjD,4EAA4E;IAC5E,CAAC,IAAI,EAAE,eAAe,GAAG,eAAe,CAAC;IACzC,wGAAwG;IACxG,CAAC,IAAI,EAAE,4BAA4B,EAAE,UAAU,EAAE,MAAM,GAAG,cAAc,CAAC;IACzE,qEAAqE;IACrE,CAAC,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC3B,gFAAgF;IAChF,CAAC,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IACnD,wFAAwF;IACxF,CAAC,IAAI,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC;CAC9D;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["../../src/clientDefinitions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n ListAssetResourceParameters,\n UpdateAssetsParameters,\n GetAssetResourceParameters,\n ListDataConnectionParameters,\n ValidateDataConnectionParameters,\n GetDataConnectionParameters,\n CreateOrReplaceDataConnectionParameters,\n DeleteDataConnectionParameters,\n ListDiscoGroupParameters,\n ValidateDiscoGroupParameters,\n GetDiscoGroupParameters,\n CreateOrReplaceDiscoGroupParameters,\n RunDiscoGroupParameters,\n ListRunsParameters,\n ListDiscoTemplateParameters,\n GetDiscoTemplateParameters,\n GetBillableParameters,\n GetSnapshotParameters,\n GetSummaryParameters,\n ListSavedFilterParameters,\n GetSavedFilterParameters,\n CreateOrReplaceSavedFilterParameters,\n DeleteSavedFilterParameters,\n ListTaskParameters,\n GetTaskParameters,\n CancelTaskParameters,\n} from \"./parameters.js\";\nimport type {\n ListAssetResource200Response,\n ListAssetResourceDefaultResponse,\n UpdateAssets200Response,\n UpdateAssetsDefaultResponse,\n GetAssetResource200Response,\n GetAssetResourceDefaultResponse,\n ListDataConnection200Response,\n ListDataConnectionDefaultResponse,\n ValidateDataConnection200Response,\n ValidateDataConnectionDefaultResponse,\n GetDataConnection200Response,\n GetDataConnectionDefaultResponse,\n CreateOrReplaceDataConnection200Response,\n CreateOrReplaceDataConnectionDefaultResponse,\n DeleteDataConnection204Response,\n DeleteDataConnectionDefaultResponse,\n ListDiscoGroup200Response,\n ListDiscoGroupDefaultResponse,\n ValidateDiscoGroup200Response,\n ValidateDiscoGroupDefaultResponse,\n GetDiscoGroup200Response,\n GetDiscoGroupDefaultResponse,\n CreateOrReplaceDiscoGroup200Response,\n CreateOrReplaceDiscoGroupDefaultResponse,\n RunDiscoGroup204Response,\n RunDiscoGroupDefaultResponse,\n ListRuns200Response,\n ListRunsDefaultResponse,\n ListDiscoTemplate200Response,\n ListDiscoTemplateDefaultResponse,\n GetDiscoTemplate200Response,\n GetDiscoTemplateDefaultResponse,\n GetBillable200Response,\n GetBillableDefaultResponse,\n GetSnapshot200Response,\n GetSnapshotDefaultResponse,\n GetSummary200Response,\n GetSummaryDefaultResponse,\n ListSavedFilter200Response,\n ListSavedFilterDefaultResponse,\n GetSavedFilter200Response,\n GetSavedFilterDefaultResponse,\n CreateOrReplaceSavedFilter200Response,\n CreateOrReplaceSavedFilterDefaultResponse,\n DeleteSavedFilter204Response,\n DeleteSavedFilterDefaultResponse,\n ListTask200Response,\n ListTaskDefaultResponse,\n GetTask200Response,\n GetTaskDefaultResponse,\n CancelTask200Response,\n CancelTaskDefaultResponse,\n} from \"./responses.js\";\nimport type { Client, StreamableMethod } from \"@azure-rest/core-client\";\n\nexport interface ListAssetResource {\n /** Retrieve a list of assets for the provided search parameters. */\n get(\n options?: ListAssetResourceParameters,\n ): StreamableMethod<ListAssetResource200Response | ListAssetResourceDefaultResponse>;\n /** Update labels on assets matching the provided filter. */\n post(\n options: UpdateAssetsParameters,\n ): StreamableMethod<UpdateAssets200Response | UpdateAssetsDefaultResponse>;\n}\n\nexport interface GetAssetResource {\n /** Retrieve an asset by assetId. */\n get(\n options?: GetAssetResourceParameters,\n ): StreamableMethod<GetAssetResource200Response | GetAssetResourceDefaultResponse>;\n}\n\nexport interface ListDataConnection {\n /** Retrieve a list of data connections. */\n get(\n options?: ListDataConnectionParameters,\n ): StreamableMethod<ListDataConnection200Response | ListDataConnectionDefaultResponse>;\n}\n\nexport interface ValidateDataConnection {\n /** Validate a data connection with a given dataConnectionName. */\n post(\n options?: ValidateDataConnectionParameters,\n ): StreamableMethod<ValidateDataConnection200Response | ValidateDataConnectionDefaultResponse>;\n}\n\nexport interface GetDataConnection {\n /** Retrieve a data connection with a given dataConnectionName. */\n get(\n options?: GetDataConnectionParameters,\n ): StreamableMethod<GetDataConnection200Response | GetDataConnectionDefaultResponse>;\n /** Create or replace a data connection with a given dataConnectionName. */\n put(\n options?: CreateOrReplaceDataConnectionParameters,\n ): StreamableMethod<\n CreateOrReplaceDataConnection200Response | CreateOrReplaceDataConnectionDefaultResponse\n >;\n /** Delete a data connection with a given dataConnectionName. */\n delete(\n options?: DeleteDataConnectionParameters,\n ): StreamableMethod<DeleteDataConnection204Response | DeleteDataConnectionDefaultResponse>;\n}\n\nexport interface ListDiscoGroup {\n /** Retrieve a list of discovery group for the provided search parameters. */\n get(\n options?: ListDiscoGroupParameters,\n ): StreamableMethod<ListDiscoGroup200Response | ListDiscoGroupDefaultResponse>;\n}\n\nexport interface ValidateDiscoGroup {\n /** Validate a discovery group with a given groupName. */\n post(\n options?: ValidateDiscoGroupParameters,\n ): StreamableMethod<ValidateDiscoGroup200Response | ValidateDiscoGroupDefaultResponse>;\n}\n\nexport interface GetDiscoGroup {\n /** Retrieve a discovery group with a given groupName. */\n get(\n options?: GetDiscoGroupParameters,\n ): StreamableMethod<GetDiscoGroup200Response | GetDiscoGroupDefaultResponse>;\n /** Create a discovery group with a given groupName. */\n put(\n options?: CreateOrReplaceDiscoGroupParameters,\n ): StreamableMethod<\n CreateOrReplaceDiscoGroup200Response | CreateOrReplaceDiscoGroupDefaultResponse\n >;\n}\n\nexport interface RunDiscoGroup {\n /** Run a discovery group with a given groupName. */\n post(\n options?: RunDiscoGroupParameters,\n ): StreamableMethod<RunDiscoGroup204Response | RunDiscoGroupDefaultResponse>;\n}\n\nexport interface ListRuns {\n /** Retrieve a collection of discovery run results for a discovery group with a given groupName. */\n get(\n options?: ListRunsParameters,\n ): StreamableMethod<ListRuns200Response | ListRunsDefaultResponse>;\n}\n\nexport interface ListDiscoTemplate {\n /** Retrieve a list of disco templates for the provided search parameters. */\n get(\n options?: ListDiscoTemplateParameters,\n ): StreamableMethod<ListDiscoTemplate200Response | ListDiscoTemplateDefaultResponse>;\n}\n\nexport interface GetDiscoTemplate {\n /** Retrieve a disco template with a given templateId. */\n get(\n options?: GetDiscoTemplateParameters,\n ): StreamableMethod<GetDiscoTemplate200Response | GetDiscoTemplateDefaultResponse>;\n}\n\nexport interface GetBillable {\n /** Get billable assets summary for the workspace. */\n post(\n options?: GetBillableParameters,\n ): StreamableMethod<GetBillable200Response | GetBillableDefaultResponse>;\n}\n\nexport interface GetSnapshot {\n /** Get the most recent snapshot of asset summary values for the snapshot request. */\n post(\n options?: GetSnapshotParameters,\n ): StreamableMethod<GetSnapshot200Response | GetSnapshotDefaultResponse>;\n}\n\nexport interface GetSummary {\n /** Get asset summary details for the summary request. */\n post(\n options?: GetSummaryParameters,\n ): StreamableMethod<GetSummary200Response | GetSummaryDefaultResponse>;\n}\n\nexport interface ListSavedFilter {\n /** Retrieve a list of saved filters for the provided search parameters. */\n get(\n options?: ListSavedFilterParameters,\n ): StreamableMethod<ListSavedFilter200Response | ListSavedFilterDefaultResponse>;\n}\n\nexport interface GetSavedFilter {\n /** Retrieve a saved filter by filterName. */\n get(\n options?: GetSavedFilterParameters,\n ): StreamableMethod<GetSavedFilter200Response | GetSavedFilterDefaultResponse>;\n /** Create or replace a saved filter with a given filterName. */\n put(\n options?: CreateOrReplaceSavedFilterParameters,\n ): StreamableMethod<\n CreateOrReplaceSavedFilter200Response | CreateOrReplaceSavedFilterDefaultResponse\n >;\n /** Delete a saved filter with a given filterName. */\n delete(\n options?: DeleteSavedFilterParameters,\n ): StreamableMethod<DeleteSavedFilter204Response | DeleteSavedFilterDefaultResponse>;\n}\n\nexport interface ListTask {\n /** Retrieve a list of tasks for the provided search parameters. */\n get(\n options?: ListTaskParameters,\n ): StreamableMethod<ListTask200Response | ListTaskDefaultResponse>;\n}\n\nexport interface GetTask {\n /** Retrieve a task by taskId. */\n get(options?: GetTaskParameters): StreamableMethod<GetTask200Response | GetTaskDefaultResponse>;\n}\n\nexport interface CancelTask {\n /** Cancel a task by taskId. */\n post(\n options?: CancelTaskParameters,\n ): StreamableMethod<CancelTask200Response | CancelTaskDefaultResponse>;\n}\n\nexport interface Routes {\n /** Resource for '/assets' has methods for the following verbs: get, post */\n (path: \"/assets\"): ListAssetResource;\n /** Resource for '/assets/\\{assetId\\}' has methods for the following verbs: get */\n (path: \"/assets/{assetId}\", assetId: string): GetAssetResource;\n /** Resource for '/dataConnections' has methods for the following verbs: get */\n (path: \"/dataConnections\"): ListDataConnection;\n /** Resource for '/dataConnections:validate' has methods for the following verbs: post */\n (path: \"/dataConnections:validate\"): ValidateDataConnection;\n /** Resource for '/dataConnections/\\{dataConnectionName\\}' has methods for the following verbs: get, put, delete */\n (path: \"/dataConnections/{dataConnectionName}\", dataConnectionName: string): GetDataConnection;\n /** Resource for '/discoGroups' has methods for the following verbs: get */\n (path: \"/discoGroups\"): ListDiscoGroup;\n /** Resource for '/discoGroups:validate' has methods for the following verbs: post */\n (path: \"/discoGroups:validate\"): ValidateDiscoGroup;\n /** Resource for '/discoGroups/\\{groupName\\}' has methods for the following verbs: get, put */\n (path: \"/discoGroups/{groupName}\", groupName: string): GetDiscoGroup;\n /** Resource for '/discoGroups/\\{groupName\\}:run' has methods for the following verbs: post */\n (path: \"/discoGroups/{groupName}:run\", groupName: string): RunDiscoGroup;\n /** Resource for '/discoGroups/\\{groupName\\}/runs' has methods for the following verbs: get */\n (path: \"/discoGroups/{groupName}/runs\", groupName: string): ListRuns;\n /** Resource for '/discoTemplates' has methods for the following verbs: get */\n (path: \"/discoTemplates\"): ListDiscoTemplate;\n /** Resource for '/discoTemplates/\\{templateId\\}' has methods for the following verbs: get */\n (path: \"/discoTemplates/{templateId}\", templateId: string): GetDiscoTemplate;\n /** Resource for '/reports/assets:getBillable' has methods for the following verbs: post */\n (path: \"/reports/assets:getBillable\"): GetBillable;\n /** Resource for '/reports/assets:getSnapshot' has methods for the following verbs: post */\n (path: \"/reports/assets:getSnapshot\"): GetSnapshot;\n /** Resource for '/reports/assets:getSummary' has methods for the following verbs: post */\n (path: \"/reports/assets:getSummary\"): GetSummary;\n /** Resource for '/savedFilters' has methods for the following verbs: get */\n (path: \"/savedFilters\"): ListSavedFilter;\n /** Resource for '/savedFilters/\\{filterName\\}' has methods for the following verbs: get, put, delete */\n (path: \"/savedFilters/{filterName}\", filterName: string): GetSavedFilter;\n /** Resource for '/tasks' has methods for the following verbs: get */\n (path: \"/tasks\"): ListTask;\n /** Resource for '/tasks/\\{taskId\\}' has methods for the following verbs: get */\n (path: \"/tasks/{taskId}\", taskId: string): GetTask;\n /** Resource for '/tasks/\\{taskId\\}:cancel' has methods for the following verbs: post */\n (path: \"/tasks/{taskId}:cancel\", taskId: string): CancelTask;\n}\n\nexport type EasmClient = Client & {\n path: Routes;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["../../src/clientDefinitions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n ListAssetResourceParameters,\n UpdateAssetsParameters,\n GetAssetResourceParameters,\n ListDataConnectionParameters,\n ValidateDataConnectionParameters,\n GetDataConnectionParameters,\n CreateOrReplaceDataConnectionParameters,\n DeleteDataConnectionParameters,\n ListDiscoGroupParameters,\n ValidateDiscoGroupParameters,\n GetDiscoGroupParameters,\n CreateOrReplaceDiscoGroupParameters,\n RunDiscoGroupParameters,\n ListRunsParameters,\n ListDiscoTemplateParameters,\n GetDiscoTemplateParameters,\n GetBillableParameters,\n GetSnapshotParameters,\n GetSummaryParameters,\n ListSavedFilterParameters,\n GetSavedFilterParameters,\n CreateOrReplaceSavedFilterParameters,\n DeleteSavedFilterParameters,\n ListTaskParameters,\n GetTaskParameters,\n CancelTaskParameters,\n} from \"./parameters.js\";\nimport type {\n ListAssetResource200Response,\n ListAssetResourceDefaultResponse,\n UpdateAssets200Response,\n UpdateAssetsDefaultResponse,\n GetAssetResource200Response,\n GetAssetResourceDefaultResponse,\n ListDataConnection200Response,\n ListDataConnectionDefaultResponse,\n ValidateDataConnection200Response,\n ValidateDataConnectionDefaultResponse,\n GetDataConnection200Response,\n GetDataConnectionDefaultResponse,\n CreateOrReplaceDataConnection200Response,\n CreateOrReplaceDataConnectionDefaultResponse,\n DeleteDataConnection204Response,\n DeleteDataConnectionDefaultResponse,\n ListDiscoGroup200Response,\n ListDiscoGroupDefaultResponse,\n ValidateDiscoGroup200Response,\n ValidateDiscoGroupDefaultResponse,\n GetDiscoGroup200Response,\n GetDiscoGroupDefaultResponse,\n CreateOrReplaceDiscoGroup200Response,\n CreateOrReplaceDiscoGroupDefaultResponse,\n RunDiscoGroup204Response,\n RunDiscoGroupDefaultResponse,\n ListRuns200Response,\n ListRunsDefaultResponse,\n ListDiscoTemplate200Response,\n ListDiscoTemplateDefaultResponse,\n GetDiscoTemplate200Response,\n GetDiscoTemplateDefaultResponse,\n GetBillable200Response,\n GetBillableDefaultResponse,\n GetSnapshot200Response,\n GetSnapshotDefaultResponse,\n GetSummary200Response,\n GetSummaryDefaultResponse,\n ListSavedFilter200Response,\n ListSavedFilterDefaultResponse,\n GetSavedFilter200Response,\n GetSavedFilterDefaultResponse,\n CreateOrReplaceSavedFilter200Response,\n CreateOrReplaceSavedFilterDefaultResponse,\n DeleteSavedFilter204Response,\n DeleteSavedFilterDefaultResponse,\n ListTask200Response,\n ListTaskDefaultResponse,\n GetTask200Response,\n GetTaskDefaultResponse,\n CancelTask200Response,\n CancelTaskDefaultResponse,\n} from \"./responses.js\";\nimport type { Client, StreamableMethod } from \"@azure-rest/core-client\";\n\nexport interface ListAssetResource {\n /** Retrieve a list of assets for the provided search parameters. */\n get(\n options?: ListAssetResourceParameters,\n ): StreamableMethod<ListAssetResource200Response | ListAssetResourceDefaultResponse>;\n /** Update labels on assets matching the provided filter. */\n post(\n options: UpdateAssetsParameters,\n ): StreamableMethod<UpdateAssets200Response | UpdateAssetsDefaultResponse>;\n}\n\nexport interface GetAssetResource {\n /** Retrieve an asset by assetId. */\n get(\n options?: GetAssetResourceParameters,\n ): StreamableMethod<GetAssetResource200Response | GetAssetResourceDefaultResponse>;\n}\n\nexport interface ListDataConnection {\n /** Retrieve a list of data connections. */\n get(\n options?: ListDataConnectionParameters,\n ): StreamableMethod<ListDataConnection200Response | ListDataConnectionDefaultResponse>;\n}\n\nexport interface ValidateDataConnection {\n /** Validate a data connection with a given dataConnectionName. */\n post(\n options: ValidateDataConnectionParameters,\n ): StreamableMethod<ValidateDataConnection200Response | ValidateDataConnectionDefaultResponse>;\n}\n\nexport interface GetDataConnection {\n /** Retrieve a data connection with a given dataConnectionName. */\n get(\n options?: GetDataConnectionParameters,\n ): StreamableMethod<GetDataConnection200Response | GetDataConnectionDefaultResponse>;\n /** Create or replace a data connection with a given dataConnectionName. */\n put(\n options: CreateOrReplaceDataConnectionParameters,\n ): StreamableMethod<\n CreateOrReplaceDataConnection200Response | CreateOrReplaceDataConnectionDefaultResponse\n >;\n /** Delete a data connection with a given dataConnectionName. */\n delete(\n options?: DeleteDataConnectionParameters,\n ): StreamableMethod<DeleteDataConnection204Response | DeleteDataConnectionDefaultResponse>;\n}\n\nexport interface ListDiscoGroup {\n /** Retrieve a list of discovery group for the provided search parameters. */\n get(\n options?: ListDiscoGroupParameters,\n ): StreamableMethod<ListDiscoGroup200Response | ListDiscoGroupDefaultResponse>;\n}\n\nexport interface ValidateDiscoGroup {\n /** Validate a discovery group with a given groupName. */\n post(\n options: ValidateDiscoGroupParameters,\n ): StreamableMethod<ValidateDiscoGroup200Response | ValidateDiscoGroupDefaultResponse>;\n}\n\nexport interface GetDiscoGroup {\n /** Retrieve a discovery group with a given groupName. */\n get(\n options?: GetDiscoGroupParameters,\n ): StreamableMethod<GetDiscoGroup200Response | GetDiscoGroupDefaultResponse>;\n /** Create a discovery group with a given groupName. */\n put(\n options: CreateOrReplaceDiscoGroupParameters,\n ): StreamableMethod<\n CreateOrReplaceDiscoGroup200Response | CreateOrReplaceDiscoGroupDefaultResponse\n >;\n}\n\nexport interface RunDiscoGroup {\n /** Run a discovery group with a given groupName. */\n post(\n options?: RunDiscoGroupParameters,\n ): StreamableMethod<RunDiscoGroup204Response | RunDiscoGroupDefaultResponse>;\n}\n\nexport interface ListRuns {\n /** Retrieve a collection of discovery run results for a discovery group with a given groupName. */\n get(\n options?: ListRunsParameters,\n ): StreamableMethod<ListRuns200Response | ListRunsDefaultResponse>;\n}\n\nexport interface ListDiscoTemplate {\n /** Retrieve a list of disco templates for the provided search parameters. */\n get(\n options?: ListDiscoTemplateParameters,\n ): StreamableMethod<ListDiscoTemplate200Response | ListDiscoTemplateDefaultResponse>;\n}\n\nexport interface GetDiscoTemplate {\n /** Retrieve a disco template with a given templateId. */\n get(\n options?: GetDiscoTemplateParameters,\n ): StreamableMethod<GetDiscoTemplate200Response | GetDiscoTemplateDefaultResponse>;\n}\n\nexport interface GetBillable {\n /** Get billable assets summary for the workspace. */\n post(\n options?: GetBillableParameters,\n ): StreamableMethod<GetBillable200Response | GetBillableDefaultResponse>;\n}\n\nexport interface GetSnapshot {\n /** Get the most recent snapshot of asset summary values for the snapshot request. */\n post(\n options: GetSnapshotParameters,\n ): StreamableMethod<GetSnapshot200Response | GetSnapshotDefaultResponse>;\n}\n\nexport interface GetSummary {\n /** Get asset summary details for the summary request. */\n post(\n options: GetSummaryParameters,\n ): StreamableMethod<GetSummary200Response | GetSummaryDefaultResponse>;\n}\n\nexport interface ListSavedFilter {\n /** Retrieve a list of saved filters for the provided search parameters. */\n get(\n options?: ListSavedFilterParameters,\n ): StreamableMethod<ListSavedFilter200Response | ListSavedFilterDefaultResponse>;\n}\n\nexport interface GetSavedFilter {\n /** Retrieve a saved filter by filterName. */\n get(\n options?: GetSavedFilterParameters,\n ): StreamableMethod<GetSavedFilter200Response | GetSavedFilterDefaultResponse>;\n /** Create or replace a saved filter with a given filterName. */\n put(\n options: CreateOrReplaceSavedFilterParameters,\n ): StreamableMethod<\n CreateOrReplaceSavedFilter200Response | CreateOrReplaceSavedFilterDefaultResponse\n >;\n /** Delete a saved filter with a given filterName. */\n delete(\n options?: DeleteSavedFilterParameters,\n ): StreamableMethod<DeleteSavedFilter204Response | DeleteSavedFilterDefaultResponse>;\n}\n\nexport interface ListTask {\n /** Retrieve a list of tasks for the provided search parameters. */\n get(\n options?: ListTaskParameters,\n ): StreamableMethod<ListTask200Response | ListTaskDefaultResponse>;\n}\n\nexport interface GetTask {\n /** Retrieve a task by taskId. */\n get(options?: GetTaskParameters): StreamableMethod<GetTask200Response | GetTaskDefaultResponse>;\n}\n\nexport interface CancelTask {\n /** Cancel a task by taskId. */\n post(\n options?: CancelTaskParameters,\n ): StreamableMethod<CancelTask200Response | CancelTaskDefaultResponse>;\n}\n\nexport interface Routes {\n /** Resource for '/assets' has methods for the following verbs: get, post */\n (path: \"/assets\"): ListAssetResource;\n /** Resource for '/assets/\\{assetId\\}' has methods for the following verbs: get */\n (path: \"/assets/{assetId}\", assetId: string): GetAssetResource;\n /** Resource for '/dataConnections' has methods for the following verbs: get */\n (path: \"/dataConnections\"): ListDataConnection;\n /** Resource for '/dataConnections:validate' has methods for the following verbs: post */\n (path: \"/dataConnections:validate\"): ValidateDataConnection;\n /** Resource for '/dataConnections/\\{dataConnectionName\\}' has methods for the following verbs: get, put, delete */\n (path: \"/dataConnections/{dataConnectionName}\", dataConnectionName: string): GetDataConnection;\n /** Resource for '/discoGroups' has methods for the following verbs: get */\n (path: \"/discoGroups\"): ListDiscoGroup;\n /** Resource for '/discoGroups:validate' has methods for the following verbs: post */\n (path: \"/discoGroups:validate\"): ValidateDiscoGroup;\n /** Resource for '/discoGroups/\\{groupName\\}' has methods for the following verbs: get, put */\n (path: \"/discoGroups/{groupName}\", groupName: string): GetDiscoGroup;\n /** Resource for '/discoGroups/\\{groupName\\}:run' has methods for the following verbs: post */\n (path: \"/discoGroups/{groupName}:run\", groupName: string): RunDiscoGroup;\n /** Resource for '/discoGroups/\\{groupName\\}/runs' has methods for the following verbs: get */\n (path: \"/discoGroups/{groupName}/runs\", groupName: string): ListRuns;\n /** Resource for '/discoTemplates' has methods for the following verbs: get */\n (path: \"/discoTemplates\"): ListDiscoTemplate;\n /** Resource for '/discoTemplates/\\{templateId\\}' has methods for the following verbs: get */\n (path: \"/discoTemplates/{templateId}\", templateId: string): GetDiscoTemplate;\n /** Resource for '/reports/assets:getBillable' has methods for the following verbs: post */\n (path: \"/reports/assets:getBillable\"): GetBillable;\n /** Resource for '/reports/assets:getSnapshot' has methods for the following verbs: post */\n (path: \"/reports/assets:getSnapshot\"): GetSnapshot;\n /** Resource for '/reports/assets:getSummary' has methods for the following verbs: post */\n (path: \"/reports/assets:getSummary\"): GetSummary;\n /** Resource for '/savedFilters' has methods for the following verbs: get */\n (path: \"/savedFilters\"): ListSavedFilter;\n /** Resource for '/savedFilters/\\{filterName\\}' has methods for the following verbs: get, put, delete */\n (path: \"/savedFilters/{filterName}\", filterName: string): GetSavedFilter;\n /** Resource for '/tasks' has methods for the following verbs: get */\n (path: \"/tasks\"): ListTask;\n /** Resource for '/tasks/\\{taskId\\}' has methods for the following verbs: get */\n (path: \"/tasks/{taskId}\", taskId: string): GetTask;\n /** Resource for '/tasks/\\{taskId\\}:cancel' has methods for the following verbs: post */\n (path: \"/tasks/{taskId}:cancel\", taskId: string): CancelTask;\n}\n\nexport type EasmClient = Client & {\n path: Routes;\n};\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ClientOptions } from "@azure-rest/core-client";
|
|
2
|
+
import type { TokenCredential } from "@azure/core-auth";
|
|
3
|
+
import type { EasmClient } from "./clientDefinitions.js";
|
|
4
|
+
/** The optional parameters for the client */
|
|
5
|
+
export interface EasmClientOptions extends ClientOptions {
|
|
6
|
+
/** The api version option of the client */
|
|
7
|
+
apiVersion?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of `EasmClient`
|
|
11
|
+
* @param endpointParam - The endpoint hosting the requested resource. For example, https://{region}.easm.defender.microsoft.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/workspaces/{workspaceName}
|
|
12
|
+
* @param credentials - uniquely identify client credential
|
|
13
|
+
* @param options - the parameter for all optional parameters
|
|
14
|
+
*/
|
|
15
|
+
export default function createClient(endpointParam: string, credentials: TokenCredential, { apiVersion, ...options }?: EasmClientOptions): EasmClient;
|
|
16
|
+
//# sourceMappingURL=easmClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"easmClient.d.ts","sourceRoot":"","sources":["../../src/easmClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,6CAA6C;AAC7C,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,eAAe,EAC5B,EAAE,UAAiC,EAAE,GAAG,OAAO,EAAE,GAAE,iBAAsB,GACxE,UAAU,CAuCZ"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { __rest } from "tslib";
|
|
4
|
+
import { getClient } from "@azure-rest/core-client";
|
|
5
|
+
import { logger } from "./logger.js";
|
|
6
|
+
/**
|
|
7
|
+
* Initialize a new instance of `EasmClient`
|
|
8
|
+
* @param endpointParam - The endpoint hosting the requested resource. For example, https://{region}.easm.defender.microsoft.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/workspaces/{workspaceName}
|
|
9
|
+
* @param credentials - uniquely identify client credential
|
|
10
|
+
* @param options - the parameter for all optional parameters
|
|
11
|
+
*/
|
|
12
|
+
export default function createClient(endpointParam, credentials, _a = {}) {
|
|
13
|
+
var _b, _c, _d, _e, _f, _g;
|
|
14
|
+
var { apiVersion = "2023-03-01-preview" } = _a, options = __rest(_a, ["apiVersion"]);
|
|
15
|
+
const endpointUrl = (_c = (_b = options.endpoint) !== null && _b !== void 0 ? _b : options.baseUrl) !== null && _c !== void 0 ? _c : `${endpointParam}`;
|
|
16
|
+
const userAgentInfo = `azsdk-js-defender-easm-rest/1.0.0-beta.2`;
|
|
17
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
18
|
+
? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
|
|
19
|
+
: `${userAgentInfo}`;
|
|
20
|
+
options = Object.assign(Object.assign({}, options), { userAgentOptions: {
|
|
21
|
+
userAgentPrefix,
|
|
22
|
+
}, loggingOptions: {
|
|
23
|
+
logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger.info,
|
|
24
|
+
}, credentials: {
|
|
25
|
+
scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : ["https://easm.defender.microsoft.com/.default"],
|
|
26
|
+
} });
|
|
27
|
+
const client = getClient(endpointUrl, credentials, options);
|
|
28
|
+
client.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
29
|
+
client.pipeline.addPolicy({
|
|
30
|
+
name: "ClientApiVersionPolicy",
|
|
31
|
+
sendRequest: (req, next) => {
|
|
32
|
+
// Use the apiVersion defined in request url directly
|
|
33
|
+
// Append one if there is no apiVersion and we have one at client options
|
|
34
|
+
const url = new URL(req.url);
|
|
35
|
+
if (!url.searchParams.get("api-version") && apiVersion) {
|
|
36
|
+
req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
|
|
37
|
+
}
|
|
38
|
+
return next(req);
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
return client;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=easmClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"easmClient.js","sourceRoot":"","sources":["../../src/easmClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAUrC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,aAAqB,EACrB,WAA4B,EAC5B,KAAuE,EAAE;;QAAzE,EAAE,UAAU,GAAG,oBAAoB,OAAsC,EAAjC,OAAO,cAA/C,cAAiD,CAAF;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CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { EasmClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface EasmClientOptions extends ClientOptions {\n /** The api version option of the client */\n apiVersion?: string;\n}\n\n/**\n * Initialize a new instance of `EasmClient`\n * @param endpointParam - The endpoint hosting the requested resource. For example, https://{region}.easm.defender.microsoft.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/workspaces/{workspaceName}\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n endpointParam: string,\n credentials: TokenCredential,\n { apiVersion = \"2023-03-01-preview\", ...options }: EasmClientOptions = {},\n): EasmClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpointParam}`;\n const userAgentInfo = `azsdk-js-defender-easm-rest/1.0.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://easm.defender.microsoft.com/.default\"],\n },\n };\n const client = getClient(endpointUrl, credentials, options) as EasmClient;\n\n client.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n client.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\") && apiVersion) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n\n return client;\n}\n"]}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export * from "./
|
|
1
|
+
import EasmClient from "./easmClient.js";
|
|
2
|
+
export * from "./easmClient.js";
|
|
3
3
|
export * from "./parameters.js";
|
|
4
4
|
export * from "./responses.js";
|
|
5
5
|
export * from "./clientDefinitions.js";
|
|
@@ -7,5 +7,5 @@ export * from "./isUnexpected.js";
|
|
|
7
7
|
export * from "./models.js";
|
|
8
8
|
export * from "./outputModels.js";
|
|
9
9
|
export * from "./paginateHelper.js";
|
|
10
|
-
export default
|
|
10
|
+
export default EasmClient;
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,UAAU,MAAM,iBAAiB,CAAC;AAEzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAEpC,eAAe,UAAU,CAAC"}
|
package/dist/browser/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import
|
|
4
|
-
export * from "./
|
|
3
|
+
import EasmClient from "./easmClient.js";
|
|
4
|
+
export * from "./easmClient.js";
|
|
5
5
|
export * from "./parameters.js";
|
|
6
6
|
export * from "./responses.js";
|
|
7
7
|
export * from "./clientDefinitions.js";
|
|
@@ -9,6 +9,5 @@ export * from "./isUnexpected.js";
|
|
|
9
9
|
export * from "./models.js";
|
|
10
10
|
export * from "./outputModels.js";
|
|
11
11
|
export * from "./paginateHelper.js";
|
|
12
|
-
|
|
13
|
-
export default Easm;
|
|
12
|
+
export default EasmClient;
|
|
14
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,UAAU,MAAM,iBAAiB,CAAC;AAEzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAEpC,eAAe,UAAU,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport EasmClient from \"./easmClient.js\";\n\nexport * from \"./easmClient.js\";\nexport * from \"./parameters.js\";\nexport * from \"./responses.js\";\nexport * from \"./clientDefinitions.js\";\nexport * from \"./isUnexpected.js\";\nexport * from \"./models.js\";\nexport * from \"./outputModels.js\";\nexport * from \"./paginateHelper.js\";\n\nexport default EasmClient;\n"]}
|
package/dist/browser/models.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ export interface AssetUpdateData {
|
|
|
3
3
|
/**
|
|
4
4
|
* The state to update the asset to.
|
|
5
5
|
*
|
|
6
|
-
* Possible values: candidate, confirmed, dismissed, candidateInvestigate, associatedPartner, associatedThirdparty
|
|
6
|
+
* Possible values: "candidate", "confirmed", "dismissed", "candidateInvestigate", "associatedPartner", "associatedThirdparty"
|
|
7
7
|
*/
|
|
8
|
-
state?:
|
|
8
|
+
state?: AssetUpdateState;
|
|
9
9
|
/** A string which can be used to identify the asset in external systems. */
|
|
10
10
|
externalId?: string;
|
|
11
11
|
/** Any Labels to update the asset with. */
|
|
@@ -13,9 +13,40 @@ export interface AssetUpdateData {
|
|
|
13
13
|
/**
|
|
14
14
|
* A list of asset types to cascade the updates to.
|
|
15
15
|
*
|
|
16
|
-
* Possible values: as, contact, domain, host, ipAddress, ipBlock, page, sslCert
|
|
16
|
+
* Possible values: "as", "contact", "domain", "host", "ipAddress", "ipBlock", "page", "sslCert"
|
|
17
17
|
*/
|
|
18
|
-
transfers?:
|
|
18
|
+
transfers?: AssetUpdateTransfers;
|
|
19
|
+
}
|
|
20
|
+
export interface LogAnalyticsDataConnectionData extends DataConnectionDataParent {
|
|
21
|
+
/** The kind of DataConnectionData */
|
|
22
|
+
kind: "logAnalytics";
|
|
23
|
+
/** properties */
|
|
24
|
+
properties: LogAnalyticsDataConnectionProperties;
|
|
25
|
+
}
|
|
26
|
+
export interface AzureDataExplorerDataConnectionData extends DataConnectionDataParent {
|
|
27
|
+
/** The kind of DataConnectionData */
|
|
28
|
+
kind: "azureDataExplorer";
|
|
29
|
+
/** properties */
|
|
30
|
+
properties: AzureDataExplorerDataConnectionProperties;
|
|
31
|
+
}
|
|
32
|
+
/** LogAnalyticsDataConnectionProperties */
|
|
33
|
+
export interface LogAnalyticsDataConnectionProperties extends DataConnectionProperties {
|
|
34
|
+
/** log analytics api key */
|
|
35
|
+
apiKey?: string;
|
|
36
|
+
/** log analytics workspace id */
|
|
37
|
+
workspaceId?: string;
|
|
38
|
+
}
|
|
39
|
+
/** DataConnectionProperties */
|
|
40
|
+
export interface DataConnectionProperties {
|
|
41
|
+
}
|
|
42
|
+
/** AzureDataExplorerDataConnectionProperties */
|
|
43
|
+
export interface AzureDataExplorerDataConnectionProperties extends DataConnectionProperties {
|
|
44
|
+
/** The azure data explorer cluster name */
|
|
45
|
+
clusterName?: string;
|
|
46
|
+
/** The azure data explorer region */
|
|
47
|
+
region?: string;
|
|
48
|
+
/** The azure data explorer database name */
|
|
49
|
+
databaseName?: string;
|
|
19
50
|
}
|
|
20
51
|
export interface DataConnectionDataParent {
|
|
21
52
|
/** The name of data connection */
|
|
@@ -23,15 +54,15 @@ export interface DataConnectionDataParent {
|
|
|
23
54
|
/**
|
|
24
55
|
* The type of data the data connection will transfer.
|
|
25
56
|
*
|
|
26
|
-
* Possible values: assets, attackSurfaceInsights
|
|
57
|
+
* Possible values: "assets", "attackSurfaceInsights"
|
|
27
58
|
*/
|
|
28
|
-
content?:
|
|
59
|
+
content?: DataConnectionContent;
|
|
29
60
|
/**
|
|
30
61
|
* The rate at which the data connection will receive updates.
|
|
31
62
|
*
|
|
32
|
-
* Possible values: daily, weekly, monthly
|
|
63
|
+
* Possible values: "daily", "weekly", "monthly"
|
|
33
64
|
*/
|
|
34
|
-
frequency?:
|
|
65
|
+
frequency?: DataConnectionFrequency;
|
|
35
66
|
/** The day to update the data connection on. (1-7 for weekly, 1-31 for monthly) */
|
|
36
67
|
frequencyOffset?: number;
|
|
37
68
|
kind: string;
|
|
@@ -41,9 +72,9 @@ export interface DiscoSource {
|
|
|
41
72
|
/**
|
|
42
73
|
* The kind of disco source.
|
|
43
74
|
*
|
|
44
|
-
* Possible values: as, attribute, contact, domain, host, ipBlock
|
|
75
|
+
* Possible values: "as", "attribute", "contact", "domain", "host", "ipBlock"
|
|
45
76
|
*/
|
|
46
|
-
kind?:
|
|
77
|
+
kind?: DiscoSourceKind;
|
|
47
78
|
/** The name for the disco source. */
|
|
48
79
|
name?: string;
|
|
49
80
|
}
|
|
@@ -99,32 +130,15 @@ export interface SavedFilterData {
|
|
|
99
130
|
/** A human readable description of the saved filter. */
|
|
100
131
|
description: string;
|
|
101
132
|
}
|
|
102
|
-
export type DataConnectionData = LogAnalyticsDataConnectionData | AzureDataExplorerDataConnectionData;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
export
|
|
113
|
-
/** log analytics api key */
|
|
114
|
-
apiKey?: string;
|
|
115
|
-
/** log analytics workspace id */
|
|
116
|
-
workspaceId?: string;
|
|
117
|
-
}
|
|
118
|
-
/** DataConnectionProperties */
|
|
119
|
-
export interface DataConnectionProperties {
|
|
120
|
-
}
|
|
121
|
-
/** AzureDataExplorerDataConnectionProperties */
|
|
122
|
-
export interface AzureDataExplorerDataConnectionProperties extends DataConnectionProperties {
|
|
123
|
-
/** The azure data explorer cluster name */
|
|
124
|
-
clusterName?: string;
|
|
125
|
-
/** The azure data explorer region */
|
|
126
|
-
region?: string;
|
|
127
|
-
/** The azure data explorer database name */
|
|
128
|
-
databaseName?: string;
|
|
129
|
-
}
|
|
133
|
+
export type DataConnectionData = DataConnectionDataParent | LogAnalyticsDataConnectionData | AzureDataExplorerDataConnectionData;
|
|
134
|
+
/** Alias for AssetUpdateState */
|
|
135
|
+
export type AssetUpdateState = string;
|
|
136
|
+
/** Alias for AssetUpdateTransfers */
|
|
137
|
+
export type AssetUpdateTransfers = string;
|
|
138
|
+
/** Alias for DataConnectionContent */
|
|
139
|
+
export type DataConnectionContent = string;
|
|
140
|
+
/** Alias for DataConnectionFrequency */
|
|
141
|
+
export type DataConnectionFrequency = string;
|
|
142
|
+
/** Alias for DiscoSourceKind */
|
|
143
|
+
export type DiscoSourceKind = string;
|
|
130
144
|
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAGA,8CAA8C;AAC9C,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,KAAK,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAGA,8CAA8C;AAC9C,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,4EAA4E;IAC5E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC;;;;OAIG;IACH,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC;AAED,MAAM,WAAW,8BAA+B,SAAQ,wBAAwB;IAC9E,qCAAqC;IACrC,IAAI,EAAE,cAAc,CAAC;IACrB,iBAAiB;IACjB,UAAU,EAAE,oCAAoC,CAAC;CAClD;AAED,MAAM,WAAW,mCAAoC,SAAQ,wBAAwB;IACnF,qCAAqC;IACrC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,iBAAiB;IACjB,UAAU,EAAE,yCAAyC,CAAC;CACvD;AAED,2CAA2C;AAC3C,MAAM,WAAW,oCAAqC,SAAQ,wBAAwB;IACpF,4BAA4B;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,+BAA+B;AAC/B,MAAM,WAAW,wBAAwB;CAAG;AAE5C,gDAAgD;AAChD,MAAM,WAAW,yCAA0C,SAAQ,wBAAwB;IACzF,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4CAA4C;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAA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AAE,CAAC;IAC5B,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,6HAA6H;IAC7H,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gIAAgI;IAChI,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,oDAAoD;AACpD,MAAM,WAAW,eAAe;IAC9B,oFAAoF;IACpF,MAAM,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,kBAAkB,GAC1B,wBAAwB,GACxB,8BAA8B,GAC9B,mCAAmC,CAAC;AACxC,iCAAiC;AACjC,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC;AACtC,qCAAqC;AACrC,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAC1C,sCAAsC;AACtC,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC;AAC3C,wCAAwC;AACxC,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAC7C,gCAAgC;AAChC,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** A request body used to update an asset. */\nexport interface AssetUpdateData {\n /**\n * The state to update the asset to.\n *\n * Possible values: candidate, confirmed, dismissed, candidateInvestigate, associatedPartner, associatedThirdparty\n */\n state?:
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** A request body used to update an asset. */\nexport interface AssetUpdateData {\n /**\n * The state to update the asset to.\n *\n * Possible values: \"candidate\", \"confirmed\", \"dismissed\", \"candidateInvestigate\", \"associatedPartner\", \"associatedThirdparty\"\n */\n state?: AssetUpdateState;\n /** A string which can be used to identify the asset in external systems. */\n externalId?: string;\n /** Any Labels to update the asset with. */\n labels?: Record<string, boolean>;\n /**\n * A list of asset types to cascade the updates to.\n *\n * Possible values: \"as\", \"contact\", \"domain\", \"host\", \"ipAddress\", \"ipBlock\", \"page\", \"sslCert\"\n */\n transfers?: AssetUpdateTransfers;\n}\n\nexport interface LogAnalyticsDataConnectionData extends DataConnectionDataParent {\n /** The kind of DataConnectionData */\n kind: \"logAnalytics\";\n /** properties */\n properties: LogAnalyticsDataConnectionProperties;\n}\n\nexport interface AzureDataExplorerDataConnectionData extends DataConnectionDataParent {\n /** The kind of DataConnectionData */\n kind: \"azureDataExplorer\";\n /** properties */\n properties: AzureDataExplorerDataConnectionProperties;\n}\n\n/** LogAnalyticsDataConnectionProperties */\nexport interface LogAnalyticsDataConnectionProperties extends DataConnectionProperties {\n /** log analytics api key */\n apiKey?: string;\n /** log analytics workspace id */\n workspaceId?: string;\n}\n\n/** DataConnectionProperties */\nexport interface DataConnectionProperties {}\n\n/** AzureDataExplorerDataConnectionProperties */\nexport interface AzureDataExplorerDataConnectionProperties extends DataConnectionProperties {\n /** The azure data explorer cluster name */\n clusterName?: string;\n /** The azure data explorer region */\n region?: string;\n /** The azure data explorer database name */\n databaseName?: string;\n}\n\nexport interface DataConnectionDataParent {\n /** The name of data connection */\n name?: string;\n /**\n * The type of data the data connection will transfer.\n *\n * Possible values: \"assets\", \"attackSurfaceInsights\"\n */\n content?: DataConnectionContent;\n /**\n * The rate at which the data connection will receive updates.\n *\n * Possible values: \"daily\", \"weekly\", \"monthly\"\n */\n frequency?: DataConnectionFrequency;\n /** The day to update the data connection on. (1-7 for weekly, 1-31 for monthly) */\n frequencyOffset?: number;\n kind: string;\n}\n\n/** Source entity used to drive discovery. */\nexport interface DiscoSource {\n /**\n * The kind of disco source.\n *\n * Possible values: \"as\", \"attribute\", \"contact\", \"domain\", \"host\", \"ipBlock\"\n */\n kind?: DiscoSourceKind;\n /** The name for the disco source. */\n name?: string;\n}\n\n/** A request body used to create a discovery group. */\nexport interface DiscoGroupData {\n /** The name for a disco group. */\n name?: string;\n /** The description for a disco group. */\n description?: string;\n /** The tier for the disco group which will affect the algorithm used for the disco runs in this group. */\n tier?: string;\n /** The frequency at which the disco group is supposed to be rerun in milliseconds. */\n frequencyMilliseconds?: number;\n /** The list of seeds used for the disco group runs. */\n seeds?: Array<DiscoSource>;\n /** The list of names used for the disco group runs. */\n names?: string[];\n /** The list of excludes used for the disco group runs, aka assets to exclude from the discovery algorithm. */\n excludes?: Array<DiscoSource>;\n /** The unique identifier for the disco template used for the disco group creation. */\n templateId?: string;\n}\n\n/** A request body used to retrieve an asset report snapshot. */\nexport interface ReportAssetSnapshotRequest {\n /** The metric to retrieve a snapshot for. */\n metric?: string;\n /** The name of the label to retrieve a snapshot for. */\n labelName?: string;\n /** The number of assets per page. */\n size?: number;\n /** The page to retrieve. */\n page?: number;\n}\n\n/** A request body used to retrieve summary asset information. One and only one collection of summary identifiers must be provided: filters, metrics, or metricCategories. */\nexport interface ReportAssetSummaryRequest {\n /** Categories to retrieve risk reporting data for. */\n metricCategories?: string[];\n /** Metrics to retrieve risk reporting data for. */\n metrics?: string[];\n /** Query filters to apply to the asset summary. */\n filters?: string[];\n /** A parameter to group the assets by (first level facet field), only used when the chosen summary identifier is filters. */\n groupBy?: string;\n /** A parameter to segment the assets by (second level facet field), only used when the chosen summary identifier is filters. */\n segmentBy?: string;\n /** Currently unused. */\n labelName?: string;\n}\n\n/** A request body used to create a saved filter. */\nexport interface SavedFilterData {\n /** An expression on the resource type that selects the resources to be returned. */\n filter: string;\n /** A human readable description of the saved filter. */\n description: string;\n}\n\nexport type DataConnectionData =\n | DataConnectionDataParent\n | LogAnalyticsDataConnectionData\n | AzureDataExplorerDataConnectionData;\n/** Alias for AssetUpdateState */\nexport type AssetUpdateState = string;\n/** Alias for AssetUpdateTransfers */\nexport type AssetUpdateTransfers = string;\n/** Alias for DataConnectionContent */\nexport type DataConnectionContent = string;\n/** Alias for DataConnectionFrequency */\nexport type DataConnectionFrequency = string;\n/** Alias for DiscoSourceKind */\nexport type DiscoSourceKind = string;\n"]}
|