From 9cee4779fa51ab266c9f82c34a9fbb7d38124838 Mon Sep 17 00:00:00 2001
From: colawwj <70128817+colawwj@users.noreply.github.com>
Date: Thu, 14 Oct 2021 17:22:11 +0800
Subject: [PATCH] operationalinsights-track2 (#18172)
---
common/config/rush/pnpm-lock.yaml | 26 +
rush.json | 5 +
.../arm-operationalinsights/CHANGELOG.md | 14 +
.../{LICENSE.txt => LICENSE} | 2 +-
.../arm-operationalinsights/README.md | 138 +-
.../arm-operationalinsights/_meta.json | 7 +
.../api-extractor.json | 18 +
.../arm-operationalinsights/package.json | 94 +-
.../review/arm-operationalinsights.api.md | 1349 +++++++
.../arm-operationalinsights/rollup.config.js | 211 +-
.../arm-operationalinsights/src/index.ts | 13 +
.../arm-operationalinsights/src/lroImpl.ts | 34 +
.../models/availableServiceTiersMappers.ts | 12 -
.../src/models/clustersMappers.ts | 39 -
.../src/models/dataExportsMappers.ts | 39 -
.../src/models/dataSourcesMappers.ts | 37 -
.../src/models/deletedWorkspacesMappers.ts | 39 -
.../src/models/gatewaysMappers.ts | 11 -
.../src/models/index.ts | 3574 ++++++-----------
.../src/models/intelligencePacksMappers.ts | 12 -
.../src/models/linkedServicesMappers.ts | 37 -
.../models/linkedStorageAccountsMappers.ts | 37 -
.../src/models/managementGroupsMappers.ts | 13 -
.../src/models/mappers.ts | 2176 +++++-----
.../src/models/operationStatusesMappers.ts | 15 -
.../src/models/operationsMappers.ts | 14 -
.../src/models/parameters.ts | 342 +-
.../src/models/savedSearchesMappers.ts | 37 -
.../src/models/schemaMappers.ts | 17 -
.../src/models/sharedKeysOperationsMappers.ts | 12 -
.../models/storageInsightConfigsMappers.ts | 37 -
.../src/models/tablesMappers.ts | 39 -
.../src/models/usagesMappers.ts | 14 -
.../src/models/workspacePurgeMappers.ts | 16 -
.../src/models/workspacesMappers.ts | 39 -
.../operationalInsightsManagementClient.ts | 155 +-
...rationalInsightsManagementClientContext.ts | 79 +-
.../src/operations/availableServiceTiers.ts | 91 +-
.../src/operations/clusters.ts | 742 ++--
.../src/operations/dataExports.ts | 335 +-
.../src/operations/dataSources.ts | 459 +--
.../src/operations/deletedWorkspaces.ts | 190 +-
.../src/operations/gateways.ts | 78 +-
.../src/operations/index.ts | 12 +-
.../src/operations/intelligencePacks.ts | 217 +-
.../src/operations/linkedServices.ts | 513 ++-
.../src/operations/linkedStorageAccounts.ts | 377 +-
.../src/operations/managementGroups.ts | 128 +-
.../src/operations/operationStatuses.ts | 85 +-
.../src/operations/operations.ts | 156 +-
.../src/operations/savedSearches.ts | 288 +-
.../src/operations/schema.ts | 82 +-
.../src/operations/sharedKeysOperations.ts | 148 +-
.../src/operations/storageInsightConfigs.ts | 424 +-
.../src/operations/tables.ts | 221 -
.../src/operations/usages.ts | 128 +-
.../src/operations/workspacePurge.ts | 184 +-
.../src/operations/workspaces.ts | 619 +--
.../availableServiceTiers.ts | 27 +
.../src/operationsInterfaces/clusters.ts | 121 +
.../src/operationsInterfaces/dataExports.ts | 75 +
.../src/operationsInterfaces/dataSources.ts | 77 +
.../operationsInterfaces/deletedWorkspaces.ts | 35 +
.../src/operationsInterfaces/gateways.ts | 26 +
.../src/operationsInterfaces/index.ts | 27 +
.../operationsInterfaces/intelligencePacks.ts | 56 +
.../operationsInterfaces/linkedServices.ts | 115 +
.../linkedStorageAccounts.ts | 80 +
.../operationsInterfaces/managementGroups.ts | 26 +
.../operationsInterfaces/operationStatuses.ts | 27 +
.../src/operationsInterfaces/operations.ts | 22 +
.../src/operationsInterfaces/savedSearches.ts | 74 +
.../src/operationsInterfaces/schema.ts | 24 +
.../sharedKeysOperations.ts | 41 +
.../storageInsightConfigs.ts | 75 +
.../src/operationsInterfaces/usages.ts | 26 +
.../operationsInterfaces/workspacePurge.ts | 52 +
.../src/operationsInterfaces/workspaces.ts | 125 +
.../test/sampleTest.ts | 48 +
.../arm-operationalinsights/tsconfig.json | 6 +-
sdk/operationalinsights/ci.yml | 29 +
81 files changed, 8469 insertions(+), 6975 deletions(-)
create mode 100644 sdk/operationalinsights/arm-operationalinsights/CHANGELOG.md
rename sdk/operationalinsights/arm-operationalinsights/{LICENSE.txt => LICENSE} (99%)
create mode 100644 sdk/operationalinsights/arm-operationalinsights/_meta.json
create mode 100644 sdk/operationalinsights/arm-operationalinsights/api-extractor.json
create mode 100644 sdk/operationalinsights/arm-operationalinsights/review/arm-operationalinsights.api.md
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/index.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/lroImpl.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/availableServiceTiersMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/clustersMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/dataExportsMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/dataSourcesMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/deletedWorkspacesMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/gatewaysMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/intelligencePacksMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/linkedServicesMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/linkedStorageAccountsMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/managementGroupsMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/operationStatusesMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/operationsMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/savedSearchesMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/schemaMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/sharedKeysOperationsMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/storageInsightConfigsMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/tablesMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/usagesMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/workspacePurgeMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/models/workspacesMappers.ts
delete mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operations/tables.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/availableServiceTiers.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/clusters.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/dataExports.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/dataSources.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/deletedWorkspaces.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/gateways.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/index.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/intelligencePacks.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/linkedServices.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/linkedStorageAccounts.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/managementGroups.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/operationStatuses.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/operations.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/savedSearches.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/schema.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/sharedKeysOperations.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/storageInsightConfigs.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/usages.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/workspacePurge.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/workspaces.ts
create mode 100644 sdk/operationalinsights/arm-operationalinsights/test/sampleTest.ts
create mode 100644 sdk/operationalinsights/ci.yml
diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml
index a0663ded4e6a..2c4e65da292b 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -22,6 +22,7 @@ specifiers:
'@rush-temp/arm-locks': file:./projects/arm-locks.tgz
'@rush-temp/arm-managedapplications': file:./projects/arm-managedapplications.tgz
'@rush-temp/arm-network': file:./projects/arm-network.tgz
+ '@rush-temp/arm-operationalinsights': file:./projects/arm-operationalinsights.tgz
'@rush-temp/arm-policy': file:./projects/arm-policy.tgz
'@rush-temp/arm-purview': file:./projects/arm-purview.tgz
'@rush-temp/arm-quota': file:./projects/arm-quota.tgz
@@ -155,6 +156,7 @@ dependencies:
'@rush-temp/arm-locks': file:projects/arm-locks.tgz
'@rush-temp/arm-managedapplications': file:projects/arm-managedapplications.tgz
'@rush-temp/arm-network': file:projects/arm-network.tgz
+ '@rush-temp/arm-operationalinsights': file:projects/arm-operationalinsights.tgz
'@rush-temp/arm-policy': file:projects/arm-policy.tgz
'@rush-temp/arm-purview': file:projects/arm-purview.tgz
'@rush-temp/arm-quota': file:projects/arm-quota.tgz
@@ -8811,6 +8813,30 @@ packages:
uglify-js: 3.14.2
dev: false
+ file:projects/arm-operationalinsights.tgz:
+ resolution: {integrity: sha512-d3Xg2pFxgav2I9VnkgVNvUsCURAWxK8w4J4drE2KS/tSNoW+TIDeHi24NBbYi+D3BuDJYta9oQOtBpdj9sO4+Q==, tarball: file:projects/arm-operationalinsights.tgz}
+ name: '@rush-temp/arm-operationalinsights'
+ version: 0.0.0
+ dependencies:
+ '@azure/identity': 2.0.0-beta.6
+ '@microsoft/api-extractor': 7.7.11
+ '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
+ '@rollup/plugin-json': 4.1.0_rollup@1.32.1
+ '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
+ '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
+ cross-env: 7.0.3
+ mkdirp: 1.0.4
+ mocha: 7.2.0
+ rollup: 1.32.1
+ rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
+ tslib: 2.3.1
+ typescript: 4.2.4
+ uglify-js: 3.14.2
+ transitivePeerDependencies:
+ - debug
+ - supports-color
+ dev: false
+
file:projects/arm-policy.tgz:
resolution: {integrity: sha512-lKzDSKhoHFS6qttMoOn8BYpXGwvkgnZHQlgA52pgsAVYdAnlp/CwOxtmq/pysPuRoeg/9/2LGX0zT3XCl1JOsg==, tarball: file:projects/arm-policy.tgz}
name: '@rush-temp/arm-policy'
diff --git a/rush.json b/rush.json
index 195ad0b87c74..3329c0d8e9aa 100644
--- a/rush.json
+++ b/rush.json
@@ -975,6 +975,11 @@
"packageName": "@azure/arm-security",
"projectFolder": "sdk/security/arm-security",
"versionPolicyName": "management"
+ },
+ {
+ "packageName": "@azure/arm-operationalinsights",
+ "projectFolder": "sdk/operationalinsights/arm-operationalinsights",
+ "versionPolicyName": "management"
}
]
}
\ No newline at end of file
diff --git a/sdk/operationalinsights/arm-operationalinsights/CHANGELOG.md b/sdk/operationalinsights/arm-operationalinsights/CHANGELOG.md
new file mode 100644
index 000000000000..916a3b0e91bd
--- /dev/null
+++ b/sdk/operationalinsights/arm-operationalinsights/CHANGELOG.md
@@ -0,0 +1,14 @@
+## 8.0.0-beta.1 (2021-10-14)
+
+This is the first preview for the new version of the `@azure/arm-operationalinsights` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
+
+While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/).
+
+Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies.
+
+**Noteworthy changes and features**
+- Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice.
+- Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
+- List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page.
+- Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`.
+- The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6.
diff --git a/sdk/operationalinsights/arm-operationalinsights/LICENSE.txt b/sdk/operationalinsights/arm-operationalinsights/LICENSE
similarity index 99%
rename from sdk/operationalinsights/arm-operationalinsights/LICENSE.txt
rename to sdk/operationalinsights/arm-operationalinsights/LICENSE
index 2d3163745319..ccb63b166732 100644
--- a/sdk/operationalinsights/arm-operationalinsights/LICENSE.txt
+++ b/sdk/operationalinsights/arm-operationalinsights/LICENSE
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+SOFTWARE.
\ No newline at end of file
diff --git a/sdk/operationalinsights/arm-operationalinsights/README.md b/sdk/operationalinsights/arm-operationalinsights/README.md
index d628b485e24c..944d59885e1e 100644
--- a/sdk/operationalinsights/arm-operationalinsights/README.md
+++ b/sdk/operationalinsights/arm-operationalinsights/README.md
@@ -1,102 +1,94 @@
-## Azure OperationalInsightsManagementClient SDK for JavaScript
+# Azure OperationalInsightsManagement client library for JavaScript
-This package contains an isomorphic SDK for OperationalInsightsManagementClient.
+This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure OperationalInsightsManagement client.
+
+Operational Insights Client
+
+[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/operationalinsights/arm-operationalinsights) |
+[Package (NPM)](https://www.npmjs.com/package/@azure/arm-operationalinsights) |
+[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-operationalinsights) |
+[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
+
+## Getting started
### Currently supported environments
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
-- Latest versions of Safari, Chrome, Edge, and Firefox.
+- Latest versions of Safari, Chrome, Edge and Firefox.
+
+### Prerequisites
+
+- An [Azure subscription][azure_sub].
-### How to Install
+### Install the `@azure/arm-operationalinsights` package
+
+Install the Azure OperationalInsightsManagement client library for JavaScript with `npm`:
```bash
npm install @azure/arm-operationalinsights
```
-### How to use
+### Create and authenticate a `OperationalInsightsManagementClient`
+
+To create a client object to access the Azure OperationalInsightsManagement API, you will need the `endpoint` of your Azure OperationalInsightsManagement resource and a `credential`. The Azure OperationalInsightsManagement client can use Azure Active Directory credentials to authenticate.
+You can find the endpoint for your Azure OperationalInsightsManagement resource in the [Azure Portal][azure_portal].
-#### nodejs - client creation and listByWorkspace dataExports as an example written in TypeScript.
+You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
-##### Install @azure/ms-rest-nodeauth
+To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
-- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
```bash
-npm install @azure/ms-rest-nodeauth@"^3.0.0"
+npm install @azure/identity
```
-##### Sample code
+You will also need to **register a new AAD application and grant access to Azure OperationalInsightsManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
+Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
+
+For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
-While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
-```typescript
-const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
+```javascript
const { OperationalInsightsManagementClient } = require("@azure/arm-operationalinsights");
-const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
-
-msRestNodeAuth.interactiveLogin().then((creds) => {
- const client = new OperationalInsightsManagementClient(creds, subscriptionId);
- const resourceGroupName = "testresourceGroupName";
- const workspaceName = "testworkspaceName";
- client.dataExports.listByWorkspace(resourceGroupName, workspaceName).then((result) => {
- console.log("The result is:");
- console.log(result);
- });
-}).catch((err) => {
- console.error(err);
-});
+const { DefaultAzureCredential } = require("@azure/identity");
+const subscriptionId = "00000000-0000-0000-0000-000000000000";
+const client = new OperationalInsightsManagementClient(new DefaultAzureCredential(), subscriptionId);
```
-#### browser - Authentication, client creation and listByWorkspace dataExports as an example written in JavaScript.
+## Key concepts
-##### Install @azure/ms-rest-browserauth
+### OperationalInsightsManagementClient
-```bash
-npm install @azure/ms-rest-browserauth
-```
+`OperationalInsightsManagementClient` is the primary interface for developers using the Azure OperationalInsightsManagement client library. Explore the methods on this client object to understand the different features of the Azure OperationalInsightsManagement service that you can access.
-##### Sample code
-
-See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
-
-- index.html
-```html
-
-
-
- @azure/arm-operationalinsights sample
-
-
-
-
-
-
-
-
+## Troubleshooting
+
+### Logging
+
+Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
+
+```javascript
+const { setLogLevel } = require("@azure/logger");
+setLogLevel("info");
```
+For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
+
+## Next steps
+
+Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
+
+## Contributing
+
+If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
+
## Related projects
-- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
+- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
+
+![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Foperationalinsights%2Farm-operationalinsights%2FREADME.png)
-![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/operationalinsights/arm-operationalinsights/README.png)
+[azure_cli]: https://docs.microsoft.com/cli/azure
+[azure_sub]: https://azure.microsoft.com/free/
+[azure_sub]: https://azure.microsoft.com/free/
+[azure_portal]: https://portal.azure.com
+[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
+[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
diff --git a/sdk/operationalinsights/arm-operationalinsights/_meta.json b/sdk/operationalinsights/arm-operationalinsights/_meta.json
new file mode 100644
index 000000000000..10da45c7e8c8
--- /dev/null
+++ b/sdk/operationalinsights/arm-operationalinsights/_meta.json
@@ -0,0 +1,7 @@
+{
+ "commit": "314f28163917b9cfc527f7776b5e4a1dea69d295",
+ "readme": "specification/operationalinsights/resource-manager/readme.md",
+ "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md --use=@autorest/typescript@6.0.0-beta.13",
+ "repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
+ "use": "@autorest/typescript@6.0.0-beta.13"
+}
\ No newline at end of file
diff --git a/sdk/operationalinsights/arm-operationalinsights/api-extractor.json b/sdk/operationalinsights/arm-operationalinsights/api-extractor.json
new file mode 100644
index 000000000000..22d2bd212360
--- /dev/null
+++ b/sdk/operationalinsights/arm-operationalinsights/api-extractor.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
+ "mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
+ "docModel": { "enabled": true },
+ "apiReport": { "enabled": true, "reportFolder": "./review" },
+ "dtsRollup": {
+ "enabled": true,
+ "untrimmedFilePath": "",
+ "publicTrimmedFilePath": "./types/arm-operationalinsights.d.ts"
+ },
+ "messages": {
+ "tsdocMessageReporting": { "default": { "logLevel": "none" } },
+ "extractorMessageReporting": {
+ "ae-missing-release-tag": { "logLevel": "none" },
+ "ae-unresolved-link": { "logLevel": "none" }
+ }
+ }
+}
diff --git a/sdk/operationalinsights/arm-operationalinsights/package.json b/sdk/operationalinsights/arm-operationalinsights/package.json
index c1c039dcd080..841314c4a307 100644
--- a/sdk/operationalinsights/arm-operationalinsights/package.json
+++ b/sdk/operationalinsights/arm-operationalinsights/package.json
@@ -1,57 +1,91 @@
{
"name": "@azure/arm-operationalinsights",
+ "sdk-type": "mgmt",
"author": "Microsoft Corporation",
- "description": "OperationalInsightsManagementClient Library with typescript type definitions for node.js and browser.",
- "version": "7.0.0",
+ "description": "A generated SDK for OperationalInsightsManagementClient.",
+ "version": "8.0.0-beta.1",
+ "engines": { "node": ">=12.0.0" },
"dependencies": {
- "@azure/ms-rest-azure-js": "^2.0.1",
- "@azure/ms-rest-js": "^2.0.4",
- "tslib": "^1.10.0"
+ "@azure/core-lro": "^2.2.0",
+ "@azure/abort-controller": "^1.0.0",
+ "@azure/core-paging": "^1.1.1",
+ "@azure/core-client": "^1.0.0",
+ "@azure/core-auth": "^1.3.0",
+ "@azure/core-rest-pipeline": "^1.1.0",
+ "tslib": "^2.2.0"
},
- "keywords": [
- "node",
- "azure",
- "typescript",
- "browser",
- "isomorphic"
- ],
+ "keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"license": "MIT",
- "main": "./dist/arm-operationalinsights.js",
- "module": "./esm/operationalInsightsManagementClient.js",
- "types": "./esm/operationalInsightsManagementClient.d.ts",
+ "main": "./dist/index.js",
+ "module": "./dist-esm/src/index.js",
+ "types": "./types/arm-operationalinsights.d.ts",
"devDependencies": {
- "typescript": "^3.5.3",
- "rollup": "^1.18.0",
- "rollup-plugin-node-resolve": "^5.2.0",
+ "@microsoft/api-extractor": "7.7.11",
+ "@rollup/plugin-commonjs": "11.0.2",
+ "@rollup/plugin-json": "^4.0.0",
+ "@rollup/plugin-multi-entry": "^3.0.0",
+ "@rollup/plugin-node-resolve": "^8.0.0",
+ "mkdirp": "^1.0.4",
+ "rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
- "uglify-js": "^3.6.0"
+ "typescript": "~4.2.0",
+ "uglify-js": "^3.4.9",
+ "@azure/identity": "2.0.0-beta.6",
+ "@azure-tools/test-recorder": "^1.0.0",
+ "mocha": "^7.1.1",
+ "cross-env": "^7.0.2"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/operationalinsights/arm-operationalinsights",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
- "bugs": {
- "url": "https://github.com/Azure/azure-sdk-for-js/issues"
- },
+ "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts",
"dist/**/*.d.ts.map",
- "esm/**/*.js",
- "esm/**/*.js.map",
- "esm/**/*.d.ts",
- "esm/**/*.d.ts.map",
+ "dist-esm/**/*.js",
+ "dist-esm/**/*.js.map",
+ "dist-esm/**/*.d.ts",
+ "dist-esm/**/*.d.ts.map",
"src/**/*.ts",
"README.md",
+ "LICENSE",
"rollup.config.js",
- "tsconfig.json"
+ "tsconfig.json",
+ "review/*",
+ "CHANGELOG.md",
+ "types/*"
],
"scripts": {
- "build": "tsc && rollup -c rollup.config.js && npm run minify",
- "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-operationalinsights.js.map'\" -o ./dist/arm-operationalinsights.min.js ./dist/arm-operationalinsights.js",
- "prepack": "npm install && npm run build"
+ "build": "tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
+ "prepack": "npm run build",
+ "pack": "npm pack 2>&1",
+ "extract-api": "api-extractor run --local",
+ "lint": "echo skipped",
+ "audit": "echo skipped",
+ "clean": "echo skipped",
+ "build:node": "echo skipped",
+ "build:browser": "echo skipped",
+ "build:test": "echo skipped",
+ "build:samples": "echo skipped.",
+ "check-format": "echo skipped",
+ "execute:samples": "echo skipped",
+ "format": "echo skipped",
+ "test": "npm run integration-test",
+ "prebuild": "echo skipped",
+ "test:node": "echo skipped",
+ "test:browser": "echo skipped",
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
+ "unit-test:browser": "echo skipped",
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
+ "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts",
+ "integration-test:browser": "echo skipped",
+ "docs": "echo skipped"
},
"sideEffects": false,
"autoPublish": true
diff --git a/sdk/operationalinsights/arm-operationalinsights/review/arm-operationalinsights.api.md b/sdk/operationalinsights/arm-operationalinsights/review/arm-operationalinsights.api.md
new file mode 100644
index 000000000000..ab290b7d25b2
--- /dev/null
+++ b/sdk/operationalinsights/arm-operationalinsights/review/arm-operationalinsights.api.md
@@ -0,0 +1,1349 @@
+## API Report File for "@azure/arm-operationalinsights"
+
+> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
+
+```ts
+
+import * as coreAuth from '@azure/core-auth';
+import * as coreClient from '@azure/core-client';
+import { PagedAsyncIterableIterator } from '@azure/core-paging';
+import { PollerLike } from '@azure/core-lro';
+import { PollOperationState } from '@azure/core-lro';
+
+// @public
+export interface AssociatedWorkspace {
+ readonly associateDate?: string;
+ readonly resourceId?: string;
+ readonly workspaceId?: string;
+ readonly workspaceName?: string;
+}
+
+// @public
+export interface AvailableServiceTier {
+ readonly capacityReservationLevel?: number;
+ readonly defaultRetention?: number;
+ readonly enabled?: boolean;
+ readonly lastSkuUpdate?: string;
+ readonly maximumRetention?: number;
+ readonly minimumRetention?: number;
+ readonly serviceTier?: SkuNameEnum;
+}
+
+// @public
+export interface AvailableServiceTiers {
+ listByWorkspace(resourceGroupName: string, workspaceName: string, options?: AvailableServiceTiersListByWorkspaceOptionalParams): Promise;
+}
+
+// @public
+export interface AvailableServiceTiersListByWorkspaceOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AvailableServiceTiersListByWorkspaceResponse = AvailableServiceTier[];
+
+// @public
+export type AzureEntityResource = Resource & {
+ readonly etag?: string;
+};
+
+// @public
+export type BillingType = string;
+
+// @public
+export type Capacity = 500 | 1000 | 2000 | 5000;
+
+// @public
+export type CapacityReservationLevel = 100 | 200 | 300 | 400 | 500 | 1000 | 2000 | 5000;
+
+// @public
+export interface CapacityReservationProperties {
+ readonly lastSkuUpdate?: string;
+ readonly minCapacity?: number;
+}
+
+// @public
+export type Cluster = TrackedResource & {
+ identity?: Identity;
+ sku?: ClusterSku;
+ readonly clusterId?: string;
+ readonly provisioningState?: ClusterEntityStatus;
+ isDoubleEncryptionEnabled?: boolean;
+ isAvailabilityZonesEnabled?: boolean;
+ billingType?: BillingType;
+ keyVaultProperties?: KeyVaultProperties;
+ readonly lastModifiedDate?: string;
+ readonly createdDate?: string;
+ associatedWorkspaces?: AssociatedWorkspace[];
+ capacityReservationProperties?: CapacityReservationProperties;
+};
+
+// @public
+export type ClusterEntityStatus = string;
+
+// @public
+export interface ClusterListResult {
+ nextLink?: string;
+ value?: Cluster[];
+}
+
+// @public
+export interface ClusterPatch {
+ billingType?: BillingType;
+ identity?: Identity;
+ keyVaultProperties?: KeyVaultProperties;
+ sku?: ClusterSku;
+ tags?: {
+ [propertyName: string]: string;
+ };
+}
+
+// @public
+export interface Clusters {
+ beginCreateOrUpdate(resourceGroupName: string, clusterName: string, parameters: Cluster, options?: ClustersCreateOrUpdateOptionalParams): Promise, ClustersCreateOrUpdateResponse>>;
+ beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, parameters: Cluster, options?: ClustersCreateOrUpdateOptionalParams): Promise;
+ beginDelete(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise, void>>;
+ beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, clusterName: string, options?: ClustersGetOptionalParams): Promise;
+ list(options?: ClustersListOptionalParams): PagedAsyncIterableIterator;
+ listByResourceGroup(resourceGroupName: string, options?: ClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator;
+ update(resourceGroupName: string, clusterName: string, parameters: ClusterPatch, options?: ClustersUpdateOptionalParams): Promise;
+}
+
+// @public
+export interface ClustersCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type ClustersCreateOrUpdateResponse = Cluster;
+
+// @public
+export interface ClustersDeleteOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface ClustersGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ClustersGetResponse = Cluster;
+
+// @public
+export interface ClusterSku {
+ capacity?: Capacity;
+ name?: ClusterSkuNameEnum;
+}
+
+// @public
+export type ClusterSkuNameEnum = string;
+
+// @public
+export interface ClustersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ClustersListByResourceGroupNextResponse = ClusterListResult;
+
+// @public
+export interface ClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ClustersListByResourceGroupResponse = ClusterListResult;
+
+// @public
+export interface ClustersListNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ClustersListNextResponse = ClusterListResult;
+
+// @public
+export interface ClustersListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ClustersListResponse = ClusterListResult;
+
+// @public
+export interface ClustersUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ClustersUpdateResponse = Cluster;
+
+// @public
+export interface CoreSummary {
+ numberOfDocuments: number;
+ status?: string;
+}
+
+// @public
+export type DataExport = ProxyResource & {
+ dataExportId?: string;
+ tableNames?: string[];
+ enable?: boolean;
+ createdDate?: string;
+ lastModifiedDate?: string;
+ resourceId?: string;
+ readonly typePropertiesDestinationType?: Type;
+ eventHubName?: string;
+};
+
+// @public
+export interface DataExportListResult {
+ value?: DataExport[];
+}
+
+// @public
+export interface DataExports {
+ createOrUpdate(resourceGroupName: string, workspaceName: string, dataExportName: string, parameters: DataExport, options?: DataExportsCreateOrUpdateOptionalParams): Promise;
+ delete(resourceGroupName: string, workspaceName: string, dataExportName: string, options?: DataExportsDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, workspaceName: string, dataExportName: string, options?: DataExportsGetOptionalParams): Promise;
+ listByWorkspace(resourceGroupName: string, workspaceName: string, options?: DataExportsListByWorkspaceOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface DataExportsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type DataExportsCreateOrUpdateResponse = DataExport;
+
+// @public
+export interface DataExportsDeleteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface DataExportsGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type DataExportsGetResponse = DataExport;
+
+// @public
+export interface DataExportsListByWorkspaceOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type DataExportsListByWorkspaceResponse = DataExportListResult;
+
+// @public
+export type DataIngestionStatus = string;
+
+// @public
+export type DataSource = ProxyResource & {
+ properties: Record;
+ etag?: string;
+ kind: DataSourceKind;
+ tags?: {
+ [propertyName: string]: string;
+ };
+};
+
+// @public
+export interface DataSourceFilter {
+ kind?: DataSourceKind;
+}
+
+// @public
+export type DataSourceKind = string;
+
+// @public
+export interface DataSourceListResult {
+ nextLink?: string;
+ value?: DataSource[];
+}
+
+// @public
+export interface DataSources {
+ createOrUpdate(resourceGroupName: string, workspaceName: string, dataSourceName: string, parameters: DataSource, options?: DataSourcesCreateOrUpdateOptionalParams): Promise;
+ delete(resourceGroupName: string, workspaceName: string, dataSourceName: string, options?: DataSourcesDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, workspaceName: string, dataSourceName: string, options?: DataSourcesGetOptionalParams): Promise;
+ listByWorkspace(resourceGroupName: string, workspaceName: string, filter: string, options?: DataSourcesListByWorkspaceOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface DataSourcesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type DataSourcesCreateOrUpdateResponse = DataSource;
+
+// @public
+export interface DataSourcesDeleteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface DataSourcesGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type DataSourcesGetResponse = DataSource;
+
+// @public
+export interface DataSourcesListByWorkspaceNextOptionalParams extends coreClient.OperationOptions {
+ skiptoken?: string;
+}
+
+// @public
+export type DataSourcesListByWorkspaceNextResponse = DataSourceListResult;
+
+// @public
+export interface DataSourcesListByWorkspaceOptionalParams extends coreClient.OperationOptions {
+ skiptoken?: string;
+}
+
+// @public
+export type DataSourcesListByWorkspaceResponse = DataSourceListResult;
+
+// @public
+export type DataSourceType = "CustomLogs" | "AzureWatson" | "Query" | "Alerts";
+
+// @public
+export interface DeletedWorkspaces {
+ list(options?: DeletedWorkspacesListOptionalParams): PagedAsyncIterableIterator;
+ listByResourceGroup(resourceGroupName: string, options?: DeletedWorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface DeletedWorkspacesListByResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type DeletedWorkspacesListByResourceGroupResponse = WorkspaceListResult;
+
+// @public
+export interface DeletedWorkspacesListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type DeletedWorkspacesListResponse = WorkspaceListResult;
+
+// @public
+export interface ErrorAdditionalInfo {
+ readonly info?: Record;
+ readonly type?: string;
+}
+
+// @public
+export interface ErrorDetail {
+ readonly additionalInfo?: ErrorAdditionalInfo[];
+ readonly code?: string;
+ readonly details?: ErrorDetail[];
+ readonly message?: string;
+ readonly target?: string;
+}
+
+// @public
+export interface ErrorResponse {
+ error?: ErrorDetail;
+}
+
+// @public
+export interface Gateways {
+ delete(resourceGroupName: string, workspaceName: string, gatewayId: string, options?: GatewaysDeleteOptionalParams): Promise;
+}
+
+// @public
+export interface GatewaysDeleteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface Identity {
+ readonly principalId?: string;
+ readonly tenantId?: string;
+ type: IdentityType;
+ userAssignedIdentities?: {
+ [propertyName: string]: UserIdentityProperties;
+ };
+}
+
+// @public
+export type IdentityType = "SystemAssigned" | "UserAssigned" | "None";
+
+// @public
+export interface IntelligencePack {
+ displayName?: string;
+ enabled?: boolean;
+ name?: string;
+}
+
+// @public
+export interface IntelligencePacks {
+ disable(resourceGroupName: string, workspaceName: string, intelligencePackName: string, options?: IntelligencePacksDisableOptionalParams): Promise;
+ enable(resourceGroupName: string, workspaceName: string, intelligencePackName: string, options?: IntelligencePacksEnableOptionalParams): Promise;
+ list(resourceGroupName: string, workspaceName: string, options?: IntelligencePacksListOptionalParams): Promise;
+}
+
+// @public
+export interface IntelligencePacksDisableOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface IntelligencePacksEnableOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface IntelligencePacksListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type IntelligencePacksListResponse = IntelligencePack[];
+
+// @public
+export interface KeyVaultProperties {
+ keyName?: string;
+ keyRsaSize?: number;
+ keyVaultUri?: string;
+ keyVersion?: string;
+}
+
+// @public
+export enum KnownBillingType {
+ // (undocumented)
+ Cluster = "Cluster",
+ // (undocumented)
+ Workspaces = "Workspaces"
+}
+
+// @public
+export enum KnownClusterEntityStatus {
+ // (undocumented)
+ Canceled = "Canceled",
+ // (undocumented)
+ Creating = "Creating",
+ // (undocumented)
+ Deleting = "Deleting",
+ // (undocumented)
+ Failed = "Failed",
+ // (undocumented)
+ ProvisioningAccount = "ProvisioningAccount",
+ // (undocumented)
+ Succeeded = "Succeeded",
+ // (undocumented)
+ Updating = "Updating"
+}
+
+// @public
+export enum KnownClusterSkuNameEnum {
+ // (undocumented)
+ CapacityReservation = "CapacityReservation"
+}
+
+// @public
+export enum KnownDataIngestionStatus {
+ ApproachingQuota = "ApproachingQuota",
+ ForceOff = "ForceOff",
+ ForceOn = "ForceOn",
+ OverQuota = "OverQuota",
+ RespectQuota = "RespectQuota",
+ SubscriptionSuspended = "SubscriptionSuspended"
+}
+
+// @public
+export enum KnownDataSourceKind {
+ // (undocumented)
+ ApplicationInsights = "ApplicationInsights",
+ // (undocumented)
+ AzureActivityLog = "AzureActivityLog",
+ // (undocumented)
+ AzureAuditLog = "AzureAuditLog",
+ // (undocumented)
+ ChangeTrackingContentLocation = "ChangeTrackingContentLocation",
+ // (undocumented)
+ ChangeTrackingCustomPath = "ChangeTrackingCustomPath",
+ // (undocumented)
+ ChangeTrackingDataTypeConfiguration = "ChangeTrackingDataTypeConfiguration",
+ // (undocumented)
+ ChangeTrackingDefaultRegistry = "ChangeTrackingDefaultRegistry",
+ // (undocumented)
+ ChangeTrackingLinuxPath = "ChangeTrackingLinuxPath",
+ // (undocumented)
+ ChangeTrackingPath = "ChangeTrackingPath",
+ // (undocumented)
+ ChangeTrackingRegistry = "ChangeTrackingRegistry",
+ // (undocumented)
+ ChangeTrackingServices = "ChangeTrackingServices",
+ // (undocumented)
+ CustomLog = "CustomLog",
+ // (undocumented)
+ CustomLogCollection = "CustomLogCollection",
+ // (undocumented)
+ DnsAnalytics = "DnsAnalytics",
+ // (undocumented)
+ GenericDataSource = "GenericDataSource",
+ // (undocumented)
+ IISLogs = "IISLogs",
+ // (undocumented)
+ ImportComputerGroup = "ImportComputerGroup",
+ // (undocumented)
+ Itsm = "Itsm",
+ // (undocumented)
+ LinuxChangeTrackingPath = "LinuxChangeTrackingPath",
+ // (undocumented)
+ LinuxPerformanceCollection = "LinuxPerformanceCollection",
+ // (undocumented)
+ LinuxPerformanceObject = "LinuxPerformanceObject",
+ // (undocumented)
+ LinuxSyslog = "LinuxSyslog",
+ // (undocumented)
+ LinuxSyslogCollection = "LinuxSyslogCollection",
+ // (undocumented)
+ NetworkMonitoring = "NetworkMonitoring",
+ // (undocumented)
+ Office365 = "Office365",
+ // (undocumented)
+ SecurityCenterSecurityWindowsBaselineConfiguration = "SecurityCenterSecurityWindowsBaselineConfiguration",
+ // (undocumented)
+ SecurityEventCollectionConfiguration = "SecurityEventCollectionConfiguration",
+ // (undocumented)
+ SecurityInsightsSecurityEventCollectionConfiguration = "SecurityInsightsSecurityEventCollectionConfiguration",
+ // (undocumented)
+ SecurityWindowsBaselineConfiguration = "SecurityWindowsBaselineConfiguration",
+ // (undocumented)
+ SqlDataClassification = "SqlDataClassification",
+ // (undocumented)
+ WindowsEvent = "WindowsEvent",
+ // (undocumented)
+ WindowsPerformanceCounter = "WindowsPerformanceCounter",
+ // (undocumented)
+ WindowsTelemetry = "WindowsTelemetry"
+}
+
+// @public
+export enum KnownLinkedServiceEntityStatus {
+ // (undocumented)
+ Deleting = "Deleting",
+ // (undocumented)
+ ProvisioningAccount = "ProvisioningAccount",
+ // (undocumented)
+ Succeeded = "Succeeded",
+ // (undocumented)
+ Updating = "Updating"
+}
+
+// @public
+export enum KnownPublicNetworkAccessType {
+ Disabled = "Disabled",
+ Enabled = "Enabled"
+}
+
+// @public
+export enum KnownPurgeState {
+ // (undocumented)
+ Completed = "completed",
+ // (undocumented)
+ Pending = "pending"
+}
+
+// @public
+export enum KnownSearchSortEnum {
+ // (undocumented)
+ Asc = "asc",
+ // (undocumented)
+ Desc = "desc"
+}
+
+// @public
+export enum KnownSkuNameEnum {
+ // (undocumented)
+ CapacityReservation = "CapacityReservation",
+ // (undocumented)
+ Free = "Free",
+ // (undocumented)
+ PerGB2018 = "PerGB2018",
+ // (undocumented)
+ PerNode = "PerNode",
+ // (undocumented)
+ Premium = "Premium",
+ // (undocumented)
+ Standalone = "Standalone",
+ // (undocumented)
+ Standard = "Standard"
+}
+
+// @public
+export enum KnownStorageInsightState {
+ // (undocumented)
+ Error = "ERROR",
+ // (undocumented)
+ OK = "OK"
+}
+
+// @public
+export enum KnownType {
+ // (undocumented)
+ EventHub = "EventHub",
+ // (undocumented)
+ StorageAccount = "StorageAccount"
+}
+
+// @public
+export enum KnownWorkspaceEntityStatus {
+ // (undocumented)
+ Canceled = "Canceled",
+ // (undocumented)
+ Creating = "Creating",
+ // (undocumented)
+ Deleting = "Deleting",
+ // (undocumented)
+ Failed = "Failed",
+ // (undocumented)
+ ProvisioningAccount = "ProvisioningAccount",
+ // (undocumented)
+ Succeeded = "Succeeded",
+ // (undocumented)
+ Updating = "Updating"
+}
+
+// @public
+export enum KnownWorkspaceSkuNameEnum {
+ // (undocumented)
+ CapacityReservation = "CapacityReservation",
+ // (undocumented)
+ Free = "Free",
+ // (undocumented)
+ LACluster = "LACluster",
+ // (undocumented)
+ PerGB2018 = "PerGB2018",
+ // (undocumented)
+ PerNode = "PerNode",
+ // (undocumented)
+ Premium = "Premium",
+ // (undocumented)
+ Standalone = "Standalone",
+ // (undocumented)
+ Standard = "Standard"
+}
+
+// @public
+export type LinkedService = ProxyResource & {
+ tags?: {
+ [propertyName: string]: string;
+ };
+ resourceId?: string;
+ writeAccessResourceId?: string;
+ provisioningState?: LinkedServiceEntityStatus;
+};
+
+// @public
+export type LinkedServiceEntityStatus = string;
+
+// @public
+export interface LinkedServiceListResult {
+ value?: LinkedService[];
+}
+
+// @public
+export interface LinkedServices {
+ beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, linkedServiceName: string, parameters: LinkedService, options?: LinkedServicesCreateOrUpdateOptionalParams): Promise, LinkedServicesCreateOrUpdateResponse>>;
+ beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, linkedServiceName: string, parameters: LinkedService, options?: LinkedServicesCreateOrUpdateOptionalParams): Promise;
+ beginDelete(resourceGroupName: string, workspaceName: string, linkedServiceName: string, options?: LinkedServicesDeleteOptionalParams): Promise, LinkedServicesDeleteResponse>>;
+ beginDeleteAndWait(resourceGroupName: string, workspaceName: string, linkedServiceName: string, options?: LinkedServicesDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, workspaceName: string, linkedServiceName: string, options?: LinkedServicesGetOptionalParams): Promise;
+ listByWorkspace(resourceGroupName: string, workspaceName: string, options?: LinkedServicesListByWorkspaceOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface LinkedServicesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type LinkedServicesCreateOrUpdateResponse = LinkedService;
+
+// @public
+export interface LinkedServicesDeleteOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type LinkedServicesDeleteResponse = LinkedService;
+
+// @public
+export interface LinkedServicesGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type LinkedServicesGetResponse = LinkedService;
+
+// @public
+export interface LinkedServicesListByWorkspaceOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type LinkedServicesListByWorkspaceResponse = LinkedServiceListResult;
+
+// @public
+export interface LinkedStorageAccounts {
+ createOrUpdate(resourceGroupName: string, workspaceName: string, dataSourceType: DataSourceType, parameters: LinkedStorageAccountsResource, options?: LinkedStorageAccountsCreateOrUpdateOptionalParams): Promise;
+ delete(resourceGroupName: string, workspaceName: string, dataSourceType: DataSourceType, options?: LinkedStorageAccountsDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, workspaceName: string, dataSourceType: DataSourceType, options?: LinkedStorageAccountsGetOptionalParams): Promise;
+ listByWorkspace(resourceGroupName: string, workspaceName: string, options?: LinkedStorageAccountsListByWorkspaceOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface LinkedStorageAccountsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type LinkedStorageAccountsCreateOrUpdateResponse = LinkedStorageAccountsResource;
+
+// @public
+export interface LinkedStorageAccountsDeleteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface LinkedStorageAccountsGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type LinkedStorageAccountsGetResponse = LinkedStorageAccountsResource;
+
+// @public
+export interface LinkedStorageAccountsListByWorkspaceOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type LinkedStorageAccountsListByWorkspaceResponse = LinkedStorageAccountsListResult;
+
+// @public
+export interface LinkedStorageAccountsListResult {
+ value?: LinkedStorageAccountsResource[];
+}
+
+// @public
+export type LinkedStorageAccountsResource = ProxyResource & {
+ readonly dataSourceType?: DataSourceType;
+ storageAccountIds?: string[];
+};
+
+// @public
+export interface ManagementGroup {
+ created?: Date;
+ dataReceived?: Date;
+ id?: string;
+ isGateway?: boolean;
+ name?: string;
+ serverCount?: number;
+ sku?: string;
+ version?: string;
+}
+
+// @public
+export interface ManagementGroups {
+ list(resourceGroupName: string, workspaceName: string, options?: ManagementGroupsListOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface ManagementGroupsListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ManagementGroupsListResponse = WorkspaceListManagementGroupsResult;
+
+// @public
+export interface MetricName {
+ localizedValue?: string;
+ value?: string;
+}
+
+// @public
+export interface Operation {
+ display?: OperationDisplay;
+ name?: string;
+}
+
+// @public (undocumented)
+export class OperationalInsightsManagementClient extends OperationalInsightsManagementClientContext {
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: OperationalInsightsManagementClientOptionalParams);
+ // (undocumented)
+ availableServiceTiers: AvailableServiceTiers;
+ // (undocumented)
+ clusters: Clusters;
+ // (undocumented)
+ dataExports: DataExports;
+ // (undocumented)
+ dataSources: DataSources;
+ // (undocumented)
+ deletedWorkspaces: DeletedWorkspaces;
+ // (undocumented)
+ gateways: Gateways;
+ // (undocumented)
+ intelligencePacks: IntelligencePacks;
+ // (undocumented)
+ linkedServices: LinkedServices;
+ // (undocumented)
+ linkedStorageAccounts: LinkedStorageAccounts;
+ // (undocumented)
+ managementGroups: ManagementGroups;
+ // (undocumented)
+ operations: Operations;
+ // (undocumented)
+ operationStatuses: OperationStatuses;
+ // (undocumented)
+ savedSearches: SavedSearches;
+ // (undocumented)
+ schema: Schema;
+ // (undocumented)
+ sharedKeysOperations: SharedKeysOperations;
+ // (undocumented)
+ storageInsightConfigs: StorageInsightConfigs;
+ // (undocumented)
+ usages: Usages;
+ // (undocumented)
+ workspacePurge: WorkspacePurge;
+ // (undocumented)
+ workspaces: Workspaces;
+}
+
+// @public (undocumented)
+export class OperationalInsightsManagementClientContext extends coreClient.ServiceClient {
+ // (undocumented)
+ $host: string;
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: OperationalInsightsManagementClientOptionalParams);
+ // (undocumented)
+ subscriptionId: string;
+}
+
+// @public
+export interface OperationalInsightsManagementClientOptionalParams extends coreClient.ServiceClientOptions {
+ $host?: string;
+ endpoint?: string;
+}
+
+// @public
+export interface OperationDisplay {
+ description?: string;
+ operation?: string;
+ provider?: string;
+ resource?: string;
+}
+
+// @public
+export interface OperationListResult {
+ readonly nextLink?: string;
+ value?: Operation[];
+}
+
+// @public
+export interface Operations {
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type OperationsListNextResponse = OperationListResult;
+
+// @public
+export interface OperationsListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type OperationsListResponse = OperationListResult;
+
+// @public
+export interface OperationStatus {
+ endTime?: string;
+ error?: ErrorResponse;
+ id?: string;
+ name?: string;
+ startTime?: string;
+ status?: string;
+}
+
+// @public
+export interface OperationStatuses {
+ get(location: string, asyncOperationId: string, options?: OperationStatusesGetOptionalParams): Promise;
+}
+
+// @public
+export interface OperationStatusesGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type OperationStatusesGetResponse = OperationStatus;
+
+// @public
+export interface PrivateLinkScopedResource {
+ resourceId?: string;
+ scopeId?: string;
+}
+
+// @public
+export type ProxyResource = Resource & {};
+
+// @public
+export type PublicNetworkAccessType = string;
+
+// @public
+export type PurgeState = string;
+
+// @public
+export interface Resource {
+ readonly id?: string;
+ readonly name?: string;
+ readonly type?: string;
+}
+
+// @public
+export type SavedSearch = ProxyResource & {
+ etag?: string;
+ category: string;
+ displayName: string;
+ query: string;
+ functionAlias?: string;
+ functionParameters?: string;
+ version?: number;
+ tags?: Tag[];
+};
+
+// @public
+export interface SavedSearches {
+ createOrUpdate(resourceGroupName: string, workspaceName: string, savedSearchId: string, parameters: SavedSearch, options?: SavedSearchesCreateOrUpdateOptionalParams): Promise;
+ delete(resourceGroupName: string, workspaceName: string, savedSearchId: string, options?: SavedSearchesDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, workspaceName: string, savedSearchId: string, options?: SavedSearchesGetOptionalParams): Promise;
+ listByWorkspace(resourceGroupName: string, workspaceName: string, options?: SavedSearchesListByWorkspaceOptionalParams): Promise;
+}
+
+// @public
+export interface SavedSearchesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type SavedSearchesCreateOrUpdateResponse = SavedSearch;
+
+// @public
+export interface SavedSearchesDeleteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface SavedSearchesGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type SavedSearchesGetResponse = SavedSearch;
+
+// @public
+export interface SavedSearchesListByWorkspaceOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type SavedSearchesListByWorkspaceResponse = SavedSearchesListResult;
+
+// @public
+export interface SavedSearchesListResult {
+ value?: SavedSearch[];
+}
+
+// @public
+export interface Schema {
+ get(resourceGroupName: string, workspaceName: string, options?: SchemaGetOptionalParams): Promise;
+}
+
+// @public
+export interface SchemaGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type SchemaGetResponse = SearchGetSchemaResponse;
+
+// @public
+export interface SearchGetSchemaResponse {
+ metadata?: SearchMetadata;
+ value?: SearchSchemaValue[];
+}
+
+// @public
+export interface SearchMetadata {
+ aggregatedGroupingFields?: string;
+ aggregatedValueField?: string;
+ coreSummaries?: CoreSummary[];
+ eTag?: string;
+ id?: string;
+ lastUpdated?: Date;
+ max?: number;
+ requestTime?: number;
+ resultType?: string;
+ schema?: SearchMetadataSchema;
+ searchId?: string;
+ sort?: SearchSort[];
+ startTime?: Date;
+ status?: string;
+ sum?: number;
+ top?: number;
+ total?: number;
+}
+
+// @public
+export interface SearchMetadataSchema {
+ name?: string;
+ version?: number;
+}
+
+// @public
+export interface SearchSchemaValue {
+ displayName?: string;
+ facet: boolean;
+ indexed: boolean;
+ name?: string;
+ ownerType?: string[];
+ stored: boolean;
+ type?: string;
+}
+
+// @public
+export interface SearchSort {
+ name?: string;
+ order?: SearchSortEnum;
+}
+
+// @public
+export type SearchSortEnum = string;
+
+// @public
+export interface SharedKeys {
+ primarySharedKey?: string;
+ secondarySharedKey?: string;
+}
+
+// @public
+export interface SharedKeysGetSharedKeysOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type SharedKeysGetSharedKeysResponse = SharedKeys;
+
+// @public
+export interface SharedKeysOperations {
+ getSharedKeys(resourceGroupName: string, workspaceName: string, options?: SharedKeysGetSharedKeysOptionalParams): Promise;
+ regenerate(resourceGroupName: string, workspaceName: string, options?: SharedKeysRegenerateOptionalParams): Promise;
+}
+
+// @public
+export interface SharedKeysRegenerateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type SharedKeysRegenerateResponse = SharedKeys;
+
+// @public
+export type SkuNameEnum = string;
+
+// @public
+export interface StorageAccount {
+ id: string;
+ key: string;
+}
+
+// @public
+export type StorageInsight = ProxyResource & {
+ eTag?: string;
+ tags?: {
+ [propertyName: string]: string;
+ };
+ containers?: string[];
+ tables?: string[];
+ storageAccount?: StorageAccount;
+ readonly status?: StorageInsightStatus;
+};
+
+// @public
+export interface StorageInsightConfigs {
+ createOrUpdate(resourceGroupName: string, workspaceName: string, storageInsightName: string, parameters: StorageInsight, options?: StorageInsightConfigsCreateOrUpdateOptionalParams): Promise;
+ delete(resourceGroupName: string, workspaceName: string, storageInsightName: string, options?: StorageInsightConfigsDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, workspaceName: string, storageInsightName: string, options?: StorageInsightConfigsGetOptionalParams): Promise;
+ listByWorkspace(resourceGroupName: string, workspaceName: string, options?: StorageInsightConfigsListByWorkspaceOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface StorageInsightConfigsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type StorageInsightConfigsCreateOrUpdateResponse = StorageInsight;
+
+// @public
+export interface StorageInsightConfigsDeleteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface StorageInsightConfigsGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type StorageInsightConfigsGetResponse = StorageInsight;
+
+// @public
+export interface StorageInsightConfigsListByWorkspaceNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type StorageInsightConfigsListByWorkspaceNextResponse = StorageInsightListResult;
+
+// @public
+export interface StorageInsightConfigsListByWorkspaceOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type StorageInsightConfigsListByWorkspaceResponse = StorageInsightListResult;
+
+// @public
+export interface StorageInsightListResult {
+ odataNextLink?: string;
+ value?: StorageInsight[];
+}
+
+// @public
+export type StorageInsightState = string;
+
+// @public
+export interface StorageInsightStatus {
+ description?: string;
+ state: StorageInsightState;
+}
+
+// @public
+export interface Tag {
+ name: string;
+ value: string;
+}
+
+// @public
+export type TrackedResource = Resource & {
+ tags?: {
+ [propertyName: string]: string;
+ };
+ location: string;
+};
+
+// @public
+export type Type = string;
+
+// @public
+export interface UsageMetric {
+ currentValue?: number;
+ limit?: number;
+ name?: MetricName;
+ nextResetTime?: Date;
+ quotaPeriod?: string;
+ unit?: string;
+}
+
+// @public
+export interface Usages {
+ list(resourceGroupName: string, workspaceName: string, options?: UsagesListOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface UsagesListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type UsagesListResponse = WorkspaceListUsagesResult;
+
+// @public
+export interface UserIdentityProperties {
+ readonly clientId?: string;
+ readonly principalId?: string;
+}
+
+// @public
+export type Workspace = TrackedResource & {
+ eTag?: string;
+ provisioningState?: WorkspaceEntityStatus;
+ readonly customerId?: string;
+ sku?: WorkspaceSku;
+ retentionInDays?: number;
+ workspaceCapping?: WorkspaceCapping;
+ readonly createdDate?: string;
+ readonly modifiedDate?: string;
+ publicNetworkAccessForIngestion?: PublicNetworkAccessType;
+ publicNetworkAccessForQuery?: PublicNetworkAccessType;
+ forceCmkForQuery?: boolean;
+ readonly privateLinkScopedResources?: PrivateLinkScopedResource[];
+ features?: WorkspaceFeatures;
+};
+
+// @public
+export interface WorkspaceCapping {
+ dailyQuotaGb?: number;
+ readonly dataIngestionStatus?: DataIngestionStatus;
+ readonly quotaNextResetTime?: string;
+}
+
+// @public
+export type WorkspaceEntityStatus = string;
+
+// @public
+export interface WorkspaceFeatures {
+ [property: string]: any;
+ clusterResourceId?: string;
+ disableLocalAuth?: boolean;
+ enableDataExport?: boolean;
+ enableLogAccessUsingOnlyResourcePermissions?: boolean;
+ immediatePurgeDataOn30Days?: boolean;
+}
+
+// @public
+export interface WorkspaceListManagementGroupsResult {
+ value?: ManagementGroup[];
+}
+
+// @public
+export interface WorkspaceListResult {
+ value?: Workspace[];
+}
+
+// @public
+export interface WorkspaceListUsagesResult {
+ value?: UsageMetric[];
+}
+
+// @public
+export type WorkspacePatch = AzureEntityResource & {
+ tags?: {
+ [propertyName: string]: string;
+ };
+ provisioningState?: WorkspaceEntityStatus;
+ readonly customerId?: string;
+ sku?: WorkspaceSku;
+ retentionInDays?: number;
+ workspaceCapping?: WorkspaceCapping;
+ readonly createdDate?: string;
+ readonly modifiedDate?: string;
+ publicNetworkAccessForIngestion?: PublicNetworkAccessType;
+ publicNetworkAccessForQuery?: PublicNetworkAccessType;
+ forceCmkForQuery?: boolean;
+ readonly privateLinkScopedResources?: PrivateLinkScopedResource[];
+ features?: WorkspaceFeatures;
+};
+
+// @public
+export interface WorkspacePurge {
+ getPurgeStatus(resourceGroupName: string, workspaceName: string, purgeId: string, options?: WorkspacePurgeGetPurgeStatusOptionalParams): Promise;
+ purge(resourceGroupName: string, workspaceName: string, body: WorkspacePurgeBody, options?: WorkspacePurgePurgeOptionalParams): Promise;
+}
+
+// @public
+export interface WorkspacePurgeBody {
+ filters: WorkspacePurgeBodyFilters[];
+ table: string;
+}
+
+// @public
+export interface WorkspacePurgeBodyFilters {
+ column?: string;
+ key?: string;
+ operator?: string;
+ value?: any;
+}
+
+// @public
+export interface WorkspacePurgeGetPurgeStatusOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type WorkspacePurgeGetPurgeStatusResponse = WorkspacePurgeStatusResponse;
+
+// @public
+export interface WorkspacePurgePurgeHeaders {
+ xMsStatusLocation?: string;
+}
+
+// @public
+export interface WorkspacePurgePurgeOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type WorkspacePurgePurgeResponse = WorkspacePurgePurgeHeaders & WorkspacePurgeResponse;
+
+// @public
+export interface WorkspacePurgeResponse {
+ operationId: string;
+}
+
+// @public
+export interface WorkspacePurgeStatusResponse {
+ status: PurgeState;
+}
+
+// @public
+export interface Workspaces {
+ beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise, WorkspacesCreateOrUpdateResponse>>;
+ beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise;
+ beginDelete(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise, void>>;
+ beginDeleteAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, workspaceName: string, options?: WorkspacesGetOptionalParams): Promise;
+ list(options?: WorkspacesListOptionalParams): PagedAsyncIterableIterator;
+ listByResourceGroup(resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator;
+ update(resourceGroupName: string, workspaceName: string, parameters: WorkspacePatch, options?: WorkspacesUpdateOptionalParams): Promise;
+}
+
+// @public
+export interface WorkspacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type WorkspacesCreateOrUpdateResponse = Workspace;
+
+// @public
+export interface WorkspacesDeleteOptionalParams extends coreClient.OperationOptions {
+ force?: boolean;
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export interface WorkspacesGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type WorkspacesGetResponse = Workspace;
+
+// @public
+export interface WorkspaceSku {
+ capacityReservationLevel?: CapacityReservationLevel;
+ readonly lastSkuUpdate?: string;
+ name: WorkspaceSkuNameEnum;
+}
+
+// @public
+export type WorkspaceSkuNameEnum = string;
+
+// @public
+export interface WorkspacesListByResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type WorkspacesListByResourceGroupResponse = WorkspaceListResult;
+
+// @public
+export interface WorkspacesListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type WorkspacesListResponse = WorkspaceListResult;
+
+// @public
+export interface WorkspacesUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type WorkspacesUpdateResponse = Workspace;
+
+
+// (No @packageDocumentation comment for this package)
+
+```
diff --git a/sdk/operationalinsights/arm-operationalinsights/rollup.config.js b/sdk/operationalinsights/arm-operationalinsights/rollup.config.js
index a8e101ecc13c..9be1955eb7f1 100644
--- a/sdk/operationalinsights/arm-operationalinsights/rollup.config.js
+++ b/sdk/operationalinsights/arm-operationalinsights/rollup.config.js
@@ -1,37 +1,188 @@
-import rollup from "rollup";
-import nodeResolve from "rollup-plugin-node-resolve";
-import sourcemaps from "rollup-plugin-sourcemaps";
-
-/**
- * @type {rollup.RollupFileOptions}
- */
-const config = {
- input: "./esm/operationalInsightsManagementClient.js",
- external: [
- "@azure/ms-rest-js",
- "@azure/ms-rest-azure-js"
- ],
- output: {
- file: "./dist/arm-operationalinsights.js",
- format: "umd",
- name: "Azure.ArmOperationalinsights",
- sourcemap: true,
- globals: {
- "@azure/ms-rest-js": "msRest",
- "@azure/ms-rest-azure-js": "msRestAzure"
- },
- banner: `/*
+/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */`
- },
- plugins: [
- nodeResolve({ mainFields: ['module', 'main'] }),
- sourcemaps()
- ]
+ */
+
+import nodeResolve from "@rollup/plugin-node-resolve";
+import cjs from "@rollup/plugin-commonjs";
+import sourcemaps from "rollup-plugin-sourcemaps";
+import multiEntry from "@rollup/plugin-multi-entry";
+import json from "@rollup/plugin-json";
+
+import nodeBuiltins from "builtin-modules";
+
+/**
+ * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
+ *
+ * NOTE: this manual configuration is only needed because OpenTelemetry uses an
+ * __exportStar downleveled helper function to declare its exports which confuses
+ * rollup's automatic discovery mechanism.
+ *
+ * @returns an object reference that can be `...`'d into your cjs() configuration.
+ */
+export function openTelemetryCommonJs() {
+ const namedExports = {};
+
+ for (const key of [
+ "@opentelemetry/api",
+ "@azure/core-tracing/node_modules/@opentelemetry/api"
+ ]) {
+ namedExports[key] = [
+ "SpanKind",
+ "TraceFlags",
+ "getSpan",
+ "setSpan",
+ "SpanStatusCode",
+ "getSpanContext",
+ "setSpanContext"
+ ];
+ }
+
+ const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
+
+ for (const version of releasedOpenTelemetryVersions) {
+ namedExports[
+ // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
+ `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
+ ] = [
+ "SpanKind",
+ "TraceFlags",
+ "getSpan",
+ "setSpan",
+ "StatusCode",
+ "CanonicalCode",
+ "getSpanContext",
+ "setSpanContext"
+ ];
+ }
+
+ return namedExports;
+}
+
+// #region Warning Handler
+
+/**
+ * A function that can determine whether a rollupwarning should be ignored. If
+ * the function returns `true`, then the warning will not be displayed.
+ */
+
+function ignoreNiseSinonEvalWarnings(warning) {
+ return (
+ warning.code === "EVAL" &&
+ warning.id &&
+ (warning.id.includes("node_modules/nise") ||
+ warning.id.includes("node_modules/sinon")) === true
+ );
+}
+
+function ignoreChaiCircularDependencyWarnings(warning) {
+ return (
+ warning.code === "CIRCULAR_DEPENDENCY" &&
+ warning.importer && warning.importer.includes("node_modules/chai") === true
+ );
+}
+
+const warningInhibitors = [
+ ignoreChaiCircularDependencyWarnings,
+ ignoreNiseSinonEvalWarnings
+];
+
+/**
+ * Construct a warning handler for the shared rollup configuration
+ * that ignores certain warnings that are not relevant to testing.
+ */
+function makeOnWarnForTesting() {
+ return (warning, warn) => {
+ // If every inhibitor returns false (i.e. no inhibitors), then show the warning
+ if (warningInhibitors.every((inhib) => !inhib(warning))) {
+ warn(warning);
+ }
+ };
+}
+
+// #endregion
+
+function makeBrowserTestConfig() {
+ const config = {
+ input: {
+ include: ["dist-esm/test/**/*.spec.js"],
+ exclude: ["dist-esm/test/**/node/**"]
+ },
+ output: {
+ file: `dist-test/index.browser.js`,
+ format: "umd",
+ sourcemap: true
+ },
+ preserveSymlinks: false,
+ plugins: [
+ multiEntry({ exports: false }),
+ nodeResolve({
+ mainFields: ["module", "browser"]
+ }),
+ cjs({
+ namedExports: {
+ // Chai's strange internal architecture makes it impossible to statically
+ // analyze its exports.
+ chai: [
+ "version",
+ "use",
+ "util",
+ "config",
+ "expect",
+ "should",
+ "assert"
+ ],
+ ...openTelemetryCommonJs()
+ }
+ }),
+ json(),
+ sourcemaps()
+ //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
+ ],
+ onwarn: makeOnWarnForTesting(),
+ // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
+ // rollup started respecting the "sideEffects" field in package.json. Since
+ // our package.json sets "sideEffects=false", this also applies to test
+ // code, which causes all tests to be removed by tree-shaking.
+ treeshake: false
+ };
+
+ return config;
+}
+
+const defaultConfigurationOptions = {
+ disableBrowserBundle: false
};
-export default config;
+export function makeConfig(pkg, options) {
+ options = {
+ ...defaultConfigurationOptions,
+ ...(options || {})
+ };
+
+ const baseConfig = {
+ // Use the package's module field if it has one
+ input: pkg["module"] || "dist-esm/src/index.js",
+ external: [
+ ...nodeBuiltins,
+ ...Object.keys(pkg.dependencies),
+ ...Object.keys(pkg.devDependencies)
+ ],
+ output: { file: "dist/index.js", format: "cjs", sourcemap: true },
+ preserveSymlinks: false,
+ plugins: [sourcemaps(), nodeResolve(), cjs()]
+ };
+
+ const config = [baseConfig];
+
+ if (!options.disableBrowserBundle) {
+ config.push(makeBrowserTestConfig());
+ }
+
+ return config;
+}
+
+export default makeConfig(require("./package.json"));
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/index.ts b/sdk/operationalinsights/arm-operationalinsights/src/index.ts
new file mode 100644
index 000000000000..16bbf4096534
--- /dev/null
+++ b/sdk/operationalinsights/arm-operationalinsights/src/index.ts
@@ -0,0 +1,13 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+///
+export * from "./models";
+export { OperationalInsightsManagementClient } from "./operationalInsightsManagementClient";
+export { OperationalInsightsManagementClientContext } from "./operationalInsightsManagementClientContext";
+export * from "./operationsInterfaces";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/lroImpl.ts b/sdk/operationalinsights/arm-operationalinsights/src/lroImpl.ts
new file mode 100644
index 000000000000..518d5f053b4e
--- /dev/null
+++ b/sdk/operationalinsights/arm-operationalinsights/src/lroImpl.ts
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import { LongRunningOperation, LroResponse } from "@azure/core-lro";
+
+export class LroImpl implements LongRunningOperation {
+ constructor(
+ private sendOperationFn: (args: any, spec: any) => Promise>,
+ private args: Record,
+ private spec: {
+ readonly requestBody?: unknown;
+ readonly path?: string;
+ readonly httpMethod: string;
+ } & Record,
+ public requestPath: string = spec.path!,
+ public requestMethod: string = spec.httpMethod
+ ) {}
+ public async sendInitialRequest(): Promise> {
+ return this.sendOperationFn(this.args, this.spec);
+ }
+ public async sendPollRequest(path: string): Promise> {
+ const { requestBody, ...restSpec } = this.spec;
+ return this.sendOperationFn(this.args, {
+ ...restSpec,
+ path,
+ httpMethod: "GET"
+ });
+ }
+}
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/availableServiceTiersMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/availableServiceTiersMappers.ts
deleted file mode 100644
index 7226bb48f243..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/availableServiceTiersMappers.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- AvailableServiceTier,
- CloudError
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/clustersMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/clustersMappers.ts
deleted file mode 100644
index 526d3ac0394d..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/clustersMappers.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- AzureEntityResource,
- BaseResource,
- Cluster,
- ClusterListResult,
- ClusterPatch,
- ClusterSku,
- DataExport,
- DataSource,
- ErrorAdditionalInfo,
- ErrorDetail,
- ErrorResponse,
- Identity,
- KeyVaultProperties,
- LinkedService,
- LinkedStorageAccountsResource,
- PrivateLinkScopedResource,
- ProxyResource,
- Resource,
- SavedSearch,
- StorageAccount,
- StorageInsight,
- StorageInsightStatus,
- Table,
- Tag,
- TrackedResource,
- Workspace,
- WorkspaceCapping,
- WorkspacePatch,
- WorkspaceSku
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/dataExportsMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/dataExportsMappers.ts
deleted file mode 100644
index 7ae4780713a6..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/dataExportsMappers.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- AzureEntityResource,
- BaseResource,
- Cluster,
- ClusterPatch,
- ClusterSku,
- DataExport,
- DataExportListResult,
- DataSource,
- ErrorAdditionalInfo,
- ErrorDetail,
- ErrorResponse,
- Identity,
- KeyVaultProperties,
- LinkedService,
- LinkedStorageAccountsResource,
- PrivateLinkScopedResource,
- ProxyResource,
- Resource,
- SavedSearch,
- StorageAccount,
- StorageInsight,
- StorageInsightStatus,
- Table,
- Tag,
- TrackedResource,
- Workspace,
- WorkspaceCapping,
- WorkspacePatch,
- WorkspaceSku
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/dataSourcesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/dataSourcesMappers.ts
deleted file mode 100644
index 88e6e0fce92a..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/dataSourcesMappers.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- AzureEntityResource,
- BaseResource,
- CloudError,
- Cluster,
- ClusterPatch,
- ClusterSku,
- DataExport,
- DataSource,
- DataSourceListResult,
- Identity,
- KeyVaultProperties,
- LinkedService,
- LinkedStorageAccountsResource,
- PrivateLinkScopedResource,
- ProxyResource,
- Resource,
- SavedSearch,
- StorageAccount,
- StorageInsight,
- StorageInsightStatus,
- Table,
- Tag,
- TrackedResource,
- Workspace,
- WorkspaceCapping,
- WorkspacePatch,
- WorkspaceSku
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/deletedWorkspacesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/deletedWorkspacesMappers.ts
deleted file mode 100644
index 6bfe44aaf661..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/deletedWorkspacesMappers.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- AzureEntityResource,
- BaseResource,
- Cluster,
- ClusterPatch,
- ClusterSku,
- DataExport,
- DataSource,
- ErrorAdditionalInfo,
- ErrorDetail,
- ErrorResponse,
- Identity,
- KeyVaultProperties,
- LinkedService,
- LinkedStorageAccountsResource,
- PrivateLinkScopedResource,
- ProxyResource,
- Resource,
- SavedSearch,
- StorageAccount,
- StorageInsight,
- StorageInsightStatus,
- Table,
- Tag,
- TrackedResource,
- Workspace,
- WorkspaceCapping,
- WorkspaceListResult,
- WorkspacePatch,
- WorkspaceSku
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/gatewaysMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/gatewaysMappers.ts
deleted file mode 100644
index bfdc5cc83365..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/gatewaysMappers.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- CloudError
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts
index bfaff881e198..a2c86523400d 100644
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts
+++ b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts
@@ -6,2525 +6,1617 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
-import * as msRest from "@azure/ms-rest-js";
+import * as coreClient from "@azure/core-client";
-export { BaseResource, CloudError };
-
-/**
- * The top level data export resource container.
- */
-export interface DataExport extends BaseResource {
- /**
- * The data export rule ID.
- */
- dataExportId?: string;
- /**
- * An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
- */
- tableNames: string[];
- /**
- * The destination resource ID. This can be copied from the Properties entry of the destination
- * resource in Azure.
- */
- resourceId: string;
- /**
- * The type of the destination resource. Possible values include: 'StorageAccount', 'EventHub'
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly dataExportType?: Type;
- /**
- * Optional. Allows to define an Event Hub name. Not applicable when destination is Storage
- * Account.
- */
- eventHubName?: string;
- /**
- * Active when enabled.
- */
- enable?: boolean;
- /**
- * The latest data export rule modification time.
- */
- createdDate?: string;
- /**
- * Date and time when the export was last modified.
- */
- lastModifiedDate?: string;
+/** Result of the request to list data exports. */
+export interface DataExportListResult {
+ /** List of data export instances within a workspace.. */
+ value?: DataExport[];
}
-/**
- * Common fields that are returned in the response for all Azure Resource Manager resources
- * @summary Resource
- */
-export interface Resource extends BaseResource {
+/** Common fields that are returned in the response for all Azure Resource Manager resources */
+export interface Resource {
/**
- * Fully qualified resource ID for the resource. Ex -
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/**
* The name of the resource
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/**
- * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
- * "Microsoft.Storage/storageAccounts"
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly type?: string;
}
-/**
- * The resource model definition for an Azure Resource Manager tracked top level resource which has
- * 'tags' and a 'location'
- * @summary Tracked Resource
- */
-export interface TrackedResource extends Resource {
- /**
- * Resource tags.
- */
- tags?: { [propertyName: string]: string };
- /**
- * The geo-location where the resource lives
- */
- location: string;
-}
-
-/**
- * The resource model definition for an Azure Resource Manager resource with an etag.
- * @summary Entity Resource
- */
-export interface AzureEntityResource extends Resource {
- /**
- * Resource Etag.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly etag?: string;
-}
-
-/**
- * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags
- * and a location
- * @summary Proxy Resource
- */
-export interface ProxyResource extends Resource {
-}
-
-/**
- * The resource management error additional info.
- */
-export interface ErrorAdditionalInfo {
- /**
- * The additional info type.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly type?: string;
- /**
- * The additional info.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly info?: any;
+/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
+export interface ErrorResponse {
+ /** The error object. */
+ error?: ErrorDetail;
}
-/**
- * The error detail.
- */
+/** The error detail. */
export interface ErrorDetail {
/**
* The error code.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly code?: string;
/**
* The error message.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly message?: string;
/**
* The error target.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly target?: string;
/**
* The error details.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly details?: ErrorDetail[];
/**
* The error additional info.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly additionalInfo?: ErrorAdditionalInfo[];
}
-/**
- * Common error response for all Azure Resource Manager APIs to return error details for failed
- * operations. (This also follows the OData error response format.).
- * @summary Error response
- */
-export interface ErrorResponse {
- /**
- * The error object.
- */
- error?: ErrorDetail;
-}
-
-/**
- * Datasources under OMS Workspace.
- */
-export interface DataSource extends ProxyResource {
- /**
- * The data source properties in raw json format, each kind of data source have it's own schema.
- */
- properties: any;
- /**
- * The ETag of the data source.
- */
- etag?: string;
+/** The resource management error additional info. */
+export interface ErrorAdditionalInfo {
/**
- * Possible values include: 'WindowsEvent', 'WindowsPerformanceCounter', 'IISLogs',
- * 'LinuxSyslog', 'LinuxSyslogCollection', 'LinuxPerformanceObject',
- * 'LinuxPerformanceCollection', 'CustomLog', 'CustomLogCollection', 'AzureAuditLog',
- * 'AzureActivityLog', 'GenericDataSource', 'ChangeTrackingCustomPath', 'ChangeTrackingPath',
- * 'ChangeTrackingServices', 'ChangeTrackingDataTypeConfiguration',
- * 'ChangeTrackingDefaultRegistry', 'ChangeTrackingRegistry', 'ChangeTrackingLinuxPath',
- * 'LinuxChangeTrackingPath', 'ChangeTrackingContentLocation', 'WindowsTelemetry', 'Office365',
- * 'SecurityWindowsBaselineConfiguration', 'SecurityCenterSecurityWindowsBaselineConfiguration',
- * 'SecurityEventCollectionConfiguration',
- * 'SecurityInsightsSecurityEventCollectionConfiguration', 'ImportComputerGroup',
- * 'NetworkMonitoring', 'Itsm', 'DnsAnalytics', 'ApplicationInsights', 'SqlDataClassification'
+ * The additional info type.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- kind: DataSourceKind;
+ readonly type?: string;
/**
- * Resource tags.
+ * The additional info.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- tags?: { [propertyName: string]: string };
+ readonly info?: Record;
}
-/**
- * DataSource filter. Right now, only filter by kind is supported.
- */
-export interface DataSourceFilter {
- /**
- * Possible values include: 'WindowsEvent', 'WindowsPerformanceCounter', 'IISLogs',
- * 'LinuxSyslog', 'LinuxSyslogCollection', 'LinuxPerformanceObject',
- * 'LinuxPerformanceCollection', 'CustomLog', 'CustomLogCollection', 'AzureAuditLog',
- * 'AzureActivityLog', 'GenericDataSource', 'ChangeTrackingCustomPath', 'ChangeTrackingPath',
- * 'ChangeTrackingServices', 'ChangeTrackingDataTypeConfiguration',
- * 'ChangeTrackingDefaultRegistry', 'ChangeTrackingRegistry', 'ChangeTrackingLinuxPath',
- * 'LinuxChangeTrackingPath', 'ChangeTrackingContentLocation', 'WindowsTelemetry', 'Office365',
- * 'SecurityWindowsBaselineConfiguration', 'SecurityCenterSecurityWindowsBaselineConfiguration',
- * 'SecurityEventCollectionConfiguration',
- * 'SecurityInsightsSecurityEventCollectionConfiguration', 'ImportComputerGroup',
- * 'NetworkMonitoring', 'Itsm', 'DnsAnalytics', 'ApplicationInsights', 'SqlDataClassification'
- */
- kind?: DataSourceKind;
+/** The list data source by workspace operation response. */
+export interface DataSourceListResult {
+ /** A list of datasources. */
+ value?: DataSource[];
+ /** The link (url) to the next page of datasources. */
+ nextLink?: string;
}
-/**
- * Intelligence Pack containing a string name and boolean indicating if it's enabled.
- */
+/** Intelligence Pack containing a string name and boolean indicating if it's enabled. */
export interface IntelligencePack {
- /**
- * The name of the intelligence pack.
- */
+ /** The name of the intelligence pack. */
name?: string;
- /**
- * The enabled boolean for the intelligence pack.
- */
+ /** The enabled boolean for the intelligence pack. */
enabled?: boolean;
- /**
- * The display name of the intelligence pack.
- */
+ /** The display name of the intelligence pack. */
displayName?: string;
}
-/**
- * The top level Linked service resource container.
- */
-export interface LinkedService extends ProxyResource {
- /**
- * The resource id of the resource that will be linked to the workspace. This should be used for
- * linking resources which require read access
- */
- resourceId?: string;
- /**
- * The resource id of the resource that will be linked to the workspace. This should be used for
- * linking resources which require write access
- */
- writeAccessResourceId?: string;
- /**
- * The provisioning state of the linked service. Possible values include: 'Succeeded',
- * 'Deleting', 'ProvisioningAccount', 'Updating'
- */
- provisioningState?: LinkedServiceEntityStatus;
- /**
- * Resource tags.
- */
- tags?: { [propertyName: string]: string };
+/** The list linked service operation response. */
+export interface LinkedServiceListResult {
+ /** The list of linked service instances */
+ value?: LinkedService[];
}
-/**
- * Linked storage accounts top level resource container.
- */
-export interface LinkedStorageAccountsResource extends ProxyResource {
- /**
- * Linked storage accounts type. Possible values include: 'CustomLogs', 'AzureWatson', 'Query',
- * 'Alerts'
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly dataSourceType?: DataSourceType;
- /**
- * Linked storage accounts resources ids.
- */
- storageAccountIds?: string[];
+/** The list linked storage accounts service operation response. */
+export interface LinkedStorageAccountsListResult {
+ /** A list of linked storage accounts instances. */
+ value?: LinkedStorageAccountsResource[];
}
-/**
- * A management group that is connected to a workspace
- */
+/** The list workspace management groups operation response. */
+export interface WorkspaceListManagementGroupsResult {
+ /** Gets or sets a list of management groups attached to the workspace. */
+ value?: ManagementGroup[];
+}
+
+/** A management group that is connected to a workspace */
export interface ManagementGroup {
- /**
- * The number of servers connected to the management group.
- */
+ /** The number of servers connected to the management group. */
serverCount?: number;
- /**
- * Gets or sets a value indicating whether the management group is a gateway.
- */
+ /** Gets or sets a value indicating whether the management group is a gateway. */
isGateway?: boolean;
- /**
- * The name of the management group.
- */
+ /** The name of the management group. */
name?: string;
- /**
- * The unique ID of the management group.
- */
+ /** The unique ID of the management group. */
id?: string;
- /**
- * The datetime that the management group was created.
- */
+ /** The datetime that the management group was created. */
created?: Date;
- /**
- * The last datetime that the management group received data.
- */
+ /** The last datetime that the management group received data. */
dataReceived?: Date;
- /**
- * The version of System Center that is managing the management group.
- */
+ /** The version of System Center that is managing the management group. */
version?: string;
- /**
- * The SKU of System Center that is managing the management group.
- */
+ /** The SKU of System Center that is managing the management group. */
sku?: string;
}
-/**
- * Display metadata associated with the operation.
- */
-export interface OperationDisplay {
- /**
- * Service provider: Microsoft OperationsManagement.
- */
- provider?: string;
- /**
- * Resource on which the operation is performed etc.
- */
- resource?: string;
- /**
- * Type of operation: get, read, delete, etc.
- */
- operation?: string;
- /**
- * Description of operation
- */
- description?: string;
-}
-
-/**
- * Supported operation of OperationalInsights resource provider.
- */
-export interface Operation {
- /**
- * Operation name: {provider}/{resource}/{operation}
- */
- name?: string;
- /**
- * Display metadata associated with the operation.
- */
- display?: OperationDisplay;
-}
-
-/**
- * The status of operation.
- */
+/** The status of operation. */
export interface OperationStatus {
- /**
- * The operation Id.
- */
+ /** The operation Id. */
id?: string;
- /**
- * The operation name.
- */
+ /** The operation name. */
name?: string;
- /**
- * The start time of the operation.
- */
+ /** The start time of the operation. */
startTime?: string;
- /**
- * The end time of the operation.
- */
+ /** The end time of the operation. */
endTime?: string;
- /**
- * The status of the operation.
- */
+ /** The status of the operation. */
status?: string;
- /**
- * The error detail of the operation if any.
- */
+ /** The error detail of the operation if any. */
error?: ErrorResponse;
}
-/**
- * The shared keys for a workspace.
- */
+/** The shared keys for a workspace. */
export interface SharedKeys {
- /**
- * The primary shared key of a workspace.
- */
+ /** The primary shared key of a workspace. */
primarySharedKey?: string;
- /**
- * The secondary shared key of a workspace.
- */
+ /** The secondary shared key of a workspace. */
secondarySharedKey?: string;
}
-/**
- * The name of a metric.
- */
-export interface MetricName {
- /**
- * The system name of the metric.
- */
- value?: string;
- /**
- * The localized name of the metric.
- */
- localizedValue?: string;
+/** The list workspace usages operation response. */
+export interface WorkspaceListUsagesResult {
+ /** Gets or sets a list of usage metrics for a workspace. */
+ value?: UsageMetric[];
}
-/**
- * A metric describing the usage of a resource.
- */
+/** A metric describing the usage of a resource. */
export interface UsageMetric {
- /**
- * The name of the metric.
- */
+ /** The name of the metric. */
name?: MetricName;
- /**
- * The units used for the metric.
- */
+ /** The units used for the metric. */
unit?: string;
- /**
- * The current value of the metric.
- */
+ /** The current value of the metric. */
currentValue?: number;
- /**
- * The quota limit for the metric.
- */
+ /** The quota limit for the metric. */
limit?: number;
- /**
- * The time that the metric's value will reset.
- */
+ /** The time that the metric's value will reset. */
nextResetTime?: Date;
- /**
- * The quota period that determines the length of time between value resets.
- */
+ /** The quota period that determines the length of time between value resets. */
quotaPeriod?: string;
}
-/**
- * The SKU (tier) of a workspace.
- */
-export interface WorkspaceSku {
+/** The name of a metric. */
+export interface MetricName {
+ /** The system name of the metric. */
+ value?: string;
+ /** The localized name of the metric. */
+ localizedValue?: string;
+}
+
+/** Describes a storage account connection. */
+export interface StorageAccount {
+ /** The Azure Resource Manager ID of the storage account resource. */
+ id: string;
+ /** The storage account key. */
+ key: string;
+}
+
+/** The status of the storage insight. */
+export interface StorageInsightStatus {
+ /** The state of the storage insight connection to the workspace */
+ state: StorageInsightState;
+ /** Description of the state of the storage insight. */
+ description?: string;
+}
+
+/** The list storage insights operation response. */
+export interface StorageInsightListResult {
+ /** A list of storage insight items. */
+ value?: StorageInsight[];
+ /** The link (url) to the next page of results. */
+ odataNextLink?: string;
+}
+
+/** A tag of a saved search. */
+export interface Tag {
+ /** The tag name. */
+ name: string;
+ /** The tag value. */
+ value: string;
+}
+
+/** The saved search list operation response. */
+export interface SavedSearchesListResult {
+ /** The array of result values. */
+ value?: SavedSearch[];
+}
+
+/** Service Tier details. */
+export interface AvailableServiceTier {
/**
- * The name of the SKU. Possible values include: 'Free', 'Standard', 'Premium', 'PerNode',
- * 'PerGB2018', 'Standalone', 'CapacityReservation', 'LACluster'
+ * The name of the Service Tier.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- name: WorkspaceSkuNameEnum;
+ readonly serviceTier?: SkuNameEnum;
/**
- * The capacity reservation level for this workspace, when CapacityReservation sku is selected.
+ * True if the Service Tier is enabled for the workspace.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- capacityReservationLevel?: number;
+ readonly enabled?: boolean;
/**
- * The maximum capacity reservation level available for this workspace, when CapacityReservation
- * sku is selected.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The minimum retention for the Service Tier, in days.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly maxCapacityReservationLevel?: number;
+ readonly minimumRetention?: number;
/**
- * The last time when the sku was updated.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The maximum retention for the Service Tier, in days.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly lastSkuUpdate?: string;
-}
-
-/**
- * The daily volume cap for ingestion.
- */
-export interface WorkspaceCapping {
+ readonly maximumRetention?: number;
/**
- * The workspace daily quota for ingestion.
+ * The default retention for the Service Tier, in days.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- dailyQuotaGb?: number;
+ readonly defaultRetention?: number;
/**
- * The time when the quota will be rest.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The capacity reservation level in GB per day. Returned for the Capacity Reservation Service Tier.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly quotaNextResetTime?: string;
+ readonly capacityReservationLevel?: number;
/**
- * The status of data ingestion for this workspace. Possible values include: 'RespectQuota',
- * 'ForceOn', 'ForceOff', 'OverQuota', 'SubscriptionSuspended', 'ApproachingQuota'
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * Time when the sku was last updated for the workspace. Returned for the Capacity Reservation Service Tier.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly dataIngestionStatus?: DataIngestionStatus;
+ readonly lastSkuUpdate?: string;
}
-/**
- * The private link scope resource reference.
- */
-export interface PrivateLinkScopedResource {
+/** The get schema operation response. */
+export interface SearchGetSchemaResponse {
+ /** The metadata from search results. */
+ metadata?: SearchMetadata;
+ /** The array of result values. */
+ value?: SearchSchemaValue[];
+}
+
+/** Metadata for search results. */
+export interface SearchMetadata {
+ /** The request id of the search. */
+ searchId?: string;
+ /** The search result type. */
+ resultType?: string;
+ /** The total number of search results. */
+ total?: number;
+ /** The number of top search results. */
+ top?: number;
+ /** The id of the search results request. */
+ id?: string;
+ /** The core summaries. */
+ coreSummaries?: CoreSummary[];
+ /** The status of the search results. */
+ status?: string;
+ /** The start time for the search. */
+ startTime?: Date;
+ /** The time of last update. */
+ lastUpdated?: Date;
+ /** The ETag of the search results. */
+ eTag?: string;
+ /** How the results are sorted. */
+ sort?: SearchSort[];
+ /** The request time. */
+ requestTime?: number;
+ /** The aggregated value field. */
+ aggregatedValueField?: string;
+ /** The aggregated grouping fields. */
+ aggregatedGroupingFields?: string;
+ /** The sum of all aggregates returned in the result set. */
+ sum?: number;
+ /** The max of all aggregates returned in the result set. */
+ max?: number;
+ /** The schema. */
+ schema?: SearchMetadataSchema;
+}
+
+/** The core summary of a search. */
+export interface CoreSummary {
+ /** The status of a core summary. */
+ status?: string;
+ /** The number of documents of a core summary. */
+ numberOfDocuments: number;
+}
+
+/** The sort parameters for search. */
+export interface SearchSort {
+ /** The name of the field the search query is sorted on. */
+ name?: string;
+ /** The sort order of the search. */
+ order?: SearchSortEnum;
+}
+
+/** Schema metadata for search. */
+export interface SearchMetadataSchema {
+ /** The name of the metadata schema. */
+ name?: string;
+ /** The version of the metadata schema. */
+ version?: number;
+}
+
+/** Value object for schema results. */
+export interface SearchSchemaValue {
+ /** The name of the schema. */
+ name?: string;
+ /** The display name of the schema. */
+ displayName?: string;
+ /** The type. */
+ type?: string;
+ /** The boolean that indicates the field is searchable as free text. */
+ indexed: boolean;
+ /** The boolean that indicates whether or not the field is stored. */
+ stored: boolean;
+ /** The boolean that indicates whether or not the field is a facet. */
+ facet: boolean;
+ /** The array of workflows containing the field. */
+ ownerType?: string[];
+}
+
+/** Describes the body of a purge request for an App Insights Workspace */
+export interface WorkspacePurgeBody {
+ /** Table from which to purge data. */
+ table: string;
+ /** The set of columns and filters (queries) to run over them to purge the resulting data. */
+ filters: WorkspacePurgeBodyFilters[];
+}
+
+/** User-defined filters to return data which will be purged from the table. */
+export interface WorkspacePurgeBodyFilters {
+ /** The column of the table over which the given query should run */
+ column?: string;
+ /** A query operator to evaluate over the provided column and value(s). Supported operators are ==, =~, in, in~, >, >=, <, <=, between, and have the same behavior as they would in a KQL query. */
+ operator?: string;
+ /** the value for the operator to function over. This can be a number (e.g., > 100), a string (timestamp >= '2017-09-01') or array of values. */
+ value?: any;
+ /** When filtering over custom dimensions, this key will be used as the name of the custom dimension. */
+ key?: string;
+}
+
+/** Response containing operationId for a specific purge action. */
+export interface WorkspacePurgeResponse {
+ /** Id to use when querying for status for a particular purge operation. */
+ operationId: string;
+}
+
+/** Response containing status for a specific purge operation. */
+export interface WorkspacePurgeStatusResponse {
+ /** Status of the operation represented by the requested Id. */
+ status: PurgeState;
+}
+
+/** Result of the request to list solution operations. */
+export interface OperationListResult {
+ /** List of solution operations supported by the OperationsManagement resource provider. */
+ value?: Operation[];
/**
- * The full resource Id of the private link scope resource.
+ * URL to get the next set of operation list results if there are any.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- resourceId?: string;
+ readonly nextLink?: string;
+}
+
+/** Supported operation of OperationalInsights resource provider. */
+export interface Operation {
+ /** Operation name: {provider}/{resource}/{operation} */
+ name?: string;
+ /** Display metadata associated with the operation. */
+ display?: OperationDisplay;
+}
+
+/** Display metadata associated with the operation. */
+export interface OperationDisplay {
+ /** Service provider: Microsoft OperationsManagement. */
+ provider?: string;
+ /** Resource on which the operation is performed etc. */
+ resource?: string;
+ /** Type of operation: get, read, delete, etc. */
+ operation?: string;
+ /** Description of operation */
+ description?: string;
+}
+
+/** The list clusters operation response. */
+export interface ClusterListResult {
+ /** The link used to get the next page of recommendations. */
+ nextLink?: string;
+ /** A list of Log Analytics clusters. */
+ value?: Cluster[];
+}
+
+/** Identity for the resource. */
+export interface Identity {
+ /**
+ * The principal ID of resource identity.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly principalId?: string;
/**
- * The private link scope unique Identifier.
+ * The tenant ID of resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- scopeId?: string;
+ readonly tenantId?: string;
+ /** Type of managed service identity. */
+ type: IdentityType;
+ /** The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */
+ userAssignedIdentities?: { [propertyName: string]: UserIdentityProperties };
}
-/**
- * The top level Workspace resource container.
- */
-export interface Workspace extends TrackedResource {
+/** User assigned identity properties. */
+export interface UserIdentityProperties {
/**
- * The provisioning state of the workspace. Possible values include: 'Creating', 'Succeeded',
- * 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount', 'Updating'
+ * The principal id of user assigned identity.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- provisioningState?: WorkspaceEntityStatus;
+ readonly principalId?: string;
/**
- * This is a read-only property. Represents the ID associated with the workspace.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The client id of user assigned identity.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly customerId?: string;
+ readonly clientId?: string;
+}
+
+/** The cluster sku definition. */
+export interface ClusterSku {
+ /** The capacity value */
+ capacity?: Capacity;
+ /** The name of the SKU. */
+ name?: ClusterSkuNameEnum;
+}
+
+/** The key vault properties. */
+export interface KeyVaultProperties {
+ /** The Key Vault uri which holds they key associated with the Log Analytics cluster. */
+ keyVaultUri?: string;
+ /** The name of the key associated with the Log Analytics cluster. */
+ keyName?: string;
+ /** The version of the key associated with the Log Analytics cluster. */
+ keyVersion?: string;
+ /** Selected key minimum required size. */
+ keyRsaSize?: number;
+}
+
+/** The list of Log Analytics workspaces associated with the cluster. */
+export interface AssociatedWorkspace {
/**
- * The SKU of the workspace.
+ * The id of the assigned workspace.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- sku?: WorkspaceSku;
+ readonly workspaceId?: string;
/**
- * The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers
- * documentation for details.
+ * The name id the assigned workspace.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- retentionInDays?: number;
+ readonly workspaceName?: string;
/**
- * The daily volume cap for ingestion.
+ * The ResourceId id the assigned workspace.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- workspaceCapping?: WorkspaceCapping;
+ readonly resourceId?: string;
/**
- * Workspace creation date.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The time of workspace association.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly createdDate?: string;
+ readonly associateDate?: string;
+}
+
+/** The Capacity Reservation properties. */
+export interface CapacityReservationProperties {
/**
- * Workspace modification date.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The last time Sku was updated.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly modifiedDate?: string;
+ readonly lastSkuUpdate?: string;
/**
- * The network access type for accessing Log Analytics ingestion. Possible values include:
- * 'Enabled', 'Disabled'. Default value: 'Enabled'.
+ * Minimum CapacityReservation value in GB.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- publicNetworkAccessForIngestion?: PublicNetworkAccessType;
+ readonly minCapacity?: number;
+}
+
+/** The top level Log Analytics cluster resource container. */
+export interface ClusterPatch {
+ /** The identity of the resource. */
+ identity?: Identity;
+ /** The sku properties. */
+ sku?: ClusterSku;
+ /** Resource tags. */
+ tags?: { [propertyName: string]: string };
+ /** The associated key properties. */
+ keyVaultProperties?: KeyVaultProperties;
+ /** The cluster's billing type. */
+ billingType?: BillingType;
+}
+
+/** The list workspaces operation response. */
+export interface WorkspaceListResult {
+ /** A list of workspaces. */
+ value?: Workspace[];
+}
+
+/** The SKU (tier) of a workspace. */
+export interface WorkspaceSku {
+ /** The name of the SKU. */
+ name: WorkspaceSkuNameEnum;
+ /** The capacity reservation level in GB for this workspace, when CapacityReservation sku is selected. */
+ capacityReservationLevel?: CapacityReservationLevel;
/**
- * The network access type for accessing Log Analytics query. Possible values include: 'Enabled',
- * 'Disabled'. Default value: 'Enabled'.
+ * The last time when the sku was updated.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- publicNetworkAccessForQuery?: PublicNetworkAccessType;
+ readonly lastSkuUpdate?: string;
+}
+
+/** The daily volume cap for ingestion. */
+export interface WorkspaceCapping {
+ /** The workspace daily quota for ingestion. */
+ dailyQuotaGb?: number;
+ /**
+ * The time when the quota will be rest.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly quotaNextResetTime?: string;
/**
- * Indicates whether customer managed storage is mandatory for query management.
+ * The status of data ingestion for this workspace.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- forceCmkForQuery?: boolean;
+ readonly dataIngestionStatus?: DataIngestionStatus;
+}
+
+/** The private link scope resource reference. */
+export interface PrivateLinkScopedResource {
+ /** The full resource Id of the private link scope resource. */
+ resourceId?: string;
+ /** The private link scope unique Identifier. */
+ scopeId?: string;
+}
+
+/** Workspace features. */
+export interface WorkspaceFeatures {
+ /** Describes unknown properties. The value of an unknown property can be of "any" type. */
+ [property: string]: any;
+ /** Flag that indicate if data should be exported. */
+ enableDataExport?: boolean;
+ /** Flag that describes if we want to remove the data after 30 days. */
+ immediatePurgeDataOn30Days?: boolean;
+ /** Flag that indicate which permission to use - resource or workspace or both. */
+ enableLogAccessUsingOnlyResourcePermissions?: boolean;
+ /** Dedicated LA cluster resourceId that is linked to the workspaces. */
+ clusterResourceId?: string;
+ /** Disable Non-AAD based Auth. */
+ disableLocalAuth?: boolean;
+}
+
+/** DataSource filter. Right now, only filter by kind is supported. */
+export interface DataSourceFilter {
+ /** The kind of the DataSource. */
+ kind?: DataSourceKind;
+}
+
+/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
+export type ProxyResource = Resource & {};
+
+/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
+export type TrackedResource = Resource & {
+ /** Resource tags. */
+ tags?: { [propertyName: string]: string };
+ /** The geo-location where the resource lives */
+ location: string;
+};
+
+/** The resource model definition for an Azure Resource Manager resource with an etag. */
+export type AzureEntityResource = Resource & {
/**
- * List of linked private link scope resources.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * Resource Etag.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly privateLinkScopedResources?: PrivateLinkScopedResource[];
+ readonly etag?: string;
+};
+
+/** The top level data export resource container. */
+export type DataExport = ProxyResource & {
+ /** The data export rule ID. */
+ dataExportId?: string;
+ /** An array of tables to export, for example: [“Heartbeat, SecurityEvent”]. */
+ tableNames?: string[];
+ /** Active when enabled. */
+ enable?: boolean;
+ /** The latest data export rule modification time. */
+ createdDate?: string;
+ /** Date and time when the export was last modified. */
+ lastModifiedDate?: string;
+ /** The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure. */
+ resourceId?: string;
/**
- * Workspace features.
+ * The type of the destination resource
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- features?: { [propertyName: string]: any };
+ readonly typePropertiesDestinationType?: Type;
+ /** Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account. */
+ eventHubName?: string;
+};
+
+/** Datasources under OMS Workspace. */
+export type DataSource = ProxyResource & {
+ /** The data source properties in raw json format, each kind of data source have it's own schema. */
+ properties: Record;
+ /** The ETag of the data source. */
+ etag?: string;
+ /** The kind of the DataSource. */
+ kind: DataSourceKind;
+ /** Resource tags. */
+ tags?: { [propertyName: string]: string };
+};
+
+/** The top level Linked service resource container. */
+export type LinkedService = ProxyResource & {
+ /** Resource tags. */
+ tags?: { [propertyName: string]: string };
+ /** The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access */
+ resourceId?: string;
+ /** The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access */
+ writeAccessResourceId?: string;
+ /** The provisioning state of the linked service. */
+ provisioningState?: LinkedServiceEntityStatus;
+};
+
+/** Linked storage accounts top level resource container. */
+export type LinkedStorageAccountsResource = ProxyResource & {
/**
- * The ETag of the workspace.
+ * Linked storage accounts type.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
+ readonly dataSourceType?: DataSourceType;
+ /** Linked storage accounts resources ids. */
+ storageAccountIds?: string[];
+};
+
+/** The top level storage insight resource container. */
+export type StorageInsight = ProxyResource & {
+ /** The ETag of the storage insight. */
eTag?: string;
-}
+ /** Resource tags. */
+ tags?: { [propertyName: string]: string };
+ /** The names of the blob containers that the workspace should read */
+ containers?: string[];
+ /** The names of the Azure tables that the workspace should read */
+ tables?: string[];
+ /** The storage account connection details */
+ storageAccount?: StorageAccount;
+ /**
+ * The status of the storage insight
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly status?: StorageInsightStatus;
+};
-/**
- * The top level Workspace resource container.
- */
-export interface WorkspacePatch extends AzureEntityResource {
+/** Value object for saved search results. */
+export type SavedSearch = ProxyResource & {
+ /** The ETag of the saved search. To override an existing saved search, use "*" or specify the current Etag */
+ etag?: string;
+ /** The category of the saved search. This helps the user to find a saved search faster. */
+ category: string;
+ /** Saved search display name. */
+ displayName: string;
+ /** The query expression for the saved search. */
+ query: string;
+ /** The function alias if query serves as a function. */
+ functionAlias?: string;
+ /** The optional function parameters if query serves as a function. Value should be in the following format: 'param-name1:type1 = default_value1, param-name2:type2 = default_value2'. For more examples and proper syntax please refer to https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions. */
+ functionParameters?: string;
+ /** The version number of the query language. The current version is 2 and is the default. */
+ version?: number;
+ /** The tags attached to the saved search. */
+ tags?: Tag[];
+};
+
+/** The top level Log Analytics cluster resource container. */
+export type Cluster = TrackedResource & {
+ /** The identity of the resource. */
+ identity?: Identity;
+ /** The sku properties. */
+ sku?: ClusterSku;
/**
- * The provisioning state of the workspace. Possible values include: 'Creating', 'Succeeded',
- * 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount', 'Updating'
+ * The ID associated with the cluster.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- provisioningState?: WorkspaceEntityStatus;
+ readonly clusterId?: string;
/**
- * This is a read-only property. Represents the ID associated with the workspace.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The provisioning state of the cluster.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly customerId?: string;
+ readonly provisioningState?: ClusterEntityStatus;
+ /** Configures whether cluster will use double encryption. This Property can not be modified after cluster creation. Default value is 'true' */
+ isDoubleEncryptionEnabled?: boolean;
+ /** Sets whether the cluster will support availability zones. This can be set as true only in regions where Azure Data Explorer support Availability Zones. This Property can not be modified after cluster creation. Default value is 'true' if region supports Availability Zones. */
+ isAvailabilityZonesEnabled?: boolean;
+ /** The cluster's billing type. */
+ billingType?: BillingType;
+ /** The associated key properties. */
+ keyVaultProperties?: KeyVaultProperties;
/**
- * The SKU of the workspace.
+ * The last time the cluster was updated.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- sku?: WorkspaceSku;
+ readonly lastModifiedDate?: string;
/**
- * The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers
- * documentation for details.
+ * The cluster creation time
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- retentionInDays?: number;
+ readonly createdDate?: string;
+ /** The list of Log Analytics workspaces associated with the cluster */
+ associatedWorkspaces?: AssociatedWorkspace[];
+ /** Additional properties for capacity reservation */
+ capacityReservationProperties?: CapacityReservationProperties;
+};
+
+/** The top level Workspace resource container. */
+export type Workspace = TrackedResource & {
+ /** The ETag of the workspace. */
+ eTag?: string;
+ /** The provisioning state of the workspace. */
+ provisioningState?: WorkspaceEntityStatus;
/**
- * The daily volume cap for ingestion.
+ * This is a read-only property. Represents the ID associated with the workspace.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
+ readonly customerId?: string;
+ /** The SKU of the workspace. */
+ sku?: WorkspaceSku;
+ /** The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details. */
+ retentionInDays?: number;
+ /** The daily volume cap for ingestion. */
workspaceCapping?: WorkspaceCapping;
/**
* Workspace creation date.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly createdDate?: string;
/**
* Workspace modification date.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly modifiedDate?: string;
- /**
- * The network access type for accessing Log Analytics ingestion. Possible values include:
- * 'Enabled', 'Disabled'. Default value: 'Enabled'.
- */
+ /** The network access type for accessing Log Analytics ingestion. */
publicNetworkAccessForIngestion?: PublicNetworkAccessType;
- /**
- * The network access type for accessing Log Analytics query. Possible values include: 'Enabled',
- * 'Disabled'. Default value: 'Enabled'.
- */
+ /** The network access type for accessing Log Analytics query. */
publicNetworkAccessForQuery?: PublicNetworkAccessType;
- /**
- * Indicates whether customer managed storage is mandatory for query management.
- */
+ /** Indicates whether customer managed storage is mandatory for query management. */
forceCmkForQuery?: boolean;
/**
* List of linked private link scope resources.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly privateLinkScopedResources?: PrivateLinkScopedResource[];
- /**
- * Workspace features.
- */
- features?: { [propertyName: string]: any };
- /**
- * Resource tags. Optional.
- */
- tags?: { [propertyName: string]: string };
-}
-
-/**
- * The key vault properties.
- */
-export interface KeyVaultProperties {
- /**
- * The Key Vault uri which holds they key associated with the Log Analytics cluster.
- */
- keyVaultUri?: string;
- /**
- * The name of the key associated with the Log Analytics cluster.
- */
- keyName?: string;
- /**
- * The version of the key associated with the Log Analytics cluster.
- */
- keyVersion?: string;
-}
-
-/**
- * The cluster sku definition.
- */
-export interface ClusterSku {
- /**
- * The capacity value
- */
- capacity?: number;
- /**
- * The name of the SKU. Possible values include: 'CapacityReservation'
- */
- name?: ClusterSkuNameEnum;
-}
-
-/**
- * The top level Log Analytics cluster resource container.
- */
-export interface ClusterPatch extends BaseResource {
- /**
- * The associated key properties.
- */
- keyVaultProperties?: KeyVaultProperties;
- /**
- * The sku properties.
- */
- sku?: ClusterSku;
- /**
- * Resource tags.
- */
- tags?: { [propertyName: string]: string };
-}
-
-/**
- * Identity for the resource.
- */
-export interface Identity {
- /**
- * The principal ID of resource identity.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly principalId?: string;
- /**
- * The tenant ID of resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly tenantId?: string;
- /**
- * The identity type. Possible values include: 'SystemAssigned', 'None'
- */
- type: IdentityType;
-}
-
-/**
- * The top level Log Analytics cluster resource container.
- */
-export interface Cluster extends TrackedResource {
- /**
- * The identity of the resource.
- */
- identity?: Identity;
- /**
- * The sku properties.
- */
- sku?: ClusterSku;
- /**
- * The link used to get the next page of recommendations.
- */
- nextLink?: string;
- /**
- * The ID associated with the cluster.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly clusterId?: string;
- /**
- * The provisioning state of the cluster. Possible values include: 'Creating', 'Succeeded',
- * 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount', 'Updating'
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly provisioningState?: ClusterEntityStatus;
- /**
- * The associated key properties.
- */
- keyVaultProperties?: KeyVaultProperties;
-}
-
-/**
- * Describes a storage account connection.
- */
-export interface StorageAccount {
- /**
- * The Azure Resource Manager ID of the storage account resource.
- */
- id: string;
- /**
- * The storage account key.
- */
- key: string;
-}
-
-/**
- * The status of the storage insight.
- */
-export interface StorageInsightStatus {
- /**
- * The state of the storage insight connection to the workspace. Possible values include: 'OK',
- * 'ERROR'
- */
- state: StorageInsightState;
- /**
- * Description of the state of the storage insight.
- */
- description?: string;
-}
+ /** Workspace features. */
+ features?: WorkspaceFeatures;
+};
-/**
- * The top level storage insight resource container.
- */
-export interface StorageInsight extends ProxyResource {
- /**
- * The names of the blob containers that the workspace should read
- */
- containers?: string[];
- /**
- * The names of the Azure tables that the workspace should read
- */
- tables?: string[];
- /**
- * The storage account connection details
- */
- storageAccount: StorageAccount;
- /**
- * The status of the storage insight
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly status?: StorageInsightStatus;
- /**
- * The ETag of the storage insight.
- */
- eTag?: string;
- /**
- * Resource tags.
- */
+/** The top level Workspace resource container. */
+export type WorkspacePatch = AzureEntityResource & {
+ /** Resource tags. Optional. */
tags?: { [propertyName: string]: string };
-}
-
-/**
- * A tag of a saved search.
- */
-export interface Tag {
- /**
- * The tag name.
- */
- name: string;
- /**
- * The tag value.
- */
- value: string;
-}
-
-/**
- * Value object for saved search results.
- */
-export interface SavedSearch extends ProxyResource {
- /**
- * The ETag of the saved search.
- */
- etag?: string;
- /**
- * The category of the saved search. This helps the user to find a saved search faster.
- */
- category: string;
- /**
- * Saved search display name.
- */
- displayName: string;
- /**
- * The query expression for the saved search.
- */
- query: string;
- /**
- * The function alias if query serves as a function.
- */
- functionAlias?: string;
- /**
- * The optional function parameters if query serves as a function. Value should be in the
- * following format: 'param-name1:type1 = default_value1, param-name2:type2 = default_value2'.
- * For more examples and proper syntax please refer to
- * https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions.
- */
- functionParameters?: string;
- /**
- * The version number of the query language. The current version is 2 and is the default.
- */
- version?: number;
- /**
- * The tags attached to the saved search.
- */
- tags?: Tag[];
-}
-
-/**
- * The saved search list operation response.
- */
-export interface SavedSearchesListResult {
- /**
- * The array of result values.
- */
- value?: SavedSearch[];
-}
-
-/**
- * Service Tier details.
- */
-export interface AvailableServiceTier {
- /**
- * The name of the Service Tier. Possible values include: 'Free', 'Standard', 'Premium',
- * 'PerNode', 'PerGB2018', 'Standalone', 'CapacityReservation'
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly serviceTier?: SkuNameEnum;
- /**
- * True if the Service Tier is enabled for the workspace.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly enabled?: boolean;
- /**
- * The minimum retention for the Service Tier, in days.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly minimumRetention?: number;
- /**
- * The maximum retention for the Service Tier, in days.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly maximumRetention?: number;
- /**
- * The default retention for the Service Tier, in days.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly defaultRetention?: number;
+ /** The provisioning state of the workspace. */
+ provisioningState?: WorkspaceEntityStatus;
/**
- * The capacity reservation level in GB per day. Returned for the Capacity Reservation Service
- * Tier.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * This is a read-only property. Represents the ID associated with the workspace.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly capacityReservationLevel?: number;
+ readonly customerId?: string;
+ /** The SKU of the workspace. */
+ sku?: WorkspaceSku;
+ /** The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details. */
+ retentionInDays?: number;
+ /** The daily volume cap for ingestion. */
+ workspaceCapping?: WorkspaceCapping;
/**
- * Time when the sku was last updated for the workspace. Returned for the Capacity Reservation
- * Service Tier.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * Workspace creation date.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- readonly lastSkuUpdate?: string;
-}
-
-/**
- * The core summary of a search.
- */
-export interface CoreSummary {
+ readonly createdDate?: string;
/**
- * The status of a core summary.
+ * Workspace modification date.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- status?: string;
+ readonly modifiedDate?: string;
+ /** The network access type for accessing Log Analytics ingestion. */
+ publicNetworkAccessForIngestion?: PublicNetworkAccessType;
+ /** The network access type for accessing Log Analytics query. */
+ publicNetworkAccessForQuery?: PublicNetworkAccessType;
+ /** Indicates whether customer managed storage is mandatory for query management. */
+ forceCmkForQuery?: boolean;
/**
- * The number of documents of a core summary.
+ * List of linked private link scope resources.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- numberOfDocuments: number;
-}
+ readonly privateLinkScopedResources?: PrivateLinkScopedResource[];
+ /** Workspace features. */
+ features?: WorkspaceFeatures;
+};
-/**
- * The sort parameters for search.
+/** Defines headers for WorkspacePurge_purge operation. */
+export interface WorkspacePurgePurgeHeaders {
+ /** The location from which to request the operation status. */
+ xMsStatusLocation?: string;
+}
+
+/** Known values of {@link Type} that the service accepts. */
+export enum KnownType {
+ StorageAccount = "StorageAccount",
+ EventHub = "EventHub"
+}
+
+/**
+ * Defines values for Type. \
+ * {@link KnownType} can be used interchangeably with Type,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **StorageAccount** \
+ * **EventHub**
+ */
+export type Type = string;
+
+/** Known values of {@link DataSourceKind} that the service accepts. */
+export enum KnownDataSourceKind {
+ WindowsEvent = "WindowsEvent",
+ WindowsPerformanceCounter = "WindowsPerformanceCounter",
+ IISLogs = "IISLogs",
+ LinuxSyslog = "LinuxSyslog",
+ LinuxSyslogCollection = "LinuxSyslogCollection",
+ LinuxPerformanceObject = "LinuxPerformanceObject",
+ LinuxPerformanceCollection = "LinuxPerformanceCollection",
+ CustomLog = "CustomLog",
+ CustomLogCollection = "CustomLogCollection",
+ AzureAuditLog = "AzureAuditLog",
+ AzureActivityLog = "AzureActivityLog",
+ GenericDataSource = "GenericDataSource",
+ ChangeTrackingCustomPath = "ChangeTrackingCustomPath",
+ ChangeTrackingPath = "ChangeTrackingPath",
+ ChangeTrackingServices = "ChangeTrackingServices",
+ ChangeTrackingDataTypeConfiguration = "ChangeTrackingDataTypeConfiguration",
+ ChangeTrackingDefaultRegistry = "ChangeTrackingDefaultRegistry",
+ ChangeTrackingRegistry = "ChangeTrackingRegistry",
+ ChangeTrackingLinuxPath = "ChangeTrackingLinuxPath",
+ LinuxChangeTrackingPath = "LinuxChangeTrackingPath",
+ ChangeTrackingContentLocation = "ChangeTrackingContentLocation",
+ WindowsTelemetry = "WindowsTelemetry",
+ Office365 = "Office365",
+ SecurityWindowsBaselineConfiguration = "SecurityWindowsBaselineConfiguration",
+ SecurityCenterSecurityWindowsBaselineConfiguration = "SecurityCenterSecurityWindowsBaselineConfiguration",
+ SecurityEventCollectionConfiguration = "SecurityEventCollectionConfiguration",
+ SecurityInsightsSecurityEventCollectionConfiguration = "SecurityInsightsSecurityEventCollectionConfiguration",
+ ImportComputerGroup = "ImportComputerGroup",
+ NetworkMonitoring = "NetworkMonitoring",
+ Itsm = "Itsm",
+ DnsAnalytics = "DnsAnalytics",
+ ApplicationInsights = "ApplicationInsights",
+ SqlDataClassification = "SqlDataClassification"
+}
+
+/**
+ * Defines values for DataSourceKind. \
+ * {@link KnownDataSourceKind} can be used interchangeably with DataSourceKind,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **WindowsEvent** \
+ * **WindowsPerformanceCounter** \
+ * **IISLogs** \
+ * **LinuxSyslog** \
+ * **LinuxSyslogCollection** \
+ * **LinuxPerformanceObject** \
+ * **LinuxPerformanceCollection** \
+ * **CustomLog** \
+ * **CustomLogCollection** \
+ * **AzureAuditLog** \
+ * **AzureActivityLog** \
+ * **GenericDataSource** \
+ * **ChangeTrackingCustomPath** \
+ * **ChangeTrackingPath** \
+ * **ChangeTrackingServices** \
+ * **ChangeTrackingDataTypeConfiguration** \
+ * **ChangeTrackingDefaultRegistry** \
+ * **ChangeTrackingRegistry** \
+ * **ChangeTrackingLinuxPath** \
+ * **LinuxChangeTrackingPath** \
+ * **ChangeTrackingContentLocation** \
+ * **WindowsTelemetry** \
+ * **Office365** \
+ * **SecurityWindowsBaselineConfiguration** \
+ * **SecurityCenterSecurityWindowsBaselineConfiguration** \
+ * **SecurityEventCollectionConfiguration** \
+ * **SecurityInsightsSecurityEventCollectionConfiguration** \
+ * **ImportComputerGroup** \
+ * **NetworkMonitoring** \
+ * **Itsm** \
+ * **DnsAnalytics** \
+ * **ApplicationInsights** \
+ * **SqlDataClassification**
+ */
+export type DataSourceKind = string;
+
+/** Known values of {@link LinkedServiceEntityStatus} that the service accepts. */
+export enum KnownLinkedServiceEntityStatus {
+ Succeeded = "Succeeded",
+ Deleting = "Deleting",
+ ProvisioningAccount = "ProvisioningAccount",
+ Updating = "Updating"
+}
+
+/**
+ * Defines values for LinkedServiceEntityStatus. \
+ * {@link KnownLinkedServiceEntityStatus} can be used interchangeably with LinkedServiceEntityStatus,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Succeeded** \
+ * **Deleting** \
+ * **ProvisioningAccount** \
+ * **Updating**
+ */
+export type LinkedServiceEntityStatus = string;
+
+/** Known values of {@link StorageInsightState} that the service accepts. */
+export enum KnownStorageInsightState {
+ OK = "OK",
+ Error = "ERROR"
+}
+
+/**
+ * Defines values for StorageInsightState. \
+ * {@link KnownStorageInsightState} can be used interchangeably with StorageInsightState,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **OK** \
+ * **ERROR**
+ */
+export type StorageInsightState = string;
+
+/** Known values of {@link SkuNameEnum} that the service accepts. */
+export enum KnownSkuNameEnum {
+ Free = "Free",
+ Standard = "Standard",
+ Premium = "Premium",
+ PerNode = "PerNode",
+ PerGB2018 = "PerGB2018",
+ Standalone = "Standalone",
+ CapacityReservation = "CapacityReservation"
+}
+
+/**
+ * Defines values for SkuNameEnum. \
+ * {@link KnownSkuNameEnum} can be used interchangeably with SkuNameEnum,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Free** \
+ * **Standard** \
+ * **Premium** \
+ * **PerNode** \
+ * **PerGB2018** \
+ * **Standalone** \
+ * **CapacityReservation**
+ */
+export type SkuNameEnum = string;
+
+/** Known values of {@link SearchSortEnum} that the service accepts. */
+export enum KnownSearchSortEnum {
+ Asc = "asc",
+ Desc = "desc"
+}
+
+/**
+ * Defines values for SearchSortEnum. \
+ * {@link KnownSearchSortEnum} can be used interchangeably with SearchSortEnum,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **asc** \
+ * **desc**
+ */
+export type SearchSortEnum = string;
+
+/** Known values of {@link PurgeState} that the service accepts. */
+export enum KnownPurgeState {
+ Pending = "pending",
+ Completed = "completed"
+}
+
+/**
+ * Defines values for PurgeState. \
+ * {@link KnownPurgeState} can be used interchangeably with PurgeState,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **pending** \
+ * **completed**
*/
-export interface SearchSort {
- /**
- * The name of the field the search query is sorted on.
- */
- name?: string;
- /**
- * The sort order of the search. Possible values include: 'asc', 'desc'
- */
- order?: SearchSortEnum;
-}
+export type PurgeState = string;
-/**
- * Schema metadata for search.
- */
-export interface SearchMetadataSchema {
- /**
- * The name of the metadata schema.
- */
- name?: string;
- /**
- * The version of the metadata schema.
- */
- version?: number;
+/** Known values of {@link ClusterSkuNameEnum} that the service accepts. */
+export enum KnownClusterSkuNameEnum {
+ CapacityReservation = "CapacityReservation"
}
-
-/**
- * Metadata for search results.
+
+/**
+ * Defines values for ClusterSkuNameEnum. \
+ * {@link KnownClusterSkuNameEnum} can be used interchangeably with ClusterSkuNameEnum,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **CapacityReservation**
*/
-export interface SearchMetadata {
- /**
- * The request id of the search.
- */
- searchId?: string;
- /**
- * The search result type.
- */
- resultType?: string;
- /**
- * The total number of search results.
- */
- total?: number;
- /**
- * The number of top search results.
- */
- top?: number;
- /**
- * The id of the search results request.
- */
- id?: string;
- /**
- * The core summaries.
- */
- coreSummaries?: CoreSummary[];
- /**
- * The status of the search results.
- */
- status?: string;
- /**
- * The start time for the search.
- */
- startTime?: Date;
- /**
- * The time of last update.
- */
- lastUpdated?: Date;
- /**
- * The ETag of the search results.
- */
- eTag?: string;
- /**
- * How the results are sorted.
- */
- sort?: SearchSort[];
- /**
- * The request time.
- */
- requestTime?: number;
- /**
- * The aggregated value field.
- */
- aggregatedValueField?: string;
- /**
- * The aggregated grouping fields.
- */
- aggregatedGroupingFields?: string;
- /**
- * The sum of all aggregates returned in the result set.
- */
- sum?: number;
- /**
- * The max of all aggregates returned in the result set.
- */
- max?: number;
- /**
- * The schema.
- */
- schema?: SearchMetadataSchema;
+export type ClusterSkuNameEnum = string;
+
+/** Known values of {@link ClusterEntityStatus} that the service accepts. */
+export enum KnownClusterEntityStatus {
+ Creating = "Creating",
+ Succeeded = "Succeeded",
+ Failed = "Failed",
+ Canceled = "Canceled",
+ Deleting = "Deleting",
+ ProvisioningAccount = "ProvisioningAccount",
+ Updating = "Updating"
+}
+
+/**
+ * Defines values for ClusterEntityStatus. \
+ * {@link KnownClusterEntityStatus} can be used interchangeably with ClusterEntityStatus,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Creating** \
+ * **Succeeded** \
+ * **Failed** \
+ * **Canceled** \
+ * **Deleting** \
+ * **ProvisioningAccount** \
+ * **Updating**
+ */
+export type ClusterEntityStatus = string;
+
+/** Known values of {@link BillingType} that the service accepts. */
+export enum KnownBillingType {
+ Cluster = "Cluster",
+ Workspaces = "Workspaces"
+}
+
+/**
+ * Defines values for BillingType. \
+ * {@link KnownBillingType} can be used interchangeably with BillingType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Cluster** \
+ * **Workspaces**
+ */
+export type BillingType = string;
+
+/** Known values of {@link WorkspaceEntityStatus} that the service accepts. */
+export enum KnownWorkspaceEntityStatus {
+ Creating = "Creating",
+ Succeeded = "Succeeded",
+ Failed = "Failed",
+ Canceled = "Canceled",
+ Deleting = "Deleting",
+ ProvisioningAccount = "ProvisioningAccount",
+ Updating = "Updating"
+}
+
+/**
+ * Defines values for WorkspaceEntityStatus. \
+ * {@link KnownWorkspaceEntityStatus} can be used interchangeably with WorkspaceEntityStatus,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Creating** \
+ * **Succeeded** \
+ * **Failed** \
+ * **Canceled** \
+ * **Deleting** \
+ * **ProvisioningAccount** \
+ * **Updating**
+ */
+export type WorkspaceEntityStatus = string;
+
+/** Known values of {@link WorkspaceSkuNameEnum} that the service accepts. */
+export enum KnownWorkspaceSkuNameEnum {
+ Free = "Free",
+ Standard = "Standard",
+ Premium = "Premium",
+ PerNode = "PerNode",
+ PerGB2018 = "PerGB2018",
+ Standalone = "Standalone",
+ CapacityReservation = "CapacityReservation",
+ LACluster = "LACluster"
+}
+
+/**
+ * Defines values for WorkspaceSkuNameEnum. \
+ * {@link KnownWorkspaceSkuNameEnum} can be used interchangeably with WorkspaceSkuNameEnum,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Free** \
+ * **Standard** \
+ * **Premium** \
+ * **PerNode** \
+ * **PerGB2018** \
+ * **Standalone** \
+ * **CapacityReservation** \
+ * **LACluster**
+ */
+export type WorkspaceSkuNameEnum = string;
+
+/** Known values of {@link DataIngestionStatus} that the service accepts. */
+export enum KnownDataIngestionStatus {
+ /** Ingestion enabled following daily cap quota reset, or subscription enablement. */
+ RespectQuota = "RespectQuota",
+ /** Ingestion started following service setting change. */
+ ForceOn = "ForceOn",
+ /** Ingestion stopped following service setting change. */
+ ForceOff = "ForceOff",
+ /** Reached daily cap quota, ingestion stopped. */
+ OverQuota = "OverQuota",
+ /** Ingestion stopped following suspended subscription. */
+ SubscriptionSuspended = "SubscriptionSuspended",
+ /** 80% of daily cap quota reached. */
+ ApproachingQuota = "ApproachingQuota"
+}
+
+/**
+ * Defines values for DataIngestionStatus. \
+ * {@link KnownDataIngestionStatus} can be used interchangeably with DataIngestionStatus,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **RespectQuota**: Ingestion enabled following daily cap quota reset, or subscription enablement. \
+ * **ForceOn**: Ingestion started following service setting change. \
+ * **ForceOff**: Ingestion stopped following service setting change. \
+ * **OverQuota**: Reached daily cap quota, ingestion stopped. \
+ * **SubscriptionSuspended**: Ingestion stopped following suspended subscription. \
+ * **ApproachingQuota**: 80% of daily cap quota reached.
+ */
+export type DataIngestionStatus = string;
+
+/** Known values of {@link PublicNetworkAccessType} that the service accepts. */
+export enum KnownPublicNetworkAccessType {
+ /** Enables connectivity to Log Analytics through public DNS. */
+ Enabled = "Enabled",
+ /** Disables public connectivity to Log Analytics through public DNS. */
+ Disabled = "Disabled"
+}
+
+/**
+ * Defines values for PublicNetworkAccessType. \
+ * {@link KnownPublicNetworkAccessType} can be used interchangeably with PublicNetworkAccessType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Enabled**: Enables connectivity to Log Analytics through public DNS. \
+ * **Disabled**: Disables public connectivity to Log Analytics through public DNS.
+ */
+export type PublicNetworkAccessType = string;
+/** Defines values for DataSourceType. */
+export type DataSourceType = "CustomLogs" | "AzureWatson" | "Query" | "Alerts";
+/** Defines values for IdentityType. */
+export type IdentityType = "SystemAssigned" | "UserAssigned" | "None";
+/** Defines values for Capacity. */
+export type Capacity = 500 | 1000 | 2000 | 5000;
+/** Defines values for CapacityReservationLevel. */
+export type CapacityReservationLevel =
+ | 100
+ | 200
+ | 300
+ | 400
+ | 500
+ | 1000
+ | 2000
+ | 5000;
+
+/** Optional parameters. */
+export interface DataExportsListByWorkspaceOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByWorkspace operation. */
+export type DataExportsListByWorkspaceResponse = DataExportListResult;
+
+/** Optional parameters. */
+export interface DataExportsCreateOrUpdateOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the createOrUpdate operation. */
+export type DataExportsCreateOrUpdateResponse = DataExport;
+
+/** Optional parameters. */
+export interface DataExportsGetOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type DataExportsGetResponse = DataExport;
+
+/** Optional parameters. */
+export interface DataExportsDeleteOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Optional parameters. */
+export interface DataSourcesCreateOrUpdateOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the createOrUpdate operation. */
+export type DataSourcesCreateOrUpdateResponse = DataSource;
+
+/** Optional parameters. */
+export interface DataSourcesDeleteOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Optional parameters. */
+export interface DataSourcesGetOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type DataSourcesGetResponse = DataSource;
+
+/** Optional parameters. */
+export interface DataSourcesListByWorkspaceOptionalParams
+ extends coreClient.OperationOptions {
+ /** Starting point of the collection of data source instances. */
+ skiptoken?: string;
}
-/**
- * Value object for schema results.
- */
-export interface SearchSchemaValue {
- /**
- * The name of the schema.
- */
- name?: string;
- /**
- * The display name of the schema.
- */
- displayName?: string;
- /**
- * The type.
- */
- type?: string;
- /**
- * The boolean that indicates the field is searchable as free text.
- */
- indexed: boolean;
- /**
- * The boolean that indicates whether or not the field is stored.
- */
- stored: boolean;
- /**
- * The boolean that indicates whether or not the field is a facet.
- */
- facet: boolean;
- /**
- * The array of workflows containing the field.
- */
- ownerType?: string[];
-}
+/** Contains response data for the listByWorkspace operation. */
+export type DataSourcesListByWorkspaceResponse = DataSourceListResult;
-/**
- * The get schema operation response.
- */
-export interface SearchGetSchemaResponse {
- /**
- * The metadata from search results.
- */
- metadata?: SearchMetadata;
- /**
- * The array of result values.
- */
- value?: SearchSchemaValue[];
+/** Optional parameters. */
+export interface DataSourcesListByWorkspaceNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Starting point of the collection of data source instances. */
+ skiptoken?: string;
}
-/**
- * User-defined filters to return data which will be purged from the table.
- */
-export interface WorkspacePurgeBodyFilters {
- /**
- * The column of the table over which the given query should run
- */
- column?: string;
- /**
- * A query operator to evaluate over the provided column and value(s). Supported operators are
- * ==, =~, in, in~, >, >=, <, <=, between, and have the same behavior as they would in a KQL
- * query.
- */
- operator?: string;
- /**
- * the value for the operator to function over. This can be a number (e.g., > 100), a string
- * (timestamp >= '2017-09-01') or array of values.
- */
- value?: any;
- /**
- * When filtering over custom dimensions, this key will be used as the name of the custom
- * dimension.
- */
- key?: string;
-}
+/** Contains response data for the listByWorkspaceNext operation. */
+export type DataSourcesListByWorkspaceNextResponse = DataSourceListResult;
-/**
- * Describes the body of a purge request for an App Insights Workspace
- */
-export interface WorkspacePurgeBody {
- /**
- * Table from which to purge data.
- */
- table: string;
- /**
- * The set of columns and filters (queries) to run over them to purge the resulting data.
- */
- filters: WorkspacePurgeBodyFilters[];
-}
+/** Optional parameters. */
+export interface IntelligencePacksDisableOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Response containing operationId for a specific purge action.
- */
-export interface WorkspacePurgeResponse {
- /**
- * Id to use when querying for status for a particular purge operation.
- */
- operationId: string;
-}
+/** Optional parameters. */
+export interface IntelligencePacksEnableOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Response containing status for a specific purge operation.
- */
-export interface WorkspacePurgeStatusResponse {
- /**
- * Status of the operation represented by the requested Id. Possible values include: 'pending',
- * 'completed'
- */
- status: PurgeState;
-}
+/** Optional parameters. */
+export interface IntelligencePacksListOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Workspace data table definition.
- */
-export interface Table extends ProxyResource {
- /**
- * The data table data retention in days, between 30 and 730. Setting this property to null will
- * default to the workspace retention.
- */
- retentionInDays?: number;
-}
+/** Contains response data for the list operation. */
+export type IntelligencePacksListResponse = IntelligencePack[];
-/**
- * Optional Parameters.
- */
-export interface DataSourcesListByWorkspaceOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Starting point of the collection of data source instances.
- */
- skiptoken?: string;
+/** Optional parameters. */
+export interface LinkedServicesCreateOrUpdateOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
}
-/**
- * Optional Parameters.
- */
-export interface DataSourcesListByWorkspaceNextOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Starting point of the collection of data source instances.
- */
- skiptoken?: string;
-}
+/** Contains response data for the createOrUpdate operation. */
+export type LinkedServicesCreateOrUpdateResponse = LinkedService;
-/**
- * Optional Parameters.
- */
-export interface WorkspacesDeleteMethodOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Deletes the workspace without the recovery option. A workspace that was deleted with this flag
- * cannot be recovered.
- */
- force?: boolean;
+/** Optional parameters. */
+export interface LinkedServicesDeleteOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
}
-/**
- * Optional Parameters.
- */
-export interface WorkspacesBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Deletes the workspace without the recovery option. A workspace that was deleted with this flag
- * cannot be recovered.
- */
- force?: boolean;
-}
+/** Contains response data for the delete operation. */
+export type LinkedServicesDeleteResponse = LinkedService;
-/**
- * An interface representing OperationalInsightsManagementClientOptions.
- */
-export interface OperationalInsightsManagementClientOptions extends AzureServiceClientOptions {
- baseUri?: string;
-}
+/** Optional parameters. */
+export interface LinkedServicesGetOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Defines headers for Purge operation.
- */
-export interface WorkspacePurgePurgeHeaders {
- /**
- * The location from which to request the operation status.
- */
- xMsStatusLocation: string;
-}
+/** Contains response data for the get operation. */
+export type LinkedServicesGetResponse = LinkedService;
-/**
- * @interface
- * Result of the request to list data exports.
- * @extends Array
- */
-export interface DataExportListResult extends Array {
-}
+/** Optional parameters. */
+export interface LinkedServicesListByWorkspaceOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * @interface
- * The list data source by workspace operation response.
- * @extends Array
- */
-export interface DataSourceListResult extends Array {
- /**
- * The link (url) to the next page of datasources.
- */
- nextLink?: string;
-}
+/** Contains response data for the listByWorkspace operation. */
+export type LinkedServicesListByWorkspaceResponse = LinkedServiceListResult;
-/**
- * @interface
- * The list linked service operation response.
- * @extends Array
- */
-export interface LinkedServiceListResult extends Array {
-}
+/** Optional parameters. */
+export interface LinkedStorageAccountsCreateOrUpdateOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * @interface
- * The list linked storage accounts service operation response.
- * @extends Array
- */
-export interface LinkedStorageAccountsListResult extends Array {
-}
+/** Contains response data for the createOrUpdate operation. */
+export type LinkedStorageAccountsCreateOrUpdateResponse = LinkedStorageAccountsResource;
-/**
- * @interface
- * The list workspace management groups operation response.
- * @extends Array
- */
-export interface WorkspaceListManagementGroupsResult extends Array {
-}
+/** Optional parameters. */
+export interface LinkedStorageAccountsDeleteOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * @interface
- * Result of the request to list solution operations.
- * @extends Array
- */
-export interface OperationListResult extends Array {
- /**
- * URL to get the next set of operation list results if there are any.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly nextLink?: string;
-}
+/** Optional parameters. */
+export interface LinkedStorageAccountsGetOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * @interface
- * The list workspace usages operation response.
- * @extends Array
- */
-export interface WorkspaceListUsagesResult extends Array {
-}
+/** Contains response data for the get operation. */
+export type LinkedStorageAccountsGetResponse = LinkedStorageAccountsResource;
-/**
- * @interface
- * The list workspaces operation response.
- * @extends Array
- */
-export interface WorkspaceListResult extends Array {
-}
-
-/**
- * @interface
- * The list clusters operation response.
- * @extends Array
- */
-export interface ClusterListResult extends Array {
- /**
- * The link used to get the next page of recommendations.
- */
- nextLink?: string;
-}
+/** Optional parameters. */
+export interface LinkedStorageAccountsListByWorkspaceOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * @interface
- * The list storage insights operation response.
- * @extends Array
- */
-export interface StorageInsightListResult extends Array {
- /**
- * The link (url) to the next page of results.
- */
- odataNextLink?: string;
-}
+/** Contains response data for the listByWorkspace operation. */
+export type LinkedStorageAccountsListByWorkspaceResponse = LinkedStorageAccountsListResult;
-/**
- * @interface
- * The list tables operation response.
- * @extends Array
- */
-export interface TablesListResult extends Array {
-}
+/** Optional parameters. */
+export interface ManagementGroupsListOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Defines values for Type.
- * Possible values include: 'StorageAccount', 'EventHub'
- * @readonly
- * @enum {string}
- */
-export type Type = 'StorageAccount' | 'EventHub';
+/** Contains response data for the list operation. */
+export type ManagementGroupsListResponse = WorkspaceListManagementGroupsResult;
-/**
- * Defines values for DataSourceKind.
- * Possible values include: 'WindowsEvent', 'WindowsPerformanceCounter', 'IISLogs', 'LinuxSyslog',
- * 'LinuxSyslogCollection', 'LinuxPerformanceObject', 'LinuxPerformanceCollection', 'CustomLog',
- * 'CustomLogCollection', 'AzureAuditLog', 'AzureActivityLog', 'GenericDataSource',
- * 'ChangeTrackingCustomPath', 'ChangeTrackingPath', 'ChangeTrackingServices',
- * 'ChangeTrackingDataTypeConfiguration', 'ChangeTrackingDefaultRegistry',
- * 'ChangeTrackingRegistry', 'ChangeTrackingLinuxPath', 'LinuxChangeTrackingPath',
- * 'ChangeTrackingContentLocation', 'WindowsTelemetry', 'Office365',
- * 'SecurityWindowsBaselineConfiguration', 'SecurityCenterSecurityWindowsBaselineConfiguration',
- * 'SecurityEventCollectionConfiguration', 'SecurityInsightsSecurityEventCollectionConfiguration',
- * 'ImportComputerGroup', 'NetworkMonitoring', 'Itsm', 'DnsAnalytics', 'ApplicationInsights',
- * 'SqlDataClassification'
- * @readonly
- * @enum {string}
- */
-export type DataSourceKind = 'WindowsEvent' | 'WindowsPerformanceCounter' | 'IISLogs' | 'LinuxSyslog' | 'LinuxSyslogCollection' | 'LinuxPerformanceObject' | 'LinuxPerformanceCollection' | 'CustomLog' | 'CustomLogCollection' | 'AzureAuditLog' | 'AzureActivityLog' | 'GenericDataSource' | 'ChangeTrackingCustomPath' | 'ChangeTrackingPath' | 'ChangeTrackingServices' | 'ChangeTrackingDataTypeConfiguration' | 'ChangeTrackingDefaultRegistry' | 'ChangeTrackingRegistry' | 'ChangeTrackingLinuxPath' | 'LinuxChangeTrackingPath' | 'ChangeTrackingContentLocation' | 'WindowsTelemetry' | 'Office365' | 'SecurityWindowsBaselineConfiguration' | 'SecurityCenterSecurityWindowsBaselineConfiguration' | 'SecurityEventCollectionConfiguration' | 'SecurityInsightsSecurityEventCollectionConfiguration' | 'ImportComputerGroup' | 'NetworkMonitoring' | 'Itsm' | 'DnsAnalytics' | 'ApplicationInsights' | 'SqlDataClassification';
+/** Optional parameters. */
+export interface OperationStatusesGetOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Defines values for LinkedServiceEntityStatus.
- * Possible values include: 'Succeeded', 'Deleting', 'ProvisioningAccount', 'Updating'
- * @readonly
- * @enum {string}
- */
-export type LinkedServiceEntityStatus = 'Succeeded' | 'Deleting' | 'ProvisioningAccount' | 'Updating';
+/** Contains response data for the get operation. */
+export type OperationStatusesGetResponse = OperationStatus;
-/**
- * Defines values for DataSourceType.
- * Possible values include: 'CustomLogs', 'AzureWatson', 'Query', 'Alerts'
- * @readonly
- * @enum {string}
- */
-export type DataSourceType = 'CustomLogs' | 'AzureWatson' | 'Query' | 'Alerts';
+/** Optional parameters. */
+export interface SharedKeysGetSharedKeysOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Defines values for WorkspaceSkuNameEnum.
- * Possible values include: 'Free', 'Standard', 'Premium', 'PerNode', 'PerGB2018', 'Standalone',
- * 'CapacityReservation', 'LACluster'
- * @readonly
- * @enum {string}
- */
-export type WorkspaceSkuNameEnum = 'Free' | 'Standard' | 'Premium' | 'PerNode' | 'PerGB2018' | 'Standalone' | 'CapacityReservation' | 'LACluster';
+/** Contains response data for the getSharedKeys operation. */
+export type SharedKeysGetSharedKeysResponse = SharedKeys;
-/**
- * Defines values for DataIngestionStatus.
- * Possible values include: 'RespectQuota', 'ForceOn', 'ForceOff', 'OverQuota',
- * 'SubscriptionSuspended', 'ApproachingQuota'
- * @readonly
- * @enum {string}
- */
-export type DataIngestionStatus = 'RespectQuota' | 'ForceOn' | 'ForceOff' | 'OverQuota' | 'SubscriptionSuspended' | 'ApproachingQuota';
+/** Optional parameters. */
+export interface SharedKeysRegenerateOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Defines values for WorkspaceEntityStatus.
- * Possible values include: 'Creating', 'Succeeded', 'Failed', 'Canceled', 'Deleting',
- * 'ProvisioningAccount', 'Updating'
- * @readonly
- * @enum {string}
- */
-export type WorkspaceEntityStatus = 'Creating' | 'Succeeded' | 'Failed' | 'Canceled' | 'Deleting' | 'ProvisioningAccount' | 'Updating';
+/** Contains response data for the regenerate operation. */
+export type SharedKeysRegenerateResponse = SharedKeys;
-/**
- * Defines values for PublicNetworkAccessType.
- * Possible values include: 'Enabled', 'Disabled'
- * @readonly
- * @enum {string}
- */
-export type PublicNetworkAccessType = 'Enabled' | 'Disabled';
+/** Optional parameters. */
+export interface UsagesListOptionalParams extends coreClient.OperationOptions {}
-/**
- * Defines values for ClusterEntityStatus.
- * Possible values include: 'Creating', 'Succeeded', 'Failed', 'Canceled', 'Deleting',
- * 'ProvisioningAccount', 'Updating'
- * @readonly
- * @enum {string}
- */
-export type ClusterEntityStatus = 'Creating' | 'Succeeded' | 'Failed' | 'Canceled' | 'Deleting' | 'ProvisioningAccount' | 'Updating';
+/** Contains response data for the list operation. */
+export type UsagesListResponse = WorkspaceListUsagesResult;
-/**
- * Defines values for ClusterSkuNameEnum.
- * Possible values include: 'CapacityReservation'
- * @readonly
- * @enum {string}
- */
-export type ClusterSkuNameEnum = 'CapacityReservation';
+/** Optional parameters. */
+export interface StorageInsightConfigsCreateOrUpdateOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Defines values for IdentityType.
- * Possible values include: 'SystemAssigned', 'None'
- * @readonly
- * @enum {string}
- */
-export type IdentityType = 'SystemAssigned' | 'None';
+/** Contains response data for the createOrUpdate operation. */
+export type StorageInsightConfigsCreateOrUpdateResponse = StorageInsight;
-/**
- * Defines values for StorageInsightState.
- * Possible values include: 'OK', 'ERROR'
- * @readonly
- * @enum {string}
- */
-export type StorageInsightState = 'OK' | 'ERROR';
+/** Optional parameters. */
+export interface StorageInsightConfigsGetOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Defines values for SkuNameEnum.
- * Possible values include: 'Free', 'Standard', 'Premium', 'PerNode', 'PerGB2018', 'Standalone',
- * 'CapacityReservation'
- * @readonly
- * @enum {string}
- */
-export type SkuNameEnum = 'Free' | 'Standard' | 'Premium' | 'PerNode' | 'PerGB2018' | 'Standalone' | 'CapacityReservation';
+/** Contains response data for the get operation. */
+export type StorageInsightConfigsGetResponse = StorageInsight;
-/**
- * Defines values for SearchSortEnum.
- * Possible values include: 'asc', 'desc'
- * @readonly
- * @enum {string}
- */
-export type SearchSortEnum = 'asc' | 'desc';
+/** Optional parameters. */
+export interface StorageInsightConfigsDeleteOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Defines values for PurgeState.
- * Possible values include: 'pending', 'completed'
- * @readonly
- * @enum {string}
- */
-export type PurgeState = 'pending' | 'completed';
+/** Optional parameters. */
+export interface StorageInsightConfigsListByWorkspaceOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listByWorkspace operation.
- */
-export type DataExportsListByWorkspaceResponse = DataExportListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: DataExportListResult;
- };
-};
+/** Contains response data for the listByWorkspace operation. */
+export type StorageInsightConfigsListByWorkspaceResponse = StorageInsightListResult;
-/**
- * Contains response data for the createOrUpdate operation.
- */
-export type DataExportsCreateOrUpdateResponse = DataExport & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: DataExport;
- };
-};
+/** Optional parameters. */
+export interface StorageInsightConfigsListByWorkspaceNextOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the get operation.
- */
-export type DataExportsGetResponse = DataExport & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: DataExport;
- };
-};
+/** Contains response data for the listByWorkspaceNext operation. */
+export type StorageInsightConfigsListByWorkspaceNextResponse = StorageInsightListResult;
-/**
- * Contains response data for the createOrUpdate operation.
- */
-export type DataSourcesCreateOrUpdateResponse = DataSource & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: DataSource;
- };
-};
+/** Optional parameters. */
+export interface SavedSearchesDeleteOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the get operation.
- */
-export type DataSourcesGetResponse = DataSource & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: DataSource;
- };
-};
+/** Optional parameters. */
+export interface SavedSearchesCreateOrUpdateOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listByWorkspace operation.
- */
-export type DataSourcesListByWorkspaceResponse = DataSourceListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: DataSourceListResult;
- };
-};
+/** Contains response data for the createOrUpdate operation. */
+export type SavedSearchesCreateOrUpdateResponse = SavedSearch;
-/**
- * Contains response data for the listByWorkspaceNext operation.
- */
-export type DataSourcesListByWorkspaceNextResponse = DataSourceListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: DataSourceListResult;
- };
-};
+/** Optional parameters. */
+export interface SavedSearchesGetOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the list operation.
- */
-export type IntelligencePacksListResponse = Array & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: IntelligencePack[];
- };
-};
+/** Contains response data for the get operation. */
+export type SavedSearchesGetResponse = SavedSearch;
-/**
- * Contains response data for the createOrUpdate operation.
- */
-export type LinkedServicesCreateOrUpdateResponse = LinkedService & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: LinkedService;
- };
-};
+/** Optional parameters. */
+export interface SavedSearchesListByWorkspaceOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the deleteMethod operation.
- */
-export type LinkedServicesDeleteMethodResponse = LinkedService & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: LinkedService;
- };
-};
+/** Contains response data for the listByWorkspace operation. */
+export type SavedSearchesListByWorkspaceResponse = SavedSearchesListResult;
-/**
- * Contains response data for the get operation.
- */
-export type LinkedServicesGetResponse = LinkedService & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: LinkedService;
- };
-};
+/** Optional parameters. */
+export interface AvailableServiceTiersListByWorkspaceOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listByWorkspace operation.
- */
-export type LinkedServicesListByWorkspaceResponse = LinkedServiceListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: LinkedServiceListResult;
- };
-};
+/** Contains response data for the listByWorkspace operation. */
+export type AvailableServiceTiersListByWorkspaceResponse = AvailableServiceTier[];
-/**
- * Contains response data for the beginCreateOrUpdate operation.
- */
-export type LinkedServicesBeginCreateOrUpdateResponse = LinkedService & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: LinkedService;
- };
-};
+/** Optional parameters. */
+export interface GatewaysDeleteOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the beginDeleteMethod operation.
- */
-export type LinkedServicesBeginDeleteMethodResponse = LinkedService & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: LinkedService;
- };
-};
+/** Optional parameters. */
+export interface SchemaGetOptionalParams extends coreClient.OperationOptions {}
-/**
- * Contains response data for the createOrUpdate operation.
- */
-export type LinkedStorageAccountsCreateOrUpdateResponse = LinkedStorageAccountsResource & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: LinkedStorageAccountsResource;
- };
-};
+/** Contains response data for the get operation. */
+export type SchemaGetResponse = SearchGetSchemaResponse;
-/**
- * Contains response data for the get operation.
- */
-export type LinkedStorageAccountsGetResponse = LinkedStorageAccountsResource & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: LinkedStorageAccountsResource;
- };
-};
+/** Optional parameters. */
+export interface WorkspacePurgePurgeOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listByWorkspace operation.
- */
-export type LinkedStorageAccountsListByWorkspaceResponse = LinkedStorageAccountsListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: LinkedStorageAccountsListResult;
- };
-};
+/** Contains response data for the purge operation. */
+export type WorkspacePurgePurgeResponse = WorkspacePurgePurgeHeaders &
+ WorkspacePurgeResponse;
-/**
- * Contains response data for the list operation.
- */
-export type ManagementGroupsListResponse = WorkspaceListManagementGroupsResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: WorkspaceListManagementGroupsResult;
- };
-};
+/** Optional parameters. */
+export interface WorkspacePurgeGetPurgeStatusOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the list operation.
- */
-export type OperationsListResponse = OperationListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationListResult;
- };
-};
+/** Contains response data for the getPurgeStatus operation. */
+export type WorkspacePurgeGetPurgeStatusResponse = WorkspacePurgeStatusResponse;
-/**
- * Contains response data for the listNext operation.
- */
-export type OperationsListNextResponse = OperationListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationListResult;
- };
-};
+/** Optional parameters. */
+export interface OperationsListOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the get operation.
- */
-export type OperationStatusesGetResponse = OperationStatus & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationStatus;
- };
-};
+/** Contains response data for the list operation. */
+export type OperationsListResponse = OperationListResult;
-/**
- * Contains response data for the getSharedKeys operation.
- */
-export type SharedKeysGetSharedKeysResponse = SharedKeys & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SharedKeys;
- };
-};
+/** Optional parameters. */
+export interface OperationsListNextOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the regenerate operation.
- */
-export type SharedKeysRegenerateResponse = SharedKeys & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SharedKeys;
- };
-};
+/** Contains response data for the listNext operation. */
+export type OperationsListNextResponse = OperationListResult;
-/**
- * Contains response data for the list operation.
- */
-export type UsagesListResponse = WorkspaceListUsagesResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: WorkspaceListUsagesResult;
- };
-};
+/** Optional parameters. */
+export interface ClustersListByResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the list operation.
- */
-export type WorkspacesListResponse = WorkspaceListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: WorkspaceListResult;
- };
-};
+/** Contains response data for the listByResourceGroup operation. */
+export type ClustersListByResourceGroupResponse = ClusterListResult;
-/**
- * Contains response data for the listByResourceGroup operation.
- */
-export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: WorkspaceListResult;
- };
-};
+/** Optional parameters. */
+export interface ClustersListOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the createOrUpdate operation.
- */
-export type WorkspacesCreateOrUpdateResponse = Workspace & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Workspace;
- };
-};
+/** Contains response data for the list operation. */
+export type ClustersListResponse = ClusterListResult;
-/**
- * Contains response data for the get operation.
- */
-export type WorkspacesGetResponse = Workspace & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Workspace;
- };
-};
+/** Optional parameters. */
+export interface ClustersCreateOrUpdateOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
-/**
- * Contains response data for the update operation.
- */
-export type WorkspacesUpdateResponse = Workspace & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Workspace;
- };
-};
+/** Contains response data for the createOrUpdate operation. */
+export type ClustersCreateOrUpdateResponse = Cluster;
-/**
- * Contains response data for the beginCreateOrUpdate operation.
- */
-export type WorkspacesBeginCreateOrUpdateResponse = Workspace & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Workspace;
- };
-};
+/** Optional parameters. */
+export interface ClustersDeleteOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
-/**
- * Contains response data for the list operation.
- */
-export type DeletedWorkspacesListResponse = WorkspaceListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: WorkspaceListResult;
- };
-};
+/** Optional parameters. */
+export interface ClustersGetOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listByResourceGroup operation.
- */
-export type DeletedWorkspacesListByResourceGroupResponse = WorkspaceListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: WorkspaceListResult;
- };
-};
+/** Contains response data for the get operation. */
+export type ClustersGetResponse = Cluster;
-/**
- * Contains response data for the listByResourceGroup operation.
- */
-export type ClustersListByResourceGroupResponse = ClusterListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ClusterListResult;
- };
-};
+/** Optional parameters. */
+export interface ClustersUpdateOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the list operation.
- */
-export type ClustersListResponse = ClusterListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ClusterListResult;
- };
-};
+/** Contains response data for the update operation. */
+export type ClustersUpdateResponse = Cluster;
-/**
- * Contains response data for the createOrUpdate operation.
- */
-export type ClustersCreateOrUpdateResponse = Cluster & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Cluster;
- };
-};
+/** Optional parameters. */
+export interface ClustersListByResourceGroupNextOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the get operation.
- */
-export type ClustersGetResponse = Cluster & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Cluster;
- };
-};
+/** Contains response data for the listByResourceGroupNext operation. */
+export type ClustersListByResourceGroupNextResponse = ClusterListResult;
-/**
- * Contains response data for the update operation.
- */
-export type ClustersUpdateResponse = Cluster & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Cluster;
- };
-};
+/** Optional parameters. */
+export interface ClustersListNextOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the beginCreateOrUpdate operation.
- */
-export type ClustersBeginCreateOrUpdateResponse = Cluster & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Cluster;
- };
-};
+/** Contains response data for the listNext operation. */
+export type ClustersListNextResponse = ClusterListResult;
-/**
- * Contains response data for the listByResourceGroupNext operation.
- */
-export type ClustersListByResourceGroupNextResponse = ClusterListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ClusterListResult;
- };
-};
+/** Optional parameters. */
+export interface WorkspacesListOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listNext operation.
- */
-export type ClustersListNextResponse = ClusterListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ClusterListResult;
- };
-};
+/** Contains response data for the list operation. */
+export type WorkspacesListResponse = WorkspaceListResult;
-/**
- * Contains response data for the createOrUpdate operation.
- */
-export type StorageInsightConfigsCreateOrUpdateResponse = StorageInsight & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: StorageInsight;
- };
-};
+/** Optional parameters. */
+export interface WorkspacesListByResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the get operation.
- */
-export type StorageInsightConfigsGetResponse = StorageInsight & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: StorageInsight;
- };
-};
+/** Contains response data for the listByResourceGroup operation. */
+export type WorkspacesListByResourceGroupResponse = WorkspaceListResult;
-/**
- * Contains response data for the listByWorkspace operation.
- */
-export type StorageInsightConfigsListByWorkspaceResponse = StorageInsightListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: StorageInsightListResult;
- };
-};
+/** Optional parameters. */
+export interface WorkspacesCreateOrUpdateOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
-/**
- * Contains response data for the listByWorkspaceNext operation.
- */
-export type StorageInsightConfigsListByWorkspaceNextResponse = StorageInsightListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: StorageInsightListResult;
- };
-};
+/** Contains response data for the createOrUpdate operation. */
+export type WorkspacesCreateOrUpdateResponse = Workspace;
-/**
- * Contains response data for the createOrUpdate operation.
- */
-export type SavedSearchesCreateOrUpdateResponse = SavedSearch & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SavedSearch;
- };
-};
+/** Optional parameters. */
+export interface WorkspacesDeleteOptionalParams
+ extends coreClient.OperationOptions {
+ /** Deletes the workspace without the recovery option. A workspace that was deleted with this flag cannot be recovered. */
+ force?: boolean;
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
-/**
- * Contains response data for the get operation.
- */
-export type SavedSearchesGetResponse = SavedSearch & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SavedSearch;
- };
-};
+/** Optional parameters. */
+export interface WorkspacesGetOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listByWorkspace operation.
- */
-export type SavedSearchesListByWorkspaceResponse = SavedSearchesListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SavedSearchesListResult;
- };
-};
+/** Contains response data for the get operation. */
+export type WorkspacesGetResponse = Workspace;
-/**
- * Contains response data for the listByWorkspace operation.
- */
-export type AvailableServiceTiersListByWorkspaceResponse = Array & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AvailableServiceTier[];
- };
-};
+/** Optional parameters. */
+export interface WorkspacesUpdateOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the get operation.
- */
-export type SchemaGetResponse = SearchGetSchemaResponse & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: SearchGetSchemaResponse;
- };
-};
+/** Contains response data for the update operation. */
+export type WorkspacesUpdateResponse = Workspace;
-/**
- * Contains response data for the purge operation.
- */
-export type WorkspacePurgePurgeResponse = WorkspacePurgeResponse & WorkspacePurgePurgeHeaders & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The parsed HTTP response headers.
- */
- parsedHeaders: WorkspacePurgePurgeHeaders;
-
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: WorkspacePurgeResponse;
- };
-};
+/** Optional parameters. */
+export interface DeletedWorkspacesListOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the getPurgeStatus operation.
- */
-export type WorkspacePurgeGetPurgeStatusResponse = WorkspacePurgeStatusResponse & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: WorkspacePurgeStatusResponse;
- };
-};
+/** Contains response data for the list operation. */
+export type DeletedWorkspacesListResponse = WorkspaceListResult;
-/**
- * Contains response data for the listByWorkspace operation.
- */
-export type TablesListByWorkspaceResponse = TablesListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: TablesListResult;
- };
-};
+/** Optional parameters. */
+export interface DeletedWorkspacesListByResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the update operation.
- */
-export type TablesUpdateResponse = Table & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Table;
- };
-};
+/** Contains response data for the listByResourceGroup operation. */
+export type DeletedWorkspacesListByResourceGroupResponse = WorkspaceListResult;
-/**
- * Contains response data for the get operation.
- */
-export type TablesGetResponse = Table & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Table;
- };
-};
+/** Optional parameters. */
+export interface OperationalInsightsManagementClientOptionalParams
+ extends coreClient.ServiceClientOptions {
+ /** server parameter */
+ $host?: string;
+ /** Overrides client endpoint. */
+ endpoint?: string;
+}
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/intelligencePacksMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/intelligencePacksMappers.ts
deleted file mode 100644
index a72da23f0346..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/intelligencePacksMappers.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- CloudError,
- IntelligencePack
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/linkedServicesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/linkedServicesMappers.ts
deleted file mode 100644
index f5877a55ad9c..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/linkedServicesMappers.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- AzureEntityResource,
- BaseResource,
- CloudError,
- Cluster,
- ClusterPatch,
- ClusterSku,
- DataExport,
- DataSource,
- Identity,
- KeyVaultProperties,
- LinkedService,
- LinkedServiceListResult,
- LinkedStorageAccountsResource,
- PrivateLinkScopedResource,
- ProxyResource,
- Resource,
- SavedSearch,
- StorageAccount,
- StorageInsight,
- StorageInsightStatus,
- Table,
- Tag,
- TrackedResource,
- Workspace,
- WorkspaceCapping,
- WorkspacePatch,
- WorkspaceSku
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/linkedStorageAccountsMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/linkedStorageAccountsMappers.ts
deleted file mode 100644
index 6383de07c96b..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/linkedStorageAccountsMappers.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- AzureEntityResource,
- BaseResource,
- CloudError,
- Cluster,
- ClusterPatch,
- ClusterSku,
- DataExport,
- DataSource,
- Identity,
- KeyVaultProperties,
- LinkedService,
- LinkedStorageAccountsListResult,
- LinkedStorageAccountsResource,
- PrivateLinkScopedResource,
- ProxyResource,
- Resource,
- SavedSearch,
- StorageAccount,
- StorageInsight,
- StorageInsightStatus,
- Table,
- Tag,
- TrackedResource,
- Workspace,
- WorkspaceCapping,
- WorkspacePatch,
- WorkspaceSku
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/managementGroupsMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/managementGroupsMappers.ts
deleted file mode 100644
index 3194c3460090..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/managementGroupsMappers.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- CloudError,
- ManagementGroup,
- WorkspaceListManagementGroupsResult
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts
index 47f06ef342df..bcae32ab7791 100644
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts
+++ b/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts
@@ -6,148 +6,51 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
-import * as msRest from "@azure/ms-rest-js";
+import * as coreClient from "@azure/core-client";
-export const CloudError = CloudErrorMapper;
-export const BaseResource = BaseResourceMapper;
-
-export const DataExport: msRest.CompositeMapper = {
- serializedName: "DataExport",
+export const DataExportListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "DataExport",
+ className: "DataExportListResult",
modelProperties: {
- dataExportId: {
- serializedName: "properties.dataExportId",
- type: {
- name: "String"
- }
- },
- tableNames: {
- required: true,
- serializedName: "properties.tableNames",
+ value: {
+ serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
- name: "String"
+ name: "Composite",
+ className: "DataExport"
}
}
}
- },
- resourceId: {
- required: true,
- serializedName: "properties.destination.resourceId",
- type: {
- name: "String"
- }
- },
- dataExportType: {
- readOnly: true,
- serializedName: "properties.destination.type",
- type: {
- name: "String"
- }
- },
- eventHubName: {
- serializedName: "properties.destination.metaData.eventHubName",
- type: {
- name: "String"
- }
- },
- enable: {
- serializedName: "properties.enable",
- type: {
- name: "Boolean"
- }
- },
- createdDate: {
- serializedName: "properties.createdDate",
- type: {
- name: "String"
- }
- },
- lastModifiedDate: {
- serializedName: "properties.lastModifiedDate",
- type: {
- name: "String"
- }
}
}
}
};
-export const Resource: msRest.CompositeMapper = {
- serializedName: "Resource",
+export const Resource: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "Resource",
modelProperties: {
id: {
- readOnly: true,
serializedName: "id",
+ readOnly: true,
type: {
name: "String"
}
},
name: {
- readOnly: true,
serializedName: "name",
+ readOnly: true,
type: {
name: "String"
}
},
type: {
- readOnly: true,
serializedName: "type",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const TrackedResource: msRest.CompositeMapper = {
- serializedName: "TrackedResource",
- type: {
- name: "Composite",
- className: "TrackedResource",
- modelProperties: {
- ...Resource.type.modelProperties,
- tags: {
- serializedName: "tags",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
- }
- },
- location: {
- required: true,
- serializedName: "location",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const AzureEntityResource: msRest.CompositeMapper = {
- serializedName: "AzureEntityResource",
- type: {
- name: "Composite",
- className: "AzureEntityResource",
- modelProperties: {
- ...Resource.type.modelProperties,
- etag: {
readOnly: true,
- serializedName: "etag",
type: {
name: "String"
}
@@ -156,71 +59,51 @@ export const AzureEntityResource: msRest.CompositeMapper = {
}
};
-export const ProxyResource: msRest.CompositeMapper = {
- serializedName: "ProxyResource",
- type: {
- name: "Composite",
- className: "ProxyResource",
- modelProperties: {
- ...Resource.type.modelProperties
- }
- }
-};
-
-export const ErrorAdditionalInfo: msRest.CompositeMapper = {
- serializedName: "ErrorAdditionalInfo",
+export const ErrorResponse: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ErrorAdditionalInfo",
+ className: "ErrorResponse",
modelProperties: {
- type: {
- readOnly: true,
- serializedName: "type",
- type: {
- name: "String"
- }
- },
- info: {
- readOnly: true,
- serializedName: "info",
+ error: {
+ serializedName: "error",
type: {
- name: "Object"
+ name: "Composite",
+ className: "ErrorDetail"
}
}
}
}
};
-export const ErrorDetail: msRest.CompositeMapper = {
- serializedName: "ErrorDetail",
+export const ErrorDetail: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ErrorDetail",
modelProperties: {
code: {
- readOnly: true,
serializedName: "code",
+ readOnly: true,
type: {
name: "String"
}
},
message: {
- readOnly: true,
serializedName: "message",
+ readOnly: true,
type: {
name: "String"
}
},
target: {
- readOnly: true,
serializedName: "target",
+ readOnly: true,
type: {
name: "String"
}
},
details: {
- readOnly: true,
serializedName: "details",
+ readOnly: true,
type: {
name: "Sequence",
element: {
@@ -232,8 +115,8 @@ export const ErrorDetail: msRest.CompositeMapper = {
}
},
additionalInfo: {
- readOnly: true,
serializedName: "additionalInfo",
+ readOnly: true,
type: {
name: "Sequence",
element: {
@@ -248,73 +131,49 @@ export const ErrorDetail: msRest.CompositeMapper = {
}
};
-export const ErrorResponse: msRest.CompositeMapper = {
- serializedName: "ErrorResponse",
- type: {
- name: "Composite",
- className: "ErrorResponse",
- modelProperties: {
- error: {
- serializedName: "error",
- type: {
- name: "Composite",
- className: "ErrorDetail"
- }
- }
- }
- }
-};
-
-export const DataSource: msRest.CompositeMapper = {
- serializedName: "DataSource",
+export const ErrorAdditionalInfo: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "DataSource",
+ className: "ErrorAdditionalInfo",
modelProperties: {
- ...ProxyResource.type.modelProperties,
- properties: {
- required: true,
- serializedName: "properties",
- type: {
- name: "Object"
- }
- },
- etag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- },
- kind: {
- required: true,
- serializedName: "kind",
+ type: {
+ serializedName: "type",
+ readOnly: true,
type: {
name: "String"
}
},
- tags: {
- serializedName: "tags",
+ info: {
+ serializedName: "info",
+ readOnly: true,
type: {
name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
+ value: { type: { name: "any" } }
}
}
}
}
};
-export const DataSourceFilter: msRest.CompositeMapper = {
- serializedName: "DataSourceFilter",
+export const DataSourceListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "DataSourceFilter",
+ className: "DataSourceListResult",
modelProperties: {
- kind: {
- serializedName: "kind",
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "DataSource"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
type: {
name: "String"
}
@@ -323,8 +182,7 @@ export const DataSourceFilter: msRest.CompositeMapper = {
}
};
-export const IntelligencePack: msRest.CompositeMapper = {
- serializedName: "IntelligencePack",
+export const IntelligencePack: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "IntelligencePack",
@@ -351,38 +209,19 @@ export const IntelligencePack: msRest.CompositeMapper = {
}
};
-export const LinkedService: msRest.CompositeMapper = {
- serializedName: "LinkedService",
+export const LinkedServiceListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "LinkedService",
+ className: "LinkedServiceListResult",
modelProperties: {
- ...ProxyResource.type.modelProperties,
- resourceId: {
- serializedName: "properties.resourceId",
- type: {
- name: "String"
- }
- },
- writeAccessResourceId: {
- serializedName: "properties.writeAccessResourceId",
- type: {
- name: "String"
- }
- },
- provisioningState: {
- serializedName: "properties.provisioningState",
- type: {
- name: "String"
- }
- },
- tags: {
- serializedName: "tags",
+ value: {
+ serializedName: "value",
type: {
- name: "Dictionary",
- value: {
+ name: "Sequence",
+ element: {
type: {
- name: "String"
+ name: "Composite",
+ className: "LinkedService"
}
}
}
@@ -391,33 +230,19 @@ export const LinkedService: msRest.CompositeMapper = {
}
};
-export const LinkedStorageAccountsResource: msRest.CompositeMapper = {
- serializedName: "LinkedStorageAccountsResource",
+export const LinkedStorageAccountsListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "LinkedStorageAccountsResource",
+ className: "LinkedStorageAccountsListResult",
modelProperties: {
- ...ProxyResource.type.modelProperties,
- dataSourceType: {
- readOnly: true,
- serializedName: "properties.dataSourceType",
- type: {
- name: "Enum",
- allowedValues: [
- "CustomLogs",
- "AzureWatson",
- "Query",
- "Alerts"
- ]
- }
- },
- storageAccountIds: {
- serializedName: "properties.storageAccountIds",
+ value: {
+ serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
- name: "String"
+ name: "Composite",
+ className: "LinkedStorageAccountsResource"
}
}
}
@@ -426,16 +251,36 @@ export const LinkedStorageAccountsResource: msRest.CompositeMapper = {
}
};
-export const ManagementGroup: msRest.CompositeMapper = {
- serializedName: "ManagementGroup",
+export const WorkspaceListManagementGroupsResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ManagementGroup",
+ className: "WorkspaceListManagementGroupsResult",
modelProperties: {
- serverCount: {
- serializedName: "properties.serverCount",
+ value: {
+ serializedName: "value",
type: {
- name: "Number"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ManagementGroup"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const ManagementGroup: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ManagementGroup",
+ modelProperties: {
+ serverCount: {
+ serializedName: "properties.serverCount",
+ type: {
+ name: "Number"
}
},
isGateway: {
@@ -484,65 +329,7 @@ export const ManagementGroup: msRest.CompositeMapper = {
}
};
-export const OperationDisplay: msRest.CompositeMapper = {
- serializedName: "Operation_display",
- type: {
- name: "Composite",
- className: "OperationDisplay",
- modelProperties: {
- provider: {
- serializedName: "provider",
- type: {
- name: "String"
- }
- },
- resource: {
- serializedName: "resource",
- type: {
- name: "String"
- }
- },
- operation: {
- serializedName: "operation",
- type: {
- name: "String"
- }
- },
- description: {
- serializedName: "description",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const Operation: msRest.CompositeMapper = {
- serializedName: "Operation",
- type: {
- name: "Composite",
- className: "Operation",
- modelProperties: {
- name: {
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- display: {
- serializedName: "display",
- type: {
- name: "Composite",
- className: "OperationDisplay"
- }
- }
- }
- }
-};
-
-export const OperationStatus: msRest.CompositeMapper = {
- serializedName: "OperationStatus",
+export const OperationStatus: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "OperationStatus",
@@ -588,8 +375,7 @@ export const OperationStatus: msRest.CompositeMapper = {
}
};
-export const SharedKeys: msRest.CompositeMapper = {
- serializedName: "SharedKeys",
+export const SharedKeys: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "SharedKeys",
@@ -610,30 +396,28 @@ export const SharedKeys: msRest.CompositeMapper = {
}
};
-export const MetricName: msRest.CompositeMapper = {
- serializedName: "MetricName",
+export const WorkspaceListUsagesResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "MetricName",
+ className: "WorkspaceListUsagesResult",
modelProperties: {
value: {
serializedName: "value",
type: {
- name: "String"
- }
- },
- localizedValue: {
- serializedName: "localizedValue",
- type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "UsageMetric"
+ }
+ }
}
}
}
}
};
-export const UsageMetric: msRest.CompositeMapper = {
- serializedName: "UsageMetric",
+export const UsageMetric: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "UsageMetric",
@@ -679,35 +463,42 @@ export const UsageMetric: msRest.CompositeMapper = {
}
};
-export const WorkspaceSku: msRest.CompositeMapper = {
- serializedName: "WorkspaceSku",
+export const MetricName: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "WorkspaceSku",
+ className: "MetricName",
modelProperties: {
- name: {
- required: true,
- serializedName: "name",
+ value: {
+ serializedName: "value",
type: {
name: "String"
}
},
- capacityReservationLevel: {
- serializedName: "capacityReservationLevel",
+ localizedValue: {
+ serializedName: "localizedValue",
type: {
- name: "Number"
+ name: "String"
}
- },
- maxCapacityReservationLevel: {
- readOnly: true,
- serializedName: "maxCapacityReservationLevel",
+ }
+ }
+ }
+};
+
+export const StorageAccount: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "StorageAccount",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ required: true,
type: {
- name: "Number"
+ name: "String"
}
},
- lastSkuUpdate: {
- readOnly: true,
- serializedName: "lastSkuUpdate",
+ key: {
+ serializedName: "key",
+ required: true,
type: {
name: "String"
}
@@ -716,28 +507,47 @@ export const WorkspaceSku: msRest.CompositeMapper = {
}
};
-export const WorkspaceCapping: msRest.CompositeMapper = {
- serializedName: "WorkspaceCapping",
+export const StorageInsightStatus: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "WorkspaceCapping",
+ className: "StorageInsightStatus",
modelProperties: {
- dailyQuotaGb: {
- serializedName: "dailyQuotaGb",
+ state: {
+ serializedName: "state",
+ required: true,
type: {
- name: "Number"
+ name: "String"
}
},
- quotaNextResetTime: {
- readOnly: true,
- serializedName: "quotaNextResetTime",
+ description: {
+ serializedName: "description",
type: {
name: "String"
}
+ }
+ }
+ }
+};
+
+export const StorageInsightListResult: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "StorageInsightListResult",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "StorageInsight"
+ }
+ }
+ }
},
- dataIngestionStatus: {
- readOnly: true,
- serializedName: "dataIngestionStatus",
+ odataNextLink: {
+ serializedName: "@odata\\.nextLink",
type: {
name: "String"
}
@@ -746,20 +556,21 @@ export const WorkspaceCapping: msRest.CompositeMapper = {
}
};
-export const PrivateLinkScopedResource: msRest.CompositeMapper = {
- serializedName: "PrivateLinkScopedResource",
+export const Tag: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "PrivateLinkScopedResource",
+ className: "Tag",
modelProperties: {
- resourceId: {
- serializedName: "resourceId",
+ name: {
+ serializedName: "name",
+ required: true,
type: {
name: "String"
}
},
- scopeId: {
- serializedName: "scopeId",
+ value: {
+ serializedName: "value",
+ required: true,
type: {
name: "String"
}
@@ -768,440 +579,414 @@ export const PrivateLinkScopedResource: msRest.CompositeMapper = {
}
};
-export const Workspace: msRest.CompositeMapper = {
- serializedName: "Workspace",
+export const SavedSearchesListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Workspace",
+ className: "SavedSearchesListResult",
modelProperties: {
- ...TrackedResource.type.modelProperties,
- provisioningState: {
- serializedName: "properties.provisioningState",
+ value: {
+ serializedName: "value",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SavedSearch"
+ }
+ }
}
- },
- customerId: {
+ }
+ }
+ }
+};
+
+export const AvailableServiceTier: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "AvailableServiceTier",
+ modelProperties: {
+ serviceTier: {
+ serializedName: "serviceTier",
readOnly: true,
- serializedName: "properties.customerId",
type: {
name: "String"
}
},
- sku: {
- serializedName: "properties.sku",
+ enabled: {
+ serializedName: "enabled",
+ readOnly: true,
type: {
- name: "Composite",
- className: "WorkspaceSku"
+ name: "Boolean"
}
},
- retentionInDays: {
- nullable: true,
- serializedName: "properties.retentionInDays",
+ minimumRetention: {
+ serializedName: "minimumRetention",
+ readOnly: true,
type: {
name: "Number"
}
},
- workspaceCapping: {
- serializedName: "properties.workspaceCapping",
- type: {
- name: "Composite",
- className: "WorkspaceCapping"
- }
- },
- createdDate: {
+ maximumRetention: {
+ serializedName: "maximumRetention",
readOnly: true,
- serializedName: "properties.createdDate",
type: {
- name: "String"
+ name: "Number"
}
},
- modifiedDate: {
+ defaultRetention: {
+ serializedName: "defaultRetention",
readOnly: true,
- serializedName: "properties.modifiedDate",
type: {
- name: "String"
+ name: "Number"
}
},
- publicNetworkAccessForIngestion: {
- serializedName: "properties.publicNetworkAccessForIngestion",
- defaultValue: 'Enabled',
+ capacityReservationLevel: {
+ serializedName: "capacityReservationLevel",
+ readOnly: true,
type: {
- name: "String"
+ name: "Number"
}
},
- publicNetworkAccessForQuery: {
- serializedName: "properties.publicNetworkAccessForQuery",
- defaultValue: 'Enabled',
+ lastSkuUpdate: {
+ serializedName: "lastSkuUpdate",
+ readOnly: true,
type: {
name: "String"
}
+ }
+ }
+ }
+};
+
+export const SearchGetSchemaResponse: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "SearchGetSchemaResponse",
+ modelProperties: {
+ metadata: {
+ serializedName: "metadata",
+ type: {
+ name: "Composite",
+ className: "SearchMetadata"
+ }
},
- forceCmkForQuery: {
- serializedName: "properties.forceCmkForQuery",
- type: {
- name: "Boolean"
- }
- },
- privateLinkScopedResources: {
- readOnly: true,
- serializedName: "properties.privateLinkScopedResources",
+ value: {
+ serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "PrivateLinkScopedResource"
- }
- }
- }
- },
- features: {
- serializedName: "properties\\.properties\\.features",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "Object"
+ className: "SearchSchemaValue"
}
}
}
- },
- eTag: {
- serializedName: "eTag",
- type: {
- name: "String"
- }
}
}
}
};
-export const WorkspacePatch: msRest.CompositeMapper = {
- serializedName: "WorkspacePatch",
+export const SearchMetadata: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "WorkspacePatch",
+ className: "SearchMetadata",
modelProperties: {
- ...AzureEntityResource.type.modelProperties,
- provisioningState: {
- serializedName: "properties.provisioningState",
+ searchId: {
+ serializedName: "requestId",
type: {
name: "String"
}
},
- customerId: {
- readOnly: true,
- serializedName: "properties.customerId",
+ resultType: {
+ serializedName: "resultType",
type: {
name: "String"
}
},
- sku: {
- serializedName: "properties.sku",
+ total: {
+ serializedName: "total",
type: {
- name: "Composite",
- className: "WorkspaceSku"
+ name: "Number"
}
},
- retentionInDays: {
- nullable: true,
- serializedName: "properties.retentionInDays",
+ top: {
+ serializedName: "top",
type: {
name: "Number"
}
},
- workspaceCapping: {
- serializedName: "properties.workspaceCapping",
+ id: {
+ serializedName: "id",
type: {
- name: "Composite",
- className: "WorkspaceCapping"
+ name: "String"
}
},
- createdDate: {
- readOnly: true,
- serializedName: "properties.createdDate",
+ coreSummaries: {
+ serializedName: "coreSummaries",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "CoreSummary"
+ }
+ }
}
},
- modifiedDate: {
- readOnly: true,
- serializedName: "properties.modifiedDate",
+ status: {
+ serializedName: "status",
type: {
name: "String"
}
},
- publicNetworkAccessForIngestion: {
- serializedName: "properties.publicNetworkAccessForIngestion",
- defaultValue: 'Enabled',
+ startTime: {
+ serializedName: "startTime",
type: {
- name: "String"
+ name: "DateTime"
}
},
- publicNetworkAccessForQuery: {
- serializedName: "properties.publicNetworkAccessForQuery",
- defaultValue: 'Enabled',
+ lastUpdated: {
+ serializedName: "lastUpdated",
type: {
- name: "String"
+ name: "DateTime"
}
},
- forceCmkForQuery: {
- serializedName: "properties.forceCmkForQuery",
+ eTag: {
+ serializedName: "eTag",
type: {
- name: "Boolean"
+ name: "String"
}
},
- privateLinkScopedResources: {
- readOnly: true,
- serializedName: "properties.privateLinkScopedResources",
+ sort: {
+ serializedName: "sort",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "PrivateLinkScopedResource"
+ className: "SearchSort"
}
}
}
},
- features: {
- serializedName: "properties\\.properties\\.features",
+ requestTime: {
+ serializedName: "requestTime",
type: {
- name: "Dictionary",
- value: {
- type: {
- name: "Object"
- }
- }
+ name: "Number"
}
},
- tags: {
- serializedName: "tags",
+ aggregatedValueField: {
+ serializedName: "aggregatedValueField",
type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
+ name: "String"
}
- }
- }
- }
-};
-
-export const KeyVaultProperties: msRest.CompositeMapper = {
- serializedName: "keyVaultProperties",
- type: {
- name: "Composite",
- className: "KeyVaultProperties",
- modelProperties: {
- keyVaultUri: {
- serializedName: "keyVaultUri",
+ },
+ aggregatedGroupingFields: {
+ serializedName: "aggregatedGroupingFields",
type: {
name: "String"
}
},
- keyName: {
- serializedName: "keyName",
+ sum: {
+ serializedName: "sum",
type: {
- name: "String"
+ name: "Number"
}
},
- keyVersion: {
- serializedName: "keyVersion",
+ max: {
+ serializedName: "max",
type: {
- name: "String"
+ name: "Number"
+ }
+ },
+ schema: {
+ serializedName: "schema",
+ type: {
+ name: "Composite",
+ className: "SearchMetadataSchema"
}
}
}
}
};
-export const ClusterSku: msRest.CompositeMapper = {
- serializedName: "ClusterSku",
+export const CoreSummary: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ClusterSku",
+ className: "CoreSummary",
modelProperties: {
- capacity: {
- serializedName: "capacity",
+ status: {
+ serializedName: "status",
type: {
- name: "Number"
+ name: "String"
}
},
- name: {
- serializedName: "name",
+ numberOfDocuments: {
+ serializedName: "numberOfDocuments",
+ required: true,
type: {
- name: "String"
+ name: "Number"
}
}
}
}
};
-export const ClusterPatch: msRest.CompositeMapper = {
- serializedName: "ClusterPatch",
+export const SearchSort: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ClusterPatch",
+ className: "SearchSort",
modelProperties: {
- keyVaultProperties: {
- serializedName: "properties.keyVaultProperties",
- type: {
- name: "Composite",
- className: "KeyVaultProperties"
- }
- },
- sku: {
- serializedName: "sku",
+ name: {
+ serializedName: "name",
type: {
- name: "Composite",
- className: "ClusterSku"
+ name: "String"
}
},
- tags: {
- serializedName: "tags",
+ order: {
+ serializedName: "order",
type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
+ name: "String"
}
}
}
}
};
-export const Identity: msRest.CompositeMapper = {
- serializedName: "Identity",
+export const SearchMetadataSchema: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Identity",
+ className: "SearchMetadataSchema",
modelProperties: {
- principalId: {
- readOnly: true,
- serializedName: "principalId",
- type: {
- name: "String"
- }
- },
- tenantId: {
- readOnly: true,
- serializedName: "tenantId",
+ name: {
+ serializedName: "name",
type: {
name: "String"
}
},
- type: {
- required: true,
- serializedName: "type",
+ version: {
+ serializedName: "version",
type: {
- name: "Enum",
- allowedValues: [
- "SystemAssigned",
- "None"
- ]
+ name: "Number"
}
}
}
}
};
-export const Cluster: msRest.CompositeMapper = {
- serializedName: "Cluster",
+export const SearchSchemaValue: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Cluster",
+ className: "SearchSchemaValue",
modelProperties: {
- ...TrackedResource.type.modelProperties,
- identity: {
- serializedName: "identity",
+ name: {
+ serializedName: "name",
type: {
- name: "Composite",
- className: "Identity"
+ name: "String"
}
},
- sku: {
- serializedName: "sku",
+ displayName: {
+ serializedName: "displayName",
type: {
- name: "Composite",
- className: "ClusterSku"
+ name: "String"
}
},
- nextLink: {
- serializedName: "properties.nextLink",
+ type: {
+ serializedName: "type",
type: {
name: "String"
}
},
- clusterId: {
- readOnly: true,
- serializedName: "properties.clusterId",
+ indexed: {
+ serializedName: "indexed",
+ required: true,
type: {
- name: "String"
+ name: "Boolean"
}
},
- provisioningState: {
- readOnly: true,
- serializedName: "properties.provisioningState",
+ stored: {
+ serializedName: "stored",
+ required: true,
type: {
- name: "String"
+ name: "Boolean"
}
},
- keyVaultProperties: {
- serializedName: "properties.keyVaultProperties",
+ facet: {
+ serializedName: "facet",
+ required: true,
type: {
- name: "Composite",
- className: "KeyVaultProperties"
+ name: "Boolean"
+ }
+ },
+ ownerType: {
+ serializedName: "ownerType",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
}
}
}
}
};
-export const StorageAccount: msRest.CompositeMapper = {
- serializedName: "StorageAccount",
+export const WorkspacePurgeBody: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "StorageAccount",
+ className: "WorkspacePurgeBody",
modelProperties: {
- id: {
+ table: {
+ serializedName: "table",
required: true,
- serializedName: "id",
type: {
name: "String"
}
},
- key: {
+ filters: {
+ serializedName: "filters",
required: true,
- serializedName: "key",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "WorkspacePurgeBodyFilters"
+ }
+ }
}
}
}
}
};
-export const StorageInsightStatus: msRest.CompositeMapper = {
- serializedName: "StorageInsightStatus",
+export const WorkspacePurgeBodyFilters: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "StorageInsightStatus",
+ className: "WorkspacePurgeBodyFilters",
modelProperties: {
- state: {
- required: true,
- serializedName: "state",
+ column: {
+ serializedName: "column",
type: {
name: "String"
}
},
- description: {
- serializedName: "description",
+ operator: {
+ serializedName: "operator",
+ type: {
+ name: "String"
+ }
+ },
+ value: {
+ serializedName: "value",
+ type: {
+ name: "any"
+ }
+ },
+ key: {
+ serializedName: "key",
type: {
name: "String"
}
@@ -1210,170 +995,132 @@ export const StorageInsightStatus: msRest.CompositeMapper = {
}
};
-export const StorageInsight: msRest.CompositeMapper = {
- serializedName: "StorageInsight",
+export const WorkspacePurgeResponse: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "StorageInsight",
+ className: "WorkspacePurgeResponse",
modelProperties: {
- ...ProxyResource.type.modelProperties,
- containers: {
- serializedName: "properties.containers",
+ operationId: {
+ serializedName: "operationId",
+ required: true,
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "String"
}
- },
- tables: {
- serializedName: "properties.tables",
+ }
+ }
+ }
+};
+
+export const WorkspacePurgeStatusResponse: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "WorkspacePurgeStatusResponse",
+ modelProperties: {
+ status: {
+ serializedName: "status",
+ required: true,
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const OperationListResult: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "OperationListResult",
+ modelProperties: {
+ value: {
+ serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
- name: "String"
+ name: "Composite",
+ className: "Operation"
}
}
}
},
- storageAccount: {
- required: true,
- serializedName: "properties.storageAccount",
- type: {
- name: "Composite",
- className: "StorageAccount"
- }
- },
- status: {
+ nextLink: {
+ serializedName: "nextLink",
readOnly: true,
- serializedName: "properties.status",
- type: {
- name: "Composite",
- className: "StorageInsightStatus"
- }
- },
- eTag: {
- serializedName: "eTag",
type: {
name: "String"
}
- },
- tags: {
- serializedName: "tags",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
- }
}
}
}
};
-export const Tag: msRest.CompositeMapper = {
- serializedName: "Tag",
+export const Operation: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Tag",
+ className: "Operation",
modelProperties: {
name: {
- required: true,
serializedName: "name",
type: {
name: "String"
}
},
- value: {
- required: true,
- serializedName: "value",
+ display: {
+ serializedName: "display",
type: {
- name: "String"
+ name: "Composite",
+ className: "OperationDisplay"
}
}
}
}
};
-export const SavedSearch: msRest.CompositeMapper = {
- serializedName: "SavedSearch",
+export const OperationDisplay: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SavedSearch",
+ className: "OperationDisplay",
modelProperties: {
- ...ProxyResource.type.modelProperties,
- etag: {
- serializedName: "etag",
- type: {
- name: "String"
- }
- },
- category: {
- required: true,
- serializedName: "properties.category",
- type: {
- name: "String"
- }
- },
- displayName: {
- required: true,
- serializedName: "properties.displayName",
+ provider: {
+ serializedName: "provider",
type: {
name: "String"
}
},
- query: {
- required: true,
- serializedName: "properties.query",
+ resource: {
+ serializedName: "resource",
type: {
name: "String"
}
},
- functionAlias: {
- serializedName: "properties.functionAlias",
+ operation: {
+ serializedName: "operation",
type: {
name: "String"
}
},
- functionParameters: {
- serializedName: "properties.functionParameters",
+ description: {
+ serializedName: "description",
type: {
name: "String"
}
- },
- version: {
- serializedName: "properties.version",
- type: {
- name: "Number"
- }
- },
- tags: {
- serializedName: "properties.tags",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Tag"
- }
- }
- }
}
}
}
};
-export const SavedSearchesListResult: msRest.CompositeMapper = {
- serializedName: "SavedSearchesListResult",
+export const ClusterListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SavedSearchesListResult",
+ className: "ClusterListResult",
modelProperties: {
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ },
value: {
serializedName: "value",
type: {
@@ -1381,7 +1128,7 @@ export const SavedSearchesListResult: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- className: "SavedSearch"
+ className: "Cluster"
}
}
}
@@ -1390,57 +1137,83 @@ export const SavedSearchesListResult: msRest.CompositeMapper = {
}
};
-export const AvailableServiceTier: msRest.CompositeMapper = {
- serializedName: "AvailableServiceTier",
+export const Identity: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "AvailableServiceTier",
+ className: "Identity",
modelProperties: {
- serviceTier: {
+ principalId: {
+ serializedName: "principalId",
readOnly: true,
- serializedName: "serviceTier",
type: {
name: "String"
}
},
- enabled: {
+ tenantId: {
+ serializedName: "tenantId",
readOnly: true,
- serializedName: "enabled",
type: {
- name: "Boolean"
+ name: "String"
}
},
- minimumRetention: {
- readOnly: true,
- serializedName: "minimumRetention",
+ type: {
+ serializedName: "type",
+ required: true,
type: {
- name: "Number"
+ name: "Enum",
+ allowedValues: ["SystemAssigned", "UserAssigned", "None"]
}
},
- maximumRetention: {
+ userAssignedIdentities: {
+ serializedName: "userAssignedIdentities",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: { name: "Composite", className: "UserIdentityProperties" }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const UserIdentityProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "UserIdentityProperties",
+ modelProperties: {
+ principalId: {
+ serializedName: "principalId",
readOnly: true,
- serializedName: "maximumRetention",
type: {
- name: "Number"
+ name: "String"
}
},
- defaultRetention: {
+ clientId: {
+ serializedName: "clientId",
readOnly: true,
- serializedName: "defaultRetention",
type: {
- name: "Number"
+ name: "String"
}
- },
- capacityReservationLevel: {
- readOnly: true,
- serializedName: "capacityReservationLevel",
+ }
+ }
+ }
+};
+
+export const ClusterSku: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ClusterSku",
+ modelProperties: {
+ capacity: {
+ serializedName: "capacity",
type: {
- name: "Number"
+ name: "Enum",
+ allowedValues: [500, 1000, 2000, 5000]
}
},
- lastSkuUpdate: {
- readOnly: true,
- serializedName: "lastSkuUpdate",
+ name: {
+ serializedName: "name",
type: {
name: "String"
}
@@ -1449,21 +1222,31 @@ export const AvailableServiceTier: msRest.CompositeMapper = {
}
};
-export const CoreSummary: msRest.CompositeMapper = {
- serializedName: "CoreSummary",
+export const KeyVaultProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "CoreSummary",
+ className: "KeyVaultProperties",
modelProperties: {
- status: {
- serializedName: "status",
+ keyVaultUri: {
+ serializedName: "keyVaultUri",
type: {
name: "String"
}
},
- numberOfDocuments: {
- required: true,
- serializedName: "numberOfDocuments",
+ keyName: {
+ serializedName: "keyName",
+ type: {
+ name: "String"
+ }
+ },
+ keyVersion: {
+ serializedName: "keyVersion",
+ type: {
+ name: "String"
+ }
+ },
+ keyRsaSize: {
+ serializedName: "keyRsaSize",
type: {
name: "Number"
}
@@ -1472,20 +1255,35 @@ export const CoreSummary: msRest.CompositeMapper = {
}
};
-export const SearchSort: msRest.CompositeMapper = {
- serializedName: "SearchSort",
+export const AssociatedWorkspace: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SearchSort",
+ className: "AssociatedWorkspace",
modelProperties: {
- name: {
- serializedName: "name",
+ workspaceId: {
+ serializedName: "workspaceId",
+ readOnly: true,
type: {
name: "String"
}
},
- order: {
- serializedName: "order",
+ workspaceName: {
+ serializedName: "workspaceName",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ resourceId: {
+ serializedName: "resourceId",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ associateDate: {
+ serializedName: "associateDate",
+ readOnly: true,
type: {
name: "String"
}
@@ -1494,20 +1292,21 @@ export const SearchSort: msRest.CompositeMapper = {
}
};
-export const SearchMetadataSchema: msRest.CompositeMapper = {
- serializedName: "SearchMetadataSchema",
+export const CapacityReservationProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SearchMetadataSchema",
+ className: "CapacityReservationProperties",
modelProperties: {
- name: {
- serializedName: "name",
+ lastSkuUpdate: {
+ serializedName: "lastSkuUpdate",
+ readOnly: true,
type: {
name: "String"
}
},
- version: {
- serializedName: "version",
+ minCapacity: {
+ serializedName: "minCapacity",
+ readOnly: true,
type: {
name: "Number"
}
@@ -1516,246 +1315,253 @@ export const SearchMetadataSchema: msRest.CompositeMapper = {
}
};
-export const SearchMetadata: msRest.CompositeMapper = {
- serializedName: "SearchMetadata",
+export const ClusterPatch: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SearchMetadata",
+ className: "ClusterPatch",
modelProperties: {
- searchId: {
- serializedName: "requestId",
+ identity: {
+ serializedName: "identity",
type: {
- name: "String"
+ name: "Composite",
+ className: "Identity"
}
},
- resultType: {
- serializedName: "resultType",
+ sku: {
+ serializedName: "sku",
type: {
- name: "String"
+ name: "Composite",
+ className: "ClusterSku"
}
},
- total: {
- serializedName: "total",
+ tags: {
+ serializedName: "tags",
type: {
- name: "Number"
+ name: "Dictionary",
+ value: { type: { name: "String" } }
}
},
- top: {
- serializedName: "top",
+ keyVaultProperties: {
+ serializedName: "properties.keyVaultProperties",
type: {
- name: "Number"
+ name: "Composite",
+ className: "KeyVaultProperties"
}
},
- id: {
- serializedName: "id",
+ billingType: {
+ serializedName: "properties.billingType",
type: {
name: "String"
}
- },
- coreSummaries: {
- serializedName: "coreSummaries",
+ }
+ }
+ }
+};
+
+export const WorkspaceListResult: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "WorkspaceListResult",
+ modelProperties: {
+ value: {
+ serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "CoreSummary"
+ className: "Workspace"
}
}
}
- },
- status: {
- serializedName: "status",
+ }
+ }
+ }
+};
+
+export const WorkspaceSku: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "WorkspaceSku",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ required: true,
type: {
name: "String"
}
},
- startTime: {
- serializedName: "startTime",
- type: {
- name: "DateTime"
- }
- },
- lastUpdated: {
- serializedName: "lastUpdated",
+ capacityReservationLevel: {
+ serializedName: "capacityReservationLevel",
type: {
- name: "DateTime"
+ name: "Enum",
+ allowedValues: [100, 200, 300, 400, 500, 1000, 2000, 5000]
}
},
- eTag: {
- serializedName: "eTag",
+ lastSkuUpdate: {
+ serializedName: "lastSkuUpdate",
+ readOnly: true,
type: {
name: "String"
}
- },
- sort: {
- serializedName: "sort",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "SearchSort"
- }
- }
- }
- },
- requestTime: {
- serializedName: "requestTime",
+ }
+ }
+ }
+};
+
+export const WorkspaceCapping: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "WorkspaceCapping",
+ modelProperties: {
+ dailyQuotaGb: {
+ serializedName: "dailyQuotaGb",
type: {
name: "Number"
}
},
- aggregatedValueField: {
- serializedName: "aggregatedValueField",
+ quotaNextResetTime: {
+ serializedName: "quotaNextResetTime",
+ readOnly: true,
type: {
name: "String"
}
},
- aggregatedGroupingFields: {
- serializedName: "aggregatedGroupingFields",
+ dataIngestionStatus: {
+ serializedName: "dataIngestionStatus",
+ readOnly: true,
type: {
name: "String"
}
- },
- sum: {
- serializedName: "sum",
- type: {
- name: "Number"
- }
- },
- max: {
- serializedName: "max",
- type: {
- name: "Number"
- }
- },
- schema: {
- serializedName: "schema",
- type: {
- name: "Composite",
- className: "SearchMetadataSchema"
- }
}
}
}
};
-export const SearchSchemaValue: msRest.CompositeMapper = {
- serializedName: "SearchSchemaValue",
+export const PrivateLinkScopedResource: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SearchSchemaValue",
+ className: "PrivateLinkScopedResource",
modelProperties: {
- name: {
- serializedName: "name",
+ resourceId: {
+ serializedName: "resourceId",
type: {
name: "String"
}
},
- displayName: {
- serializedName: "displayName",
+ scopeId: {
+ serializedName: "scopeId",
type: {
name: "String"
}
- },
- type: {
- serializedName: "type",
+ }
+ }
+ }
+};
+
+export const WorkspaceFeatures: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "WorkspaceFeatures",
+ additionalProperties: { type: { name: "Object" } },
+ modelProperties: {
+ enableDataExport: {
+ serializedName: "enableDataExport",
+ nullable: true,
type: {
- name: "String"
+ name: "Boolean"
}
},
- indexed: {
- required: true,
- serializedName: "indexed",
+ immediatePurgeDataOn30Days: {
+ serializedName: "immediatePurgeDataOn30Days",
+ nullable: true,
type: {
name: "Boolean"
}
},
- stored: {
- required: true,
- serializedName: "stored",
+ enableLogAccessUsingOnlyResourcePermissions: {
+ serializedName: "enableLogAccessUsingOnlyResourcePermissions",
+ nullable: true,
type: {
name: "Boolean"
}
},
- facet: {
- required: true,
- serializedName: "facet",
+ clusterResourceId: {
+ serializedName: "clusterResourceId",
+ nullable: true,
type: {
- name: "Boolean"
+ name: "String"
}
},
- ownerType: {
- serializedName: "ownerType",
+ disableLocalAuth: {
+ serializedName: "disableLocalAuth",
+ nullable: true,
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "Boolean"
}
}
}
}
};
-export const SearchGetSchemaResponse: msRest.CompositeMapper = {
- serializedName: "SearchGetSchemaResponse",
+export const DataSourceFilter: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SearchGetSchemaResponse",
+ className: "DataSourceFilter",
modelProperties: {
- metadata: {
- serializedName: "metadata",
- type: {
- name: "Composite",
- className: "SearchMetadata"
- }
- },
- value: {
- serializedName: "value",
+ kind: {
+ serializedName: "kind",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "SearchSchemaValue"
- }
- }
+ name: "String"
}
}
}
}
};
-export const WorkspacePurgeBodyFilters: msRest.CompositeMapper = {
- serializedName: "WorkspacePurgeBodyFilters",
+export const ProxyResource: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "WorkspacePurgeBodyFilters",
+ className: "ProxyResource",
modelProperties: {
- column: {
- serializedName: "column",
+ ...Resource.type.modelProperties
+ }
+ }
+};
+
+export const TrackedResource: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "TrackedResource",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ tags: {
+ serializedName: "tags",
type: {
- name: "String"
+ name: "Dictionary",
+ value: { type: { name: "String" } }
}
},
- operator: {
- serializedName: "operator",
+ location: {
+ serializedName: "location",
+ required: true,
type: {
name: "String"
}
- },
- value: {
- serializedName: "value",
- type: {
- name: "Object"
- }
- },
- key: {
- serializedName: "key",
+ }
+ }
+ }
+};
+
+export const AzureEntityResource: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "AzureEntityResource",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ etag: {
+ serializedName: "etag",
+ readOnly: true,
type: {
name: "String"
}
@@ -1764,99 +1570,135 @@ export const WorkspacePurgeBodyFilters: msRest.CompositeMapper = {
}
};
-export const WorkspacePurgeBody: msRest.CompositeMapper = {
- serializedName: "WorkspacePurgeBody",
+export const DataExport: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "WorkspacePurgeBody",
+ className: "DataExport",
modelProperties: {
- table: {
- required: true,
- serializedName: "table",
+ ...ProxyResource.type.modelProperties,
+ dataExportId: {
+ serializedName: "properties.dataExportId",
type: {
name: "String"
}
},
- filters: {
- required: true,
- serializedName: "filters",
+ tableNames: {
+ serializedName: "properties.tableNames",
type: {
name: "Sequence",
element: {
type: {
- name: "Composite",
- className: "WorkspacePurgeBodyFilters"
+ name: "String"
}
}
}
+ },
+ enable: {
+ serializedName: "properties.enable",
+ type: {
+ name: "Boolean"
+ }
+ },
+ createdDate: {
+ serializedName: "properties.createdDate",
+ type: {
+ name: "String"
+ }
+ },
+ lastModifiedDate: {
+ serializedName: "properties.lastModifiedDate",
+ type: {
+ name: "String"
+ }
+ },
+ resourceId: {
+ serializedName: "properties.destination.resourceId",
+ type: {
+ name: "String"
+ }
+ },
+ typePropertiesDestinationType: {
+ serializedName: "properties.destination.type",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ eventHubName: {
+ serializedName: "properties.destination.metaData.eventHubName",
+ type: {
+ name: "String"
+ }
}
}
}
};
-export const WorkspacePurgeResponse: msRest.CompositeMapper = {
- serializedName: "WorkspacePurgeResponse",
+export const DataSource: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "WorkspacePurgeResponse",
+ className: "DataSource",
modelProperties: {
- operationId: {
+ ...ProxyResource.type.modelProperties,
+ properties: {
+ serializedName: "properties",
required: true,
- serializedName: "operationId",
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "any" } }
+ }
+ },
+ etag: {
+ serializedName: "etag",
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const WorkspacePurgeStatusResponse: msRest.CompositeMapper = {
- serializedName: "WorkspacePurgeStatusResponse",
- type: {
- name: "Composite",
- className: "WorkspacePurgeStatusResponse",
- modelProperties: {
- status: {
+ },
+ kind: {
+ serializedName: "kind",
required: true,
- serializedName: "status",
type: {
name: "String"
}
+ },
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "String" } }
+ }
}
}
}
};
-export const Table: msRest.CompositeMapper = {
- serializedName: "Table",
+export const LinkedService: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Table",
+ className: "LinkedService",
modelProperties: {
...ProxyResource.type.modelProperties,
- retentionInDays: {
- serializedName: "properties.retentionInDays",
- constraints: {
- InclusiveMaximum: 730,
- InclusiveMinimum: 30
- },
+ tags: {
+ serializedName: "tags",
type: {
- name: "Number"
+ name: "Dictionary",
+ value: { type: { name: "String" } }
}
- }
- }
- }
-};
-
-export const WorkspacePurgePurgeHeaders: msRest.CompositeMapper = {
- serializedName: "workspacepurge-purge-headers",
- type: {
- name: "Composite",
- className: "WorkspacePurgePurgeHeaders",
- modelProperties: {
- xMsStatusLocation: {
- serializedName: "x-ms-status-location",
+ },
+ resourceId: {
+ serializedName: "properties.resourceId",
+ type: {
+ name: "String"
+ }
+ },
+ writeAccessResourceId: {
+ serializedName: "properties.writeAccessResourceId",
+ type: {
+ name: "String"
+ }
+ },
+ provisioningState: {
+ serializedName: "properties.provisioningState",
type: {
name: "String"
}
@@ -1865,20 +1707,27 @@ export const WorkspacePurgePurgeHeaders: msRest.CompositeMapper = {
}
};
-export const DataExportListResult: msRest.CompositeMapper = {
- serializedName: "DataExportListResult",
+export const LinkedStorageAccountsResource: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "DataExportListResult",
+ className: "LinkedStorageAccountsResource",
modelProperties: {
- value: {
- serializedName: "",
+ ...ProxyResource.type.modelProperties,
+ dataSourceType: {
+ serializedName: "properties.dataSourceType",
+ readOnly: true,
+ type: {
+ name: "Enum",
+ allowedValues: ["CustomLogs", "AzureWatson", "Query", "Alerts"]
+ }
+ },
+ storageAccountIds: {
+ serializedName: "properties.storageAccountIds",
type: {
name: "Sequence",
element: {
type: {
- name: "Composite",
- className: "DataExport"
+ name: "String"
}
}
}
@@ -1887,92 +1736,124 @@ export const DataExportListResult: msRest.CompositeMapper = {
}
};
-export const DataSourceListResult: msRest.CompositeMapper = {
- serializedName: "DataSourceListResult",
+export const StorageInsight: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "DataSourceListResult",
+ className: "StorageInsight",
modelProperties: {
- value: {
- serializedName: "",
+ ...ProxyResource.type.modelProperties,
+ eTag: {
+ serializedName: "eTag",
+ type: {
+ name: "String"
+ }
+ },
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "String" } }
+ }
+ },
+ containers: {
+ serializedName: "properties.containers",
type: {
name: "Sequence",
element: {
type: {
- name: "Composite",
- className: "DataSource"
+ name: "String"
}
}
}
},
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const LinkedServiceListResult: msRest.CompositeMapper = {
- serializedName: "LinkedServiceListResult",
- type: {
- name: "Composite",
- className: "LinkedServiceListResult",
- modelProperties: {
- value: {
- serializedName: "",
+ tables: {
+ serializedName: "properties.tables",
type: {
name: "Sequence",
element: {
type: {
- name: "Composite",
- className: "LinkedService"
+ name: "String"
}
}
}
+ },
+ storageAccount: {
+ serializedName: "properties.storageAccount",
+ type: {
+ name: "Composite",
+ className: "StorageAccount"
+ }
+ },
+ status: {
+ serializedName: "properties.status",
+ type: {
+ name: "Composite",
+ className: "StorageInsightStatus"
+ }
}
}
}
};
-export const LinkedStorageAccountsListResult: msRest.CompositeMapper = {
- serializedName: "LinkedStorageAccountsListResult",
+export const SavedSearch: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "LinkedStorageAccountsListResult",
+ className: "SavedSearch",
modelProperties: {
- value: {
- serializedName: "",
+ ...ProxyResource.type.modelProperties,
+ etag: {
+ serializedName: "etag",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "LinkedStorageAccountsResource"
- }
- }
+ name: "String"
}
- }
- }
- }
-};
-
-export const WorkspaceListManagementGroupsResult: msRest.CompositeMapper = {
- serializedName: "WorkspaceListManagementGroupsResult",
- type: {
- name: "Composite",
- className: "WorkspaceListManagementGroupsResult",
- modelProperties: {
- value: {
- serializedName: "",
+ },
+ category: {
+ serializedName: "properties.category",
+ required: true,
+ type: {
+ name: "String"
+ }
+ },
+ displayName: {
+ serializedName: "properties.displayName",
+ required: true,
+ type: {
+ name: "String"
+ }
+ },
+ query: {
+ serializedName: "properties.query",
+ required: true,
+ type: {
+ name: "String"
+ }
+ },
+ functionAlias: {
+ serializedName: "properties.functionAlias",
+ type: {
+ name: "String"
+ }
+ },
+ functionParameters: {
+ serializedName: "properties.functionParameters",
+ type: {
+ name: "String"
+ }
+ },
+ version: {
+ serializedName: "properties.version",
+ type: {
+ name: "Number"
+ }
+ },
+ tags: {
+ serializedName: "properties.tags",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "ManagementGroup"
+ className: "Tag"
}
}
}
@@ -1981,151 +1862,320 @@ export const WorkspaceListManagementGroupsResult: msRest.CompositeMapper = {
}
};
-export const OperationListResult: msRest.CompositeMapper = {
- serializedName: "OperationListResult",
+export const Cluster: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "OperationListResult",
+ className: "Cluster",
modelProperties: {
- value: {
- serializedName: "",
+ ...TrackedResource.type.modelProperties,
+ identity: {
+ serializedName: "identity",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Operation"
- }
- }
+ name: "Composite",
+ className: "Identity"
}
},
- nextLink: {
+ sku: {
+ serializedName: "sku",
+ type: {
+ name: "Composite",
+ className: "ClusterSku"
+ }
+ },
+ clusterId: {
+ serializedName: "properties.clusterId",
readOnly: true,
- serializedName: "nextLink",
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const WorkspaceListUsagesResult: msRest.CompositeMapper = {
- serializedName: "WorkspaceListUsagesResult",
- type: {
- name: "Composite",
- className: "WorkspaceListUsagesResult",
- modelProperties: {
- value: {
- serializedName: "",
+ },
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ readOnly: true,
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "UsageMetric"
- }
- }
+ name: "String"
}
- }
- }
- }
-};
-
-export const WorkspaceListResult: msRest.CompositeMapper = {
- serializedName: "WorkspaceListResult",
- type: {
- name: "Composite",
- className: "WorkspaceListResult",
- modelProperties: {
- value: {
- serializedName: "",
+ },
+ isDoubleEncryptionEnabled: {
+ serializedName: "properties.isDoubleEncryptionEnabled",
+ type: {
+ name: "Boolean"
+ }
+ },
+ isAvailabilityZonesEnabled: {
+ serializedName: "properties.isAvailabilityZonesEnabled",
+ type: {
+ name: "Boolean"
+ }
+ },
+ billingType: {
+ serializedName: "properties.billingType",
+ type: {
+ name: "String"
+ }
+ },
+ keyVaultProperties: {
+ serializedName: "properties.keyVaultProperties",
+ type: {
+ name: "Composite",
+ className: "KeyVaultProperties"
+ }
+ },
+ lastModifiedDate: {
+ serializedName: "properties.lastModifiedDate",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ createdDate: {
+ serializedName: "properties.createdDate",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ associatedWorkspaces: {
+ serializedName: "properties.associatedWorkspaces",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "Workspace"
+ className: "AssociatedWorkspace"
}
}
}
+ },
+ capacityReservationProperties: {
+ serializedName: "properties.capacityReservationProperties",
+ type: {
+ name: "Composite",
+ className: "CapacityReservationProperties"
+ }
}
}
}
};
-export const ClusterListResult: msRest.CompositeMapper = {
- serializedName: "ClusterListResult",
+export const Workspace: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ClusterListResult",
+ className: "Workspace",
modelProperties: {
- nextLink: {
- serializedName: "nextLink",
+ ...TrackedResource.type.modelProperties,
+ eTag: {
+ serializedName: "eTag",
type: {
name: "String"
}
},
- value: {
- serializedName: "",
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ type: {
+ name: "String"
+ }
+ },
+ customerId: {
+ serializedName: "properties.customerId",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ sku: {
+ serializedName: "properties.sku",
+ type: {
+ name: "Composite",
+ className: "WorkspaceSku"
+ }
+ },
+ retentionInDays: {
+ serializedName: "properties.retentionInDays",
+ nullable: true,
+ type: {
+ name: "Number"
+ }
+ },
+ workspaceCapping: {
+ serializedName: "properties.workspaceCapping",
+ type: {
+ name: "Composite",
+ className: "WorkspaceCapping"
+ }
+ },
+ createdDate: {
+ serializedName: "properties.createdDate",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ modifiedDate: {
+ serializedName: "properties.modifiedDate",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ publicNetworkAccessForIngestion: {
+ defaultValue: "Enabled",
+ serializedName: "properties.publicNetworkAccessForIngestion",
+ type: {
+ name: "String"
+ }
+ },
+ publicNetworkAccessForQuery: {
+ defaultValue: "Enabled",
+ serializedName: "properties.publicNetworkAccessForQuery",
+ type: {
+ name: "String"
+ }
+ },
+ forceCmkForQuery: {
+ serializedName: "properties.forceCmkForQuery",
+ type: {
+ name: "Boolean"
+ }
+ },
+ privateLinkScopedResources: {
+ serializedName: "properties.privateLinkScopedResources",
+ readOnly: true,
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "Cluster"
+ className: "PrivateLinkScopedResource"
}
}
}
+ },
+ features: {
+ serializedName: "properties.features",
+ type: {
+ name: "Composite",
+ className: "WorkspaceFeatures"
+ }
}
}
}
};
-export const StorageInsightListResult: msRest.CompositeMapper = {
- serializedName: "StorageInsightListResult",
+export const WorkspacePatch: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "StorageInsightListResult",
+ className: "WorkspacePatch",
modelProperties: {
- value: {
- serializedName: "",
+ ...AzureEntityResource.type.modelProperties,
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "String" } }
+ }
+ },
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ type: {
+ name: "String"
+ }
+ },
+ customerId: {
+ serializedName: "properties.customerId",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ sku: {
+ serializedName: "properties.sku",
+ type: {
+ name: "Composite",
+ className: "WorkspaceSku"
+ }
+ },
+ retentionInDays: {
+ serializedName: "properties.retentionInDays",
+ nullable: true,
+ type: {
+ name: "Number"
+ }
+ },
+ workspaceCapping: {
+ serializedName: "properties.workspaceCapping",
+ type: {
+ name: "Composite",
+ className: "WorkspaceCapping"
+ }
+ },
+ createdDate: {
+ serializedName: "properties.createdDate",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ modifiedDate: {
+ serializedName: "properties.modifiedDate",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ publicNetworkAccessForIngestion: {
+ defaultValue: "Enabled",
+ serializedName: "properties.publicNetworkAccessForIngestion",
+ type: {
+ name: "String"
+ }
+ },
+ publicNetworkAccessForQuery: {
+ defaultValue: "Enabled",
+ serializedName: "properties.publicNetworkAccessForQuery",
+ type: {
+ name: "String"
+ }
+ },
+ forceCmkForQuery: {
+ serializedName: "properties.forceCmkForQuery",
+ type: {
+ name: "Boolean"
+ }
+ },
+ privateLinkScopedResources: {
+ serializedName: "properties.privateLinkScopedResources",
+ readOnly: true,
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "StorageInsight"
+ className: "PrivateLinkScopedResource"
}
}
}
},
- odataNextLink: {
- serializedName: "@odata\\.nextLink",
+ features: {
+ serializedName: "properties.features",
type: {
- name: "String"
+ name: "Composite",
+ className: "WorkspaceFeatures"
}
}
}
}
};
-export const TablesListResult: msRest.CompositeMapper = {
- serializedName: "TablesListResult",
+export const WorkspacePurgePurgeHeaders: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "TablesListResult",
+ className: "WorkspacePurgePurgeHeaders",
modelProperties: {
- value: {
- serializedName: "",
+ xMsStatusLocation: {
+ serializedName: "x-ms-status-location",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Table"
- }
- }
+ name: "String"
}
}
}
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/operationStatusesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/operationStatusesMappers.ts
deleted file mode 100644
index 4d71afc09945..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/operationStatusesMappers.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- CloudError,
- ErrorAdditionalInfo,
- ErrorDetail,
- ErrorResponse,
- OperationStatus
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/operationsMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/operationsMappers.ts
deleted file mode 100644
index 938d3e665a23..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/operationsMappers.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- CloudError,
- Operation,
- OperationDisplay,
- OperationListResult
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts
index 1e406049b123..ecf9a17c882b 100644
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts
+++ b/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts
@@ -3,286 +3,404 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
+import {
+ OperationParameter,
+ OperationURLParameter,
+ OperationQueryParameter
+} from "@azure/core-client";
+import {
+ DataExport as DataExportMapper,
+ DataSource as DataSourceMapper,
+ LinkedService as LinkedServiceMapper,
+ LinkedStorageAccountsResource as LinkedStorageAccountsResourceMapper,
+ StorageInsight as StorageInsightMapper,
+ SavedSearch as SavedSearchMapper,
+ WorkspacePurgeBody as WorkspacePurgeBodyMapper,
+ Cluster as ClusterMapper,
+ ClusterPatch as ClusterPatchMapper,
+ Workspace as WorkspaceMapper,
+ WorkspacePatch as WorkspacePatchMapper
+} from "../models/mappers";
-export const acceptLanguage: msRest.OperationParameter = {
- parameterPath: "acceptLanguage",
+export const accept: OperationParameter = {
+ parameterPath: "accept",
mapper: {
- serializedName: "accept-language",
- defaultValue: 'en-US',
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Accept",
type: {
name: "String"
}
}
};
-export const apiVersion: msRest.OperationQueryParameter = {
- parameterPath: "apiVersion",
+
+export const $host: OperationURLParameter = {
+ parameterPath: "$host",
mapper: {
+ serializedName: "$host",
required: true,
- serializedName: "api-version",
+ type: {
+ name: "String"
+ }
+ },
+ skipEncoding: true
+};
+
+export const subscriptionId: OperationURLParameter = {
+ parameterPath: "subscriptionId",
+ mapper: {
constraints: {
MinLength: 1
},
+ serializedName: "subscriptionId",
+ required: true,
type: {
name: "String"
}
}
};
-export const asyncOperationId: msRest.OperationURLParameter = {
- parameterPath: "asyncOperationId",
+
+export const resourceGroupName: OperationURLParameter = {
+ parameterPath: "resourceGroupName",
mapper: {
+ constraints: {
+ MaxLength: 90,
+ MinLength: 1
+ },
+ serializedName: "resourceGroupName",
required: true,
- serializedName: "asyncOperationId",
type: {
name: "String"
}
}
};
-export const clusterName0: msRest.OperationURLParameter = {
- parameterPath: "clusterName",
+
+export const workspaceName: OperationURLParameter = {
+ parameterPath: "workspaceName",
mapper: {
- required: true,
- serializedName: "clusterName",
constraints: {
+ Pattern: new RegExp("^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$"),
MaxLength: 63,
- MinLength: 4,
- Pattern: /^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$/
+ MinLength: 4
},
+ serializedName: "workspaceName",
+ required: true,
type: {
name: "String"
}
}
};
-export const clusterName1: msRest.OperationURLParameter = {
- parameterPath: "clusterName",
+
+export const apiVersion: OperationQueryParameter = {
+ parameterPath: "apiVersion",
mapper: {
- required: true,
- serializedName: "clusterName",
+ defaultValue: "2020-08-01",
+ isConstant: true,
+ serializedName: "api-version",
type: {
name: "String"
}
}
};
-export const dataExportName0: msRest.OperationURLParameter = {
- parameterPath: "dataExportName",
+
+export const contentType: OperationParameter = {
+ parameterPath: ["options", "contentType"],
mapper: {
- required: true,
- serializedName: "dataExportName",
- constraints: {
- MaxLength: 63,
- MinLength: 4,
- Pattern: /^[A-Za-z][A-Za-z0-9-]+[A-Za-z0-9]$/
- },
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Content-Type",
type: {
name: "String"
}
}
};
-export const dataExportName1: msRest.OperationURLParameter = {
+
+export const parameters: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: DataExportMapper
+};
+
+export const dataExportName: OperationURLParameter = {
parameterPath: "dataExportName",
mapper: {
- required: true,
+ constraints: {
+ Pattern: new RegExp("^[A-Za-z][A-Za-z0-9-]+[A-Za-z0-9]$"),
+ MaxLength: 63,
+ MinLength: 4
+ },
serializedName: "dataExportName",
+ required: true,
type: {
name: "String"
}
}
};
-export const dataSourceName: msRest.OperationURLParameter = {
- parameterPath: "dataSourceName",
+
+export const dataExportName1: OperationURLParameter = {
+ parameterPath: "dataExportName",
mapper: {
+ serializedName: "dataExportName",
required: true,
- serializedName: "dataSourceName",
type: {
name: "String"
}
}
};
-export const dataSourceType: msRest.OperationURLParameter = {
- parameterPath: "dataSourceType",
+
+export const parameters1: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: DataSourceMapper
+};
+
+export const dataSourceName: OperationURLParameter = {
+ parameterPath: "dataSourceName",
mapper: {
+ serializedName: "dataSourceName",
required: true,
- serializedName: "dataSourceType",
type: {
- name: "Enum",
- allowedValues: [
- "CustomLogs",
- "AzureWatson",
- "Query",
- "Alerts"
- ]
+ name: "String"
}
}
};
-export const filter: msRest.OperationQueryParameter = {
+
+export const filter: OperationQueryParameter = {
parameterPath: "filter",
mapper: {
- required: true,
serializedName: "$filter",
+ required: true,
type: {
name: "String"
}
}
};
-export const force: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "force"
- ],
+
+export const skiptoken: OperationQueryParameter = {
+ parameterPath: ["options", "skiptoken"],
mapper: {
- serializedName: "force",
+ serializedName: "$skiptoken",
type: {
- name: "Boolean"
+ name: "String"
}
}
};
-export const gatewayId: msRest.OperationURLParameter = {
- parameterPath: "gatewayId",
+
+export const nextLink: OperationURLParameter = {
+ parameterPath: "nextLink",
mapper: {
+ serializedName: "nextLink",
required: true,
- serializedName: "gatewayId",
type: {
name: "String"
}
- }
+ },
+ skipEncoding: true
};
-export const intelligencePackName: msRest.OperationURLParameter = {
+
+export const intelligencePackName: OperationURLParameter = {
parameterPath: "intelligencePackName",
mapper: {
- required: true,
serializedName: "intelligencePackName",
+ required: true,
type: {
name: "String"
}
}
};
-export const linkedServiceName: msRest.OperationURLParameter = {
+
+export const parameters2: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: LinkedServiceMapper
+};
+
+export const linkedServiceName: OperationURLParameter = {
parameterPath: "linkedServiceName",
mapper: {
- required: true,
serializedName: "linkedServiceName",
+ required: true,
type: {
name: "String"
}
}
};
-export const location: msRest.OperationURLParameter = {
- parameterPath: "location",
+
+export const parameters3: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: LinkedStorageAccountsResourceMapper
+};
+
+export const dataSourceType: OperationURLParameter = {
+ parameterPath: "dataSourceType",
mapper: {
+ serializedName: "dataSourceType",
required: true,
- serializedName: "location",
type: {
- name: "String"
+ name: "Enum",
+ allowedValues: ["CustomLogs", "AzureWatson", "Query", "Alerts"]
}
}
};
-export const nextPageLink: msRest.OperationURLParameter = {
- parameterPath: "nextPageLink",
+
+export const location: OperationURLParameter = {
+ parameterPath: "location",
mapper: {
+ serializedName: "location",
required: true,
- serializedName: "nextLink",
type: {
name: "String"
}
- },
- skipEncoding: true
+ }
};
-export const purgeId: msRest.OperationURLParameter = {
- parameterPath: "purgeId",
+
+export const asyncOperationId: OperationURLParameter = {
+ parameterPath: "asyncOperationId",
mapper: {
+ serializedName: "asyncOperationId",
required: true,
- serializedName: "purgeId",
type: {
name: "String"
}
}
};
-export const resourceGroupName: msRest.OperationURLParameter = {
- parameterPath: "resourceGroupName",
+
+export const parameters4: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: StorageInsightMapper
+};
+
+export const storageInsightName: OperationURLParameter = {
+ parameterPath: "storageInsightName",
mapper: {
+ serializedName: "storageInsightName",
required: true,
- serializedName: "resourceGroupName",
- constraints: {
- MaxLength: 90,
- MinLength: 1,
- Pattern: /^[-\w\._\(\)]+$/
- },
type: {
name: "String"
}
}
};
-export const savedSearchId: msRest.OperationURLParameter = {
+
+export const savedSearchId: OperationURLParameter = {
parameterPath: "savedSearchId",
mapper: {
- required: true,
serializedName: "savedSearchId",
+ required: true,
type: {
name: "String"
}
}
};
-export const skiptoken: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "skiptoken"
- ],
+
+export const parameters5: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: SavedSearchMapper
+};
+
+export const gatewayId: OperationURLParameter = {
+ parameterPath: "gatewayId",
mapper: {
- serializedName: "$skiptoken",
+ serializedName: "gatewayId",
+ required: true,
type: {
name: "String"
}
}
};
-export const storageInsightName: msRest.OperationURLParameter = {
- parameterPath: "storageInsightName",
+
+export const body: OperationParameter = {
+ parameterPath: "body",
+ mapper: WorkspacePurgeBodyMapper
+};
+
+export const purgeId: OperationURLParameter = {
+ parameterPath: "purgeId",
mapper: {
+ serializedName: "purgeId",
required: true,
- serializedName: "storageInsightName",
type: {
name: "String"
}
}
};
-export const subscriptionId: msRest.OperationURLParameter = {
- parameterPath: "subscriptionId",
+
+export const apiVersion1: OperationQueryParameter = {
+ parameterPath: "apiVersion",
mapper: {
- required: true,
- serializedName: "subscriptionId",
- constraints: {
- MinLength: 1
- },
+ defaultValue: "2020-10-01",
+ isConstant: true,
+ serializedName: "api-version",
type: {
name: "String"
}
}
};
-export const tableName: msRest.OperationURLParameter = {
- parameterPath: "tableName",
+
+export const apiVersion2: OperationQueryParameter = {
+ parameterPath: "apiVersion",
mapper: {
- required: true,
- serializedName: "tableName",
+ defaultValue: "2021-06-01",
+ isConstant: true,
+ serializedName: "api-version",
type: {
name: "String"
}
}
};
-export const workspaceName: msRest.OperationURLParameter = {
- parameterPath: "workspaceName",
+
+export const parameters6: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: ClusterMapper
+};
+
+export const clusterName: OperationURLParameter = {
+ parameterPath: "clusterName",
mapper: {
- required: true,
- serializedName: "workspaceName",
constraints: {
+ Pattern: new RegExp("^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$"),
MaxLength: 63,
- MinLength: 4,
- Pattern: /^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$/
+ MinLength: 4
},
+ serializedName: "clusterName",
+ required: true,
type: {
name: "String"
}
}
};
+
+export const clusterName1: OperationURLParameter = {
+ parameterPath: "clusterName",
+ mapper: {
+ serializedName: "clusterName",
+ required: true,
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const parameters7: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: ClusterPatchMapper
+};
+
+export const parameters8: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: WorkspaceMapper
+};
+
+export const force: OperationQueryParameter = {
+ parameterPath: ["options", "force"],
+ mapper: {
+ serializedName: "force",
+ type: {
+ name: "Boolean"
+ }
+ }
+};
+
+export const parameters9: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: WorkspacePatchMapper
+};
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/savedSearchesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/savedSearchesMappers.ts
deleted file mode 100644
index 781f0d1c78e8..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/savedSearchesMappers.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- AzureEntityResource,
- BaseResource,
- CloudError,
- Cluster,
- ClusterPatch,
- ClusterSku,
- DataExport,
- DataSource,
- Identity,
- KeyVaultProperties,
- LinkedService,
- LinkedStorageAccountsResource,
- PrivateLinkScopedResource,
- ProxyResource,
- Resource,
- SavedSearch,
- SavedSearchesListResult,
- StorageAccount,
- StorageInsight,
- StorageInsightStatus,
- Table,
- Tag,
- TrackedResource,
- Workspace,
- WorkspaceCapping,
- WorkspacePatch,
- WorkspaceSku
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/schemaMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/schemaMappers.ts
deleted file mode 100644
index a2afa18d57fe..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/schemaMappers.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- CloudError,
- CoreSummary,
- SearchGetSchemaResponse,
- SearchMetadata,
- SearchMetadataSchema,
- SearchSchemaValue,
- SearchSort
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/sharedKeysOperationsMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/sharedKeysOperationsMappers.ts
deleted file mode 100644
index 408a046e9191..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/sharedKeysOperationsMappers.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- CloudError,
- SharedKeys
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/storageInsightConfigsMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/storageInsightConfigsMappers.ts
deleted file mode 100644
index 6038de497b3c..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/storageInsightConfigsMappers.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- AzureEntityResource,
- BaseResource,
- CloudError,
- Cluster,
- ClusterPatch,
- ClusterSku,
- DataExport,
- DataSource,
- Identity,
- KeyVaultProperties,
- LinkedService,
- LinkedStorageAccountsResource,
- PrivateLinkScopedResource,
- ProxyResource,
- Resource,
- SavedSearch,
- StorageAccount,
- StorageInsight,
- StorageInsightListResult,
- StorageInsightStatus,
- Table,
- Tag,
- TrackedResource,
- Workspace,
- WorkspaceCapping,
- WorkspacePatch,
- WorkspaceSku
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/tablesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/tablesMappers.ts
deleted file mode 100644
index c6f176f47a9c..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/tablesMappers.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- AzureEntityResource,
- BaseResource,
- Cluster,
- ClusterPatch,
- ClusterSku,
- DataExport,
- DataSource,
- ErrorAdditionalInfo,
- ErrorDetail,
- ErrorResponse,
- Identity,
- KeyVaultProperties,
- LinkedService,
- LinkedStorageAccountsResource,
- PrivateLinkScopedResource,
- ProxyResource,
- Resource,
- SavedSearch,
- StorageAccount,
- StorageInsight,
- StorageInsightStatus,
- Table,
- TablesListResult,
- Tag,
- TrackedResource,
- Workspace,
- WorkspaceCapping,
- WorkspacePatch,
- WorkspaceSku
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/usagesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/usagesMappers.ts
deleted file mode 100644
index ac8569cf61f6..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/usagesMappers.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- CloudError,
- MetricName,
- UsageMetric,
- WorkspaceListUsagesResult
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/workspacePurgeMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/workspacePurgeMappers.ts
deleted file mode 100644
index fd1fc46af63b..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/workspacePurgeMappers.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- CloudError,
- WorkspacePurgeBody,
- WorkspacePurgeBodyFilters,
- WorkspacePurgePurgeHeaders,
- WorkspacePurgeResponse,
- WorkspacePurgeStatusResponse
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/workspacesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/workspacesMappers.ts
deleted file mode 100644
index 6bfe44aaf661..000000000000
--- a/sdk/operationalinsights/arm-operationalinsights/src/models/workspacesMappers.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- AzureEntityResource,
- BaseResource,
- Cluster,
- ClusterPatch,
- ClusterSku,
- DataExport,
- DataSource,
- ErrorAdditionalInfo,
- ErrorDetail,
- ErrorResponse,
- Identity,
- KeyVaultProperties,
- LinkedService,
- LinkedStorageAccountsResource,
- PrivateLinkScopedResource,
- ProxyResource,
- Resource,
- SavedSearch,
- StorageAccount,
- StorageInsight,
- StorageInsightStatus,
- Table,
- Tag,
- TrackedResource,
- Workspace,
- WorkspaceCapping,
- WorkspaceListResult,
- WorkspacePatch,
- WorkspaceSku
-} from "../models/mappers";
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts
index 0d6ac9045e4e..5f0fa8cdef08 100644
--- a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts
+++ b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts
@@ -3,77 +3,106 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "./models";
-import * as Mappers from "./models/mappers";
-import * as operations from "./operations";
+import * as coreAuth from "@azure/core-auth";
+import {
+ DataExportsImpl,
+ DataSourcesImpl,
+ IntelligencePacksImpl,
+ LinkedServicesImpl,
+ LinkedStorageAccountsImpl,
+ ManagementGroupsImpl,
+ OperationStatusesImpl,
+ SharedKeysOperationsImpl,
+ UsagesImpl,
+ StorageInsightConfigsImpl,
+ SavedSearchesImpl,
+ AvailableServiceTiersImpl,
+ GatewaysImpl,
+ SchemaImpl,
+ WorkspacePurgeImpl,
+ OperationsImpl,
+ ClustersImpl,
+ WorkspacesImpl,
+ DeletedWorkspacesImpl
+} from "./operations";
+import {
+ DataExports,
+ DataSources,
+ IntelligencePacks,
+ LinkedServices,
+ LinkedStorageAccounts,
+ ManagementGroups,
+ OperationStatuses,
+ SharedKeysOperations,
+ Usages,
+ StorageInsightConfigs,
+ SavedSearches,
+ AvailableServiceTiers,
+ Gateways,
+ Schema,
+ WorkspacePurge,
+ Operations,
+ Clusters,
+ Workspaces,
+ DeletedWorkspaces
+} from "./operationsInterfaces";
import { OperationalInsightsManagementClientContext } from "./operationalInsightsManagementClientContext";
+import { OperationalInsightsManagementClientOptionalParams } from "./models";
-
-class OperationalInsightsManagementClient extends OperationalInsightsManagementClientContext {
- // Operation groups
- dataExports: operations.DataExports;
- dataSources: operations.DataSources;
- intelligencePacks: operations.IntelligencePacks;
- linkedServices: operations.LinkedServices;
- linkedStorageAccounts: operations.LinkedStorageAccounts;
- managementGroups: operations.ManagementGroups;
- operations: operations.Operations;
- operationStatuses: operations.OperationStatuses;
- sharedKeys: operations.SharedKeysOperations;
- usages: operations.Usages;
- workspaces: operations.Workspaces;
- deletedWorkspaces: operations.DeletedWorkspaces;
- clusters: operations.Clusters;
- storageInsightConfigs: operations.StorageInsightConfigs;
- savedSearches: operations.SavedSearches;
- availableServiceTiers: operations.AvailableServiceTiers;
- gateways: operations.Gateways;
- schema: operations.Schema;
- workspacePurge: operations.WorkspacePurge;
- tables: operations.Tables;
-
+export class OperationalInsightsManagementClient extends OperationalInsightsManagementClientContext {
/**
* Initializes a new instance of the OperationalInsightsManagementClient class.
- * @param credentials Credentials needed for the client to connect to Azure.
+ * @param credentials Subscription credentials which uniquely identify client subscription.
* @param subscriptionId The ID of the target subscription.
- * @param [options] The parameter options
+ * @param options The parameter options
*/
- constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.OperationalInsightsManagementClientOptions) {
+ constructor(
+ credentials: coreAuth.TokenCredential,
+ subscriptionId: string,
+ options?: OperationalInsightsManagementClientOptionalParams
+ ) {
super(credentials, subscriptionId, options);
- this.dataExports = new operations.DataExports(this);
- this.dataSources = new operations.DataSources(this);
- this.intelligencePacks = new operations.IntelligencePacks(this);
- this.linkedServices = new operations.LinkedServices(this);
- this.linkedStorageAccounts = new operations.LinkedStorageAccounts(this);
- this.managementGroups = new operations.ManagementGroups(this);
- this.operations = new operations.Operations(this);
- this.operationStatuses = new operations.OperationStatuses(this);
- this.sharedKeys = new operations.SharedKeysOperations(this);
- this.usages = new operations.Usages(this);
- this.workspaces = new operations.Workspaces(this);
- this.deletedWorkspaces = new operations.DeletedWorkspaces(this);
- this.clusters = new operations.Clusters(this);
- this.storageInsightConfigs = new operations.StorageInsightConfigs(this);
- this.savedSearches = new operations.SavedSearches(this);
- this.availableServiceTiers = new operations.AvailableServiceTiers(this);
- this.gateways = new operations.Gateways(this);
- this.schema = new operations.Schema(this);
- this.workspacePurge = new operations.WorkspacePurge(this);
- this.tables = new operations.Tables(this);
+ this.dataExports = new DataExportsImpl(this);
+ this.dataSources = new DataSourcesImpl(this);
+ this.intelligencePacks = new IntelligencePacksImpl(this);
+ this.linkedServices = new LinkedServicesImpl(this);
+ this.linkedStorageAccounts = new LinkedStorageAccountsImpl(this);
+ this.managementGroups = new ManagementGroupsImpl(this);
+ this.operationStatuses = new OperationStatusesImpl(this);
+ this.sharedKeysOperations = new SharedKeysOperationsImpl(this);
+ this.usages = new UsagesImpl(this);
+ this.storageInsightConfigs = new StorageInsightConfigsImpl(this);
+ this.savedSearches = new SavedSearchesImpl(this);
+ this.availableServiceTiers = new AvailableServiceTiersImpl(this);
+ this.gateways = new GatewaysImpl(this);
+ this.schema = new SchemaImpl(this);
+ this.workspacePurge = new WorkspacePurgeImpl(this);
+ this.operations = new OperationsImpl(this);
+ this.clusters = new ClustersImpl(this);
+ this.workspaces = new WorkspacesImpl(this);
+ this.deletedWorkspaces = new DeletedWorkspacesImpl(this);
}
-}
-// Operation Specifications
-
-export {
- OperationalInsightsManagementClient,
- OperationalInsightsManagementClientContext,
- Models as OperationalInsightsManagementModels,
- Mappers as OperationalInsightsManagementMappers
-};
-export * from "./operations";
+ dataExports: DataExports;
+ dataSources: DataSources;
+ intelligencePacks: IntelligencePacks;
+ linkedServices: LinkedServices;
+ linkedStorageAccounts: LinkedStorageAccounts;
+ managementGroups: ManagementGroups;
+ operationStatuses: OperationStatuses;
+ sharedKeysOperations: SharedKeysOperations;
+ usages: Usages;
+ storageInsightConfigs: StorageInsightConfigs;
+ savedSearches: SavedSearches;
+ availableServiceTiers: AvailableServiceTiers;
+ gateways: Gateways;
+ schema: Schema;
+ workspacePurge: WorkspacePurge;
+ operations: Operations;
+ clusters: Clusters;
+ workspaces: Workspaces;
+ deletedWorkspaces: DeletedWorkspaces;
+}
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts
index fda0af09728d..78eb7eeb2eb6 100644
--- a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts
+++ b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts
@@ -3,59 +3,66 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as Models from "./models";
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
+import * as coreClient from "@azure/core-client";
+import * as coreAuth from "@azure/core-auth";
+import { OperationalInsightsManagementClientOptionalParams } from "./models";
-const packageName = "@azure/arm-operationalinsights";
-const packageVersion = "7.0.0";
-
-export class OperationalInsightsManagementClientContext extends msRestAzure.AzureServiceClient {
- credentials: msRest.ServiceClientCredentials;
- apiVersion?: string;
+export class OperationalInsightsManagementClientContext extends coreClient.ServiceClient {
+ $host: string;
subscriptionId: string;
/**
- * Initializes a new instance of the OperationalInsightsManagementClient class.
- * @param credentials Credentials needed for the client to connect to Azure.
+ * Initializes a new instance of the OperationalInsightsManagementClientContext class.
+ * @param credentials Subscription credentials which uniquely identify client subscription.
* @param subscriptionId The ID of the target subscription.
- * @param [options] The parameter options
+ * @param options The parameter options
*/
- constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.OperationalInsightsManagementClientOptions) {
- if (credentials == undefined) {
- throw new Error('\'credentials\' cannot be null.');
+ constructor(
+ credentials: coreAuth.TokenCredential,
+ subscriptionId: string,
+ options?: OperationalInsightsManagementClientOptionalParams
+ ) {
+ if (credentials === undefined) {
+ throw new Error("'credentials' cannot be null");
}
- if (subscriptionId == undefined) {
- throw new Error('\'subscriptionId\' cannot be null.');
+ if (subscriptionId === undefined) {
+ throw new Error("'subscriptionId' cannot be null");
}
+ // Initializing default values for options
if (!options) {
options = {};
}
- if (!options.userAgent) {
- const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
- options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
- }
+ const defaults: OperationalInsightsManagementClientOptionalParams = {
+ requestContentType: "application/json; charset=utf-8",
+ credential: credentials
+ };
- super(credentials, options);
+ const packageDetails = `azsdk-js-arm-operationalinsights/8.0.0-beta.1`;
+ const userAgentPrefix =
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
+ : `${packageDetails}`;
- this.apiVersion = '2020-08-01';
- this.acceptLanguage = 'en-US';
- this.longRunningOperationRetryTimeout = 30;
- this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
- this.requestContentType = "application/json; charset=utf-8";
- this.credentials = credentials;
+ if (!options.credentialScopes) {
+ options.credentialScopes = ["https://management.azure.com/.default"];
+ }
+ const optionsWithDefaults = {
+ ...defaults,
+ ...options,
+ userAgentOptions: {
+ userAgentPrefix
+ },
+ baseUri: options.endpoint || "https://management.azure.com"
+ };
+ super(optionsWithDefaults);
+ // Parameter assignments
this.subscriptionId = subscriptionId;
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
- this.acceptLanguage = options.acceptLanguage;
- }
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
- this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
- }
+ // Assigning values to Constant parameters
+ this.$host = options.$host || "https://management.azure.com";
}
}
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/availableServiceTiers.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/availableServiceTiers.ts
index 70cc7adf5e25..ce9ea32ac852 100644
--- a/sdk/operationalinsights/arm-operationalinsights/src/operations/availableServiceTiers.ts
+++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/availableServiceTiers.ts
@@ -3,23 +3,26 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/availableServiceTiersMappers";
+import { AvailableServiceTiers } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { OperationalInsightsManagementClientContext } from "../operationalInsightsManagementClientContext";
+import {
+ AvailableServiceTiersListByWorkspaceOptionalParams,
+ AvailableServiceTiersListByWorkspaceResponse
+} from "../models";
-/** Class representing a AvailableServiceTiers. */
-export class AvailableServiceTiers {
+/** Class containing AvailableServiceTiers operations. */
+export class AvailableServiceTiersImpl implements AvailableServiceTiers {
private readonly client: OperationalInsightsManagementClientContext;
/**
- * Create a AvailableServiceTiers.
- * @param {OperationalInsightsManagementClientContext} client Reference to the service client.
+ * Initialize a new instance of the class AvailableServiceTiers class.
+ * @param client Reference to the service client
*/
constructor(client: OperationalInsightsManagementClientContext) {
this.client = client;
@@ -29,69 +32,45 @@ export class AvailableServiceTiers {
* Gets the available service tiers for the workspace.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param callback The callback
- */
- listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param options The optional parameters
- * @param callback The callback
- */
- listByWorkspace(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ listByWorkspace(
+ resourceGroupName: string,
+ workspaceName: string,
+ options?: AvailableServiceTiersListByWorkspaceOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- workspaceName,
- options
- },
- listByWorkspaceOperationSpec,
- callback) as Promise;
+ { resourceGroupName, workspaceName, options },
+ listByWorkspaceOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const listByWorkspaceOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const listByWorkspaceOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/availableServiceTiers",
httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/availableServiceTiers",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.workspaceName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: {
- serializedName: "parsedResponse",
type: {
name: "Sequence",
element: {
- type: {
- name: "Composite",
- className: "AvailableServiceTier"
- }
+ type: { name: "Composite", className: "AvailableServiceTier" }
}
}
}
- },
- default: {
- bodyMapper: Mappers.CloudError
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.workspaceName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/clusters.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/clusters.ts
index b381815609eb..c3cdaa80e580 100644
--- a/sdk/operationalinsights/arm-operationalinsights/src/operations/clusters.ts
+++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/clusters.ts
@@ -3,24 +3,45 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-import * as Models from "../models";
-import * as Mappers from "../models/clustersMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { Clusters } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { OperationalInsightsManagementClientContext } from "../operationalInsightsManagementClientContext";
+import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
+import { LroImpl } from "../lroImpl";
+import {
+ Cluster,
+ ClustersListByResourceGroupNextOptionalParams,
+ ClustersListByResourceGroupOptionalParams,
+ ClustersListNextOptionalParams,
+ ClustersListOptionalParams,
+ ClustersListByResourceGroupResponse,
+ ClustersListResponse,
+ ClustersCreateOrUpdateOptionalParams,
+ ClustersCreateOrUpdateResponse,
+ ClustersDeleteOptionalParams,
+ ClustersGetOptionalParams,
+ ClustersGetResponse,
+ ClusterPatch,
+ ClustersUpdateOptionalParams,
+ ClustersUpdateResponse,
+ ClustersListByResourceGroupNextResponse,
+ ClustersListNextResponse
+} from "../models";
-/** Class representing a Clusters. */
-export class Clusters {
+///
+/** Class containing Clusters operations. */
+export class ClustersImpl implements Clusters {
private readonly client: OperationalInsightsManagementClientContext;
/**
- * Create a Clusters.
- * @param {OperationalInsightsManagementClientContext} client Reference to the service client.
+ * Initialize a new instance of the class Clusters class.
+ * @param client Reference to the service client
*/
constructor(client: OperationalInsightsManagementClientContext) {
this.client = client;
@@ -29,53 +50,121 @@ export class Clusters {
/**
* Gets Log Analytics clusters in a resource group.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param callback The callback
- */
- listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param options The optional parameters
- * @param callback The callback
- */
- listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
+ public listByResourceGroup(
+ resourceGroupName: string,
+ options?: ClustersListByResourceGroupOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
+ }
+ };
+ }
+
+ private async *listByResourceGroupPagingPage(
+ resourceGroupName: string,
+ options?: ClustersListByResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listByResourceGroup(resourceGroupName, options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listByResourceGroupNext(
resourceGroupName,
+ continuationToken,
options
- },
- listByResourceGroupOperationSpec,
- callback) as Promise;
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listByResourceGroupPagingAll(
+ resourceGroupName: string,
+ options?: ClustersListByResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listByResourceGroupPagingPage(
+ resourceGroupName,
+ options
+ )) {
+ yield* page;
+ }
}
/**
* Gets the Log Analytics clusters in a subscription.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- list(options?: msRest.RequestOptionsBase): Promise;
+ public list(
+ options?: ClustersListOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listPagingAll(options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listPagingPage(options);
+ }
+ };
+ }
+
+ private async *listPagingPage(
+ options?: ClustersListOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._list(options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listNext(continuationToken, options);
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listPagingAll(
+ options?: ClustersListOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listPagingPage(options)) {
+ yield* page;
+ }
+ }
+
/**
- * @param callback The callback
+ * Gets Log Analytics clusters in a resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param options The options parameters.
*/
- list(callback: msRest.ServiceCallback): void;
+ private _listByResourceGroup(
+ resourceGroupName: string,
+ options?: ClustersListByResourceGroupOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, options },
+ listByResourceGroupOperationSpec
+ );
+ }
+
/**
- * @param options The optional parameters
- * @param callback The callback
+ * Gets the Log Analytics clusters in a subscription.
+ * @param options The options parameters.
*/
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- options
- },
- listOperationSpec,
- callback) as Promise;
+ private _list(
+ options?: ClustersListOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
}
/**
@@ -83,56 +172,186 @@ export class Clusters {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the Log Analytics cluster.
* @param parameters The parameters required to create or update a Log Analytics cluster.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- createOrUpdate(resourceGroupName: string, clusterName: string, parameters: Models.Cluster, options?: msRest.RequestOptionsBase): Promise {
- return this.beginCreateOrUpdate(resourceGroupName,clusterName,parameters,options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ async beginCreateOrUpdate(
+ resourceGroupName: string,
+ clusterName: string,
+ parameters: Cluster,
+ options?: ClustersCreateOrUpdateOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ ClustersCreateOrUpdateResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, clusterName, parameters, options },
+ createOrUpdateOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs
+ });
}
/**
- * Deletes a cluster instance.
+ * Create or update a Log Analytics cluster.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName Name of the Log Analytics Cluster.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param clusterName The name of the Log Analytics cluster.
+ * @param parameters The parameters required to create or update a Log Analytics cluster.
+ * @param options The options parameters.
*/
- deleteMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise {
- return this.beginDeleteMethod(resourceGroupName,clusterName,options)
- .then(lroPoller => lroPoller.pollUntilFinished());
+ async beginCreateOrUpdateAndWait(
+ resourceGroupName: string,
+ clusterName: string,
+ parameters: Cluster,
+ options?: ClustersCreateOrUpdateOptionalParams
+ ): Promise {
+ const poller = await this.beginCreateOrUpdate(
+ resourceGroupName,
+ clusterName,
+ parameters,
+ options
+ );
+ return poller.pollUntilDone();
}
/**
- * Gets a Log Analytics cluster instance.
+ * Deletes a cluster instance.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Name of the Log Analytics Cluster.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- get(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise;
+ async beginDelete(
+ resourceGroupName: string,
+ clusterName: string,
+ options?: ClustersDeleteOptionalParams
+ ): Promise, void>> {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, clusterName, options },
+ deleteOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs
+ });
+ }
+
/**
+ * Deletes a cluster instance.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Name of the Log Analytics Cluster.
- * @param callback The callback
+ * @param options The options parameters.
*/
- get(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void;
+ async beginDeleteAndWait(
+ resourceGroupName: string,
+ clusterName: string,
+ options?: ClustersDeleteOptionalParams
+ ): Promise {
+ const poller = await this.beginDelete(
+ resourceGroupName,
+ clusterName,
+ options
+ );
+ return poller.pollUntilDone();
+ }
+
/**
+ * Gets a Log Analytics cluster instance.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Name of the Log Analytics Cluster.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- get(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ get(
+ resourceGroupName: string,
+ clusterName: string,
+ options?: ClustersGetOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- clusterName,
- options
- },
- getOperationSpec,
- callback) as Promise;
+ { resourceGroupName, clusterName, options },
+ getOperationSpec
+ );
}
/**
@@ -140,147 +359,59 @@ export class Clusters {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Name of the Log Analytics Cluster.
* @param parameters The parameters required to patch a Log Analytics cluster.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- update(resourceGroupName: string, clusterName: string, parameters: Models.ClusterPatch, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName Name of the Log Analytics Cluster.
- * @param parameters The parameters required to patch a Log Analytics cluster.
- * @param callback The callback
- */
- update(resourceGroupName: string, clusterName: string, parameters: Models.ClusterPatch, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName Name of the Log Analytics Cluster.
- * @param parameters The parameters required to patch a Log Analytics cluster.
- * @param options The optional parameters
- * @param callback The callback
- */
- update(resourceGroupName: string, clusterName: string, parameters: Models.ClusterPatch, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- update(resourceGroupName: string, clusterName: string, parameters: Models.ClusterPatch, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ update(
+ resourceGroupName: string,
+ clusterName: string,
+ parameters: ClusterPatch,
+ options?: ClustersUpdateOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- clusterName,
- parameters,
- options
- },
- updateOperationSpec,
- callback) as Promise;
+ { resourceGroupName, clusterName, parameters, options },
+ updateOperationSpec
+ );
}
/**
- * Create or update a Log Analytics cluster.
+ * ListByResourceGroupNext
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the Log Analytics cluster.
- * @param parameters The parameters required to create or update a Log Analytics cluster.
- * @param [options] The optional parameters
- * @returns Promise
- */
- beginCreateOrUpdate(resourceGroupName: string, clusterName: string, parameters: Models.Cluster, options?: msRest.RequestOptionsBase): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- clusterName,
- parameters,
- options
- },
- beginCreateOrUpdateOperationSpec,
- options);
- }
-
- /**
- * Deletes a cluster instance.
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName Name of the Log Analytics Cluster.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
+ * @param options The options parameters.
*/
- beginDeleteMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- clusterName,
- options
- },
- beginDeleteMethodOperationSpec,
- options);
- }
-
- /**
- * Gets Log Analytics clusters in a resource group.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
- */
- listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
- */
- listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listByResourceGroupNext(
+ resourceGroupName: string,
+ nextLink: string,
+ options?: ClustersListByResourceGroupNextOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listByResourceGroupNextOperationSpec,
- callback) as Promise;
+ { resourceGroupName, nextLink, options },
+ listByResourceGroupNextOperationSpec
+ );
}
/**
- * Gets the Log Analytics clusters in a subscription.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
+ * ListNext
+ * @param nextLink The nextLink from the previous successful call to the List method.
+ * @param options The options parameters.
*/
- listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
- */
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listNext(
+ nextLink: string,
+ options?: ClustersListNextOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listNextOperationSpec,
- callback) as Promise;
+ { nextLink, options },
+ listNextOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const listByResourceGroupOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters",
httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters",
- urlParameters: [
- Parameters.resourceGroupName,
- Parameters.subscriptionId
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.ClusterListResult
@@ -289,21 +420,19 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion2],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listOperationSpec: msRest.OperationSpec = {
+const listOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/clusters",
httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/clusters",
- urlParameters: [
- Parameters.subscriptionId
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.ClusterListResult
@@ -312,139 +441,116 @@ const listOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion2],
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const getOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.clusterName1
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+const createOrUpdateOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}",
+ httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.Cluster
},
+ 201: {
+ bodyMapper: Mappers.Cluster
+ },
+ 202: {
+ bodyMapper: Mappers.Cluster
+ },
+ 204: {
+ bodyMapper: Mappers.Cluster
+ },
default: {
bodyMapper: Mappers.ErrorResponse
}
},
- serializer
-};
-
-const updateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PATCH",
- path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}",
+ requestBody: Parameters.parameters6,
+ queryParameters: [Parameters.apiVersion2],
urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
Parameters.resourceGroupName,
- Parameters.clusterName1,
- Parameters.subscriptionId
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
+ Parameters.clusterName
],
- requestBody: {
- parameterPath: "parameters",
- mapper: {
- ...Mappers.ClusterPatch,
- required: true
- }
- },
+ headerParameters: [Parameters.accept, Parameters.contentType],
+ mediaType: "json",
+ serializer
+};
+const deleteOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}",
+ httpMethod: "DELETE",
responses: {
- 200: {
- bodyMapper: Mappers.Cluster
- },
+ 200: {},
+ 201: {},
+ 202: {},
+ 204: {},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
- serializer
-};
-
-const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}",
+ queryParameters: [Parameters.apiVersion2],
urlParameters: [
- Parameters.resourceGroupName,
+ Parameters.$host,
Parameters.subscriptionId,
- Parameters.clusterName0
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
+ Parameters.resourceGroupName,
+ Parameters.clusterName1
],
- requestBody: {
- parameterPath: "parameters",
- mapper: {
- ...Mappers.Cluster,
- required: true
- }
- },
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const getOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}",
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.Cluster
},
- 201: {
- bodyMapper: Mappers.Cluster
- },
- 202: {},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
- serializer
-};
-
-const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}",
+ queryParameters: [Parameters.apiVersion2],
urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
Parameters.resourceGroupName,
- Parameters.clusterName1,
- Parameters.subscriptionId
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
+ Parameters.clusterName1
],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const updateOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}",
+ httpMethod: "PATCH",
responses: {
- 200: {},
- 204: {},
+ 200: {
+ bodyMapper: Mappers.Cluster
+ },
default: {
bodyMapper: Mappers.ErrorResponse
}
},
+ requestBody: Parameters.parameters7,
+ queryParameters: [Parameters.apiVersion2],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.clusterName1
+ ],
+ headerParameters: [Parameters.accept, Parameters.contentType],
+ mediaType: "json",
serializer
};
-
-const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
- urlParameters: [
- Parameters.nextPageLink
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ClusterListResult
@@ -453,22 +559,19 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion2],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.nextLink
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+const listNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
- urlParameters: [
- Parameters.nextPageLink
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ClusterListResult
@@ -477,5 +580,12 @@ const listNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion2],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.nextLink
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/dataExports.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/dataExports.ts
index 1e035cdd10fd..b50be3e549af 100644
--- a/sdk/operationalinsights/arm-operationalinsights/src/operations/dataExports.ts
+++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/dataExports.ts
@@ -3,23 +3,34 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/dataExportsMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { DataExports } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { OperationalInsightsManagementClientContext } from "../operationalInsightsManagementClientContext";
+import {
+ DataExport,
+ DataExportsListByWorkspaceOptionalParams,
+ DataExportsListByWorkspaceResponse,
+ DataExportsCreateOrUpdateOptionalParams,
+ DataExportsCreateOrUpdateResponse,
+ DataExportsGetOptionalParams,
+ DataExportsGetResponse,
+ DataExportsDeleteOptionalParams
+} from "../models";
-/** Class representing a DataExports. */
-export class DataExports {
+///
+/** Class containing DataExports operations. */
+export class DataExportsImpl implements DataExports {
private readonly client: OperationalInsightsManagementClientContext;
/**
- * Create a DataExports.
- * @param {OperationalInsightsManagementClientContext} client Reference to the service client.
+ * Initialize a new instance of the class DataExports class.
+ * @param client Reference to the service client
*/
constructor(client: OperationalInsightsManagementClientContext) {
this.client = client;
@@ -29,32 +40,77 @@ export class DataExports {
* Lists the data export instances within a workspace.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param callback The callback
- */
- listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void;
+ public listByWorkspace(
+ resourceGroupName: string,
+ workspaceName: string,
+ options?: DataExportsListByWorkspaceOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listByWorkspacePagingAll(
+ resourceGroupName,
+ workspaceName,
+ options
+ );
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listByWorkspacePagingPage(
+ resourceGroupName,
+ workspaceName,
+ options
+ );
+ }
+ };
+ }
+
+ private async *listByWorkspacePagingPage(
+ resourceGroupName: string,
+ workspaceName: string,
+ options?: DataExportsListByWorkspaceOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listByWorkspace(
+ resourceGroupName,
+ workspaceName,
+ options
+ );
+ yield result.value || [];
+ }
+
+ private async *listByWorkspacePagingAll(
+ resourceGroupName: string,
+ workspaceName: string,
+ options?: DataExportsListByWorkspaceOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listByWorkspacePagingPage(
+ resourceGroupName,
+ workspaceName,
+ options
+ )) {
+ yield* page;
+ }
+ }
+
/**
+ * Lists the data export instances within a workspace.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- listByWorkspace(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listByWorkspace(
+ resourceGroupName: string,
+ workspaceName: string,
+ options?: DataExportsListByWorkspaceOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- workspaceName,
- options
- },
- listByWorkspaceOperationSpec,
- callback) as Promise;
+ { resourceGroupName, workspaceName, options },
+ listByWorkspaceOperationSpec
+ );
}
/**
@@ -63,38 +119,19 @@ export class DataExports {
* @param workspaceName The name of the workspace.
* @param dataExportName The data export rule name.
* @param parameters The parameters required to create or update a data export.
- * @param [options] The optional parameters
- * @returns Promise
- */
- createOrUpdate(resourceGroupName: string, workspaceName: string, dataExportName: string, parameters: Models.DataExport, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param dataExportName The data export rule name.
- * @param parameters The parameters required to create or update a data export.
- * @param callback The callback
+ * @param options The options parameters.
*/
- createOrUpdate(resourceGroupName: string, workspaceName: string, dataExportName: string, parameters: Models.DataExport, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param dataExportName The data export rule name.
- * @param parameters The parameters required to create or update a data export.
- * @param options The optional parameters
- * @param callback The callback
- */
- createOrUpdate(resourceGroupName: string, workspaceName: string, dataExportName: string, parameters: Models.DataExport, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- createOrUpdate(resourceGroupName: string, workspaceName: string, dataExportName: string, parameters: Models.DataExport, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ createOrUpdate(
+ resourceGroupName: string,
+ workspaceName: string,
+ dataExportName: string,
+ parameters: DataExport,
+ options?: DataExportsCreateOrUpdateOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- workspaceName,
- dataExportName,
- parameters,
- options
- },
- createOrUpdateOperationSpec,
- callback) as Promise;
+ { resourceGroupName, workspaceName, dataExportName, parameters, options },
+ createOrUpdateOperationSpec
+ );
}
/**
@@ -102,35 +139,18 @@ export class DataExports {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dataExportName The data export rule name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- get(resourceGroupName: string, workspaceName: string, dataExportName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param dataExportName The data export rule name.
- * @param callback The callback
- */
- get(resourceGroupName: string, workspaceName: string, dataExportName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param dataExportName The data export rule name.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- get(resourceGroupName: string, workspaceName: string, dataExportName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceGroupName: string, workspaceName: string, dataExportName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ get(
+ resourceGroupName: string,
+ workspaceName: string,
+ dataExportName: string,
+ options?: DataExportsGetOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- workspaceName,
- dataExportName,
- options
- },
- getOperationSpec,
- callback) as Promise;
+ { resourceGroupName, workspaceName, dataExportName, options },
+ getOperationSpec
+ );
}
/**
@@ -138,54 +158,27 @@ export class DataExports {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dataExportName The data export rule name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- deleteMethod(resourceGroupName: string, workspaceName: string, dataExportName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param dataExportName The data export rule name.
- * @param callback The callback
- */
- deleteMethod(resourceGroupName: string, workspaceName: string, dataExportName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param dataExportName The data export rule name.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- deleteMethod(resourceGroupName: string, workspaceName: string, dataExportName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- deleteMethod(resourceGroupName: string, workspaceName: string, dataExportName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ delete(
+ resourceGroupName: string,
+ workspaceName: string,
+ dataExportName: string,
+ options?: DataExportsDeleteOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- workspaceName,
- dataExportName,
- options
- },
- deleteMethodOperationSpec,
- callback);
+ { resourceGroupName, workspaceName, dataExportName, options },
+ deleteOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const listByWorkspaceOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const listByWorkspaceOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports",
httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.workspaceName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.DataExportListResult
@@ -194,31 +187,20 @@ const listByWorkspaceOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
- serializer
-};
-
-const createOrUpdateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
- Parameters.workspaceName,
- Parameters.dataExportName0
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
+ Parameters.workspaceName
],
- requestBody: {
- parameterPath: "parameters",
- mapper: {
- ...Mappers.DataExport,
- required: true
- }
- },
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const createOrUpdateOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}",
+ httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.DataExport
@@ -230,24 +212,23 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
- serializer
-};
-
-const getOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}",
+ requestBody: Parameters.parameters,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.workspaceName,
- Parameters.dataExportName1
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
+ Parameters.dataExportName
],
+ headerParameters: [Parameters.accept, Parameters.contentType],
+ mediaType: "json",
+ serializer
+};
+const getOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}",
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DataExport
@@ -256,24 +237,21 @@ const getOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
- serializer
-};
-
-const deleteMethodOperationSpec: msRest.OperationSpec = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.workspaceName,
Parameters.dataExportName1
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const deleteOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}",
+ httpMethod: "DELETE",
responses: {
200: {},
404: {},
@@ -281,5 +259,14 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.workspaceName,
+ Parameters.dataExportName1
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/dataSources.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/dataSources.ts
index f8a7d08aee3d..356e08c93ba6 100644
--- a/sdk/operationalinsights/arm-operationalinsights/src/operations/dataSources.ts
+++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/dataSources.ts
@@ -3,66 +3,140 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/dataSourcesMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { DataSources } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { OperationalInsightsManagementClientContext } from "../operationalInsightsManagementClientContext";
+import {
+ DataSource,
+ DataSourcesListByWorkspaceNextOptionalParams,
+ DataSourcesListByWorkspaceOptionalParams,
+ DataSourcesCreateOrUpdateOptionalParams,
+ DataSourcesCreateOrUpdateResponse,
+ DataSourcesDeleteOptionalParams,
+ DataSourcesGetOptionalParams,
+ DataSourcesGetResponse,
+ DataSourcesListByWorkspaceResponse,
+ DataSourcesListByWorkspaceNextResponse
+} from "../models";
-/** Class representing a DataSources. */
-export class DataSources {
+///
+/** Class containing DataSources operations. */
+export class DataSourcesImpl implements DataSources {
private readonly client: OperationalInsightsManagementClientContext;
/**
- * Create a DataSources.
- * @param {OperationalInsightsManagementClientContext} client Reference to the service client.
+ * Initialize a new instance of the class DataSources class.
+ * @param client Reference to the service client
*/
constructor(client: OperationalInsightsManagementClientContext) {
this.client = client;
}
/**
- * Create or update a data source.
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param dataSourceName The name of the datasource resource.
- * @param parameters The parameters required to create or update a datasource.
- * @param [options] The optional parameters
- * @returns Promise
- */
- createOrUpdate(resourceGroupName: string, workspaceName: string, dataSourceName: string, parameters: Models.DataSource, options?: msRest.RequestOptionsBase): Promise;
- /**
+ * Gets the first page of data source instances in a workspace with the link to the next page.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
- * @param dataSourceName The name of the datasource resource.
- * @param parameters The parameters required to create or update a datasource.
- * @param callback The callback
+ * @param filter The filter to apply on the operation.
+ * @param options The options parameters.
*/
- createOrUpdate(resourceGroupName: string, workspaceName: string, dataSourceName: string, parameters: Models.DataSource, callback: msRest.ServiceCallback): void;
+ public listByWorkspace(
+ resourceGroupName: string,
+ workspaceName: string,
+ filter: string,
+ options?: DataSourcesListByWorkspaceOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listByWorkspacePagingAll(
+ resourceGroupName,
+ workspaceName,
+ filter,
+ options
+ );
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listByWorkspacePagingPage(
+ resourceGroupName,
+ workspaceName,
+ filter,
+ options
+ );
+ }
+ };
+ }
+
+ private async *listByWorkspacePagingPage(
+ resourceGroupName: string,
+ workspaceName: string,
+ filter: string,
+ options?: DataSourcesListByWorkspaceOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listByWorkspace(
+ resourceGroupName,
+ workspaceName,
+ filter,
+ options
+ );
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listByWorkspaceNext(
+ resourceGroupName,
+ workspaceName,
+ filter,
+ continuationToken,
+ options
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listByWorkspacePagingAll(
+ resourceGroupName: string,
+ workspaceName: string,
+ filter: string,
+ options?: DataSourcesListByWorkspaceOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listByWorkspacePagingPage(
+ resourceGroupName,
+ workspaceName,
+ filter,
+ options
+ )) {
+ yield* page;
+ }
+ }
+
/**
+ * Create or update a data source.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dataSourceName The name of the datasource resource.
* @param parameters The parameters required to create or update a datasource.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- createOrUpdate(resourceGroupName: string, workspaceName: string, dataSourceName: string, parameters: Models.DataSource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- createOrUpdate(resourceGroupName: string, workspaceName: string, dataSourceName: string, parameters: Models.DataSource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ createOrUpdate(
+ resourceGroupName: string,
+ workspaceName: string,
+ dataSourceName: string,
+ parameters: DataSource,
+ options?: DataSourcesCreateOrUpdateOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- workspaceName,
- dataSourceName,
- parameters,
- options
- },
- createOrUpdateOperationSpec,
- callback) as Promise;
+ { resourceGroupName, workspaceName, dataSourceName, parameters, options },
+ createOrUpdateOperationSpec
+ );
}
/**
@@ -70,35 +144,18 @@ export class DataSources {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dataSourceName Name of the datasource.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- deleteMethod(resourceGroupName: string, workspaceName: string, dataSourceName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param dataSourceName Name of the datasource.
- * @param callback The callback
- */
- deleteMethod(resourceGroupName: string, workspaceName: string, dataSourceName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param dataSourceName Name of the datasource.
- * @param options The optional parameters
- * @param callback The callback
- */
- deleteMethod(resourceGroupName: string, workspaceName: string, dataSourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- deleteMethod(resourceGroupName: string, workspaceName: string, dataSourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ delete(
+ resourceGroupName: string,
+ workspaceName: string,
+ dataSourceName: string,
+ options?: DataSourcesDeleteOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- workspaceName,
- dataSourceName,
- options
- },
- deleteMethodOperationSpec,
- callback);
+ { resourceGroupName, workspaceName, dataSourceName, options },
+ deleteOperationSpec
+ );
}
/**
@@ -106,35 +163,18 @@ export class DataSources {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dataSourceName Name of the datasource
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- get(resourceGroupName: string, workspaceName: string, dataSourceName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param dataSourceName Name of the datasource
- * @param callback The callback
- */
- get(resourceGroupName: string, workspaceName: string, dataSourceName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param dataSourceName Name of the datasource
- * @param options The optional parameters
- * @param callback The callback
- */
- get(resourceGroupName: string, workspaceName: string, dataSourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceGroupName: string, workspaceName: string, dataSourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ get(
+ resourceGroupName: string,
+ workspaceName: string,
+ dataSourceName: string,
+ options?: DataSourcesGetOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- workspaceName,
- dataSourceName,
- options
- },
- getOperationSpec,
- callback) as Promise;
+ { resourceGroupName, workspaceName, dataSourceName, options },
+ getOperationSpec
+ );
}
/**
@@ -142,208 +182,147 @@ export class DataSources {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param filter The filter to apply on the operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listByWorkspace(resourceGroupName: string, workspaceName: string, filter: string, options?: Models.DataSourcesListByWorkspaceOptionalParams): Promise;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param filter The filter to apply on the operation.
- * @param callback The callback
- */
- listByWorkspace(resourceGroupName: string, workspaceName: string, filter: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param filter The filter to apply on the operation.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- listByWorkspace(resourceGroupName: string, workspaceName: string, filter: string, options: Models.DataSourcesListByWorkspaceOptionalParams, callback: msRest.ServiceCallback): void;
- listByWorkspace(resourceGroupName: string, workspaceName: string, filter: string, options?: Models.DataSourcesListByWorkspaceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listByWorkspace(
+ resourceGroupName: string,
+ workspaceName: string,
+ filter: string,
+ options?: DataSourcesListByWorkspaceOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- workspaceName,
- filter,
- options
- },
- listByWorkspaceOperationSpec,
- callback) as Promise;
+ { resourceGroupName, workspaceName, filter, options },
+ listByWorkspaceOperationSpec
+ );
}
/**
- * Gets the first page of data source instances in a workspace with the link to the next page.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param filter The filter to apply on the operation.
- * @param [options] The optional parameters
- * @returns Promise