diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 034cf6fa9cf2..e764006b4d4a 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2859,7 +2859,7 @@ packages: dev: false /array-flatten/1.1.1: - resolution: {integrity: sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=} + resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==} dev: false /array-includes/3.1.5: @@ -3106,7 +3106,7 @@ packages: dev: false /buffer-equal-constant-time/1.0.1: - resolution: {integrity: sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=} + resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==} dev: false /buffer-from/1.1.2: @@ -3263,7 +3263,7 @@ packages: dev: false /charenc/0.0.2: - resolution: {integrity: sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc=} + resolution: {integrity: sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==} dev: false /check-error/1.0.2: @@ -3406,7 +3406,7 @@ packages: dev: false /concat-map/0.0.1: - resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} dev: false /concurrently/6.5.1: @@ -3467,7 +3467,7 @@ packages: dev: false /cookie-signature/1.0.6: - resolution: {integrity: sha1-4wOogrNCzD7oylE6eZmXNNqzriw=} + resolution: {integrity: sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==} dev: false /cookie/0.4.2: @@ -3569,7 +3569,7 @@ packages: dev: false /crypt/0.0.2: - resolution: {integrity: sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs=} + resolution: {integrity: sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==} dev: false /csv-parse/5.3.1: @@ -3823,7 +3823,7 @@ packages: dependencies: semver: 7.3.8 shelljs: 0.8.5 - typescript: 4.9.0-dev.20221020 + typescript: 4.9.0-dev.20221023 dev: false /downlevel-dts/0.8.0: @@ -3842,11 +3842,11 @@ packages: dev: false /edge-launcher/1.2.2: - resolution: {integrity: sha1-60Cq+9Bnpup27/+rBke81VCbN7I=} + resolution: {integrity: sha512-JcD5WBi3BHZXXVSSeEhl6sYO8g5cuynk/hifBzds2Bp4JdzCGLNMHgMCKu5DvrO1yatMgF0goFsxXRGus0yh1g==} dev: false /ee-first/1.1.1: - resolution: {integrity: sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=} + resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: false /electron-to-chromium/1.4.284: @@ -4730,7 +4730,7 @@ packages: dev: false /fresh/0.5.2: - resolution: {integrity: sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=} + resolution: {integrity: sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==} engines: {node: '>= 0.6'} dev: false @@ -4870,7 +4870,7 @@ packages: dev: false /github-from-package/0.0.0: - resolution: {integrity: sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=} + resolution: {integrity: sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==} dev: false /glob-parent/5.1.2: @@ -6267,7 +6267,7 @@ packages: dev: false /media-typer/0.3.0: - resolution: {integrity: sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=} + resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} engines: {node: '>= 0.6'} dev: false @@ -6277,7 +6277,7 @@ packages: dev: false /merge-descriptors/1.0.1: - resolution: {integrity: sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=} + resolution: {integrity: sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==} dev: false /merge-source-map/1.1.0: @@ -6690,7 +6690,7 @@ packages: dev: false /noms/0.0.0: - resolution: {integrity: sha1-2o69nzr51nYJGbJ9nNyAkqczKFk=} + resolution: {integrity: sha512-lNDU9VJaOPxUmXcLb+HQFeUgQQPtMI24Gt6hgfuMHRJgMRHMF/qZ4HJD3GDru4sSw9IQl2jPjAYnQrdIeLbwow==} dependencies: inherits: 2.0.4 readable-stream: 1.0.34 @@ -8796,8 +8796,8 @@ packages: hasBin: true dev: false - /typescript/4.9.0-dev.20221020: - resolution: {integrity: sha512-m2FnohhzIqj1gqqbkPw1pv/294cE9hGaYLZS7Zt3rpUP36Nr3w/C+LZU2eUuId+DAe7ZWVUrMUAfLvmtr165cw==} + /typescript/4.9.0-dev.20221023: + resolution: {integrity: sha512-0IgcLgUKkKd7tOeds82vfTixqEHyFszPHgze9DIABba1rDusFf83fD8Lb1MP/1Fw9fj13F97m5APVcfmHV4wsQ==} engines: {node: '>=4.2.0'} hasBin: true dev: false @@ -8921,7 +8921,7 @@ packages: dev: false /utils-merge/1.0.1: - resolution: {integrity: sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=} + resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} engines: {node: '>= 0.4.0'} dev: false @@ -13447,7 +13447,7 @@ packages: dev: false file:projects/arm-operationalinsights.tgz: - resolution: {integrity: sha512-K2KSsQhoesVhEcD1lHvDxp+SppPgT2e5RCVFAgGU2UGJfVccgfGCjg9iOcgZ9ljIWAplDkdfnsTeHJeMEaW9YA==, tarball: file:projects/arm-operationalinsights.tgz} + resolution: {integrity: sha512-BPTcovd/ERK5Vva4imFqlwroLyowtzt1+n7pYE44N5uH5+92iOiaL4f7iEH4WGI9WbAVy0hHmSy7OnPJrRv9Lw==, tarball: file:projects/arm-operationalinsights.tgz} name: '@rush-temp/arm-operationalinsights' version: 0.0.0 dependencies: @@ -13466,7 +13466,7 @@ packages: rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3_rollup@2.79.1 tslib: 2.4.0 - typescript: 4.2.4 + typescript: 4.6.4 uglify-js: 3.17.3 transitivePeerDependencies: - '@types/node' @@ -13932,7 +13932,7 @@ packages: dev: false file:projects/arm-rediscache.tgz: - resolution: {integrity: sha512-WmQdFfJDHoXZdZ8gAQFE1lIiFYhxDfdoyNkiotQGkZjeKcnZ/+3DXbRSb3jQ0ZqsRd7/n6Idgt3SAFt4sCojAg==, tarball: file:projects/arm-rediscache.tgz} + resolution: {integrity: sha512-MYagWt7Br2nyBPNurHcSRKCA6L6aiJZV72WUgLxCHhYYXA1SFuOPOR7gtkNzLm7FtgOnwyI4tIYjb3aoZsME0w==, tarball: file:projects/arm-rediscache.tgz} name: '@rush-temp/arm-rediscache' version: 0.0.0 dependencies: diff --git a/sdk/operationalinsights/arm-operationalinsights/CHANGELOG.md b/sdk/operationalinsights/arm-operationalinsights/CHANGELOG.md index 068c1cf2c992..852b125c31f1 100644 --- a/sdk/operationalinsights/arm-operationalinsights/CHANGELOG.md +++ b/sdk/operationalinsights/arm-operationalinsights/CHANGELOG.md @@ -1,16 +1,6 @@ # Release History - -## 9.0.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 9.0.0-beta.1 (2022-06-24) + +## 9.0.0 (2022-10-24) **Features** @@ -23,14 +13,24 @@ - Added operation Tables.beginDeleteAndWait - Added operation Tables.beginUpdate - Added operation Tables.beginUpdateAndWait + - Added operation Tables.cancelSearch - Added operation Tables.migrate + - Added Interface AzureEntityResource - Added Interface AzureResourceProperties + - Added Interface Cluster - Added Interface Column + - Added Interface DataExport + - Added Interface DataSource + - Added Interface LinkedService + - Added Interface LinkedStorageAccountsResource + - Added Interface LogAnalyticsQueryPack - Added Interface LogAnalyticsQueryPackListResult + - Added Interface LogAnalyticsQueryPackQuery - Added Interface LogAnalyticsQueryPackQueryListResult - Added Interface LogAnalyticsQueryPackQueryPropertiesRelated - Added Interface LogAnalyticsQueryPackQuerySearchProperties - Added Interface LogAnalyticsQueryPackQuerySearchPropertiesRelated + - Added Interface ProxyResource - Added Interface QueriesDeleteOptionalParams - Added Interface QueriesGetOptionalParams - Added Interface QueriesListNextOptionalParams @@ -40,6 +40,7 @@ - Added Interface QueriesSearchOptionalParams - Added Interface QueriesUpdateOptionalParams - Added Interface QueryPacksCreateOrUpdateOptionalParams + - Added Interface QueryPacksCreateOrUpdateWithoutNameOptionalParams - Added Interface QueryPacksDeleteOptionalParams - Added Interface QueryPacksGetOptionalParams - Added Interface QueryPacksListByResourceGroupNextOptionalParams @@ -50,19 +51,24 @@ - Added Interface QueryPacksUpdateTagsOptionalParams - Added Interface RestoredLogs - Added Interface ResultStatistics + - Added Interface SavedSearch - Added Interface Schema - Added Interface SearchResults + - Added Interface StorageInsight - Added Interface SystemData - Added Interface SystemDataAutoGenerated + - Added Interface Table + - Added Interface TablesCancelSearchOptionalParams - Added Interface TablesCreateOrUpdateOptionalParams - Added Interface TablesDeleteOptionalParams - Added Interface TablesMigrateOptionalParams - Added Interface TagsResource + - Added Interface TrackedResource + - Added Interface Workspace + - Added Interface WorkspacePatch - Added Type Alias ColumnDataTypeHintEnum - Added Type Alias ColumnTypeEnum - Added Type Alias CreatedByType - - Added Type Alias LogAnalyticsQueryPack - - Added Type Alias LogAnalyticsQueryPackQuery - Added Type Alias ProvisioningStateEnum - Added Type Alias QueriesGetResponse - Added Type Alias QueriesListNextResponse @@ -72,44 +78,36 @@ - Added Type Alias QueriesSearchResponse - Added Type Alias QueriesUpdateResponse - Added Type Alias QueryPacksCreateOrUpdateResponse + - Added Type Alias QueryPacksCreateOrUpdateWithoutNameResponse - Added Type Alias QueryPacksGetResponse - Added Type Alias QueryPacksListByResourceGroupNextResponse - Added Type Alias QueryPacksListByResourceGroupResponse - Added Type Alias QueryPacksListNextResponse - Added Type Alias QueryPacksListResponse - Added Type Alias QueryPacksUpdateTagsResponse + - Added Type Alias RetentionInDaysAsDefault - Added Type Alias SourceEnum - Added Type Alias TablePlanEnum - Added Type Alias TablesCreateOrUpdateResponse - Added Type Alias TableSubTypeEnum - Added Type Alias TableTypeEnum + - Added Type Alias TotalRetentionInDaysAsDefault - Interface TablesUpdateOptionalParams has a new optional parameter resumeFrom - Interface TablesUpdateOptionalParams has a new optional parameter updateIntervalInMs - Class OperationalInsightsManagementClient has a new parameter queries - Class OperationalInsightsManagementClient has a new parameter queryPacks - Class OperationalInsightsManagementClient has a new parameter schemaOperations - - Type Alias Table has a new parameter systemData - - Type Alias Table has a new parameter totalRetentionInDays - - Type Alias Table has a new parameter archiveRetentionInDays - - Type Alias Table has a new parameter searchResults - - Type Alias Table has a new parameter restoredLogs - - Type Alias Table has a new parameter resultStatistics - - Type Alias Table has a new parameter plan - - Type Alias Table has a new parameter lastPlanModifiedDate - - Type Alias Table has a new parameter schema - - Type Alias Table has a new parameter provisioningState - - Type Alias Workspace has a new parameter systemData - - Type Alias Workspace has a new parameter defaultDataCollectionRuleResourceId - - Type Alias WorkspacePatch has a new parameter defaultDataCollectionRuleResourceId - Added Enum KnownColumnDataTypeHintEnum - Added Enum KnownColumnTypeEnum - Added Enum KnownCreatedByType - Added Enum KnownIdentityType - Added Enum KnownProvisioningStateEnum + - Added Enum KnownRetentionInDaysAsDefault - Added Enum KnownSourceEnum - Added Enum KnownTablePlanEnum - Added Enum KnownTableSubTypeEnum - Added Enum KnownTableTypeEnum + - Added Enum KnownTotalRetentionInDaysAsDefault **Breaking Changes** @@ -117,9 +115,6 @@ - Removed operation Tables.create - Removed operation Tables.update - Class OperationalInsightsManagementClient no longer has parameter schema - - Type Alias Table no longer has parameter isTroubleshootingAllowed - - Type Alias Table no longer has parameter isTroubleshootEnabled - - Type Alias Table no longer has parameter lastTroubleshootDate ## 8.0.1 (2022-04-27) diff --git a/sdk/operationalinsights/arm-operationalinsights/README.md b/sdk/operationalinsights/arm-operationalinsights/README.md index a989c871f673..e51863aa13a2 100644 --- a/sdk/operationalinsights/arm-operationalinsights/README.md +++ b/sdk/operationalinsights/arm-operationalinsights/README.md @@ -6,7 +6,7 @@ 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?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-operationalinsights) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/operationalinsights/arm-operationalinsights/_meta.json b/sdk/operationalinsights/arm-operationalinsights/_meta.json index 97555f514029..2b549b83588d 100644 --- a/sdk/operationalinsights/arm-operationalinsights/_meta.json +++ b/sdk/operationalinsights/arm-operationalinsights/_meta.json @@ -1,8 +1,8 @@ { - "commit": "d8dd0de9c27c21a3802a780fbef2844fcbbb4daa", + "commit": "b47bbac24cb09236b61e96bcf7b4252c0627c14b", "readme": "specification/operationalinsights/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\operationalinsights\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-beta.20 --generate-sample=true", + "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.2", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.3.2", - "use": "@autorest/typescript@6.0.0-beta.20" + "release_tool": "@azure-tools/js-sdk-release-tools@2.4.4", + "use": "@autorest/typescript@6.0.0-rc.2" } \ No newline at end of file diff --git a/sdk/operationalinsights/arm-operationalinsights/package.json b/sdk/operationalinsights/arm-operationalinsights/package.json index 7d1b649931f5..f36cf2e46271 100644 --- a/sdk/operationalinsights/arm-operationalinsights/package.json +++ b/sdk/operationalinsights/arm-operationalinsights/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for OperationalInsightsManagementClient.", - "version": "9.0.0-beta.2", + "version": "9.0.0", "engines": { "node": ">=14.0.0" }, @@ -36,7 +36,7 @@ "mkdirp": "^1.0.4", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~4.2.0", + "typescript": "~4.6.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", @@ -98,8 +98,7 @@ "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "integration-test:browser": "echo skipped", - "docs": "echo skipped" + "integration-test:browser": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -110,13 +109,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-operationalinsights?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/operationalinsights/arm-operationalinsights/review/arm-operationalinsights.api.md b/sdk/operationalinsights/arm-operationalinsights/review/arm-operationalinsights.api.md index 3960697ddd22..d1f1ee03f6d8 100644 --- a/sdk/operationalinsights/arm-operationalinsights/review/arm-operationalinsights.api.md +++ b/sdk/operationalinsights/arm-operationalinsights/review/arm-operationalinsights.api.md @@ -42,9 +42,9 @@ export interface AvailableServiceTiersListByWorkspaceOptionalParams extends core export type AvailableServiceTiersListByWorkspaceResponse = AvailableServiceTier[]; // @public -export type AzureEntityResource = Resource & { +export interface AzureEntityResource extends Resource { readonly etag?: string; -}; +} // @public export interface AzureResourceProperties { @@ -70,20 +70,20 @@ export interface CapacityReservationProperties { } // @public -export type Cluster = TrackedResource & { - identity?: Identity; - sku?: ClusterSku; +export interface Cluster extends TrackedResource { + associatedWorkspaces?: AssociatedWorkspace[]; + billingType?: BillingType; + capacityReservationProperties?: CapacityReservationProperties; readonly clusterId?: string; - readonly provisioningState?: ClusterEntityStatus; - isDoubleEncryptionEnabled?: boolean; + readonly createdDate?: string; + identity?: Identity; isAvailabilityZonesEnabled?: boolean; - billingType?: BillingType; + isDoubleEncryptionEnabled?: boolean; keyVaultProperties?: KeyVaultProperties; readonly lastModifiedDate?: string; - readonly createdDate?: string; - associatedWorkspaces?: AssociatedWorkspace[]; - capacityReservationProperties?: CapacityReservationProperties; -}; + readonly provisioningState?: ClusterEntityStatus; + sku?: ClusterSku; +} // @public export type ClusterEntityStatus = string; @@ -213,16 +213,16 @@ export interface CoreSummary { export type CreatedByType = string; // @public -export type DataExport = ProxyResource & { +export interface DataExport extends ProxyResource { + createdDate?: string; dataExportId?: string; - tableNames?: string[]; enable?: boolean; - createdDate?: string; + eventHubName?: string; lastModifiedDate?: string; resourceId?: string; + tableNames?: string[]; readonly typePropertiesDestinationType?: Type; - eventHubName?: string; -}; +} // @public export interface DataExportListResult { @@ -266,14 +266,14 @@ export type DataExportsListByWorkspaceResponse = DataExportListResult; export type DataIngestionStatus = string; // @public -export type DataSource = ProxyResource & { - properties: Record; +export interface DataSource extends ProxyResource { etag?: string; kind: DataSourceKind; + properties: Record; tags?: { [propertyName: string]: string; }; -}; +} // @public export interface DataSourceFilter { @@ -435,33 +435,23 @@ export interface KeyVaultProperties { // @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" } @@ -475,33 +465,21 @@ export enum KnownColumnDataTypeHintEnum { // @public export enum KnownColumnTypeEnum { - // (undocumented) Boolean = "boolean", - // (undocumented) DateTime = "dateTime", - // (undocumented) Dynamic = "dynamic", - // (undocumented) Guid = "guid", - // (undocumented) Int = "int", - // (undocumented) Long = "long", - // (undocumented) Real = "real", - // (undocumented) String = "string" } // @public export enum KnownCreatedByType { - // (undocumented) Application = "Application", - // (undocumented) Key = "Key", - // (undocumented) ManagedIdentity = "ManagedIdentity", - // (undocumented) User = "User" } @@ -517,101 +495,57 @@ export enum KnownDataIngestionStatus { // @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 KnownIdentityType { - // (undocumented) Application = "application", - // (undocumented) Key = "key", - // (undocumented) ManagedIdentity = "managedIdentity", - // (undocumented) None = "None", - // (undocumented) SystemAssigned = "SystemAssigned", - // (undocumented) User = "user", - // (undocumented) UserAssigned = "UserAssigned" } // @public export enum KnownLinkedServiceEntityStatus { - // (undocumented) Deleting = "Deleting", - // (undocumented) ProvisioningAccount = "ProvisioningAccount", - // (undocumented) Succeeded = "Succeeded", - // (undocumented) Updating = "Updating" } @@ -630,35 +564,30 @@ export enum KnownPublicNetworkAccessType { // @public export enum KnownPurgeState { - // (undocumented) Completed = "completed", - // (undocumented) Pending = "pending" } +// @public +export enum KnownRetentionInDaysAsDefault { + False = "False", + True = "True" +} + // @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" } @@ -670,9 +599,7 @@ export enum KnownSourceEnum { // @public export enum KnownStorageInsightState { - // (undocumented) Error = "ERROR", - // (undocumented) OK = "OK" } @@ -697,61 +624,50 @@ export enum KnownTableTypeEnum { SearchResults = "SearchResults" } +// @public +export enum KnownTotalRetentionInDaysAsDefault { + False = "False", + True = "True" +} + // @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 & { +export interface LinkedService extends ProxyResource { + provisioningState?: LinkedServiceEntityStatus; + resourceId?: string; tags?: { [propertyName: string]: string; }; - resourceId?: string; writeAccessResourceId?: string; - provisioningState?: LinkedServiceEntityStatus; -}; +} // @public export type LinkedServiceEntityStatus = string; @@ -842,18 +758,18 @@ export interface LinkedStorageAccountsListResult { } // @public -export type LinkedStorageAccountsResource = ProxyResource & { +export interface LinkedStorageAccountsResource extends ProxyResource { readonly dataSourceType?: DataSourceType; storageAccountIds?: string[]; -}; +} // @public -export type LogAnalyticsQueryPack = QueryPacksResource & { +export interface LogAnalyticsQueryPack extends QueryPacksResource { + readonly provisioningState?: string; readonly queryPackId?: string; readonly timeCreated?: Date; readonly timeModified?: Date; - readonly provisioningState?: string; -}; +} // @public export interface LogAnalyticsQueryPackListResult { @@ -862,20 +778,20 @@ export interface LogAnalyticsQueryPackListResult { } // @public -export type LogAnalyticsQueryPackQuery = AzureResourceProperties & { - readonly idPropertiesId?: string; - displayName?: string; - readonly timeCreated?: Date; - readonly timeModified?: Date; +export interface LogAnalyticsQueryPackQuery extends AzureResourceProperties { readonly author?: string; - description?: string; body?: string; + description?: string; + displayName?: string; + readonly idPropertiesId?: string; + properties?: Record; related?: LogAnalyticsQueryPackQueryPropertiesRelated; tags?: { [propertyName: string]: string[]; }; - properties?: Record; -}; + readonly timeCreated?: Date; + readonly timeModified?: Date; +} // @public export interface LogAnalyticsQueryPackQueryListResult { @@ -1065,7 +981,8 @@ export interface PrivateLinkScopedResource { export type ProvisioningStateEnum = string; // @public -export type ProxyResource = Resource; +export interface ProxyResource extends Resource { +} // @public export type PublicNetworkAccessType = string; @@ -1151,6 +1068,7 @@ export type QueriesUpdateResponse = LogAnalyticsQueryPackQuery; // @public export interface QueryPacks { createOrUpdate(resourceGroupName: string, queryPackName: string, logAnalyticsQueryPackPayload: LogAnalyticsQueryPack, options?: QueryPacksCreateOrUpdateOptionalParams): Promise; + createOrUpdateWithoutName(resourceGroupName: string, logAnalyticsQueryPackPayload: LogAnalyticsQueryPack, options?: QueryPacksCreateOrUpdateWithoutNameOptionalParams): Promise; delete(resourceGroupName: string, queryPackName: string, options?: QueryPacksDeleteOptionalParams): Promise; get(resourceGroupName: string, queryPackName: string, options?: QueryPacksGetOptionalParams): Promise; list(options?: QueryPacksListOptionalParams): PagedAsyncIterableIterator; @@ -1165,6 +1083,13 @@ export interface QueryPacksCreateOrUpdateOptionalParams extends coreClient.Opera // @public export type QueryPacksCreateOrUpdateResponse = LogAnalyticsQueryPack; +// @public +export interface QueryPacksCreateOrUpdateWithoutNameOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type QueryPacksCreateOrUpdateWithoutNameResponse = LogAnalyticsQueryPack; + // @public export interface QueryPacksDeleteOptionalParams extends coreClient.OperationOptions { } @@ -1231,6 +1156,7 @@ export interface Resource { // @public export interface RestoredLogs { + readonly azureAsyncOperationId?: string; endRestoreTime?: Date; sourceTable?: string; startRestoreTime?: Date; @@ -1240,19 +1166,23 @@ export interface RestoredLogs { export interface ResultStatistics { readonly ingestedRecords?: number; readonly progress?: number; + readonly scannedGb?: number; } // @public -export type SavedSearch = ProxyResource & { - etag?: string; +export type RetentionInDaysAsDefault = string; + +// @public +export interface SavedSearch extends ProxyResource { category: string; displayName: string; - query: string; + etag?: string; functionAlias?: string; functionParameters?: string; - version?: number; + query: string; tags?: Tag[]; -}; + version?: number; +} // @public export interface SavedSearches { @@ -1300,8 +1230,6 @@ export interface Schema { displayName?: string; readonly labels?: string[]; name?: string; - readonly restoredLogs?: RestoredLogs; - readonly searchResults?: SearchResults; readonly solutions?: string[]; readonly source?: SourceEnum; readonly standardColumns?: Column[]; @@ -1356,6 +1284,7 @@ export interface SearchMetadataSchema { // @public export interface SearchResults { + readonly azureAsyncOperationId?: string; description?: string; endSearchTime?: Date; limit?: number; @@ -1423,16 +1352,16 @@ export interface StorageAccount { } // @public -export type StorageInsight = ProxyResource & { +export interface StorageInsight extends ProxyResource { + containers?: string[]; eTag?: string; + readonly status?: StorageInsightStatus; + storageAccount?: StorageAccount; + tables?: string[]; tags?: { [propertyName: string]: string; }; - containers?: string[]; - tables?: string[]; - storageAccount?: StorageAccount; - readonly status?: StorageInsightStatus; -}; +} // @public export interface StorageInsightConfigs { @@ -1510,19 +1439,21 @@ export interface SystemDataAutoGenerated { } // @public -export type Table = ProxyResource & { - readonly systemData?: SystemDataAutoGenerated; - retentionInDays?: number; - totalRetentionInDays?: number; +export interface Table extends ProxyResource { readonly archiveRetentionInDays?: number; - searchResults?: SearchResults; - restoredLogs?: RestoredLogs; - resultStatistics?: ResultStatistics; - plan?: TablePlanEnum; readonly lastPlanModifiedDate?: string; - schema?: Schema; + plan?: TablePlanEnum; readonly provisioningState?: ProvisioningStateEnum; -}; + restoredLogs?: RestoredLogs; + readonly resultStatistics?: ResultStatistics; + retentionInDays?: number; + readonly retentionInDaysAsDefault?: RetentionInDaysAsDefault; + schema?: Schema; + searchResults?: SearchResults; + readonly systemData?: SystemDataAutoGenerated; + totalRetentionInDays?: number; + readonly totalRetentionInDaysAsDefault?: TotalRetentionInDaysAsDefault; +} // @public export type TablePlanEnum = string; @@ -1535,11 +1466,16 @@ export interface Tables { beginDeleteAndWait(resourceGroupName: string, workspaceName: string, tableName: string, options?: TablesDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, options?: TablesUpdateOptionalParams): Promise, TablesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, options?: TablesUpdateOptionalParams): Promise; + cancelSearch(resourceGroupName: string, workspaceName: string, tableName: string, options?: TablesCancelSearchOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, tableName: string, options?: TablesGetOptionalParams): Promise; listByWorkspace(resourceGroupName: string, workspaceName: string, options?: TablesListByWorkspaceOptionalParams): PagedAsyncIterableIterator; migrate(resourceGroupName: string, workspaceName: string, tableName: string, options?: TablesMigrateOptionalParams): Promise; } +// @public +export interface TablesCancelSearchOptionalParams extends coreClient.OperationOptions { +} + // @public export interface TablesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1607,12 +1543,15 @@ export interface TagsResource { } // @public -export type TrackedResource = Resource & { +export type TotalRetentionInDaysAsDefault = string; + +// @public +export interface TrackedResource extends Resource { + location: string; tags?: { [propertyName: string]: string; }; - location: string; -}; +} // @public export type Type = string; @@ -1646,23 +1585,24 @@ export interface UserIdentityProperties { } // @public -export type Workspace = TrackedResource & { - readonly systemData?: SystemDataAutoGenerated; - eTag?: string; - readonly provisioningState?: WorkspaceEntityStatus; - readonly customerId?: string; - sku?: WorkspaceSku; - retentionInDays?: number; - workspaceCapping?: WorkspaceCapping; +export interface Workspace extends TrackedResource { readonly createdDate?: string; + readonly customerId?: string; + defaultDataCollectionRuleResourceId?: string; + etag?: string; + features?: WorkspaceFeatures; + forceCmkForQuery?: boolean; + identity?: Identity; readonly modifiedDate?: string; + readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; + readonly provisioningState?: WorkspaceEntityStatus; publicNetworkAccessForIngestion?: PublicNetworkAccessType; publicNetworkAccessForQuery?: PublicNetworkAccessType; - forceCmkForQuery?: boolean; - readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; - features?: WorkspaceFeatures; - defaultDataCollectionRuleResourceId?: string; -}; + retentionInDays?: number; + sku?: WorkspaceSku; + readonly systemData?: SystemDataAutoGenerated; + workspaceCapping?: WorkspaceCapping; +} // @public export interface WorkspaceCapping { @@ -1700,24 +1640,25 @@ export interface WorkspaceListUsagesResult { } // @public -export type WorkspacePatch = AzureEntityResource & { - tags?: { - [propertyName: string]: string; - }; - readonly provisioningState?: WorkspaceEntityStatus; - readonly customerId?: string; - sku?: WorkspaceSku; - retentionInDays?: number; - workspaceCapping?: WorkspaceCapping; +export interface WorkspacePatch extends AzureEntityResource { readonly createdDate?: string; + readonly customerId?: string; + defaultDataCollectionRuleResourceId?: string; + features?: WorkspaceFeatures; + forceCmkForQuery?: boolean; + identity?: Identity; readonly modifiedDate?: string; + readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; + readonly provisioningState?: WorkspaceEntityStatus; publicNetworkAccessForIngestion?: PublicNetworkAccessType; publicNetworkAccessForQuery?: PublicNetworkAccessType; - forceCmkForQuery?: boolean; - readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; - features?: WorkspaceFeatures; - defaultDataCollectionRuleResourceId?: string; -}; + retentionInDays?: number; + sku?: WorkspaceSku; + tags?: { + [propertyName: string]: string; + }; + workspaceCapping?: WorkspaceCapping; +} // @public export interface WorkspacePurge { diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts index fd5f2d4146b1..44520b304f5b 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts @@ -743,6 +743,11 @@ export interface SearchResults { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sourceTable?: string; + /** + * Search results table async operation id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly azureAsyncOperationId?: string; } /** Restore parameters. */ @@ -753,6 +758,11 @@ export interface RestoredLogs { endRestoreTime?: Date; /** The table to restore data from. */ sourceTable?: string; + /** + * Search results table async operation id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly azureAsyncOperationId?: string; } /** Search job execution statistics. */ @@ -767,6 +777,11 @@ export interface ResultStatistics { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly ingestedRecords?: number; + /** + * Search job: Amount of scanned data. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly scannedGb?: number; } /** Table's schema. */ @@ -814,16 +829,6 @@ export interface Schema { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly solutions?: string[]; - /** - * Parameters of the search job that initiated this table. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly searchResults?: SearchResults; - /** - * Parameters of the restore operation that initiated this table. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly restoredLogs?: RestoredLogs; } /** Table column. */ @@ -857,7 +862,7 @@ export interface DataSourceFilter { } /** An Log Analytics QueryPack definition. */ -export type LogAnalyticsQueryPack = QueryPacksResource & { +export interface LogAnalyticsQueryPack extends QueryPacksResource { /** * The unique ID of your application. This field cannot be changed. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -878,10 +883,10 @@ export type LogAnalyticsQueryPack = QueryPacksResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; -}; +} /** A Log Analytics QueryPack-Query definition. */ -export type LogAnalyticsQueryPackQuery = AzureResourceProperties & { +export interface LogAnalyticsQueryPackQuery extends AzureResourceProperties { /** * The unique ID of your application. This field cannot be changed. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -914,30 +919,30 @@ export type LogAnalyticsQueryPackQuery = AzureResourceProperties & { tags?: { [propertyName: string]: string[] }; /** Additional properties that can be set for the query. */ properties?: Record; -}; +} /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export type ProxyResource = Resource; +export interface ProxyResource extends Resource {} /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export type TrackedResource = 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. */ -export type AzureEntityResource = 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 top level data export resource container. */ -export type DataExport = ProxyResource & { +export interface DataExport extends ProxyResource { /** The data export rule ID. */ dataExportId?: string; /** An array of tables to export, for example: [“Heartbeat, SecurityEvent”]. */ @@ -957,10 +962,10 @@ export type DataExport = ProxyResource & { 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 & { +export interface DataSource extends 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. */ @@ -969,10 +974,10 @@ export type DataSource = ProxyResource & { kind: DataSourceKind; /** Resource tags. */ tags?: { [propertyName: string]: string }; -}; +} /** The top level Linked service resource container. */ -export type LinkedService = ProxyResource & { +export interface LinkedService extends 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 */ @@ -981,10 +986,10 @@ export type LinkedService = ProxyResource & { writeAccessResourceId?: string; /** The provisioning state of the linked service. */ provisioningState?: LinkedServiceEntityStatus; -}; +} /** Linked storage accounts top level resource container. */ -export type LinkedStorageAccountsResource = ProxyResource & { +export interface LinkedStorageAccountsResource extends ProxyResource { /** * Linked storage accounts type. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -992,10 +997,10 @@ export type LinkedStorageAccountsResource = ProxyResource & { readonly dataSourceType?: DataSourceType; /** Linked storage accounts resources ids. */ storageAccountIds?: string[]; -}; +} /** The top level storage insight resource container. */ -export type StorageInsight = ProxyResource & { +export interface StorageInsight extends ProxyResource { /** The ETag of the storage insight. */ eTag?: string; /** Resource tags. */ @@ -1011,10 +1016,10 @@ export type StorageInsight = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: StorageInsightStatus; -}; +} /** Value object for saved search results. */ -export type SavedSearch = ProxyResource & { +export interface SavedSearch extends 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. */ @@ -1031,10 +1036,10 @@ export type SavedSearch = ProxyResource & { version?: number; /** The tags attached to the saved search. */ tags?: Tag[]; -}; +} /** Workspace data table definition. */ -export type Table = ProxyResource & { +export interface Table extends ProxyResource { /** * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1053,8 +1058,11 @@ export type Table = ProxyResource & { searchResults?: SearchResults; /** Parameters of the restore operation that initiated this table. */ restoredLogs?: RestoredLogs; - /** Search job execution statistics. */ - resultStatistics?: ResultStatistics; + /** + * Search job execution statistics. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resultStatistics?: ResultStatistics; /** Instruct the system how to handle and charge the logs ingested to this table. */ plan?: TablePlanEnum; /** @@ -1069,10 +1077,20 @@ export type Table = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningStateEnum; -}; + /** + * True - Value originates from workspace retention in days, False - Customer specific. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly retentionInDaysAsDefault?: RetentionInDaysAsDefault; + /** + * True - Value originates from retention in days, False - Customer specific. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly totalRetentionInDaysAsDefault?: TotalRetentionInDaysAsDefault; +} /** The top level Log Analytics cluster resource container. */ -export type Cluster = TrackedResource & { +export interface Cluster extends TrackedResource { /** The identity of the resource. */ identity?: Identity; /** The sku properties. */ @@ -1109,17 +1127,19 @@ export type Cluster = TrackedResource & { associatedWorkspaces?: AssociatedWorkspace[]; /** Additional properties for capacity reservation */ capacityReservationProperties?: CapacityReservationProperties; -}; +} /** The top level Workspace resource container. */ -export type Workspace = TrackedResource & { +export interface Workspace extends TrackedResource { + /** The identity of the resource. */ + identity?: Identity; /** * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemDataAutoGenerated; - /** The ETag of the workspace. */ - eTag?: string; + /** The etag of the workspace. */ + etag?: string; /** * The provisioning state of the workspace. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1161,10 +1181,12 @@ export type Workspace = TrackedResource & { features?: WorkspaceFeatures; /** The resource ID of the default Data Collection Rule to use for this workspace. Expected format is - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}. */ defaultDataCollectionRuleResourceId?: string; -}; +} /** The top level Workspace resource container. */ -export type WorkspacePatch = AzureEntityResource & { +export interface WorkspacePatch extends AzureEntityResource { + /** The identity of the resource. */ + identity?: Identity; /** Resource tags. Optional. */ tags?: { [propertyName: string]: string }; /** @@ -1208,7 +1230,7 @@ export type WorkspacePatch = AzureEntityResource & { features?: WorkspaceFeatures; /** The resource ID of the default Data Collection Rule to use for this workspace. Expected format is - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}. */ defaultDataCollectionRuleResourceId?: string; -}; +} /** Defines headers for WorkspacePurge_purge operation. */ export interface WorkspacePurgePurgeHeaders { @@ -1218,12 +1240,19 @@ export interface WorkspacePurgePurgeHeaders { /** Known values of {@link IdentityType} that the service accepts. */ export enum KnownIdentityType { + /** User */ User = "user", + /** Application */ Application = "application", + /** ManagedIdentity */ ManagedIdentity = "managedIdentity", + /** Key */ Key = "key", + /** SystemAssigned */ SystemAssigned = "SystemAssigned", + /** UserAssigned */ UserAssigned = "UserAssigned", + /** None */ None = "None" } @@ -1244,7 +1273,9 @@ export type IdentityType = string; /** Known values of {@link Type} that the service accepts. */ export enum KnownType { + /** StorageAccount */ StorageAccount = "StorageAccount", + /** EventHub */ EventHub = "EventHub" } @@ -1260,38 +1291,71 @@ export type Type = string; /** Known values of {@link DataSourceKind} that the service accepts. */ export enum KnownDataSourceKind { + /** WindowsEvent */ WindowsEvent = "WindowsEvent", + /** WindowsPerformanceCounter */ WindowsPerformanceCounter = "WindowsPerformanceCounter", + /** IISLogs */ IISLogs = "IISLogs", + /** LinuxSyslog */ LinuxSyslog = "LinuxSyslog", + /** LinuxSyslogCollection */ LinuxSyslogCollection = "LinuxSyslogCollection", + /** LinuxPerformanceObject */ LinuxPerformanceObject = "LinuxPerformanceObject", + /** LinuxPerformanceCollection */ LinuxPerformanceCollection = "LinuxPerformanceCollection", + /** CustomLog */ CustomLog = "CustomLog", + /** CustomLogCollection */ CustomLogCollection = "CustomLogCollection", + /** AzureAuditLog */ AzureAuditLog = "AzureAuditLog", + /** AzureActivityLog */ AzureActivityLog = "AzureActivityLog", + /** GenericDataSource */ GenericDataSource = "GenericDataSource", + /** ChangeTrackingCustomPath */ ChangeTrackingCustomPath = "ChangeTrackingCustomPath", + /** ChangeTrackingPath */ ChangeTrackingPath = "ChangeTrackingPath", + /** ChangeTrackingServices */ ChangeTrackingServices = "ChangeTrackingServices", + /** ChangeTrackingDataTypeConfiguration */ ChangeTrackingDataTypeConfiguration = "ChangeTrackingDataTypeConfiguration", + /** ChangeTrackingDefaultRegistry */ ChangeTrackingDefaultRegistry = "ChangeTrackingDefaultRegistry", + /** ChangeTrackingRegistry */ ChangeTrackingRegistry = "ChangeTrackingRegistry", + /** ChangeTrackingLinuxPath */ ChangeTrackingLinuxPath = "ChangeTrackingLinuxPath", + /** LinuxChangeTrackingPath */ LinuxChangeTrackingPath = "LinuxChangeTrackingPath", + /** ChangeTrackingContentLocation */ ChangeTrackingContentLocation = "ChangeTrackingContentLocation", + /** WindowsTelemetry */ WindowsTelemetry = "WindowsTelemetry", + /** Office365 */ Office365 = "Office365", + /** SecurityWindowsBaselineConfiguration */ SecurityWindowsBaselineConfiguration = "SecurityWindowsBaselineConfiguration", + /** SecurityCenterSecurityWindowsBaselineConfiguration */ SecurityCenterSecurityWindowsBaselineConfiguration = "SecurityCenterSecurityWindowsBaselineConfiguration", + /** SecurityEventCollectionConfiguration */ SecurityEventCollectionConfiguration = "SecurityEventCollectionConfiguration", + /** SecurityInsightsSecurityEventCollectionConfiguration */ SecurityInsightsSecurityEventCollectionConfiguration = "SecurityInsightsSecurityEventCollectionConfiguration", + /** ImportComputerGroup */ ImportComputerGroup = "ImportComputerGroup", + /** NetworkMonitoring */ NetworkMonitoring = "NetworkMonitoring", + /** Itsm */ Itsm = "Itsm", + /** DnsAnalytics */ DnsAnalytics = "DnsAnalytics", + /** ApplicationInsights */ ApplicationInsights = "ApplicationInsights", + /** SqlDataClassification */ SqlDataClassification = "SqlDataClassification" } @@ -1338,9 +1402,13 @@ export type DataSourceKind = string; /** Known values of {@link LinkedServiceEntityStatus} that the service accepts. */ export enum KnownLinkedServiceEntityStatus { + /** Succeeded */ Succeeded = "Succeeded", + /** Deleting */ Deleting = "Deleting", + /** ProvisioningAccount */ ProvisioningAccount = "ProvisioningAccount", + /** Updating */ Updating = "Updating" } @@ -1358,7 +1426,9 @@ export type LinkedServiceEntityStatus = string; /** Known values of {@link StorageInsightState} that the service accepts. */ export enum KnownStorageInsightState { + /** OK */ OK = "OK", + /** Error */ Error = "ERROR" } @@ -1374,12 +1444,19 @@ export type StorageInsightState = string; /** Known values of {@link SkuNameEnum} that the service accepts. */ export enum KnownSkuNameEnum { + /** Free */ Free = "Free", + /** Standard */ Standard = "Standard", + /** Premium */ Premium = "Premium", + /** PerNode */ PerNode = "PerNode", + /** PerGB2018 */ PerGB2018 = "PerGB2018", + /** Standalone */ Standalone = "Standalone", + /** CapacityReservation */ CapacityReservation = "CapacityReservation" } @@ -1400,7 +1477,9 @@ export type SkuNameEnum = string; /** Known values of {@link SearchSortEnum} that the service accepts. */ export enum KnownSearchSortEnum { + /** Asc */ Asc = "asc", + /** Desc */ Desc = "desc" } @@ -1416,7 +1495,9 @@ export type SearchSortEnum = string; /** Known values of {@link PurgeState} that the service accepts. */ export enum KnownPurgeState { + /** Pending */ Pending = "pending", + /** Completed */ Completed = "completed" } @@ -1432,6 +1513,7 @@ export type PurgeState = string; /** Known values of {@link ClusterSkuNameEnum} that the service accepts. */ export enum KnownClusterSkuNameEnum { + /** CapacityReservation */ CapacityReservation = "CapacityReservation" } @@ -1446,12 +1528,19 @@ export type ClusterSkuNameEnum = string; /** Known values of {@link ClusterEntityStatus} that the service accepts. */ export enum KnownClusterEntityStatus { + /** Creating */ Creating = "Creating", + /** Succeeded */ Succeeded = "Succeeded", + /** Failed */ Failed = "Failed", + /** Canceled */ Canceled = "Canceled", + /** Deleting */ Deleting = "Deleting", + /** ProvisioningAccount */ ProvisioningAccount = "ProvisioningAccount", + /** Updating */ Updating = "Updating" } @@ -1472,7 +1561,9 @@ export type ClusterEntityStatus = string; /** Known values of {@link BillingType} that the service accepts. */ export enum KnownBillingType { + /** Cluster */ Cluster = "Cluster", + /** Workspaces */ Workspaces = "Workspaces" } @@ -1488,12 +1579,19 @@ export type BillingType = string; /** Known values of {@link WorkspaceEntityStatus} that the service accepts. */ export enum KnownWorkspaceEntityStatus { + /** Creating */ Creating = "Creating", + /** Succeeded */ Succeeded = "Succeeded", + /** Failed */ Failed = "Failed", + /** Canceled */ Canceled = "Canceled", + /** Deleting */ Deleting = "Deleting", + /** ProvisioningAccount */ ProvisioningAccount = "ProvisioningAccount", + /** Updating */ Updating = "Updating" } @@ -1514,13 +1612,21 @@ export type WorkspaceEntityStatus = string; /** Known values of {@link WorkspaceSkuNameEnum} that the service accepts. */ export enum KnownWorkspaceSkuNameEnum { + /** Free */ Free = "Free", + /** Standard */ Standard = "Standard", + /** Premium */ Premium = "Premium", + /** PerNode */ PerNode = "PerNode", + /** PerGB2018 */ PerGB2018 = "PerGB2018", + /** Standalone */ Standalone = "Standalone", + /** CapacityReservation */ CapacityReservation = "CapacityReservation", + /** LACluster */ LACluster = "LACluster" } @@ -1590,9 +1696,13 @@ export type PublicNetworkAccessType = string; /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { + /** User */ User = "User", + /** Application */ Application = "Application", + /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", + /** Key */ Key = "Key" } @@ -1628,13 +1738,21 @@ export type TablePlanEnum = string; /** Known values of {@link ColumnTypeEnum} that the service accepts. */ export enum KnownColumnTypeEnum { + /** String */ String = "string", + /** Int */ Int = "int", + /** Long */ Long = "long", + /** Real */ Real = "real", + /** Boolean */ Boolean = "boolean", + /** DateTime */ DateTime = "dateTime", + /** Guid */ Guid = "guid", + /** Dynamic */ Dynamic = "dynamic" } @@ -1761,6 +1879,42 @@ export enum KnownProvisioningStateEnum { * **Succeeded**: Table state is stable and without changes, table is unlocked and open for new updates. */ export type ProvisioningStateEnum = string; + +/** Known values of {@link RetentionInDaysAsDefault} that the service accepts. */ +export enum KnownRetentionInDaysAsDefault { + /** Value originates from workspace retention in days. */ + True = "True", + /** Value is customer specific. */ + False = "False" +} + +/** + * Defines values for RetentionInDaysAsDefault. \ + * {@link KnownRetentionInDaysAsDefault} can be used interchangeably with RetentionInDaysAsDefault, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **True**: Value originates from workspace retention in days. \ + * **False**: Value is customer specific. + */ +export type RetentionInDaysAsDefault = string; + +/** Known values of {@link TotalRetentionInDaysAsDefault} that the service accepts. */ +export enum KnownTotalRetentionInDaysAsDefault { + /** Value originates from retention in days. */ + True = "True", + /** Value is customer specific. */ + False = "False" +} + +/** + * Defines values for TotalRetentionInDaysAsDefault. \ + * {@link KnownTotalRetentionInDaysAsDefault} can be used interchangeably with TotalRetentionInDaysAsDefault, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **True**: Value originates from retention in days. \ + * **False**: Value is customer specific. + */ +export type TotalRetentionInDaysAsDefault = string; /** Defines values for DataSourceType. */ export type DataSourceType = | "CustomLogs" @@ -1795,6 +1949,13 @@ export interface QueryPacksListByResourceGroupOptionalParams /** Contains response data for the listByResourceGroup operation. */ export type QueryPacksListByResourceGroupResponse = LogAnalyticsQueryPackListResult; +/** Optional parameters. */ +export interface QueryPacksCreateOrUpdateWithoutNameOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdateWithoutName operation. */ +export type QueryPacksCreateOrUpdateWithoutNameResponse = LogAnalyticsQueryPack; + /** Optional parameters. */ export interface QueryPacksDeleteOptionalParams extends coreClient.OperationOptions {} @@ -2373,6 +2534,10 @@ export interface TablesDeleteOptionalParams export interface TablesMigrateOptionalParams extends coreClient.OperationOptions {} +/** Optional parameters. */ +export interface TablesCancelSearchOptionalParams + extends coreClient.OperationOptions {} + /** Optional parameters. */ export interface OperationalInsightsManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts index 62692715f906..79c799d0e558 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts @@ -1917,6 +1917,13 @@ export const SearchResults: coreClient.CompositeMapper = { type: { name: "String" } + }, + azureAsyncOperationId: { + serializedName: "azureAsyncOperationId", + readOnly: true, + type: { + name: "String" + } } } } @@ -1944,6 +1951,13 @@ export const RestoredLogs: coreClient.CompositeMapper = { type: { name: "String" } + }, + azureAsyncOperationId: { + serializedName: "azureAsyncOperationId", + readOnly: true, + type: { + name: "String" + } } } } @@ -1970,6 +1984,16 @@ export const ResultStatistics: coreClient.CompositeMapper = { type: { name: "Number" } + }, + scannedGb: { + constraints: { + MultipleOf: 0.01 + }, + serializedName: "scannedGb", + readOnly: true, + type: { + name: "Number" + } } } } @@ -2079,20 +2103,6 @@ export const Schema: coreClient.CompositeMapper = { } } } - }, - searchResults: { - serializedName: "searchResults", - type: { - name: "Composite", - className: "SearchResults" - } - }, - restoredLogs: { - serializedName: "restoredLogs", - type: { - name: "Composite", - className: "RestoredLogs" - } } } } @@ -2719,6 +2729,22 @@ export const Table: coreClient.CompositeMapper = { type: { name: "String" } + }, + retentionInDaysAsDefault: { + defaultValue: "True", + serializedName: "properties.retentionInDaysAsDefault", + readOnly: true, + type: { + name: "String" + } + }, + totalRetentionInDaysAsDefault: { + defaultValue: "True", + serializedName: "properties.totalRetentionInDaysAsDefault", + readOnly: true, + type: { + name: "String" + } } } } @@ -2826,6 +2852,13 @@ export const Workspace: coreClient.CompositeMapper = { className: "Workspace", modelProperties: { ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, systemData: { serializedName: "systemData", type: { @@ -2833,8 +2866,8 @@ export const Workspace: coreClient.CompositeMapper = { className: "SystemDataAutoGenerated" } }, - eTag: { - serializedName: "eTag", + etag: { + serializedName: "etag", type: { name: "String" } @@ -2944,6 +2977,13 @@ export const WorkspacePatch: coreClient.CompositeMapper = { className: "WorkspacePatch", modelProperties: { ...AzureEntityResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, tags: { serializedName: "tags", type: { diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts index 97b25e79d380..a33f882d1ea5 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts @@ -95,17 +95,6 @@ export const resourceGroupName: OperationURLParameter = { } }; -export const queryPackName: OperationURLParameter = { - parameterPath: "queryPackName", - mapper: { - serializedName: "queryPackName", - required: true, - type: { - name: "String" - } - } -}; - export const contentType: OperationParameter = { parameterPath: ["options", "contentType"], mapper: { @@ -123,6 +112,17 @@ export const logAnalyticsQueryPackPayload: OperationParameter = { mapper: LogAnalyticsQueryPackMapper }; +export const queryPackName: OperationURLParameter = { + parameterPath: "queryPackName", + mapper: { + serializedName: "queryPackName", + required: true, + type: { + name: "String" + } + } +}; + export const queryPackTags: OperationParameter = { parameterPath: "queryPackTags", mapper: TagsResourceMapper @@ -471,7 +471,7 @@ export const parameters7: OperationParameter = { export const apiVersion3: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-12-01-preview", + defaultValue: "2022-10-01", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts index b9139b803688..d578718dd404 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts @@ -90,7 +90,7 @@ export class OperationalInsightsManagementClient extends coreClient.ServiceClien credential: credentials }; - const packageDetails = `azsdk-js-arm-operationalinsights/9.0.0-beta.2`; + const packageDetails = `azsdk-js-arm-operationalinsights/9.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -110,27 +110,34 @@ export class OperationalInsightsManagementClient extends coreClient.ServiceClien }; super(optionsWithDefaults); + let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); - const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( + bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName ); - if (!bearerTokenAuthenticationPolicyFound) { - this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName - }); - this.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - scopes: `${optionsWithDefaults.baseUri}/.default`, - challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) - ); - } + } + if ( + !options || + !options.pipeline || + options.pipeline.getOrderedPolicies().length == 0 || + !bearerTokenAuthenticationPolicyFound + ) { + this.pipeline.removePolicy({ + name: coreRestPipeline.bearerTokenAuthenticationPolicyName + }); + this.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + credential: credentials, + scopes: `${optionsWithDefaults.credentialScopes}`, + challengeCallbacks: { + authorizeRequestOnChallenge: + coreClient.authorizeRequestOnClaimChallenge + } + }) + ); } // Parameter assignments this.subscriptionId = subscriptionId; diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/queryPacks.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/queryPacks.ts index 78270d7fecf4..03556b49df09 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/queryPacks.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/queryPacks.ts @@ -20,6 +20,8 @@ import { QueryPacksListByResourceGroupOptionalParams, QueryPacksListResponse, QueryPacksListByResourceGroupResponse, + QueryPacksCreateOrUpdateWithoutNameOptionalParams, + QueryPacksCreateOrUpdateWithoutNameResponse, QueryPacksDeleteOptionalParams, QueryPacksGetOptionalParams, QueryPacksGetResponse, @@ -165,6 +167,25 @@ export class QueryPacksImpl implements QueryPacks { ); } + /** + * Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey + * nor AppId in the Put operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param logAnalyticsQueryPackPayload Properties that need to be specified to create or update a Log + * Analytics QueryPack. + * @param options The options parameters. + */ + createOrUpdateWithoutName( + resourceGroupName: string, + logAnalyticsQueryPackPayload: LogAnalyticsQueryPack, + options?: QueryPacksCreateOrUpdateWithoutNameOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, logAnalyticsQueryPackPayload, options }, + createOrUpdateWithoutNameOperationSpec + ); + } + /** * Deletes a Log Analytics QueryPack. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -317,6 +338,29 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const createOrUpdateWithoutNameOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks", + httpMethod: "PUT", + responses: { + 201: { + bodyMapper: Mappers.LogAnalyticsQueryPack + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.logAnalyticsQueryPackPayload, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const deleteOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}", diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/tables.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/tables.ts index 51fff5f9e23c..2bfc572cd674 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/tables.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/tables.ts @@ -25,7 +25,8 @@ import { TablesGetOptionalParams, TablesGetResponse, TablesDeleteOptionalParams, - TablesMigrateOptionalParams + TablesMigrateOptionalParams, + TablesCancelSearchOptionalParams } from "../models"; /// @@ -437,13 +438,32 @@ export class TablesImpl implements Tables { migrateOperationSpec ); } + + /** + * Cancel a log analytics workspace search results table query run. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param tableName The name of the table. + * @param options The options parameters. + */ + cancelSearch( + resourceGroupName: string, + workspaceName: string, + tableName: string, + options?: TablesCancelSearchOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, tableName, options }, + cancelSearchOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByWorkspaceOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables", httpMethod: "GET", responses: { 200: { @@ -465,7 +485,7 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}", httpMethod: "PUT", responses: { 200: { @@ -499,7 +519,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }; const updateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}", httpMethod: "PATCH", responses: { 200: { @@ -533,7 +553,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }; const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}", httpMethod: "GET", responses: { 200: { @@ -556,7 +576,7 @@ const getOperationSpec: coreClient.OperationSpec = { }; const deleteOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}", httpMethod: "DELETE", responses: { 200: {}, @@ -580,7 +600,28 @@ const deleteOperationSpec: coreClient.OperationSpec = { }; const migrateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/migrate", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/migrate", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.tableName + ], + headerParameters: [Parameters.accept], + serializer +}; +const cancelSearchOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/cancelSearch", httpMethod: "POST", responses: { 200: {}, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/workspacePurge.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/workspacePurge.ts index 59cb12087176..23b3c60eafcd 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/workspacePurge.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/workspacePurge.ts @@ -38,6 +38,9 @@ export class WorkspacePurgeImpl implements WorkspacePurge { * should batch the execution of purge requests by sending a single command whose predicate includes * all user identities that require purging. Use the in operator to specify multiple identities. You * should run the query prior to using for a purge request to verify that the results are expected. + * Log Analytics only supports purge operations required for compliance with GDPR. The Log Analytics + * product team reserves the right to reject requests for purge operations that are not for the purpose + * of GDPR compliance. In the event of a dispute, please create a support ticket * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param body Describes the body of a request to purge data in a single table of an Log Analytics diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/queryPacks.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/queryPacks.ts index 049c361be180..84bd2c63c6d7 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/queryPacks.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/queryPacks.ts @@ -11,6 +11,8 @@ import { LogAnalyticsQueryPack, QueryPacksListOptionalParams, QueryPacksListByResourceGroupOptionalParams, + QueryPacksCreateOrUpdateWithoutNameOptionalParams, + QueryPacksCreateOrUpdateWithoutNameResponse, QueryPacksDeleteOptionalParams, QueryPacksGetOptionalParams, QueryPacksGetResponse, @@ -40,6 +42,19 @@ export interface QueryPacks { resourceGroupName: string, options?: QueryPacksListByResourceGroupOptionalParams ): PagedAsyncIterableIterator; + /** + * Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey + * nor AppId in the Put operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param logAnalyticsQueryPackPayload Properties that need to be specified to create or update a Log + * Analytics QueryPack. + * @param options The options parameters. + */ + createOrUpdateWithoutName( + resourceGroupName: string, + logAnalyticsQueryPackPayload: LogAnalyticsQueryPack, + options?: QueryPacksCreateOrUpdateWithoutNameOptionalParams + ): Promise; /** * Deletes a Log Analytics QueryPack. * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/tables.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/tables.ts index 9d616867770b..64f612d1abe0 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/tables.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/tables.ts @@ -18,7 +18,8 @@ import { TablesGetOptionalParams, TablesGetResponse, TablesDeleteOptionalParams, - TablesMigrateOptionalParams + TablesMigrateOptionalParams, + TablesCancelSearchOptionalParams } from "../models"; /// @@ -155,4 +156,17 @@ export interface Tables { tableName: string, options?: TablesMigrateOptionalParams ): Promise; + /** + * Cancel a log analytics workspace search results table query run. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param tableName The name of the table. + * @param options The options parameters. + */ + cancelSearch( + resourceGroupName: string, + workspaceName: string, + tableName: string, + options?: TablesCancelSearchOptionalParams + ): Promise; } diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/workspacePurge.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/workspacePurge.ts index 6ef05b2fd144..66b9d0c42c1b 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/workspacePurge.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/workspacePurge.ts @@ -23,6 +23,9 @@ export interface WorkspacePurge { * should batch the execution of purge requests by sending a single command whose predicate includes * all user identities that require purging. Use the in operator to specify multiple identities. You * should run the query prior to using for a purge request to verify that the results are expected. + * Log Analytics only supports purge operations required for compliance with GDPR. The Log Analytics + * product team reserves the right to reject requests for purge operations that are not for the purpose + * of GDPR compliance. In the event of a dispute, please create a support ticket * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param body Describes the body of a request to purge data in a single table of an Log Analytics diff --git a/sdk/operationalinsights/arm-operationalinsights/tsconfig.json b/sdk/operationalinsights/arm-operationalinsights/tsconfig.json index fccdcc69f6d3..3e6ae96443f3 100644 --- a/sdk/operationalinsights/arm-operationalinsights/tsconfig.json +++ b/sdk/operationalinsights/arm-operationalinsights/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-operationalinsights": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"