diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index fe7a5924a2e7..cf58760e3d7d 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -70,6 +70,7 @@ specifiers: '@rush-temp/arm-iothub': file:./projects/arm-iothub.tgz '@rush-temp/arm-keyvault': file:./projects/arm-keyvault.tgz '@rush-temp/arm-kubernetesconfiguration': file:./projects/arm-kubernetesconfiguration.tgz + '@rush-temp/arm-kusto': file:./projects/arm-kusto.tgz '@rush-temp/arm-labservices': file:./projects/arm-labservices.tgz '@rush-temp/arm-links': file:./projects/arm-links.tgz '@rush-temp/arm-loadtestservice': file:./projects/arm-loadtestservice.tgz @@ -628,6 +629,21 @@ packages: - supports-color dev: false + /@azure/arm-operationalinsights/8.0.0: + resolution: {integrity: sha512-YYeOOCajQvqaK/boY8VYkGK0SX5k+QUUtDvRYfmQBBLVPbLHiM5PsoWkIrb/1GpRyl+E+KX0n1o+yZDWU7pPLQ==} + engines: {node: '>=12.0.0'} + dependencies: + '@azure/abort-controller': 1.0.4 + '@azure/core-auth': 1.3.2 + '@azure/core-client': 1.4.0 + '@azure/core-lro': 2.2.3 + '@azure/core-paging': 1.2.1 + '@azure/core-rest-pipeline': 1.4.0 + tslib: 2.3.1 + transitivePeerDependencies: + - supports-color + dev: false + /@azure/communication-common/1.1.0: resolution: {integrity: sha512-vqTtzDtb4NG3LWoWoqlOOJApZRRIIImNUKlGyTa6c1YC+v5A7UEOL9TX8NRDxvFVUF2wDHsSnkhLBVBgkcAhIQ==} engines: {node: '>=12.0.0'} @@ -10684,11 +10700,12 @@ packages: dev: false file:projects/arm-monitor.tgz: - resolution: {integrity: sha512-fGEPUwHrAFIOY7+1ZoH/b4M+AgudqMrq42bQJTcvBtZXpPz5CaTn3DQmJpPQEUultLOwocA/k9NOsXEk+BxrHQ==, tarball: file:projects/arm-monitor.tgz} + resolution: {integrity: sha512-iY2+1jOT5LG5jdiWc8M5rFVQA3+oHGAs1OjAC/p4A3XZdIv7BR9lWnmupOht2Ils0E2vQ52sYf+DHQXMRJUfMw==, tarball: file:projects/arm-monitor.tgz} name: '@rush-temp/arm-monitor' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 + '@azure/arm-operationalinsights': 8.0.0 '@microsoft/api-extractor': 7.19.4 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.1.0_rollup@1.32.1 @@ -13125,7 +13142,7 @@ packages: dev: false file:projects/core-http.tgz: - resolution: {integrity: sha512-dr/zKAzLJeqdjfjldg208kPRFEMAH6gtQCxlOVWj3j6aBWvXZLWYoH6DirE5GNgn3uQc6sWDfI58qL4w6hqmNQ==, tarball: file:projects/core-http.tgz} + resolution: {integrity: sha512-hNWQdd9zZmCEndn+4Bl3G0/90xrJnP8QjWHnB7gbiAJTfQHSW1rePvYICZi2X3IW+mtuqsJod+5kD2DF3F92vg==, tarball: file:projects/core-http.tgz} name: '@rush-temp/core-http' version: 0.0.0 dependencies: @@ -15388,7 +15405,7 @@ packages: dev: false file:projects/schema-registry-avro.tgz: - resolution: {integrity: sha512-nYoV4QCq4gGBjhk2hz9opui4CbCRNv3bcVGgDVCIqiso9PbCyWb6CqNqsSZyT7F2NIpVfGSNtElbrVDgx/2i/g==, tarball: file:projects/schema-registry-avro.tgz} + resolution: {integrity: sha512-5UtOuttINU0oudMsUZZu5Oe/UEj0uR1Y8R/rGnzNq8YPJCpscqQ2QjGXpT0LKv6Xf3vhNVhUdcg4eRaHTok/Rg==, tarball: file:projects/schema-registry-avro.tgz} name: '@rush-temp/schema-registry-avro' version: 0.0.0 dependencies: @@ -15441,7 +15458,7 @@ packages: dev: false file:projects/schema-registry.tgz: - resolution: {integrity: sha512-fucVewqXE8TZV5enQSHpfLRsx8+I+1w1Cec81+x0xHbAcEs0ykoXa7NCNYQMAPi+V0Pu99w+Hqmjsrbn1SK6yg==, tarball: file:projects/schema-registry.tgz} + resolution: {integrity: sha512-bC/6TQwVav+spG+JqNxPVKgzAgTI2cYjiU/y2+r3RXlD8Wv/w2p99jyDQGcB+nALLOPMDPUAszhc8iUgFUEwSw==, tarball: file:projects/schema-registry.tgz} name: '@rush-temp/schema-registry' version: 0.0.0 dependencies: @@ -15482,7 +15499,6 @@ packages: transitivePeerDependencies: - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false diff --git a/sdk/operationalinsights/arm-operationalinsights/CHANGELOG.md b/sdk/operationalinsights/arm-operationalinsights/CHANGELOG.md index 241df1494951..49bbeddfdae7 100644 --- a/sdk/operationalinsights/arm-operationalinsights/CHANGELOG.md +++ b/sdk/operationalinsights/arm-operationalinsights/CHANGELOG.md @@ -1,15 +1,69 @@ # Release History + +## 9.0.0-beta.1 (2022-01-27) + +**Features** -## 8.0.1 (Unreleased) + - Added operation group SchemaOperations + - Added operation Tables.beginCreateOrUpdate + - Added operation Tables.beginCreateOrUpdateAndWait + - Added operation Tables.beginDelete + - Added operation Tables.beginDeleteAndWait + - Added operation Tables.beginUpdate + - Added operation Tables.beginUpdateAndWait + - Added Interface Column + - Added Interface RestoredLogs + - Added Interface ResultStatistics + - Added Interface Schema + - Added Interface SearchResults + - Added Interface SystemData + - Added Interface TablesCreateOrUpdateOptionalParams + - Added Interface TablesDeleteOptionalParams + - Added Type Alias ColumnDataTypeHintEnum + - Added Type Alias ColumnTypeEnum + - Added Type Alias CreatedByType + - Added Type Alias ProvisioningStateEnum + - Added Type Alias SourceEnum + - Added Type Alias TablePlanEnum + - Added Type Alias TablesCreateOrUpdateResponse + - Added Type Alias TableSubTypeEnum + - Added Type Alias TableTypeEnum + - Interface TablesUpdateOptionalParams has a new optional parameter resumeFrom + - Interface TablesUpdateOptionalParams has a new optional parameter updateIntervalInMs + - 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 KnownProvisioningStateEnum + - Added Enum KnownSourceEnum + - Added Enum KnownTablePlanEnum + - Added Enum KnownTableSubTypeEnum + - Added Enum KnownTableTypeEnum -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +**Breaking Changes** + - Removed operation group Schema + - 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.0 (2021-12-14) The package of @azure/arm-operationalinsights is using our next generation design principles since version 8.0.0, which contains breaking changes. diff --git a/sdk/operationalinsights/arm-operationalinsights/LICENSE b/sdk/operationalinsights/arm-operationalinsights/LICENSE index ccb63b166732..5d1d36e0af80 100644 --- a/sdk/operationalinsights/arm-operationalinsights/LICENSE +++ b/sdk/operationalinsights/arm-operationalinsights/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 Microsoft +Copyright (c) 2022 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/operationalinsights/arm-operationalinsights/README.md b/sdk/operationalinsights/arm-operationalinsights/README.md index 92b533096dd9..ef60c84fbe53 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) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-operationalinsights?view=azure-node-preview) | [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 bee68d8804c8..6dae8b8e9e9f 100644 --- a/sdk/operationalinsights/arm-operationalinsights/_meta.json +++ b/sdk/operationalinsights/arm-operationalinsights/_meta.json @@ -1,7 +1,7 @@ { - "commit": "ea0f7b072ad3aaff203ea9003246b9e584b819ff", + "commit": "7d66b07c2ec34192ed93f731e7fa80662557acf4", "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-alpha.16.20211207.1", + "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=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20211207.1" + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/operationalinsights/arm-operationalinsights/api-extractor.json b/sdk/operationalinsights/arm-operationalinsights/api-extractor.json index 22d2bd212360..fe8e37dd3918 100644 --- a/sdk/operationalinsights/arm-operationalinsights/api-extractor.json +++ b/sdk/operationalinsights/arm-operationalinsights/api-extractor.json @@ -1,18 +1,31 @@ { "$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" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-operationalinsights.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/operationalinsights/arm-operationalinsights/package.json b/sdk/operationalinsights/arm-operationalinsights/package.json index b9e5ceacc51f..0435a1b580fe 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": "8.0.1", + "version": "9.0.0-beta.1", "engines": { "node": ">=12.0.0" }, @@ -99,4 +99,4 @@ }, "sideEffects": false, "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 0f2b52d6a16b..26fe5b473d5a 100644 --- a/sdk/operationalinsights/arm-operationalinsights/review/arm-operationalinsights.api.md +++ b/sdk/operationalinsights/arm-operationalinsights/review/arm-operationalinsights.api.md @@ -178,12 +178,32 @@ export interface ClustersUpdateOptionalParams extends coreClient.OperationOption // @public export type ClustersUpdateResponse = Cluster; +// @public +export interface Column { + dataTypeHint?: ColumnDataTypeHintEnum; + description?: string; + displayName?: string; + readonly isDefaultDisplay?: boolean; + readonly isHidden?: boolean; + name?: string; + type?: ColumnTypeEnum; +} + +// @public +export type ColumnDataTypeHintEnum = string; + +// @public +export type ColumnTypeEnum = string; + // @public export interface CoreSummary { numberOfDocuments: number; status?: string; } +// @public +export type CreatedByType = string; + // @public export type DataExport = ProxyResource & { dataExportId?: string; @@ -437,6 +457,46 @@ export enum KnownClusterSkuNameEnum { CapacityReservation = "CapacityReservation" } +// @public +export enum KnownColumnDataTypeHintEnum { + ArmPath = "armPath", + Guid = "guid", + Ip = "ip", + Uri = "uri" +} + +// @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" +} + // @public export enum KnownDataIngestionStatus { ApproachingQuota = "ApproachingQuota", @@ -529,6 +589,13 @@ export enum KnownLinkedServiceEntityStatus { Updating = "Updating" } +// @public +export enum KnownProvisioningStateEnum { + InProgress = "InProgress", + Succeeded = "Succeeded", + Updating = "Updating" +} + // @public export enum KnownPublicNetworkAccessType { Disabled = "Disabled", @@ -569,6 +636,12 @@ export enum KnownSkuNameEnum { Standard = "Standard" } +// @public +export enum KnownSourceEnum { + Customer = "customer", + Microsoft = "microsoft" +} + // @public export enum KnownStorageInsightState { // (undocumented) @@ -577,6 +650,27 @@ export enum KnownStorageInsightState { OK = "OK" } +// @public +export enum KnownTablePlanEnum { + Analytics = "Analytics", + Basic = "Basic" +} + +// @public +export enum KnownTableSubTypeEnum { + Any = "Any", + Classic = "Classic", + DataCollectionRuleBased = "DataCollectionRuleBased" +} + +// @public +export enum KnownTableTypeEnum { + CustomLog = "CustomLog", + Microsoft = "Microsoft", + RestoredLogs = "RestoredLogs", + SearchResults = "SearchResults" +} + // @public export enum KnownType { // (undocumented) @@ -795,7 +889,7 @@ export class OperationalInsightsManagementClient extends coreClient.ServiceClien // (undocumented) savedSearches: SavedSearches; // (undocumented) - schema: Schema; + schemaOperations: SchemaOperations; // (undocumented) sharedKeysOperations: SharedKeysOperations; // (undocumented) @@ -879,6 +973,9 @@ export interface PrivateLinkScopedResource { scopeId?: string; } +// @public +export type ProvisioningStateEnum = string; + // @public export type ProxyResource = Resource & {}; @@ -895,6 +992,19 @@ export interface Resource { readonly type?: string; } +// @public +export interface RestoredLogs { + endRestoreTime?: Date; + readonly sourceTable?: string; + startRestoreTime?: Date; +} + +// @public +export interface ResultStatistics { + readonly ingestedRecords?: number; + readonly progress?: number; +} + // @public export type SavedSearch = ProxyResource & { etag?: string; @@ -947,7 +1057,19 @@ export interface SavedSearchesListResult { // @public export interface Schema { - get(resourceGroupName: string, workspaceName: string, options?: SchemaGetOptionalParams): Promise; + readonly categories?: string[]; + columns?: Column[]; + description?: string; + displayName?: string; + readonly labels?: string[]; + name?: string; + readonly restoredLogs?: RestoredLogs; + readonly searchResults?: SearchResults; + readonly solutions?: string[]; + readonly source?: SourceEnum; + readonly standardColumns?: Column[]; + readonly tableSubType?: TableSubTypeEnum; + readonly tableType?: TableTypeEnum; } // @public @@ -957,6 +1079,11 @@ export interface SchemaGetOptionalParams extends coreClient.OperationOptions { // @public export type SchemaGetResponse = SearchGetSchemaResponse; +// @public +export interface SchemaOperations { + get(resourceGroupName: string, workspaceName: string, options?: SchemaGetOptionalParams): Promise; +} + // @public export interface SearchGetSchemaResponse { metadata?: SearchMetadata; @@ -990,6 +1117,16 @@ export interface SearchMetadataSchema { version?: number; } +// @public +export interface SearchResults { + description?: string; + endSearchTime?: Date; + limit?: number; + query?: string; + readonly sourceTable?: string; + startSearchTime?: Date; +} + // @public export interface SearchSchemaValue { displayName?: string; @@ -1039,6 +1176,9 @@ export type SharedKeysRegenerateResponse = SharedKeys; // @public export type SkuNameEnum = string; +// @public +export type SourceEnum = string; + // @public export interface StorageAccount { id: string; @@ -1112,28 +1252,60 @@ export interface StorageInsightStatus { state: StorageInsightState; } +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + // @public export type Table = ProxyResource & { + readonly systemData?: SystemData; retentionInDays?: number; - readonly isTroubleshootingAllowed?: boolean; - isTroubleshootEnabled?: boolean; - readonly lastTroubleshootDate?: string; + totalRetentionInDays?: number; + readonly archiveRetentionInDays?: number; + searchResults?: SearchResults; + restoredLogs?: RestoredLogs; + resultStatistics?: ResultStatistics; + plan?: TablePlanEnum; + readonly lastPlanModifiedDate?: string; + schema?: Schema; + readonly provisioningState?: ProvisioningStateEnum; }; +// @public +export type TablePlanEnum = string; + // @public export interface Tables { - create(resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, options?: TablesCreateOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, options?: TablesCreateOrUpdateOptionalParams): Promise, TablesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, options?: TablesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, tableName: string, options?: TablesDeleteOptionalParams): Promise, void>>; + 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; get(resourceGroupName: string, workspaceName: string, tableName: string, options?: TablesGetOptionalParams): Promise; listByWorkspace(resourceGroupName: string, workspaceName: string, options?: TablesListByWorkspaceOptionalParams): PagedAsyncIterableIterator; - update(resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, options?: TablesUpdateOptionalParams): Promise; } // @public -export interface TablesCreateOptionalParams extends coreClient.OperationOptions { +export interface TablesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type TablesCreateResponse = Table; +export type TablesCreateOrUpdateResponse = Table; + +// @public +export interface TablesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public export interface TablesGetOptionalParams extends coreClient.OperationOptions { @@ -1154,13 +1326,21 @@ export interface TablesListResult { value?: Table[]; } +// @public +export type TableSubTypeEnum = string; + // @public export interface TablesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public export type TablesUpdateResponse = Table; +// @public +export type TableTypeEnum = string; + // @public export interface Tag { name: string; @@ -1208,6 +1388,7 @@ export interface UserIdentityProperties { // @public export type Workspace = TrackedResource & { + readonly systemData?: SystemData; eTag?: string; provisioningState?: WorkspaceEntityStatus; readonly customerId?: string; @@ -1221,6 +1402,7 @@ export type Workspace = TrackedResource & { forceCmkForQuery?: boolean; readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; features?: WorkspaceFeatures; + defaultDataCollectionRuleResourceId?: string; }; // @public @@ -1275,6 +1457,7 @@ export type WorkspacePatch = AzureEntityResource & { forceCmkForQuery?: boolean; readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; features?: WorkspaceFeatures; + defaultDataCollectionRuleResourceId?: string; }; // @public diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts index 1c2538c724e2..4564ddd50cc5 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts @@ -8,29 +8,35 @@ import * as coreClient from "@azure/core-client"; -/** 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 */ -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. - */ - readonly id?: string; - /** - * The name of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; +/** Result of the request to list solution operations. */ +export interface OperationListResult { + /** List of solution operations supported by the OperationsManagement resource provider. */ + value?: Operation[]; /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * 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 type?: 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; } /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ @@ -82,6 +88,239 @@ export interface ErrorAdditionalInfo { readonly info?: Record; } +/** 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 last time when the sku was updated. + * 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 { + /** 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; + /** + * The status of data ingestion for this workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + 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; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +/** 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. + */ + readonly id?: string; + /** + * The name of the resource + * 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. + */ + readonly type?: string; +} + +/** The list tables operation response. */ +export interface TablesListResult { + /** A list of data tables. */ + value?: Table[]; +} + +/** Parameters of the search job that initiated this table. */ +export interface SearchResults { + /** Search job query. */ + query?: string; + /** Search results table's Description. */ + description?: string; + /** Limit the search job to return up to specified number of rows. */ + limit?: number; + /** The timestamp to start the search from (UTC) */ + startSearchTime?: Date; + /** The timestamp to end the search by (UTC) */ + endSearchTime?: Date; + /** + * The table to search data from. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sourceTable?: string; +} + +/** Restore parameters. */ +export interface RestoredLogs { + /** The timestamp to start the restore from (UTC). */ + startRestoreTime?: Date; + /** The timestamp to end the restore by (UTC). */ + endRestoreTime?: Date; + /** + * The table to restore data from. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sourceTable?: string; +} + +/** Search job execution statistics. */ +export interface ResultStatistics { + /** + * Search job completion percentage. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly progress?: number; + /** + * The number of rows that were returned by the search job. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ingestedRecords?: number; +} + +/** Table's schema. */ +export interface Schema { + /** Table name. */ + name?: string; + /** Table display name. */ + displayName?: string; + /** Table description. */ + description?: string; + /** A list of table custom columns. */ + columns?: Column[]; + /** + * A list of table standard columns. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly standardColumns?: Column[]; + /** + * Table category. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly categories?: string[]; + /** + * Table labels. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly labels?: string[]; + /** + * Table's creator. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly source?: SourceEnum; + /** + * Table's creator. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tableType?: TableTypeEnum; + /** + * The subtype describes what APIs can be used to interact with the table, and what features are available against it. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tableSubType?: TableSubTypeEnum; + /** + * List of solutions the table is affiliated with + * 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. */ +export interface Column { + /** Column name. */ + name?: string; + /** Column data type. */ + type?: ColumnTypeEnum; + /** Column data type logical hint. */ + dataTypeHint?: ColumnDataTypeHintEnum; + /** Column display name. */ + displayName?: string; + /** Column description. */ + description?: string; + /** + * Is displayed by default. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isDefaultDisplay?: boolean; + /** + * Is column hidden. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isHidden?: boolean; +} + +/** Result of the request to list data exports. */ +export interface DataExportListResult { + /** List of data export instances within a workspace.. */ + value?: DataExport[]; +} + /** The list data source by workspace operation response. */ export interface DataSourceListResult { /** A list of datasources. */ @@ -389,43 +628,6 @@ export interface WorkspacePurgeStatusResponse { 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[]; - /** - * 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; -} - -/** 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 tables operation response. */ -export interface TablesListResult { - /** A list of data tables. */ - value?: Table[]; -} - /** The list clusters operation response. */ export interface ClusterListResult { /** The link used to get the next page of recommendations. */ @@ -538,74 +740,12 @@ export interface ClusterPatch { billingType?: BillingType; } -/** The list workspaces operation response. */ -export interface WorkspaceListResult { - /** A list of workspaces. */ - value?: Workspace[]; +/** DataSource filter. Right now, only filter by kind is supported. */ +export interface DataSourceFilter { + /** The kind of the DataSource. */ + kind?: DataSourceKind; } -/** 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 last time when the sku was updated. - * 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 { - /** 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; - /** - * The status of data ingestion for this workspace. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - 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. */ @@ -623,6 +763,180 @@ export type AzureEntityResource = Resource & { readonly etag?: string; }; +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export type ProxyResource = Resource & {}; + +/** The top level Workspace resource container. */ +export type Workspace = TrackedResource & { + /** + * 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?: SystemData; + /** The ETag of the workspace. */ + eTag?: string; + /** The provisioning state of the workspace. */ + provisioningState?: WorkspaceEntityStatus; + /** + * 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. + */ + readonly createdDate?: string; + /** + * Workspace modification date. + * 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. */ + 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; + /** + * List of linked private link scope resources. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; + /** Workspace features. */ + 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 Log Analytics cluster resource container. */ +export type Cluster = TrackedResource & { + /** The identity of the resource. */ + identity?: Identity; + /** The sku properties. */ + sku?: ClusterSku; + /** + * 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. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + 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 last time the cluster was updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastModifiedDate?: string; + /** + * The cluster creation time + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + 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 WorkspacePatch = AzureEntityResource & { + /** Resource tags. Optional. */ + tags?: { [propertyName: string]: string }; + /** The provisioning state of the workspace. */ + provisioningState?: WorkspaceEntityStatus; + /** + * 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. + */ + readonly createdDate?: string; + /** + * Workspace modification date. + * 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. */ + 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; + /** + * List of linked private link scope resources. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; + /** Workspace features. */ + 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; +}; + +/** Workspace data table definition. */ +export type Table = 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. + */ + readonly systemData?: SystemData; + /** The data table data retention in days, between 4 and 730. Setting this property to null will default to the workspace retention. */ + retentionInDays?: number; + /** The table data total retention in days, between 4 and 2555. Setting this property to null will default to table retention. */ + totalRetentionInDays?: number; + /** + * The table data archive retention in days. Calculated as (totalRetentionInDays-retentionInDays) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly archiveRetentionInDays?: number; + /** Parameters of the search job that initiated this table. */ + searchResults?: SearchResults; + /** Parameters of the restore operation that initiated this table. */ + restoredLogs?: RestoredLogs; + /** Search job execution statistics. */ + resultStatistics?: ResultStatistics; + /** The table plan. */ + plan?: TablePlanEnum; + /** + * The timestamp that table plan was last modified (UTC). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastPlanModifiedDate?: string; + /** Table schema. */ + schema?: Schema; + /** + * Table's current provisioning state. If set to 'updating', indicates a resource lock due to ongoing operation, forbidding any update to the table until the ongoing operation is concluded. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningStateEnum; +}; + /** The top level data export resource container. */ export type DataExport = ProxyResource & { /** The data export rule ID. */ @@ -720,154 +1034,288 @@ export type SavedSearch = ProxyResource & { tags?: Tag[]; }; -/** Workspace data table definition. */ -export type Table = ProxyResource & { - /** The data table data retention in days, between 7 and 730. Setting this property to null will default to the workspace retention. */ - retentionInDays?: number; - /** - * Specifies if IsTroubleshootingEnabled property can be set for this table. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isTroubleshootingAllowed?: boolean; - /** Enable or disable troubleshoot for this table. */ - isTroubleshootEnabled?: boolean; - /** - * Last time when troubleshooting was set for this table. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastTroubleshootDate?: string; -}; +/** Defines headers for WorkspacePurge_purge operation. */ +export interface WorkspacePurgePurgeHeaders { + /** The location from which to request the operation status. */ + xMsStatusLocation?: 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; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + User = "User", + Application = "Application", + ManagedIdentity = "ManagedIdentity", + Key = "Key" +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + +/** Known values of {@link TablePlanEnum} that the service accepts. */ +export enum KnownTablePlanEnum { + /** Basic - logs that are adjusted to support high volume / low value verbose logs. */ + Basic = "Basic", + /** Analytics - logs that allow monitoring and analytics. */ + Analytics = "Analytics" +} + +/** + * Defines values for TablePlanEnum. \ + * {@link KnownTablePlanEnum} can be used interchangeably with TablePlanEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Basic**: Basic - logs that are adjusted to support high volume \/ low value verbose logs. \ + * **Analytics**: Analytics - logs that allow monitoring and analytics. + */ +export type TablePlanEnum = string; + +/** Known values of {@link ColumnTypeEnum} that the service accepts. */ +export enum KnownColumnTypeEnum { + String = "string", + Int = "int", + Long = "long", + Real = "real", + Boolean = "boolean", + DateTime = "dateTime", + Guid = "guid", + Dynamic = "dynamic" +} + +/** + * Defines values for ColumnTypeEnum. \ + * {@link KnownColumnTypeEnum} can be used interchangeably with ColumnTypeEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **string** \ + * **int** \ + * **long** \ + * **real** \ + * **boolean** \ + * **dateTime** \ + * **guid** \ + * **dynamic** + */ +export type ColumnTypeEnum = string; + +/** Known values of {@link ColumnDataTypeHintEnum} that the service accepts. */ +export enum KnownColumnDataTypeHintEnum { + /** A string that matches the pattern of a URI, for example, scheme://username:password@host:1234/this/is/a/path?k1=v1&k2=v2#fragment */ + Uri = "uri", + /** A standard 128-bit GUID following the standard shape, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx */ + Guid = "guid", + /** An Azure Resource Model (ARM) path: /subscriptions/{...}/resourceGroups/{...}/providers/Microsoft.{...}/{...}/{...}/{...}... */ + ArmPath = "armPath", + /** A standard V4/V6 ip address following the standard shape, x.x.x.x/y:y:y:y:y:y:y:y */ + Ip = "ip" +} + +/** + * Defines values for ColumnDataTypeHintEnum. \ + * {@link KnownColumnDataTypeHintEnum} can be used interchangeably with ColumnDataTypeHintEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **uri**: A string that matches the pattern of a URI, for example, scheme:\/\/username:password@host:1234\/this\/is\/a\/path?k1=v1&k2=v2#fragment \ + * **guid**: A standard 128-bit GUID following the standard shape, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \ + * **armPath**: An Azure Resource Model (ARM) path: \/subscriptions\/{...}\/resourceGroups\/{...}\/providers\/Microsoft.{...}\/{...}\/{...}\/{...}... \ + * **ip**: A standard V4\/V6 ip address following the standard shape, x.x.x.x\/y:y:y:y:y:y:y:y + */ +export type ColumnDataTypeHintEnum = string; + +/** Known values of {@link SourceEnum} that the service accepts. */ +export enum KnownSourceEnum { + /** Tables provisioned by the system, as collected via Diagnostic Settings, the Agents, or any other standard data collection means. */ + Microsoft = "microsoft", + /** Tables created by the owner of the Workspace, and only found in this Workspace. */ + Customer = "customer" +} + +/** + * Defines values for SourceEnum. \ + * {@link KnownSourceEnum} can be used interchangeably with SourceEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **microsoft**: Tables provisioned by the system, as collected via Diagnostic Settings, the Agents, or any other standard data collection means. \ + * **customer**: Tables created by the owner of the Workspace, and only found in this Workspace. + */ +export type SourceEnum = string; -/** 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 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. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - 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 last time the cluster was updated. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastModifiedDate?: string; - /** - * The cluster creation time - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly createdDate?: string; - /** The list of Log Analytics workspaces associated with the cluster */ - associatedWorkspaces?: AssociatedWorkspace[]; - /** Additional properties for capacity reservation */ - capacityReservationProperties?: CapacityReservationProperties; -}; +/** Known values of {@link TableTypeEnum} that the service accepts. */ +export enum KnownTableTypeEnum { + /** Standard data collected by Azure Monitor. */ + Microsoft = "Microsoft", + /** Custom log table. */ + CustomLog = "CustomLog", + /** Restored data. */ + RestoredLogs = "RestoredLogs", + /** Data collected by a search job. */ + SearchResults = "SearchResults" +} -/** 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; - /** - * 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. - */ - readonly createdDate?: string; - /** - * Workspace modification date. - * 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. */ - 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; - /** - * List of linked private link scope resources. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; - /** Workspace features. */ - features?: WorkspaceFeatures; -}; +/** + * Defines values for TableTypeEnum. \ + * {@link KnownTableTypeEnum} can be used interchangeably with TableTypeEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Microsoft**: Standard data collected by Azure Monitor. \ + * **CustomLog**: Custom log table. \ + * **RestoredLogs**: Restored data. \ + * **SearchResults**: Data collected by a search job. + */ +export type TableTypeEnum = string; -/** The top level Workspace resource container. */ -export type WorkspacePatch = AzureEntityResource & { - /** Resource tags. Optional. */ - tags?: { [propertyName: string]: string }; - /** The provisioning state of the workspace. */ - provisioningState?: WorkspaceEntityStatus; - /** - * 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. - */ - readonly createdDate?: string; - /** - * Workspace modification date. - * 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. */ - 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; - /** - * List of linked private link scope resources. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; - /** Workspace features. */ - features?: WorkspaceFeatures; -}; +/** Known values of {@link TableSubTypeEnum} that the service accepts. */ +export enum KnownTableSubTypeEnum { + /** The default subtype with which built-in tables are created. */ + Any = "Any", + /** Indicates a table created through the Data Collector API or with the custom logs feature of the MMA agent, or any table against which Custom Fields were created. */ + Classic = "Classic", + /** A table eligible to have data sent into it via any of the means supported by Data Collection Rules: the Data Collection Endpoint API, ingestion-time transformations, or any other mechanism provided by Data Collection Rules */ + DataCollectionRuleBased = "DataCollectionRuleBased" +} -/** Defines headers for WorkspacePurge_purge operation. */ -export interface WorkspacePurgePurgeHeaders { - /** The location from which to request the operation status. */ - xMsStatusLocation?: string; +/** + * Defines values for TableSubTypeEnum. \ + * {@link KnownTableSubTypeEnum} can be used interchangeably with TableSubTypeEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Any**: The default subtype with which built-in tables are created. \ + * **Classic**: Indicates a table created through the Data Collector API or with the custom logs feature of the MMA agent, or any table against which Custom Fields were created. \ + * **DataCollectionRuleBased**: A table eligible to have data sent into it via any of the means supported by Data Collection Rules: the Data Collection Endpoint API, ingestion-time transformations, or any other mechanism provided by Data Collection Rules + */ +export type TableSubTypeEnum = string; + +/** Known values of {@link ProvisioningStateEnum} that the service accepts. */ +export enum KnownProvisioningStateEnum { + /** Table schema is still being built and updated, table is currently locked for any changes till the procedure is done. */ + Updating = "Updating", + /** Table schema is stable and without changes, table data is being updated. */ + InProgress = "InProgress", + /** Table state is stable and without changes, table is unlocked and open for new updates. */ + Succeeded = "Succeeded" } +/** + * Defines values for ProvisioningStateEnum. \ + * {@link KnownProvisioningStateEnum} can be used interchangeably with ProvisioningStateEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Updating**: Table schema is still being built and updated, table is currently locked for any changes till the procedure is done. \ + * **InProgress**: Table schema is stable and without changes, table data is being updated. \ + * **Succeeded**: Table state is stable and without changes, table is unlocked and open for new updates. + */ +export type ProvisioningStateEnum = string; + /** Known values of {@link Type} that the service accepts. */ export enum KnownType { StorageAccount = "StorageAccount", @@ -1091,134 +1539,26 @@ export enum KnownClusterEntityStatus { * **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" + * **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 PublicNetworkAccessType. \ - * {@link KnownPublicNetworkAccessType} can be used interchangeably with PublicNetworkAccessType, + * 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 - * **Enabled**: Enables connectivity to Log Analytics through public DNS. \ - * **Disabled**: Disables public connectivity to Log Analytics through public DNS. + * **Cluster** \ + * **Workspaces** */ -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; +export type BillingType = string; /** Defines values for CapacityReservationLevel. */ export type CapacityReservationLevel = | 100 @@ -1229,6 +1569,137 @@ export type CapacityReservationLevel = | 1000 | 2000 | 5000; +/** 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; + +/** Optional parameters. */ +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; + +/** Optional parameters. */ +export interface OperationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; + +/** Optional parameters. */ +export interface WorkspacesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type WorkspacesListResponse = WorkspaceListResult; + +/** Optional parameters. */ +export interface WorkspacesListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; + +/** 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 createOrUpdate operation. */ +export type WorkspacesCreateOrUpdateResponse = Workspace; + +/** 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; +} + +/** Optional parameters. */ +export interface WorkspacesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WorkspacesGetResponse = Workspace; + +/** Optional parameters. */ +export interface WorkspacesUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type WorkspacesUpdateResponse = Workspace; + +/** Optional parameters. */ +export interface DeletedWorkspacesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type DeletedWorkspacesListResponse = WorkspaceListResult; + +/** Optional parameters. */ +export interface DeletedWorkspacesListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type DeletedWorkspacesListByResourceGroupResponse = WorkspaceListResult; + +/** Optional parameters. */ +export interface TablesListByWorkspaceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByWorkspace operation. */ +export type TablesListByWorkspaceResponse = TablesListResult; + +/** Optional parameters. */ +export interface TablesCreateOrUpdateOptionalParams + 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 createOrUpdate operation. */ +export type TablesCreateOrUpdateResponse = Table; + +/** Optional parameters. */ +export interface TablesUpdateOptionalParams + 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 TablesUpdateResponse = Table; + +/** Optional parameters. */ +export interface TablesGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type TablesGetResponse = Table; + +/** Optional parameters. */ +export interface TablesDeleteOptionalParams + 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 DataExportsListByWorkspaceOptionalParams @@ -1494,47 +1965,6 @@ export interface WorkspacePurgeGetPurgeStatusOptionalParams /** Contains response data for the getPurgeStatus operation. */ export type WorkspacePurgeGetPurgeStatusResponse = WorkspacePurgeStatusResponse; -/** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; - -/** Optional parameters. */ -export interface OperationsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; - -/** Optional parameters. */ -export interface TablesListByWorkspaceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByWorkspace operation. */ -export type TablesListByWorkspaceResponse = TablesListResult; - -/** Optional parameters. */ -export interface TablesUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type TablesUpdateResponse = Table; - -/** Optional parameters. */ -export interface TablesCreateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the create operation. */ -export type TablesCreateResponse = Table; - -/** Optional parameters. */ -export interface TablesGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type TablesGetResponse = Table; - /** Optional parameters. */ export interface ClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions {} @@ -1603,71 +2033,6 @@ export interface ClustersListNextOptionalParams /** Contains response data for the listNext operation. */ export type ClustersListNextResponse = ClusterListResult; -/** Optional parameters. */ -export interface WorkspacesListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type WorkspacesListResponse = WorkspaceListResult; - -/** Optional parameters. */ -export interface WorkspacesListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; - -/** 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 createOrUpdate operation. */ -export type WorkspacesCreateOrUpdateResponse = Workspace; - -/** 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; -} - -/** Optional parameters. */ -export interface WorkspacesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type WorkspacesGetResponse = Workspace; - -/** Optional parameters. */ -export interface WorkspacesUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type WorkspacesUpdateResponse = Workspace; - -/** Optional parameters. */ -export interface DeletedWorkspacesListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type DeletedWorkspacesListResponse = WorkspaceListResult; - -/** Optional parameters. */ -export interface DeletedWorkspacesListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type DeletedWorkspacesListByResourceGroupResponse = WorkspaceListResult; - /** 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 1520ed6514cd..b6f3a0c5f7eb 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts @@ -8,10 +8,10 @@ import * as coreClient from "@azure/core-client"; -export const DataExportListResult: coreClient.CompositeMapper = { +export const OperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataExportListResult", + className: "OperationListResult", modelProperties: { value: { serializedName: "value", @@ -20,37 +20,69 @@ export const DataExportListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataExport" + className: "Operation" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const Resource: coreClient.CompositeMapper = { +export const Operation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "Operation", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - name: { - serializedName: "name", - readOnly: true, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + } + } + } +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", type: { name: "String" } @@ -155,10 +187,10 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { } }; -export const DataSourceListResult: coreClient.CompositeMapper = { +export const WorkspaceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataSourceListResult", + className: "WorkspaceListResult", modelProperties: { value: { serializedName: "value", @@ -167,40 +199,37 @@ export const DataSourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataSource" + className: "Workspace" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const IntelligencePack: coreClient.CompositeMapper = { +export const WorkspaceSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IntelligencePack", + className: "WorkspaceSku", modelProperties: { name: { serializedName: "name", + required: true, type: { name: "String" } }, - enabled: { - serializedName: "enabled", + capacityReservationLevel: { + serializedName: "capacityReservationLevel", type: { - name: "Boolean" + name: "Enum", + allowedValues: [100, 200, 300, 400, 500, 1000, 2000, 5000] } }, - displayName: { - serializedName: "displayName", + lastSkuUpdate: { + serializedName: "lastSkuUpdate", + readOnly: true, type: { name: "String" } @@ -209,185 +238,168 @@ export const IntelligencePack: coreClient.CompositeMapper = { } }; -export const LinkedServiceListResult: coreClient.CompositeMapper = { +export const WorkspaceCapping: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LinkedServiceListResult", + className: "WorkspaceCapping", modelProperties: { - value: { - serializedName: "value", + dailyQuotaGb: { + serializedName: "dailyQuotaGb", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LinkedService" - } - } + name: "Number" } - } - } - } -}; - -export const LinkedStorageAccountsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LinkedStorageAccountsListResult", - modelProperties: { - value: { - serializedName: "value", + }, + quotaNextResetTime: { + serializedName: "quotaNextResetTime", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LinkedStorageAccountsResource" - } - } + name: "String" + } + }, + dataIngestionStatus: { + serializedName: "dataIngestionStatus", + readOnly: true, + type: { + name: "String" } } } } }; -export const WorkspaceListManagementGroupsResult: coreClient.CompositeMapper = { +export const PrivateLinkScopedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceListManagementGroupsResult", + className: "PrivateLinkScopedResource", modelProperties: { - value: { - serializedName: "value", + resourceId: { + serializedName: "resourceId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagementGroup" - } - } + name: "String" + } + }, + scopeId: { + serializedName: "scopeId", + type: { + name: "String" } } } } }; -export const ManagementGroup: coreClient.CompositeMapper = { +export const WorkspaceFeatures: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagementGroup", + className: "WorkspaceFeatures", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - serverCount: { - serializedName: "properties.serverCount", - type: { - name: "Number" - } - }, - isGateway: { - serializedName: "properties.isGateway", + enableDataExport: { + serializedName: "enableDataExport", + nullable: true, type: { name: "Boolean" } }, - name: { - serializedName: "properties.name", - type: { - name: "String" - } - }, - id: { - serializedName: "properties.id", - type: { - name: "String" - } - }, - created: { - serializedName: "properties.created", + immediatePurgeDataOn30Days: { + serializedName: "immediatePurgeDataOn30Days", + nullable: true, type: { - name: "DateTime" + name: "Boolean" } }, - dataReceived: { - serializedName: "properties.dataReceived", + enableLogAccessUsingOnlyResourcePermissions: { + serializedName: "enableLogAccessUsingOnlyResourcePermissions", + nullable: true, type: { - name: "DateTime" + name: "Boolean" } }, - version: { - serializedName: "properties.version", + clusterResourceId: { + serializedName: "clusterResourceId", + nullable: true, type: { name: "String" } }, - sku: { - serializedName: "properties.sku", + disableLocalAuth: { + serializedName: "disableLocalAuth", + nullable: true, type: { - name: "String" + name: "Boolean" } } } } }; -export const OperationStatus: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationStatus", + className: "SystemData", modelProperties: { - id: { - serializedName: "id", + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - name: { - serializedName: "name", + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - startTime: { - serializedName: "startTime", + createdAt: { + serializedName: "createdAt", type: { - name: "String" + name: "DateTime" } }, - endTime: { - serializedName: "endTime", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - status: { - serializedName: "status", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } }, - error: { - serializedName: "error", + lastModifiedAt: { + serializedName: "lastModifiedAt", type: { - name: "Composite", - className: "ErrorResponse" + name: "DateTime" } } } } }; -export const SharedKeys: coreClient.CompositeMapper = { +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedKeys", + className: "Resource", modelProperties: { - primarySharedKey: { - serializedName: "primarySharedKey", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - secondarySharedKey: { - serializedName: "secondarySharedKey", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } @@ -396,10 +408,10 @@ export const SharedKeys: coreClient.CompositeMapper = { } }; -export const WorkspaceListUsagesResult: coreClient.CompositeMapper = { +export const TablesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceListUsagesResult", + className: "TablesListResult", modelProperties: { value: { serializedName: "value", @@ -408,7 +420,7 @@ export const WorkspaceListUsagesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UsageMetric" + className: "Table" } } } @@ -417,44 +429,44 @@ export const WorkspaceListUsagesResult: coreClient.CompositeMapper = { } }; -export const UsageMetric: coreClient.CompositeMapper = { +export const SearchResults: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageMetric", + className: "SearchResults", modelProperties: { - name: { - serializedName: "name", + query: { + serializedName: "query", type: { - name: "Composite", - className: "MetricName" + name: "String" } }, - unit: { - serializedName: "unit", + description: { + serializedName: "description", type: { name: "String" } }, - currentValue: { - serializedName: "currentValue", + limit: { + serializedName: "limit", type: { name: "Number" } }, - limit: { - serializedName: "limit", + startSearchTime: { + serializedName: "startSearchTime", type: { - name: "Number" + name: "DateTime" } }, - nextResetTime: { - serializedName: "nextResetTime", + endSearchTime: { + serializedName: "endSearchTime", type: { name: "DateTime" } }, - quotaPeriod: { - serializedName: "quotaPeriod", + sourceTable: { + serializedName: "sourceTable", + readOnly: true, type: { name: "String" } @@ -463,19 +475,26 @@ export const UsageMetric: coreClient.CompositeMapper = { } }; -export const MetricName: coreClient.CompositeMapper = { +export const RestoredLogs: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricName", + className: "RestoredLogs", modelProperties: { - value: { - serializedName: "value", + startRestoreTime: { + serializedName: "startRestoreTime", type: { - name: "String" + name: "DateTime" } }, - localizedValue: { - serializedName: "localizedValue", + endRestoreTime: { + serializedName: "endRestoreTime", + type: { + name: "DateTime" + } + }, + sourceTable: { + serializedName: "sourceTable", + readOnly: true, type: { name: "String" } @@ -484,37 +503,45 @@ export const MetricName: coreClient.CompositeMapper = { } }; -export const StorageAccount: coreClient.CompositeMapper = { +export const ResultStatistics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageAccount", + className: "ResultStatistics", modelProperties: { - id: { - serializedName: "id", - required: true, + progress: { + constraints: { + MultipleOf: 0.01 + }, + serializedName: "progress", + readOnly: true, type: { - name: "String" + name: "Number" } }, - key: { - serializedName: "key", - required: true, + ingestedRecords: { + serializedName: "ingestedRecords", + readOnly: true, type: { - name: "String" + name: "Number" } } } } }; -export const StorageInsightStatus: coreClient.CompositeMapper = { +export const Schema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageInsightStatus", + className: "Schema", modelProperties: { - state: { - serializedName: "state", - required: true, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", type: { name: "String" } @@ -524,152 +551,165 @@ export const StorageInsightStatus: coreClient.CompositeMapper = { type: { name: "String" } - } - } - } -}; - -export const StorageInsightListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageInsightListResult", - modelProperties: { - value: { - serializedName: "value", + }, + columns: { + serializedName: "columns", type: { name: "Sequence", element: { type: { name: "Composite", - className: "StorageInsight" + className: "Column" } } } }, - odataNextLink: { - serializedName: "@odata\\.nextLink", + standardColumns: { + serializedName: "standardColumns", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Column" + } + } + } + }, + categories: { + serializedName: "categories", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + labels: { + serializedName: "labels", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + source: { + serializedName: "source", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const Tag: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Tag", - modelProperties: { - name: { - serializedName: "name", - required: true, + }, + tableType: { + serializedName: "tableType", + readOnly: true, type: { name: "String" } }, - value: { - serializedName: "value", - required: true, + tableSubType: { + serializedName: "tableSubType", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SavedSearchesListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SavedSearchesListResult", - modelProperties: { - value: { - serializedName: "value", + }, + solutions: { + serializedName: "solutions", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SavedSearch" + name: "String" } } } + }, + searchResults: { + serializedName: "searchResults", + type: { + name: "Composite", + className: "SearchResults" + } + }, + restoredLogs: { + serializedName: "restoredLogs", + type: { + name: "Composite", + className: "RestoredLogs" + } } } } }; -export const AvailableServiceTier: coreClient.CompositeMapper = { +export const Column: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailableServiceTier", + className: "Column", modelProperties: { - serviceTier: { - serializedName: "serviceTier", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - enabled: { - serializedName: "enabled", - readOnly: true, + type: { + serializedName: "type", type: { - name: "Boolean" + name: "String" } }, - minimumRetention: { - serializedName: "minimumRetention", - readOnly: true, + dataTypeHint: { + serializedName: "dataTypeHint", type: { - name: "Number" + name: "String" } }, - maximumRetention: { - serializedName: "maximumRetention", - readOnly: true, + displayName: { + serializedName: "displayName", type: { - name: "Number" + name: "String" } }, - defaultRetention: { - serializedName: "defaultRetention", - readOnly: true, + description: { + serializedName: "description", type: { - name: "Number" + name: "String" } }, - capacityReservationLevel: { - serializedName: "capacityReservationLevel", + isDefaultDisplay: { + serializedName: "isDefaultDisplay", readOnly: true, type: { - name: "Number" + name: "Boolean" } }, - lastSkuUpdate: { - serializedName: "lastSkuUpdate", + isHidden: { + serializedName: "isHidden", readOnly: true, type: { - name: "String" + name: "Boolean" } } } } }; -export const SearchGetSchemaResponse: coreClient.CompositeMapper = { +export const DataExportListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SearchGetSchemaResponse", + className: "DataExportListResult", modelProperties: { - metadata: { - serializedName: "metadata", - type: { - name: "Composite", - className: "SearchMetadata" - } - }, value: { serializedName: "value", type: { @@ -677,7 +717,7 @@ export const SearchGetSchemaResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchSchemaValue" + className: "DataExport" } } } @@ -686,165 +726,239 @@ export const SearchGetSchemaResponse: coreClient.CompositeMapper = { } }; -export const SearchMetadata: coreClient.CompositeMapper = { +export const DataSourceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SearchMetadata", + className: "DataSourceListResult", modelProperties: { - searchId: { - serializedName: "requestId", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataSource" + } + } } }, - resultType: { - serializedName: "resultType", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - total: { - serializedName: "total", + } + } + } +}; + +export const IntelligencePack: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IntelligencePack", + modelProperties: { + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - top: { - serializedName: "top", + enabled: { + serializedName: "enabled", type: { - name: "Number" + name: "Boolean" } }, - id: { - serializedName: "id", + displayName: { + serializedName: "displayName", type: { name: "String" } - }, - coreSummaries: { - serializedName: "coreSummaries", + } + } + } +}; + +export const LinkedServiceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LinkedServiceListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "CoreSummary" + className: "LinkedService" } } } - }, - status: { - serializedName: "status", - type: { - name: "String" - } - }, - startTime: { - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - lastUpdated: { - serializedName: "lastUpdated", - type: { - name: "DateTime" - } - }, - eTag: { - serializedName: "eTag", + } + } + } +}; + +export const LinkedStorageAccountsListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LinkedStorageAccountsListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LinkedStorageAccountsResource" + } + } } - }, - sort: { - serializedName: "sort", + } + } + } +}; + +export const WorkspaceListManagementGroupsResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceListManagementGroupsResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SearchSort" + className: "ManagementGroup" } } } - }, - requestTime: { - serializedName: "requestTime", + } + } + } +}; + +export const ManagementGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagementGroup", + modelProperties: { + serverCount: { + serializedName: "properties.serverCount", type: { name: "Number" } }, - aggregatedValueField: { - serializedName: "aggregatedValueField", + isGateway: { + serializedName: "properties.isGateway", + type: { + name: "Boolean" + } + }, + name: { + serializedName: "properties.name", type: { name: "String" } }, - aggregatedGroupingFields: { - serializedName: "aggregatedGroupingFields", + id: { + serializedName: "properties.id", type: { name: "String" } }, - sum: { - serializedName: "sum", + created: { + serializedName: "properties.created", type: { - name: "Number" + name: "DateTime" } }, - max: { - serializedName: "max", + dataReceived: { + serializedName: "properties.dataReceived", type: { - name: "Number" + name: "DateTime" } }, - schema: { - serializedName: "schema", + version: { + serializedName: "properties.version", type: { - name: "Composite", - className: "SearchMetadataSchema" + name: "String" + } + }, + sku: { + serializedName: "properties.sku", + type: { + name: "String" } } } } }; -export const CoreSummary: coreClient.CompositeMapper = { +export const OperationStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CoreSummary", + className: "OperationStatus", modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "String" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "String" + } + }, status: { serializedName: "status", type: { name: "String" } }, - numberOfDocuments: { - serializedName: "numberOfDocuments", - required: true, + error: { + serializedName: "error", type: { - name: "Number" + name: "Composite", + className: "ErrorResponse" } } } } }; -export const SearchSort: coreClient.CompositeMapper = { +export const SharedKeys: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SearchSort", + className: "SharedKeys", modelProperties: { - name: { - serializedName: "name", + primarySharedKey: { + serializedName: "primarySharedKey", type: { name: "String" } }, - order: { - serializedName: "order", + secondarySharedKey: { + serializedName: "secondarySharedKey", type: { name: "String" } @@ -853,140 +967,109 @@ export const SearchSort: coreClient.CompositeMapper = { } }; -export const SearchMetadataSchema: coreClient.CompositeMapper = { +export const WorkspaceListUsagesResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SearchMetadataSchema", + className: "WorkspaceListUsagesResult", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - version: { - serializedName: "version", + value: { + serializedName: "value", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UsageMetric" + } + } } } } } }; -export const SearchSchemaValue: coreClient.CompositeMapper = { +export const UsageMetric: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SearchSchemaValue", + className: "UsageMetric", modelProperties: { name: { serializedName: "name", type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" + name: "Composite", + className: "MetricName" } }, - type: { - serializedName: "type", + unit: { + serializedName: "unit", type: { name: "String" } }, - indexed: { - serializedName: "indexed", - required: true, + currentValue: { + serializedName: "currentValue", type: { - name: "Boolean" + name: "Number" } }, - stored: { - serializedName: "stored", - required: true, + limit: { + serializedName: "limit", type: { - name: "Boolean" + name: "Number" } }, - facet: { - serializedName: "facet", - required: true, + nextResetTime: { + serializedName: "nextResetTime", type: { - name: "Boolean" + name: "DateTime" } }, - ownerType: { - serializedName: "ownerType", + quotaPeriod: { + serializedName: "quotaPeriod", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const WorkspacePurgeBody: coreClient.CompositeMapper = { +export const MetricName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspacePurgeBody", + className: "MetricName", modelProperties: { - table: { - serializedName: "table", - required: true, + value: { + serializedName: "value", type: { name: "String" } }, - filters: { - serializedName: "filters", - required: true, + localizedValue: { + serializedName: "localizedValue", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkspacePurgeBodyFilters" - } - } + name: "String" } } } } }; -export const WorkspacePurgeBodyFilters: coreClient.CompositeMapper = { +export const StorageAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspacePurgeBodyFilters", + className: "StorageAccount", modelProperties: { - column: { - serializedName: "column", - type: { - name: "String" - } - }, - operator: { - serializedName: "operator", + id: { + serializedName: "id", + required: true, type: { name: "String" } }, - value: { - serializedName: "value", - type: { - name: "any" - } - }, key: { serializedName: "key", + required: true, type: { name: "String" } @@ -995,30 +1078,20 @@ export const WorkspacePurgeBodyFilters: coreClient.CompositeMapper = { } }; -export const WorkspacePurgeResponse: coreClient.CompositeMapper = { +export const StorageInsightStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspacePurgeResponse", + className: "StorageInsightStatus", modelProperties: { - operationId: { - serializedName: "operationId", + state: { + serializedName: "state", required: true, type: { name: "String" } - } - } - } -}; - -export const WorkspacePurgeStatusResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkspacePurgeStatusResponse", - modelProperties: { - status: { - serializedName: "status", - required: true, + }, + description: { + serializedName: "description", type: { name: "String" } @@ -1027,10 +1100,10 @@ export const WorkspacePurgeStatusResponse: coreClient.CompositeMapper = { } }; -export const OperationListResult: coreClient.CompositeMapper = { +export const StorageInsightListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "StorageInsightListResult", modelProperties: { value: { serializedName: "value", @@ -1039,14 +1112,13 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" + className: "StorageInsight" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + odataNextLink: { + serializedName: "@odata\\.nextLink", type: { name: "String" } @@ -1055,53 +1127,21 @@ export const OperationListResult: coreClient.CompositeMapper = { } }; -export const Operation: coreClient.CompositeMapper = { +export const Tag: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "Tag", modelProperties: { name: { serializedName: "name", + required: true, type: { name: "String" } }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } - } - } - } -}; - -export const OperationDisplay: coreClient.CompositeMapper = { - 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", + value: { + serializedName: "value", + required: true, type: { name: "String" } @@ -1110,10 +1150,10 @@ export const OperationDisplay: coreClient.CompositeMapper = { } }; -export const TablesListResult: coreClient.CompositeMapper = { +export const SavedSearchesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TablesListResult", + className: "SavedSearchesListResult", modelProperties: { value: { serializedName: "value", @@ -1122,7 +1162,7 @@ export const TablesListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Table" + className: "SavedSearch" } } } @@ -1131,87 +1171,55 @@ export const TablesListResult: coreClient.CompositeMapper = { } }; -export const ClusterListResult: coreClient.CompositeMapper = { +export const AvailableServiceTier: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterListResult", + className: "AvailableServiceTier", modelProperties: { - nextLink: { - serializedName: "nextLink", + serviceTier: { + serializedName: "serviceTier", + readOnly: true, type: { name: "String" } }, - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Cluster" - } - } - } - } - } - } -}; - -export const Identity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Identity", - modelProperties: { - principalId: { - serializedName: "principalId", + enabled: { + serializedName: "enabled", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - tenantId: { - serializedName: "tenantId", + minimumRetention: { + serializedName: "minimumRetention", readOnly: true, type: { - name: "String" + name: "Number" } }, - type: { - serializedName: "type", - required: true, + maximumRetention: { + serializedName: "maximumRetention", + readOnly: true, type: { - name: "Enum", - allowedValues: ["SystemAssigned", "UserAssigned", "None"] + name: "Number" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + defaultRetention: { + serializedName: "defaultRetention", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "UserIdentityProperties" } - } + name: "Number" } - } - } - } -}; - -export const UserIdentityProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserIdentityProperties", - modelProperties: { - principalId: { - serializedName: "principalId", + }, + capacityReservationLevel: { + serializedName: "capacityReservationLevel", readOnly: true, type: { - name: "String" + name: "Number" } }, - clientId: { - serializedName: "clientId", + lastSkuUpdate: { + serializedName: "lastSkuUpdate", readOnly: true, type: { name: "String" @@ -1221,90 +1229,193 @@ export const UserIdentityProperties: coreClient.CompositeMapper = { } }; -export const ClusterSku: coreClient.CompositeMapper = { +export const SearchGetSchemaResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterSku", + className: "SearchGetSchemaResponse", modelProperties: { - capacity: { - serializedName: "capacity", + metadata: { + serializedName: "metadata", type: { - name: "Enum", - allowedValues: [500, 1000, 2000, 5000] + name: "Composite", + className: "SearchMetadata" } }, - name: { - serializedName: "name", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SearchSchemaValue" + } + } } } } } }; -export const KeyVaultProperties: coreClient.CompositeMapper = { +export const SearchMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyVaultProperties", + className: "SearchMetadata", modelProperties: { - keyVaultUri: { - serializedName: "keyVaultUri", + searchId: { + serializedName: "requestId", type: { name: "String" } }, - keyName: { - serializedName: "keyName", + resultType: { + serializedName: "resultType", type: { name: "String" } }, - keyVersion: { - serializedName: "keyVersion", + total: { + serializedName: "total", type: { - name: "String" + name: "Number" } }, - keyRsaSize: { - serializedName: "keyRsaSize", + top: { + serializedName: "top", type: { name: "Number" } - } - } + }, + id: { + serializedName: "id", + type: { + name: "String" + } + }, + coreSummaries: { + serializedName: "coreSummaries", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CoreSummary" + } + } + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + lastUpdated: { + serializedName: "lastUpdated", + type: { + name: "DateTime" + } + }, + eTag: { + serializedName: "eTag", + type: { + name: "String" + } + }, + sort: { + serializedName: "sort", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SearchSort" + } + } + } + }, + requestTime: { + serializedName: "requestTime", + type: { + name: "Number" + } + }, + aggregatedValueField: { + serializedName: "aggregatedValueField", + type: { + name: "String" + } + }, + aggregatedGroupingFields: { + serializedName: "aggregatedGroupingFields", + 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 AssociatedWorkspace: coreClient.CompositeMapper = { +export const CoreSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssociatedWorkspace", + className: "CoreSummary", modelProperties: { - workspaceId: { - serializedName: "workspaceId", - readOnly: true, + status: { + serializedName: "status", type: { name: "String" } }, - workspaceName: { - serializedName: "workspaceName", - readOnly: true, + numberOfDocuments: { + serializedName: "numberOfDocuments", + required: true, type: { - name: "String" + name: "Number" } - }, - resourceId: { - serializedName: "resourceId", - readOnly: true, + } + } + } +}; + +export const SearchSort: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SearchSort", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - associateDate: { - serializedName: "associateDate", - readOnly: true, + order: { + serializedName: "order", type: { name: "String" } @@ -1313,21 +1424,19 @@ export const AssociatedWorkspace: coreClient.CompositeMapper = { } }; -export const CapacityReservationProperties: coreClient.CompositeMapper = { +export const SearchMetadataSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CapacityReservationProperties", + className: "SearchMetadataSchema", modelProperties: { - lastSkuUpdate: { - serializedName: "lastSkuUpdate", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - minCapacity: { - serializedName: "minCapacity", - readOnly: true, + version: { + serializedName: "version", type: { name: "Number" } @@ -1336,54 +1445,170 @@ export const CapacityReservationProperties: coreClient.CompositeMapper = { } }; -export const ClusterPatch: coreClient.CompositeMapper = { +export const SearchSchemaValue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterPatch", + className: "SearchSchemaValue", 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" } }, - tags: { - serializedName: "tags", + type: { + serializedName: "type", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - keyVaultProperties: { - serializedName: "properties.keyVaultProperties", + indexed: { + serializedName: "indexed", + required: true, type: { - name: "Composite", - className: "KeyVaultProperties" + name: "Boolean" } }, - billingType: { - serializedName: "properties.billingType", + stored: { + serializedName: "stored", + required: true, + type: { + name: "Boolean" + } + }, + facet: { + serializedName: "facet", + required: true, + type: { + name: "Boolean" + } + }, + ownerType: { + serializedName: "ownerType", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const WorkspacePurgeBody: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspacePurgeBody", + modelProperties: { + table: { + serializedName: "table", + required: true, type: { name: "String" } + }, + filters: { + serializedName: "filters", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspacePurgeBodyFilters" + } + } + } } } } }; -export const WorkspaceListResult: coreClient.CompositeMapper = { +export const WorkspacePurgeBodyFilters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceListResult", + className: "WorkspacePurgeBodyFilters", modelProperties: { + column: { + serializedName: "column", + type: { + name: "String" + } + }, + operator: { + serializedName: "operator", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "any" + } + }, + key: { + serializedName: "key", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspacePurgeResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspacePurgeResponse", + modelProperties: { + operationId: { + serializedName: "operationId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const WorkspacePurgeStatusResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspacePurgeStatusResponse", + modelProperties: { + status: { + serializedName: "status", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ClusterListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterListResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", type: { @@ -1391,7 +1616,7 @@ export const WorkspaceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Workspace" + className: "Cluster" } } } @@ -1400,27 +1625,60 @@ export const WorkspaceListResult: coreClient.CompositeMapper = { } }; -export const WorkspaceSku: coreClient.CompositeMapper = { +export const Identity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceSku", + className: "Identity", modelProperties: { - name: { - serializedName: "name", - required: true, + principalId: { + serializedName: "principalId", + readOnly: true, type: { name: "String" } }, - capacityReservationLevel: { - serializedName: "capacityReservationLevel", + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + required: true, type: { name: "Enum", - allowedValues: [100, 200, 300, 400, 500, 1000, 2000, 5000] + allowedValues: ["SystemAssigned", "UserAssigned", "None"] } }, - lastSkuUpdate: { - serializedName: "lastSkuUpdate", + 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, + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", readOnly: true, type: { name: "String" @@ -1430,26 +1688,89 @@ export const WorkspaceSku: coreClient.CompositeMapper = { } }; -export const WorkspaceCapping: coreClient.CompositeMapper = { +export const ClusterSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceCapping", + className: "ClusterSku", modelProperties: { - dailyQuotaGb: { - serializedName: "dailyQuotaGb", + capacity: { + serializedName: "capacity", + type: { + name: "Enum", + allowedValues: [500, 1000, 2000, 5000] + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const KeyVaultProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyVaultProperties", + modelProperties: { + keyVaultUri: { + serializedName: "keyVaultUri", + type: { + name: "String" + } + }, + keyName: { + serializedName: "keyName", + type: { + name: "String" + } + }, + keyVersion: { + serializedName: "keyVersion", + type: { + name: "String" + } + }, + keyRsaSize: { + serializedName: "keyRsaSize", + type: { + name: "Number" + } + } + } + } +}; + +export const AssociatedWorkspace: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssociatedWorkspace", + modelProperties: { + workspaceId: { + serializedName: "workspaceId", + readOnly: true, type: { - name: "Number" + name: "String" } }, - quotaNextResetTime: { - serializedName: "quotaNextResetTime", + workspaceName: { + serializedName: "workspaceName", readOnly: true, type: { name: "String" } }, - dataIngestionStatus: { - serializedName: "dataIngestionStatus", + resourceId: { + serializedName: "resourceId", + readOnly: true, + type: { + name: "String" + } + }, + associateDate: { + serializedName: "associateDate", readOnly: true, type: { name: "String" @@ -1459,66 +1780,66 @@ export const WorkspaceCapping: coreClient.CompositeMapper = { } }; -export const PrivateLinkScopedResource: coreClient.CompositeMapper = { +export const CapacityReservationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkScopedResource", + className: "CapacityReservationProperties", modelProperties: { - resourceId: { - serializedName: "resourceId", + lastSkuUpdate: { + serializedName: "lastSkuUpdate", + readOnly: true, type: { name: "String" } }, - scopeId: { - serializedName: "scopeId", + minCapacity: { + serializedName: "minCapacity", + readOnly: true, type: { - name: "String" + name: "Number" } } } } }; -export const WorkspaceFeatures: coreClient.CompositeMapper = { +export const ClusterPatch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceFeatures", - additionalProperties: { type: { name: "Object" } }, + className: "ClusterPatch", modelProperties: { - enableDataExport: { - serializedName: "enableDataExport", - nullable: true, + identity: { + serializedName: "identity", type: { - name: "Boolean" + name: "Composite", + className: "Identity" } }, - immediatePurgeDataOn30Days: { - serializedName: "immediatePurgeDataOn30Days", - nullable: true, + sku: { + serializedName: "sku", type: { - name: "Boolean" + name: "Composite", + className: "ClusterSku" } }, - enableLogAccessUsingOnlyResourcePermissions: { - serializedName: "enableLogAccessUsingOnlyResourcePermissions", - nullable: true, + tags: { + serializedName: "tags", type: { - name: "Boolean" + name: "Dictionary", + value: { type: { name: "String" } } } }, - clusterResourceId: { - serializedName: "clusterResourceId", - nullable: true, + keyVaultProperties: { + serializedName: "properties.keyVaultProperties", type: { - name: "String" + name: "Composite", + className: "KeyVaultProperties" } }, - disableLocalAuth: { - serializedName: "disableLocalAuth", - nullable: true, + billingType: { + serializedName: "properties.billingType", type: { - name: "Boolean" + name: "String" } } } @@ -1540,16 +1861,6 @@ export const DataSourceFilter: coreClient.CompositeMapper = { } }; -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - export const TrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1591,62 +1902,125 @@ export const AzureEntityResource: coreClient.CompositeMapper = { } }; -export const DataExport: coreClient.CompositeMapper = { +export const ProxyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataExport", + className: "ProxyResource", modelProperties: { - ...ProxyResource.type.modelProperties, - dataExportId: { - serializedName: "properties.dataExportId", + ...Resource.type.modelProperties + } + } +}; + +export const Workspace: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Workspace", + modelProperties: { + ...TrackedResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + eTag: { + serializedName: "eTag", type: { name: "String" } }, - tableNames: { - serializedName: "properties.tableNames", + provisioningState: { + serializedName: "properties.provisioningState", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - enable: { - serializedName: "properties.enable", + customerId: { + serializedName: "properties.customerId", + readOnly: true, type: { - name: "Boolean" + 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" } }, - lastModifiedDate: { - serializedName: "properties.lastModifiedDate", + modifiedDate: { + serializedName: "properties.modifiedDate", + readOnly: true, type: { name: "String" } }, - resourceId: { - serializedName: "properties.destination.resourceId", + publicNetworkAccessForIngestion: { + defaultValue: "Enabled", + serializedName: "properties.publicNetworkAccessForIngestion", type: { name: "String" } }, - typePropertiesDestinationType: { - serializedName: "properties.destination.type", - readOnly: true, + publicNetworkAccessForQuery: { + defaultValue: "Enabled", + serializedName: "properties.publicNetworkAccessForQuery", type: { name: "String" } }, - eventHubName: { - serializedName: "properties.destination.metaData.eventHubName", + forceCmkForQuery: { + serializedName: "properties.forceCmkForQuery", + type: { + name: "Boolean" + } + }, + privateLinkScopedResources: { + serializedName: "properties.privateLinkScopedResources", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkScopedResource" + } + } + } + }, + features: { + serializedName: "properties.features", + type: { + name: "Composite", + className: "WorkspaceFeatures" + } + }, + defaultDataCollectionRuleResourceId: { + serializedName: "properties.defaultDataCollectionRuleResourceId", type: { name: "String" } @@ -1655,120 +2029,108 @@ export const DataExport: coreClient.CompositeMapper = { } }; -export const DataSource: coreClient.CompositeMapper = { +export const Cluster: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataSource", + className: "Cluster", modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - required: true, + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Composite", + className: "Identity" } }, - etag: { - serializedName: "etag", + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "ClusterSku" + } + }, + clusterId: { + serializedName: "properties.clusterId", + readOnly: true, type: { name: "String" } }, - kind: { - serializedName: "kind", - required: true, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - tags: { - serializedName: "tags", + isDoubleEncryptionEnabled: { + serializedName: "properties.isDoubleEncryptionEnabled", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } - } - } - } -}; - -export const LinkedService: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LinkedService", - modelProperties: { - ...ProxyResource.type.modelProperties, - tags: { - serializedName: "tags", + }, + isAvailabilityZonesEnabled: { + serializedName: "properties.isAvailabilityZonesEnabled", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } }, - resourceId: { - serializedName: "properties.resourceId", + billingType: { + serializedName: "properties.billingType", type: { name: "String" } }, - writeAccessResourceId: { - serializedName: "properties.writeAccessResourceId", + keyVaultProperties: { + serializedName: "properties.keyVaultProperties", type: { - name: "String" + name: "Composite", + className: "KeyVaultProperties" } }, - provisioningState: { - serializedName: "properties.provisioningState", + lastModifiedDate: { + serializedName: "properties.lastModifiedDate", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const LinkedStorageAccountsResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LinkedStorageAccountsResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - dataSourceType: { - serializedName: "properties.dataSourceType", + }, + createdDate: { + serializedName: "properties.createdDate", readOnly: true, type: { - name: "Enum", - allowedValues: ["CustomLogs", "AzureWatson", "Query", "Alerts"] + name: "String" } }, - storageAccountIds: { - serializedName: "properties.storageAccountIds", + associatedWorkspaces: { + serializedName: "properties.associatedWorkspaces", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "AssociatedWorkspace" } } } + }, + capacityReservationProperties: { + serializedName: "properties.capacityReservationProperties", + type: { + name: "Composite", + className: "CapacityReservationProperties" + } } } } }; -export const StorageInsight: coreClient.CompositeMapper = { +export const WorkspacePatch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageInsight", + className: "WorkspacePatch", modelProperties: { - ...ProxyResource.type.modelProperties, - eTag: { - serializedName: "eTag", - type: { - name: "String" - } - }, + ...AzureEntityResource.type.modelProperties, tags: { serializedName: "tags", type: { @@ -1776,108 +2138,99 @@ export const StorageInsight: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, - containers: { - serializedName: "properties.containers", + provisioningState: { + serializedName: "properties.provisioningState", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - tables: { - serializedName: "properties.tables", + customerId: { + serializedName: "properties.customerId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - storageAccount: { - serializedName: "properties.storageAccount", + sku: { + serializedName: "properties.sku", type: { name: "Composite", - className: "StorageAccount" + className: "WorkspaceSku" } }, - status: { - serializedName: "properties.status", - type: { - name: "Composite", - className: "StorageInsightStatus" - } - } - } - } -}; - -export const SavedSearch: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SavedSearch", - modelProperties: { - ...ProxyResource.type.modelProperties, - etag: { - serializedName: "etag", + retentionInDays: { + serializedName: "properties.retentionInDays", + nullable: true, type: { - name: "String" + name: "Number" } }, - category: { - serializedName: "properties.category", - required: true, + workspaceCapping: { + serializedName: "properties.workspaceCapping", type: { - name: "String" + name: "Composite", + className: "WorkspaceCapping" } }, - displayName: { - serializedName: "properties.displayName", - required: true, + createdDate: { + serializedName: "properties.createdDate", + readOnly: true, type: { name: "String" } }, - query: { - serializedName: "properties.query", - required: true, + modifiedDate: { + serializedName: "properties.modifiedDate", + readOnly: true, type: { name: "String" } }, - functionAlias: { - serializedName: "properties.functionAlias", + publicNetworkAccessForIngestion: { + defaultValue: "Enabled", + serializedName: "properties.publicNetworkAccessForIngestion", type: { name: "String" } }, - functionParameters: { - serializedName: "properties.functionParameters", + publicNetworkAccessForQuery: { + defaultValue: "Enabled", + serializedName: "properties.publicNetworkAccessForQuery", type: { name: "String" } }, - version: { - serializedName: "properties.version", + forceCmkForQuery: { + serializedName: "properties.forceCmkForQuery", type: { - name: "Number" + name: "Boolean" } }, - tags: { - serializedName: "properties.tags", + privateLinkScopedResources: { + serializedName: "properties.privateLinkScopedResources", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Tag" + className: "PrivateLinkScopedResource" } } } + }, + features: { + serializedName: "properties.features", + type: { + name: "Composite", + className: "WorkspaceFeatures" + } + }, + defaultDataCollectionRuleResourceId: { + serializedName: "properties.defaultDataCollectionRuleResourceId", + type: { + name: "String" + } } } } @@ -1889,246 +2242,270 @@ export const Table: coreClient.CompositeMapper = { className: "Table", modelProperties: { ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, retentionInDays: { constraints: { InclusiveMaximum: 730, - InclusiveMinimum: 7 + InclusiveMinimum: 4 }, serializedName: "properties.retentionInDays", type: { name: "Number" } }, - isTroubleshootingAllowed: { - serializedName: "properties.isTroubleshootingAllowed", - readOnly: true, + totalRetentionInDays: { + constraints: { + InclusiveMaximum: 2555, + InclusiveMinimum: 4 + }, + serializedName: "properties.totalRetentionInDays", type: { - name: "Boolean" + name: "Number" } }, - isTroubleshootEnabled: { - serializedName: "properties.isTroubleshootEnabled", + archiveRetentionInDays: { + serializedName: "properties.archiveRetentionInDays", + readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - lastTroubleshootDate: { - serializedName: "properties.lastTroubleshootDate", - readOnly: true, + searchResults: { + serializedName: "properties.searchResults", type: { - name: "String" + name: "Composite", + className: "SearchResults" } - } - } - } -}; - -export const Cluster: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Cluster", - modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + }, + restoredLogs: { + serializedName: "properties.restoredLogs", type: { name: "Composite", - className: "Identity" + className: "RestoredLogs" } }, - sku: { - serializedName: "sku", + resultStatistics: { + serializedName: "properties.resultStatistics", type: { name: "Composite", - className: "ClusterSku" + className: "ResultStatistics" } }, - clusterId: { - serializedName: "properties.clusterId", + plan: { + serializedName: "properties.plan", + type: { + name: "String" + } + }, + lastPlanModifiedDate: { + serializedName: "properties.lastPlanModifiedDate", readOnly: true, type: { name: "String" } }, + schema: { + serializedName: "properties.schema", + type: { + name: "Composite", + className: "Schema" + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } - }, - isDoubleEncryptionEnabled: { - serializedName: "properties.isDoubleEncryptionEnabled", + } + } + } +}; + +export const DataExport: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataExport", + modelProperties: { + ...ProxyResource.type.modelProperties, + dataExportId: { + serializedName: "properties.dataExportId", type: { - name: "Boolean" + name: "String" } }, - isAvailabilityZonesEnabled: { - serializedName: "properties.isAvailabilityZonesEnabled", + tableNames: { + serializedName: "properties.tableNames", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - billingType: { - serializedName: "properties.billingType", + enable: { + serializedName: "properties.enable", type: { - name: "String" + name: "Boolean" } }, - keyVaultProperties: { - serializedName: "properties.keyVaultProperties", + createdDate: { + serializedName: "properties.createdDate", type: { - name: "Composite", - className: "KeyVaultProperties" + name: "String" } }, lastModifiedDate: { serializedName: "properties.lastModifiedDate", - readOnly: true, type: { name: "String" } }, - createdDate: { - serializedName: "properties.createdDate", - readOnly: true, + resourceId: { + serializedName: "properties.destination.resourceId", type: { name: "String" } }, - associatedWorkspaces: { - serializedName: "properties.associatedWorkspaces", + typePropertiesDestinationType: { + serializedName: "properties.destination.type", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AssociatedWorkspace" - } - } + name: "String" } }, - capacityReservationProperties: { - serializedName: "properties.capacityReservationProperties", + eventHubName: { + serializedName: "properties.destination.metaData.eventHubName", type: { - name: "Composite", - className: "CapacityReservationProperties" + name: "String" } } } } }; -export const Workspace: coreClient.CompositeMapper = { +export const DataSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Workspace", + className: "DataSource", modelProperties: { - ...TrackedResource.type.modelProperties, - eTag: { - serializedName: "eTag", + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + required: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", + etag: { + serializedName: "etag", type: { name: "String" } }, - customerId: { - serializedName: "properties.customerId", - readOnly: true, + kind: { + serializedName: "kind", + required: 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", + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "WorkspaceCapping" + name: "Dictionary", + value: { type: { name: "String" } } } - }, - createdDate: { - serializedName: "properties.createdDate", - readOnly: true, + } + } + } +}; + +export const LinkedService: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LinkedService", + modelProperties: { + ...ProxyResource.type.modelProperties, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - modifiedDate: { - serializedName: "properties.modifiedDate", - readOnly: true, + resourceId: { + serializedName: "properties.resourceId", type: { name: "String" } }, - publicNetworkAccessForIngestion: { - defaultValue: "Enabled", - serializedName: "properties.publicNetworkAccessForIngestion", + writeAccessResourceId: { + serializedName: "properties.writeAccessResourceId", type: { name: "String" } }, - publicNetworkAccessForQuery: { - defaultValue: "Enabled", - serializedName: "properties.publicNetworkAccessForQuery", + provisioningState: { + serializedName: "properties.provisioningState", type: { name: "String" } - }, - forceCmkForQuery: { - serializedName: "properties.forceCmkForQuery", + } + } + } +}; + +export const LinkedStorageAccountsResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LinkedStorageAccountsResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + dataSourceType: { + serializedName: "properties.dataSourceType", + readOnly: true, type: { - name: "Boolean" + name: "Enum", + allowedValues: ["CustomLogs", "AzureWatson", "Query", "Alerts"] } }, - privateLinkScopedResources: { - serializedName: "properties.privateLinkScopedResources", - readOnly: true, + storageAccountIds: { + serializedName: "properties.storageAccountIds", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "PrivateLinkScopedResource" + name: "String" } } } - }, - features: { - serializedName: "properties.features", - type: { - name: "Composite", - className: "WorkspaceFeatures" - } } } } }; -export const WorkspacePatch: coreClient.CompositeMapper = { +export const StorageInsight: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspacePatch", + className: "StorageInsight", modelProperties: { - ...AzureEntityResource.type.modelProperties, + ...ProxyResource.type.modelProperties, + eTag: { + serializedName: "eTag", + type: { + name: "String" + } + }, tags: { serializedName: "tags", type: { @@ -2136,93 +2513,108 @@ export const WorkspacePatch: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", + containers: { + serializedName: "properties.containers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - customerId: { - serializedName: "properties.customerId", - readOnly: true, + tables: { + serializedName: "properties.tables", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - sku: { - serializedName: "properties.sku", + storageAccount: { + serializedName: "properties.storageAccount", type: { name: "Composite", - className: "WorkspaceSku" + className: "StorageAccount" } }, - retentionInDays: { - serializedName: "properties.retentionInDays", - nullable: true, + status: { + serializedName: "properties.status", type: { - name: "Number" + name: "Composite", + className: "StorageInsightStatus" + } + } + } + } +}; + +export const SavedSearch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SavedSearch", + modelProperties: { + ...ProxyResource.type.modelProperties, + etag: { + serializedName: "etag", + type: { + name: "String" } }, - workspaceCapping: { - serializedName: "properties.workspaceCapping", + category: { + serializedName: "properties.category", + required: true, type: { - name: "Composite", - className: "WorkspaceCapping" + name: "String" } }, - createdDate: { - serializedName: "properties.createdDate", - readOnly: true, + displayName: { + serializedName: "properties.displayName", + required: true, type: { name: "String" } }, - modifiedDate: { - serializedName: "properties.modifiedDate", - readOnly: true, + query: { + serializedName: "properties.query", + required: true, type: { name: "String" } }, - publicNetworkAccessForIngestion: { - defaultValue: "Enabled", - serializedName: "properties.publicNetworkAccessForIngestion", + functionAlias: { + serializedName: "properties.functionAlias", type: { name: "String" } }, - publicNetworkAccessForQuery: { - defaultValue: "Enabled", - serializedName: "properties.publicNetworkAccessForQuery", + functionParameters: { + serializedName: "properties.functionParameters", type: { name: "String" } }, - forceCmkForQuery: { - serializedName: "properties.forceCmkForQuery", + version: { + serializedName: "properties.version", type: { - name: "Boolean" + name: "Number" } }, - privateLinkScopedResources: { - serializedName: "properties.privateLinkScopedResources", - readOnly: true, + tags: { + serializedName: "properties.tags", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateLinkScopedResource" + className: "Tag" } } } - }, - features: { - serializedName: "properties.features", - type: { - name: "Composite", - className: "WorkspaceFeatures" - } } } } diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts index 548a6dfe7049..a8b5ab9b6083 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts @@ -12,6 +12,9 @@ import { OperationQueryParameter } from "@azure/core-client"; import { + Workspace as WorkspaceMapper, + WorkspacePatch as WorkspacePatchMapper, + Table as TableMapper, DataExport as DataExportMapper, DataSource as DataSourceMapper, LinkedService as LinkedServiceMapper, @@ -19,11 +22,8 @@ import { StorageInsight as StorageInsightMapper, SavedSearch as SavedSearchMapper, WorkspacePurgeBody as WorkspacePurgeBodyMapper, - Table as TableMapper, Cluster as ClusterMapper, - ClusterPatch as ClusterPatchMapper, - Workspace as WorkspaceMapper, - WorkspacePatch as WorkspacePatchMapper + ClusterPatch as ClusterPatchMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -50,6 +50,30 @@ export const $host: OperationURLParameter = { skipEncoding: true }; +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2021-12-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { @@ -79,6 +103,23 @@ export const resourceGroupName: OperationURLParameter = { } }; +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String" + } + } +}; + +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: WorkspaceMapper +}; + export const workspaceName: OperationURLParameter = { parameterPath: "workspaceName", mapper: { @@ -95,31 +136,50 @@ export const workspaceName: OperationURLParameter = { } }; -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", +export const force: OperationQueryParameter = { + parameterPath: ["options", "force"], mapper: { - defaultValue: "2020-08-01", - isConstant: true, - serializedName: "api-version", + serializedName: "force", + type: { + name: "Boolean" + } + } +}; + +export const parameters1: OperationParameter = { + parameterPath: "parameters", + mapper: WorkspacePatchMapper +}; + +export const parameters2: OperationParameter = { + parameterPath: "parameters", + mapper: TableMapper +}; + +export const tableName: OperationURLParameter = { + parameterPath: "tableName", + mapper: { + serializedName: "tableName", + required: true, type: { name: "String" } } }; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], +export const apiVersion1: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - defaultValue: "application/json", + defaultValue: "2020-08-01", isConstant: true, - serializedName: "Content-Type", + serializedName: "api-version", type: { name: "String" } } }; -export const parameters: OperationParameter = { +export const parameters3: OperationParameter = { parameterPath: "parameters", mapper: DataExportMapper }; @@ -151,7 +211,7 @@ export const dataExportName1: OperationURLParameter = { } }; -export const parameters1: OperationParameter = { +export const parameters4: OperationParameter = { parameterPath: "parameters", mapper: DataSourceMapper }; @@ -188,18 +248,6 @@ export const skiptoken: OperationQueryParameter = { } }; -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String" - } - }, - skipEncoding: true -}; - export const intelligencePackName: OperationURLParameter = { parameterPath: "intelligencePackName", mapper: { @@ -211,7 +259,7 @@ export const intelligencePackName: OperationURLParameter = { } }; -export const parameters2: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", mapper: LinkedServiceMapper }; @@ -227,7 +275,7 @@ export const linkedServiceName: OperationURLParameter = { } }; -export const parameters3: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", mapper: LinkedStorageAccountsResourceMapper }; @@ -266,7 +314,7 @@ export const asyncOperationId: OperationURLParameter = { } }; -export const parameters4: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", mapper: StorageInsightMapper }; @@ -293,7 +341,7 @@ export const savedSearchId: OperationURLParameter = { } }; -export const parameters5: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", mapper: SavedSearchMapper }; @@ -325,18 +373,6 @@ export const purgeId: OperationURLParameter = { } }; -export const apiVersion1: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2020-10-01", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - export const apiVersion2: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { @@ -349,23 +385,7 @@ export const apiVersion2: OperationQueryParameter = { } }; -export const parameters6: OperationParameter = { - parameterPath: "parameters", - mapper: TableMapper -}; - -export const tableName: OperationURLParameter = { - parameterPath: "tableName", - mapper: { - serializedName: "tableName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters7: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", mapper: ClusterMapper }; @@ -397,27 +417,7 @@ export const clusterName1: OperationURLParameter = { } }; -export const parameters8: OperationParameter = { - parameterPath: "parameters", - mapper: ClusterPatchMapper -}; - -export const parameters9: OperationParameter = { - parameterPath: "parameters", - mapper: WorkspaceMapper -}; - -export const force: OperationQueryParameter = { - parameterPath: ["options", "force"], - mapper: { - serializedName: "force", - type: { - name: "Boolean" - } - } -}; - export const parameters10: OperationParameter = { parameterPath: "parameters", - mapper: WorkspacePatchMapper + mapper: ClusterPatchMapper }; diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts index 72993d35f63c..56aeaf21f6e1 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts @@ -9,6 +9,10 @@ import * as coreClient from "@azure/core-client"; import * as coreAuth from "@azure/core-auth"; import { + OperationsImpl, + WorkspacesImpl, + DeletedWorkspacesImpl, + TablesImpl, DataExportsImpl, DataSourcesImpl, IntelligencePacksImpl, @@ -22,15 +26,15 @@ import { SavedSearchesImpl, AvailableServiceTiersImpl, GatewaysImpl, - SchemaImpl, + SchemaOperationsImpl, WorkspacePurgeImpl, - OperationsImpl, - TablesImpl, - ClustersImpl, - WorkspacesImpl, - DeletedWorkspacesImpl + ClustersImpl } from "./operations"; import { + Operations, + Workspaces, + DeletedWorkspaces, + Tables, DataExports, DataSources, IntelligencePacks, @@ -44,13 +48,9 @@ import { SavedSearches, AvailableServiceTiers, Gateways, - Schema, + SchemaOperations, WorkspacePurge, - Operations, - Tables, - Clusters, - Workspaces, - DeletedWorkspaces + Clusters } from "./operationsInterfaces"; import { OperationalInsightsManagementClientOptionalParams } from "./models"; @@ -85,7 +85,7 @@ export class OperationalInsightsManagementClient extends coreClient.ServiceClien credential: credentials }; - const packageDetails = `azsdk-js-arm-operationalinsights/8.0.0`; + const packageDetails = `azsdk-js-arm-operationalinsights/9.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -108,6 +108,10 @@ export class OperationalInsightsManagementClient extends coreClient.ServiceClien // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; + this.operations = new OperationsImpl(this); + this.workspaces = new WorkspacesImpl(this); + this.deletedWorkspaces = new DeletedWorkspacesImpl(this); + this.tables = new TablesImpl(this); this.dataExports = new DataExportsImpl(this); this.dataSources = new DataSourcesImpl(this); this.intelligencePacks = new IntelligencePacksImpl(this); @@ -121,15 +125,15 @@ export class OperationalInsightsManagementClient extends coreClient.ServiceClien this.savedSearches = new SavedSearchesImpl(this); this.availableServiceTiers = new AvailableServiceTiersImpl(this); this.gateways = new GatewaysImpl(this); - this.schema = new SchemaImpl(this); + this.schemaOperations = new SchemaOperationsImpl(this); this.workspacePurge = new WorkspacePurgeImpl(this); - this.operations = new OperationsImpl(this); - this.tables = new TablesImpl(this); this.clusters = new ClustersImpl(this); - this.workspaces = new WorkspacesImpl(this); - this.deletedWorkspaces = new DeletedWorkspacesImpl(this); } + operations: Operations; + workspaces: Workspaces; + deletedWorkspaces: DeletedWorkspaces; + tables: Tables; dataExports: DataExports; dataSources: DataSources; intelligencePacks: IntelligencePacks; @@ -143,11 +147,7 @@ export class OperationalInsightsManagementClient extends coreClient.ServiceClien savedSearches: SavedSearches; availableServiceTiers: AvailableServiceTiers; gateways: Gateways; - schema: Schema; + schemaOperations: SchemaOperations; workspacePurge: WorkspacePurge; - operations: Operations; - tables: Tables; clusters: Clusters; - workspaces: Workspaces; - deletedWorkspaces: DeletedWorkspaces; } diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/availableServiceTiers.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/availableServiceTiers.ts index 628a2c9fed35..bc9dbc06f8c9 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/availableServiceTiers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/availableServiceTiers.ts @@ -64,7 +64,7 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { } } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/clusters.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/clusters.ts index 7bf2ae7be597..c9565dd1f468 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/clusters.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/clusters.ts @@ -538,7 +538,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, @@ -616,7 +616,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, @@ -642,9 +642,9 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, + Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -663,8 +663,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.subscriptionId ], 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 0d03f0a6eced..8dbef483abcd 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/dataExports.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/dataExports.ts @@ -187,7 +187,7 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -212,8 +212,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -237,7 +237,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -259,7 +259,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/dataSources.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/dataSources.ts index c269b3312140..65570187df55 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/dataSources.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/dataSources.ts @@ -232,8 +232,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DataSource } }, - requestBody: Parameters.parameters1, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters4, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -250,7 +250,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}", httpMethod: "DELETE", responses: { 200: {}, 204: {} }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -269,7 +269,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DataSource } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -290,7 +290,7 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { } }, queryParameters: [ - Parameters.apiVersion, + Parameters.apiVersion1, Parameters.filter, Parameters.skiptoken ], @@ -312,16 +312,16 @@ const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { } }, queryParameters: [ - Parameters.apiVersion, + Parameters.apiVersion1, Parameters.filter, Parameters.skiptoken ], urlParameters: [ Parameters.$host, + Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/deletedWorkspaces.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/deletedWorkspaces.ts index 6c434492e680..bafc569ce048 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/deletedWorkspaces.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/deletedWorkspaces.ts @@ -152,7 +152,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -169,7 +169,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/gateways.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/gateways.ts index d1fb688745cd..79f973d04d8a 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/gateways.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/gateways.ts @@ -52,7 +52,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/gateways/{gatewayId}", httpMethod: "DELETE", responses: { 200: {} }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/index.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/index.ts index c35fd126bd82..67b5f1ba35dc 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/index.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/index.ts @@ -6,6 +6,10 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./operations"; +export * from "./workspaces"; +export * from "./deletedWorkspaces"; +export * from "./tables"; export * from "./dataExports"; export * from "./dataSources"; export * from "./intelligencePacks"; @@ -19,10 +23,6 @@ export * from "./storageInsightConfigs"; export * from "./savedSearches"; export * from "./availableServiceTiers"; export * from "./gateways"; -export * from "./schema"; +export * from "./schemaOperations"; export * from "./workspacePurge"; -export * from "./operations"; -export * from "./tables"; export * from "./clusters"; -export * from "./workspaces"; -export * from "./deletedWorkspaces"; diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/intelligencePacks.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/intelligencePacks.ts index b6d5335d0a7e..bad141e3b891 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/intelligencePacks.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/intelligencePacks.ts @@ -94,7 +94,7 @@ const disableOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Disable", httpMethod: "POST", responses: { 200: {} }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -109,7 +109,7 @@ const enableOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Enable", httpMethod: "POST", responses: { 200: {} }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -135,7 +135,7 @@ const listOperationSpec: coreClient.OperationSpec = { } } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedServices.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedServices.ts index 1b5bcde3fb21..41ea99f7e921 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedServices.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedServices.ts @@ -347,8 +347,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.LinkedService } }, - requestBody: Parameters.parameters2, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -378,7 +378,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.LinkedService } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -398,7 +398,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.LinkedService } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -418,7 +418,7 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.LinkedServiceListResult } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedStorageAccounts.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedStorageAccounts.ts index 1cc9823090f0..3bf648509958 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedStorageAccounts.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedStorageAccounts.ts @@ -190,8 +190,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.LinkedStorageAccountsResource } }, - requestBody: Parameters.parameters3, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -208,7 +208,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}", httpMethod: "DELETE", responses: { 200: {} }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -227,7 +227,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.LinkedStorageAccountsResource } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -247,7 +247,7 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.LinkedStorageAccountsListResult } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/managementGroups.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/managementGroups.ts index 4bc8ff3c2d27..f290e2fa17d0 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/managementGroups.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/managementGroups.ts @@ -108,7 +108,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.WorkspaceListManagementGroupsResult } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/operationStatuses.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/operationStatuses.ts index dd0df6c485e8..fc2a28825eb2 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/operationStatuses.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/operationStatuses.ts @@ -57,7 +57,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.OperationStatus } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/operations.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/operations.ts index 6e78b7bce1f9..54b4c34f2f1f 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/operations.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/operations.ts @@ -114,7 +114,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], serializer @@ -130,7 +130,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], serializer diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/savedSearches.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/savedSearches.ts index b89eaf219501..5ff157d2b0d6 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/savedSearches.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/savedSearches.ts @@ -118,7 +118,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}", httpMethod: "DELETE", responses: { 200: {} }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -137,8 +137,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SavedSearch } }, - requestBody: Parameters.parameters5, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -159,7 +159,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SavedSearch } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -179,7 +179,7 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SavedSearchesListResult } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/schema.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/schemaOperations.ts similarity index 86% rename from sdk/operationalinsights/arm-operationalinsights/src/operations/schema.ts rename to sdk/operationalinsights/arm-operationalinsights/src/operations/schemaOperations.ts index 8eeaf89350ef..667ec9b7d518 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/schema.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/schemaOperations.ts @@ -6,19 +6,19 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Schema } from "../operationsInterfaces"; +import { SchemaOperations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { OperationalInsightsManagementClient } from "../operationalInsightsManagementClient"; import { SchemaGetOptionalParams, SchemaGetResponse } from "../models"; -/** Class containing Schema operations. */ -export class SchemaImpl implements Schema { +/** Class containing SchemaOperations operations. */ +export class SchemaOperationsImpl implements SchemaOperations { private readonly client: OperationalInsightsManagementClient; /** - * Initialize a new instance of the class Schema class. + * Initialize a new instance of the class SchemaOperations class. * @param client Reference to the service client */ constructor(client: OperationalInsightsManagementClient) { @@ -54,7 +54,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SearchGetSchemaResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/sharedKeysOperations.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/sharedKeysOperations.ts index a6543cd1cd92..fb13c24a024c 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/sharedKeysOperations.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/sharedKeysOperations.ts @@ -77,7 +77,7 @@ const getSharedKeysOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SharedKeys } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -96,7 +96,7 @@ const regenerateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SharedKeys } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/storageInsightConfigs.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/storageInsightConfigs.ts index ff2e9fec9169..8c14959967d1 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/storageInsightConfigs.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/storageInsightConfigs.ts @@ -225,8 +225,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.StorageInsight } }, - requestBody: Parameters.parameters4, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -247,7 +247,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.StorageInsight } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -263,7 +263,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}", httpMethod: "DELETE", responses: { 200: {}, 204: {} }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -282,7 +282,7 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.StorageInsightListResult } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -300,13 +300,13 @@ const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.StorageInsightListResult } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, + Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/tables.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/tables.ts index 7055f36ebb92..fa164f4e7653 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/tables.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/tables.ts @@ -12,16 +12,19 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { OperationalInsightsManagementClient } from "../operationalInsightsManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; import { Table, TablesListByWorkspaceOptionalParams, TablesListByWorkspaceResponse, + TablesCreateOrUpdateOptionalParams, + TablesCreateOrUpdateResponse, TablesUpdateOptionalParams, TablesUpdateResponse, - TablesCreateOptionalParams, - TablesCreateResponse, TablesGetOptionalParams, - TablesGetResponse + TablesGetResponse, + TablesDeleteOptionalParams } from "../models"; /// @@ -115,45 +118,192 @@ export class TablesImpl implements Tables { } /** - * Updates a Log Analytics workspace table properties. + * Update or Create a Log Analytics workspace table. * @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 parameters The parameters required to update table properties. * @param options The options parameters. */ - update( + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + tableName: string, + parameters: Table, + options?: TablesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + TablesCreateOrUpdateResponse + > + > { + 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, workspaceName, tableName, parameters, options }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Update or Create a Log Analytics workspace table. + * @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 parameters The parameters required to update table properties. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + tableName: string, + parameters: Table, + options?: TablesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + tableName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Update a Log Analytics workspace table. + * @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 parameters The parameters required to update table properties. + * @param options The options parameters. + */ + async beginUpdate( resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, options?: TablesUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( + ): Promise< + PollerLike, TablesUpdateResponse> + > { + 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, workspaceName, tableName, parameters, options }, updateOperationSpec ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); } /** - * Updates a Log Analytics workspace table properties. + * Update a Log Analytics workspace table. * @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 parameters The parameters required to update table properties. * @param options The options parameters. */ - create( + async beginUpdateAndWait( resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, - options?: TablesCreateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, tableName, parameters, options }, - createOperationSpec + options?: TablesUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + tableName, + parameters, + options ); + return poller.pollUntilDone(); } /** @@ -174,6 +324,92 @@ export class TablesImpl implements Tables { getOperationSpec ); } + + /** + * Delete a Log Analytics workspace table. + * @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. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + tableName: string, + options?: TablesDeleteOptionalParams + ): 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, workspaceName, tableName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Delete a Log Analytics workspace table. + * @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. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + tableName: string, + options?: TablesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + tableName, + options + ); + return poller.pollUntilDone(); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -190,7 +426,7 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -200,20 +436,29 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const updateOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}", - httpMethod: "PATCH", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.Table }, + 201: { + bodyMapper: Mappers.Table + }, + 202: { + bodyMapper: Mappers.Table + }, + 204: { + bodyMapper: Mappers.Table + }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters6, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -225,20 +470,29 @@ const updateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const createOperationSpec: coreClient.OperationSpec = { +const updateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}", - httpMethod: "PUT", + httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.Table }, + 201: { + bodyMapper: Mappers.Table + }, + 202: { + bodyMapper: Mappers.Table + }, + 204: { + bodyMapper: Mappers.Table + }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters6, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -262,7 +516,31 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.tableName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/usages.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/usages.ts index f67f1dac76db..a9b3c3333716 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/usages.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/usages.ts @@ -108,7 +108,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.WorkspaceListUsagesResult } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/workspacePurge.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/workspacePurge.ts index a4bf96299ccc..59cb12087176 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/workspacePurge.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/workspacePurge.ts @@ -90,7 +90,7 @@ const purgeOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.body, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -110,7 +110,7 @@ const getPurgeStatusOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.WorkspacePurgeStatusResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/workspaces.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/workspaces.ts index 1984b54b8aed..8a46a4335b50 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/workspaces.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/workspaces.ts @@ -372,7 +372,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -389,7 +389,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -419,8 +419,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters9, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -444,7 +444,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2, Parameters.force], + queryParameters: [Parameters.apiVersion, Parameters.force], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -466,7 +466,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -488,8 +488,8 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters10, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters1, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/index.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/index.ts index c35fd126bd82..67b5f1ba35dc 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/index.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/index.ts @@ -6,6 +6,10 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./operations"; +export * from "./workspaces"; +export * from "./deletedWorkspaces"; +export * from "./tables"; export * from "./dataExports"; export * from "./dataSources"; export * from "./intelligencePacks"; @@ -19,10 +23,6 @@ export * from "./storageInsightConfigs"; export * from "./savedSearches"; export * from "./availableServiceTiers"; export * from "./gateways"; -export * from "./schema"; +export * from "./schemaOperations"; export * from "./workspacePurge"; -export * from "./operations"; -export * from "./tables"; export * from "./clusters"; -export * from "./workspaces"; -export * from "./deletedWorkspaces"; diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/schema.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/schemaOperations.ts similarity index 88% rename from sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/schema.ts rename to sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/schemaOperations.ts index 389270add2cb..6216257a90e2 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/schema.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/schemaOperations.ts @@ -8,8 +8,8 @@ import { SchemaGetOptionalParams, SchemaGetResponse } from "../models"; -/** Interface representing a Schema. */ -export interface Schema { +/** Interface representing a SchemaOperations. */ +export interface SchemaOperations { /** * Gets the schema for a given workspace. * @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 a4bc04c610ee..58500a045301 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/tables.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/tables.ts @@ -7,15 +7,17 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; import { Table, TablesListByWorkspaceOptionalParams, + TablesCreateOrUpdateOptionalParams, + TablesCreateOrUpdateResponse, TablesUpdateOptionalParams, TablesUpdateResponse, - TablesCreateOptionalParams, - TablesCreateResponse, TablesGetOptionalParams, - TablesGetResponse + TablesGetResponse, + TablesDeleteOptionalParams } from "../models"; /// @@ -33,35 +35,72 @@ export interface Tables { options?: TablesListByWorkspaceOptionalParams ): PagedAsyncIterableIterator
; /** - * Updates a Log Analytics workspace table properties. + * Update or Create a Log Analytics workspace table. * @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 parameters The parameters required to update table properties. * @param options The options parameters. */ - update( + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + tableName: string, + parameters: Table, + options?: TablesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + TablesCreateOrUpdateResponse + > + >; + /** + * Update or Create a Log Analytics workspace table. + * @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 parameters The parameters required to update table properties. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + tableName: string, + parameters: Table, + options?: TablesCreateOrUpdateOptionalParams + ): Promise; + /** + * Update a Log Analytics workspace table. + * @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 parameters The parameters required to update table properties. + * @param options The options parameters. + */ + beginUpdate( resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, options?: TablesUpdateOptionalParams - ): Promise; + ): Promise< + PollerLike, TablesUpdateResponse> + >; /** - * Updates a Log Analytics workspace table properties. + * Update a Log Analytics workspace table. * @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 parameters The parameters required to update table properties. * @param options The options parameters. */ - create( + beginUpdateAndWait( resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, - options?: TablesCreateOptionalParams - ): Promise; + options?: TablesUpdateOptionalParams + ): Promise; /** * Gets a Log Analytics workspace table. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -75,4 +114,30 @@ export interface Tables { tableName: string, options?: TablesGetOptionalParams ): Promise; + /** + * Delete a Log Analytics workspace table. + * @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. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + tableName: string, + options?: TablesDeleteOptionalParams + ): Promise, void>>; + /** + * Delete a Log Analytics workspace table. + * @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. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + tableName: string, + options?: TablesDeleteOptionalParams + ): Promise; } diff --git a/sdk/operationalinsights/arm-operationalinsights/tsconfig.json b/sdk/operationalinsights/arm-operationalinsights/tsconfig.json index 6e3251194117..3e6ae96443f3 100644 --- a/sdk/operationalinsights/arm-operationalinsights/tsconfig.json +++ b/sdk/operationalinsights/arm-operationalinsights/tsconfig.json @@ -9,11 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file