diff --git a/sdk/operationalinsights/arm-operationalinsights/LICENSE.txt b/sdk/operationalinsights/arm-operationalinsights/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/operationalinsights/arm-operationalinsights/LICENSE.txt +++ b/sdk/operationalinsights/arm-operationalinsights/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 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/src/models/clustersMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/clustersMappers.ts index 8c57a4c89ea0..e4df8e92242b 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/clustersMappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/clustersMappers.ts @@ -7,16 +7,18 @@ */ export { + AssociatedWorkspace, AzureEntityResource, BaseResource, + CapacityReservationProperties, Cluster, - ClusterErrorResponse, ClusterListResult, ClusterPatch, ClusterSku, DataExport, DataSource, ErrorAdditionalInfo, + ErrorDetail, ErrorResponse, Identity, KeyVaultProperties, @@ -32,6 +34,7 @@ export { Table, Tag, TrackedResource, + UserIdentityProperties, Workspace, WorkspaceCapping, WorkspacePatch, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/dataExportsMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/dataExportsMappers.ts index 4190b479deee..20df09059da4 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/dataExportsMappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/dataExportsMappers.ts @@ -7,16 +7,18 @@ */ export { + AssociatedWorkspace, AzureEntityResource, BaseResource, + CapacityReservationProperties, Cluster, ClusterPatch, ClusterSku, DataExport, - DataExportErrorResponse, DataExportListResult, DataSource, ErrorAdditionalInfo, + ErrorDetail, ErrorResponse, Identity, KeyVaultProperties, @@ -32,6 +34,7 @@ export { Table, Tag, TrackedResource, + UserIdentityProperties, Workspace, WorkspaceCapping, WorkspacePatch, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/dataSourcesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/dataSourcesMappers.ts index 88e6e0fce92a..140f78060a74 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/dataSourcesMappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/dataSourcesMappers.ts @@ -7,8 +7,10 @@ */ export { + AssociatedWorkspace, AzureEntityResource, BaseResource, + CapacityReservationProperties, CloudError, Cluster, ClusterPatch, @@ -30,6 +32,7 @@ export { Table, Tag, TrackedResource, + UserIdentityProperties, Workspace, WorkspaceCapping, WorkspacePatch, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/deletedWorkspacesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/deletedWorkspacesMappers.ts index 8929502dace2..49c1d3bc22c9 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/deletedWorkspacesMappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/deletedWorkspacesMappers.ts @@ -7,14 +7,18 @@ */ export { + AssociatedWorkspace, AzureEntityResource, BaseResource, - CloudError, + CapacityReservationProperties, Cluster, ClusterPatch, ClusterSku, DataExport, DataSource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Identity, KeyVaultProperties, LinkedService, @@ -29,6 +33,7 @@ export { Table, Tag, TrackedResource, + UserIdentityProperties, Workspace, WorkspaceCapping, WorkspaceListResult, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts index 7ad0bf333eac..496ffa653f7d 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts @@ -22,7 +22,7 @@ export interface DataExport extends BaseResource { /** * An array of tables to export, for example: [“Heartbeat, SecurityEvent”]. */ - tableNames?: string[]; + tableNames: string[]; /** * The destination resource ID. This can be copied from the Properties entry of the destination * resource in Azure. @@ -52,66 +52,6 @@ export interface DataExport extends BaseResource { lastModifiedDate?: string; } -/** - * The resource management error additional info. - */ -export interface ErrorAdditionalInfo { - /** - * The additional info type. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * The additional info. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly info?: any; -} - -/** - * Common error response for all Azure Resource Manager APIs to return error details for failed - * operations. (This also follows the OData error response format.) - * @summary Error Response - */ -export interface ErrorResponse { - /** - * The error code. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly code?: string; - /** - * The error message. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly message?: string; - /** - * The error target. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly target?: string; - /** - * The error details. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly details?: ErrorResponse[]; - /** - * The error additional info. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly additionalInfo?: ErrorAdditionalInfo[]; -} - -/** - * Error response indicates that the service is not able to process the incoming request. The - * reason is provided in the error message. - */ -export interface DataExportErrorResponse { - /** - * The details of the error. - */ - error?: ErrorResponse; -} - /** * Common fields that are returned in the response for all Azure Resource Manager resources * @summary Resource @@ -172,6 +112,65 @@ export interface AzureEntityResource extends Resource { export interface ProxyResource extends Resource { } +/** + * The resource management error additional info. + */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly info?: any; +} + +/** + * The error detail. + */ +export interface ErrorDetail { + /** + * The error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly code?: string; + /** + * The error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; + /** + * The error target. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly target?: string; + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** + * Common error response for all Azure Resource Manager APIs to return error details for failed + * operations. (This also follows the OData error response format.). + * @summary Error response + */ +export interface ErrorResponse { + /** + * The error object. + */ + error?: ErrorDetail; +} + /** * Datasources under OMS Workspace. */ @@ -321,42 +320,6 @@ export interface ManagementGroup { sku?: string; } -/** - * Display metadata associated with the operation. - */ -export interface OperationDisplay { - /** - * Service provider: Microsoft OperationsManagement. - */ - provider?: string; - /** - * Resource on which the operation is performed etc. - */ - resource?: string; - /** - * Type of operation: get, read, delete, etc. - */ - operation?: string; - /** - * Description of operation - */ - description?: string; -} - -/** - * Supported operation of OperationalInsights resource provider. - */ -export interface Operation { - /** - * Operation name: {provider}/{resource}/{operation} - */ - name?: string; - /** - * Display metadata associated with the operation. - */ - display?: OperationDisplay; -} - /** * The status of operation. */ @@ -446,688 +409,864 @@ export interface UsageMetric { } /** - * The SKU (tier) of a workspace. + * Describes a storage account connection. */ -export interface WorkspaceSku { +export interface StorageAccount { /** - * The name of the SKU. Possible values include: 'Free', 'Standard', 'Premium', 'PerNode', - * 'PerGB2018', 'Standalone', 'CapacityReservation' + * The Azure Resource Manager ID of the storage account resource. */ - name: WorkspaceSkuNameEnum; + id: string; /** - * The capacity reservation level for this workspace, when CapacityReservation sku is selected. + * The storage account key. */ - capacityReservationLevel?: number; + key: string; +} + +/** + * The status of the storage insight. + */ +export interface StorageInsightStatus { /** - * The maximum capacity reservation level available for this workspace, when CapacityReservation - * sku is selected. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The state of the storage insight connection to the workspace. Possible values include: 'OK', + * 'ERROR' */ - readonly maxCapacityReservationLevel?: number; + state: StorageInsightState; /** - * The last time when the sku was updated. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Description of the state of the storage insight. */ - readonly lastSkuUpdate?: string; + description?: string; } /** - * The daily volume cap for ingestion. + * The top level storage insight resource container. */ -export interface WorkspaceCapping { +export interface StorageInsight extends ProxyResource { /** - * The workspace daily quota for ingestion. + * The names of the blob containers that the workspace should read */ - dailyQuotaGb?: number; + containers?: string[]; /** - * The time when the quota will be rest. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The names of the Azure tables that the workspace should read */ - readonly quotaNextResetTime?: string; + tables?: string[]; /** - * The status of data ingestion for this workspace. Possible values include: 'RespectQuota', - * 'ForceOn', 'ForceOff', 'OverQuota', 'SubscriptionSuspended', 'ApproachingQuota' + * The storage account connection details + */ + storageAccount: StorageAccount; + /** + * The status of the storage insight * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly dataIngestionStatus?: DataIngestionStatus; + readonly status?: StorageInsightStatus; + /** + * The ETag of the storage insight. + */ + eTag?: string; + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; } /** - * The private link scope resource reference. + * A tag of a saved search. */ -export interface PrivateLinkScopedResource { +export interface Tag { /** - * The full resource Id of the private link scope resource. + * The tag name. */ - resourceId?: string; + name: string; /** - * The private link scope unique Identifier. + * The tag value. */ - scopeId?: string; + value: string; } /** - * The top level Workspace resource container. + * Value object for saved search results. */ -export interface Workspace extends TrackedResource { +export interface SavedSearch extends ProxyResource { /** - * The provisioning state of the workspace. Possible values include: 'Creating', 'Succeeded', - * 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount', 'Updating' + * The ETag of the saved search. */ - provisioningState?: WorkspaceEntityStatus; + etag?: string; /** - * This is a read-only property. Represents the ID associated with the workspace. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The category of the saved search. This helps the user to find a saved search faster. */ - readonly customerId?: string; + category: string; /** - * The SKU of the workspace. + * Saved search display name. */ - sku?: WorkspaceSku; + displayName: string; /** - * The workspace data retention in days, between 30 and 730. + * The query expression for the saved search. */ - retentionInDays?: number; + query: string; /** - * The daily volume cap for ingestion. + * The function alias if query serves as a function. */ - workspaceCapping?: WorkspaceCapping; + functionAlias?: string; /** - * The network access type for accessing Log Analytics ingestion. Possible values include: - * 'Enabled', 'Disabled'. Default value: 'Enabled'. + * The optional function parameters if query serves as a function. Value should be in the + * following format: 'param-name1:type1 = default_value1, param-name2:type2 = default_value2'. + * For more examples and proper syntax please refer to + * https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions. */ - publicNetworkAccessForIngestion?: PublicNetworkAccessType; + functionParameters?: string; /** - * The network access type for accessing Log Analytics query. Possible values include: 'Enabled', - * 'Disabled'. Default value: 'Enabled'. + * The version number of the query language. The current version is 2 and is the default. */ - publicNetworkAccessForQuery?: PublicNetworkAccessType; + version?: number; /** - * List of linked private link scope resources. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The tags attached to the saved search. */ - readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; - /** - * The ETag of the workspace. - */ - eTag?: string; + tags?: Tag[]; } /** - * The top level Workspace resource container. + * The saved search list operation response. */ -export interface WorkspacePatch extends AzureEntityResource { +export interface SavedSearchesListResult { /** - * The provisioning state of the workspace. Possible values include: 'Creating', 'Succeeded', - * 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount', 'Updating' + * The array of result values. */ - provisioningState?: WorkspaceEntityStatus; + value?: SavedSearch[]; +} + +/** + * Service Tier details. + */ +export interface AvailableServiceTier { /** - * This is a read-only property. Represents the ID associated with the workspace. + * The name of the Service Tier. Possible values include: 'Free', 'Standard', 'Premium', + * 'PerNode', 'PerGB2018', 'Standalone', 'CapacityReservation' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly customerId?: string; - /** - * The SKU of the workspace. - */ - sku?: WorkspaceSku; + readonly serviceTier?: SkuNameEnum; /** - * The workspace data retention in days, between 30 and 730. + * True if the Service Tier is enabled for the workspace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - retentionInDays?: number; + readonly enabled?: boolean; /** - * The daily volume cap for ingestion. + * The minimum retention for the Service Tier, in days. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - workspaceCapping?: WorkspaceCapping; + readonly minimumRetention?: number; /** - * The network access type for accessing Log Analytics ingestion. Possible values include: - * 'Enabled', 'Disabled'. Default value: 'Enabled'. + * The maximum retention for the Service Tier, in days. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - publicNetworkAccessForIngestion?: PublicNetworkAccessType; + readonly maximumRetention?: number; /** - * The network access type for accessing Log Analytics query. Possible values include: 'Enabled', - * 'Disabled'. Default value: 'Enabled'. + * The default retention for the Service Tier, in days. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - publicNetworkAccessForQuery?: PublicNetworkAccessType; + readonly defaultRetention?: number; /** - * List of linked private link scope resources. + * The capacity reservation level in GB per day. Returned for the Capacity Reservation Service + * Tier. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; + readonly capacityReservationLevel?: number; /** - * Resource tags. Optional. + * Time when the sku was last updated for the workspace. Returned for the Capacity Reservation + * Service Tier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tags?: { [propertyName: string]: string }; + readonly lastSkuUpdate?: string; } /** - * The key vault properties. + * The core summary of a search. */ -export interface KeyVaultProperties { - /** - * The Key Vault uri which holds they key associated with the Log Analytics cluster. - */ - keyVaultUri?: string; +export interface CoreSummary { /** - * The name of the key associated with the Log Analytics cluster. + * The status of a core summary. */ - keyName?: string; + status?: string; /** - * The version of the key associated with the Log Analytics cluster. + * The number of documents of a core summary. */ - keyVersion?: string; + numberOfDocuments: number; } /** - * Error response indicates that the service is not able to process the incoming request. The - * reason is provided in the error message. + * The sort parameters for search. */ -export interface ClusterErrorResponse { +export interface SearchSort { /** - * The details of the error. + * The name of the field the search query is sorted on. */ - error?: ErrorResponse; + name?: string; + /** + * The sort order of the search. Possible values include: 'asc', 'desc' + */ + order?: SearchSortEnum; } /** - * The cluster sku definition. + * Schema metadata for search. */ -export interface ClusterSku { +export interface SearchMetadataSchema { /** - * The capacity value + * The name of the metadata schema. */ - capacity?: number; + name?: string; /** - * The name of the SKU. Possible values include: 'CapacityReservation' + * The version of the metadata schema. */ - name?: ClusterSkuNameEnum; + version?: number; } /** - * The top level Log Analytics cluster resource container. + * Metadata for search results. */ -export interface ClusterPatch extends BaseResource { +export interface SearchMetadata { /** - * The associated key properties. + * The request id of the search. */ - keyVaultProperties?: KeyVaultProperties; + searchId?: string; /** - * The sku properties. + * The search result type. */ - sku?: ClusterSku; + resultType?: string; /** - * Resource tags. + * The total number of search results. */ - tags?: { [propertyName: string]: string }; + total?: number; + /** + * The number of top search results. + */ + top?: number; + /** + * The id of the search results request. + */ + id?: string; + /** + * The core summaries. + */ + coreSummaries?: CoreSummary[]; + /** + * The status of the search results. + */ + status?: string; + /** + * The start time for the search. + */ + startTime?: Date; + /** + * The time of last update. + */ + lastUpdated?: Date; + /** + * The ETag of the search results. + */ + eTag?: string; + /** + * How the results are sorted. + */ + sort?: SearchSort[]; + /** + * The request time. + */ + requestTime?: number; + /** + * The aggregated value field. + */ + aggregatedValueField?: string; + /** + * The aggregated grouping fields. + */ + aggregatedGroupingFields?: string; + /** + * The sum of all aggregates returned in the result set. + */ + sum?: number; + /** + * The max of all aggregates returned in the result set. + */ + max?: number; + /** + * The schema. + */ + schema?: SearchMetadataSchema; } /** - * Identity for the resource. + * Value object for schema results. */ -export interface Identity { +export interface SearchSchemaValue { /** - * The principal ID of resource identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the schema. */ - readonly principalId?: string; + name?: string; /** - * The tenant ID of resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The display name of the schema. */ - readonly tenantId?: string; + displayName?: string; /** - * The identity type. Possible values include: 'SystemAssigned', 'None' + * The type. */ - type: IdentityType; + type?: string; + /** + * The boolean that indicates the field is searchable as free text. + */ + indexed: boolean; + /** + * The boolean that indicates whether or not the field is stored. + */ + stored: boolean; + /** + * The boolean that indicates whether or not the field is a facet. + */ + facet: boolean; + /** + * The array of workflows containing the field. + */ + ownerType?: string[]; } /** - * The top level Log Analytics cluster resource container. + * The get schema operation response. */ -export interface Cluster extends TrackedResource { +export interface SearchGetSchemaResponse { /** - * The identity of the resource. + * The metadata from search results. */ - identity?: Identity; + metadata?: SearchMetadata; /** - * The sku properties. + * The array of result values. */ - sku?: ClusterSku; + value?: SearchSchemaValue[]; +} + +/** + * User-defined filters to return data which will be purged from the table. + */ +export interface WorkspacePurgeBodyFilters { /** - * The link used to get the next page of recommendations. + * The column of the table over which the given query should run */ - nextLink?: string; + column?: string; /** - * The ID associated with the cluster. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A query operator to evaluate over the provided column and value(s). Supported operators are + * ==, =~, in, in~, >, >=, <, <=, between, and have the same behavior as they would in a KQL + * query. */ - readonly clusterId?: string; + operator?: string; /** - * The provisioning state of the cluster. Possible values include: 'Creating', 'Succeeded', - * 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount', 'Updating' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * the value for the operator to function over. This can be a number (e.g., > 100), a string + * (timestamp >= '2017-09-01') or array of values. */ - readonly provisioningState?: ClusterEntityStatus; + value?: any; /** - * The associated key properties. + * When filtering over custom dimensions, this key will be used as the name of the custom + * dimension. */ - keyVaultProperties?: KeyVaultProperties; + key?: string; } /** - * Describes a storage account connection. + * Describes the body of a purge request for an App Insights Workspace */ -export interface StorageAccount { +export interface WorkspacePurgeBody { /** - * The Azure Resource Manager ID of the storage account resource. + * Table from which to purge data. */ - id: string; + table: string; /** - * The storage account key. + * The set of columns and filters (queries) to run over them to purge the resulting data. */ - key: string; + filters: WorkspacePurgeBodyFilters[]; } /** - * The status of the storage insight. + * Response containing operationId for a specific purge action. */ -export interface StorageInsightStatus { +export interface WorkspacePurgeResponse { /** - * The state of the storage insight connection to the workspace. Possible values include: 'OK', - * 'ERROR' + * Id to use when querying for status for a particular purge operation. */ - state: StorageInsightState; + operationId: string; +} + +/** + * Response containing status for a specific purge operation. + */ +export interface WorkspacePurgeStatusResponse { /** - * Description of the state of the storage insight. + * Status of the operation represented by the requested Id. Possible values include: 'pending', + * 'completed' */ - description?: string; + status: PurgeState; } /** - * The top level storage insight resource container. + * The key vault properties. */ -export interface StorageInsight extends ProxyResource { +export interface KeyVaultProperties { /** - * The names of the blob containers that the workspace should read + * The Key Vault uri which holds they key associated with the Log Analytics cluster. */ - containers?: string[]; + keyVaultUri?: string; /** - * The names of the Azure tables that the workspace should read + * The name of the key associated with the Log Analytics cluster. */ - tables?: string[]; + keyName?: string; /** - * The storage account connection details + * The version of the key associated with the Log Analytics cluster. */ - storageAccount: StorageAccount; + keyVersion?: string; /** - * The status of the storage insight + * Selected key minimum required size. + */ + keyRsaSize?: number; +} + +/** + * The list of Log Analytics workspaces associated with the cluster. + */ +export interface AssociatedWorkspace { + /** + * The id of the assigned workspace. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly status?: StorageInsightStatus; + readonly workspaceId?: string; /** - * The ETag of the storage insight. + * The name id the assigned workspace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - eTag?: string; + readonly workspaceName?: string; /** - * Resource tags. + * The ResourceId id the assigned workspace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tags?: { [propertyName: string]: string }; + readonly resourceId?: string; + /** + * The time of workspace association. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly associateDate?: string; } /** - * A tag of a saved search. + * The Capacity Reservation properties. */ -export interface Tag { +export interface CapacityReservationProperties { /** - * The tag name. + * The last time Sku was updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name: string; + readonly lastSkuUpdate?: string; /** - * The tag value. + * Minimum CapacityReservation value in GB. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - value: string; + readonly minCapacity?: number; + /** + * Maximum CapacityReservation value in GB. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly maxCapacity?: number; } /** - * Value object for saved search results. + * User assigned identity properties. */ -export interface SavedSearch extends ProxyResource { +export interface UserIdentityProperties { /** - * The ETag of the saved search. + * The principal id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - etag?: string; + readonly principalId?: string; /** - * The category of the saved search. This helps the user to find a saved search faster. + * The client id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - category: string; + readonly clientId?: string; +} + +/** + * Identity for the resource. + */ +export interface Identity { /** - * Saved search display name. + * The principal ID of resource identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - displayName: string; + readonly principalId?: string; /** - * The query expression for the saved search. + * The tenant ID of resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - query: string; + readonly tenantId?: string; /** - * The function alias if query serves as a function. + * Type of managed service identity. Possible values include: 'SystemAssigned', 'UserAssigned', + * 'None' */ - functionAlias?: string; + type: IdentityType; /** - * The optional function parameters if query serves as a function. Value should be in the - * following format: 'param-name1:type1 = default_value1, param-name2:type2 = default_value2'. - * For more examples and proper syntax please refer to - * https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions. + * The list of user identities associated with the resource. The user identity dictionary key + * references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ - functionParameters?: string; + userAssignedIdentities?: { [propertyName: string]: UserIdentityProperties }; +} + +/** + * The cluster sku definition. + */ +export interface ClusterSku { /** - * The version number of the query language. The current version is 2 and is the default. + * The capacity value */ - version?: number; + capacity?: number; /** - * The tags attached to the saved search. + * The name of the SKU. Possible values include: 'CapacityReservation' */ - tags?: Tag[]; + name?: ClusterSkuNameEnum; } /** - * The saved search list operation response. + * The top level Log Analytics cluster resource container. */ -export interface SavedSearchesListResult { +export interface ClusterPatch extends BaseResource { /** - * The array of result values. + * The associated key properties. */ - value?: SavedSearch[]; + keyVaultProperties?: KeyVaultProperties; + /** + * The identity of the resource. + */ + identity?: Identity; + /** + * The sku properties. + */ + sku?: ClusterSku; + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; } /** - * Service Tier details. + * The top level Log Analytics cluster resource container. */ -export interface AvailableServiceTier { +export interface Cluster extends TrackedResource { /** - * The name of the Service Tier. Possible values include: 'Free', 'Standard', 'Premium', - * 'PerNode', 'PerGB2018', 'Standalone', 'CapacityReservation' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The identity of the resource. */ - readonly serviceTier?: SkuNameEnum; + identity?: Identity; /** - * True if the Service Tier is enabled for the workspace. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The sku properties. */ - readonly enabled?: boolean; + sku?: ClusterSku; /** - * The minimum retention for the Service Tier, in days. + * The ID associated with the cluster. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly minimumRetention?: number; + readonly clusterId?: string; /** - * The maximum retention for the Service Tier, in days. + * The provisioning state of the cluster. Possible values include: 'Creating', 'Succeeded', + * 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount', 'Updating' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly maximumRetention?: number; + readonly provisioningState?: ClusterEntityStatus; /** - * The default retention for the Service Tier, in days. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Configures whether cluster will use double encryption. This Property can not be modified after + * cluster creation. Default value is 'true' */ - readonly defaultRetention?: number; + isDoubleEncryptionEnabled?: boolean; /** - * The capacity reservation level in GB per day. Returned for the Capacity Reservation Service - * Tier. + * 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; + /** + * Configures whether billing will be only on the cluster or each workspace will be billed by its + * proportional use. This does not change the overall billing, only how it will be distributed. + * Default value is 'Cluster'. Possible values include: 'Cluster', 'Workspaces' + */ + 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 capacityReservationLevel?: number; + readonly lastModifiedDate?: string; /** - * Time when the sku was last updated for the workspace. Returned for the Capacity Reservation - * Service Tier. + * The cluster creation time * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly lastSkuUpdate?: string; -} - -/** - * The core summary of a search. - */ -export interface CoreSummary { + readonly createdDate?: string; /** - * The status of a core summary. + * The list of Log Analytics workspaces associated with the cluster */ - status?: string; + associatedWorkspaces?: AssociatedWorkspace[]; /** - * The number of documents of a core summary. + * Additional properties for capacity reservation */ - numberOfDocuments: number; + capacityReservationProperties?: CapacityReservationProperties; } /** - * The sort parameters for search. + * Display metadata associated with the operation. */ -export interface SearchSort { +export interface OperationDisplay { /** - * The name of the field the search query is sorted on. + * Service provider: Microsoft OperationsManagement. */ - name?: string; + provider?: string; /** - * The sort order of the search. Possible values include: 'asc', 'desc' + * Resource on which the operation is performed etc. */ - order?: SearchSortEnum; + resource?: string; + /** + * Type of operation: get, read, delete, etc. + */ + operation?: string; + /** + * Description of operation + */ + description?: string; } /** - * Schema metadata for search. + * Supported operation of OperationalInsights resource provider. */ -export interface SearchMetadataSchema { +export interface Operation { /** - * The name of the metadata schema. + * Operation name: {provider}/{resource}/{operation} */ name?: string; /** - * The version of the metadata schema. + * Display metadata associated with the operation. */ - version?: number; + display?: OperationDisplay; } /** - * Metadata for search results. + * Workspace data table definition. */ -export interface SearchMetadata { +export interface Table extends ProxyResource { /** - * The request id of the search. + * The data table data retention in days, between 7 and 730. Setting this property to null will + * default to the workspace retention. */ - searchId?: string; + retentionInDays?: number; /** - * The search result type. + * 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.** */ - resultType?: string; + readonly isTroubleshootingAllowed?: boolean; /** - * The total number of search results. + * Enable or disable troubleshoot for this table. */ - total?: number; + 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; +} + +/** + * The SKU (tier) of a workspace. + */ +export interface WorkspaceSku { + /** + * The name of the SKU. Possible values include: 'Free', 'Standard', 'Premium', 'PerNode', + * 'PerGB2018', 'Standalone', 'CapacityReservation', 'LACluster' + */ + name: WorkspaceSkuNameEnum; /** - * The number of top search results. + * The capacity reservation level for this workspace, when CapacityReservation sku is selected. */ - top?: number; + capacityReservationLevel?: number; /** - * The id of the search results request. + * The maximum capacity reservation level available for this workspace, when CapacityReservation + * sku is selected. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - id?: string; + readonly maxCapacityReservationLevel?: number; /** - * The core summaries. + * The last time when the sku was updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - coreSummaries?: CoreSummary[]; + readonly lastSkuUpdate?: string; +} + +/** + * The daily volume cap for ingestion. + */ +export interface WorkspaceCapping { /** - * The status of the search results. + * The workspace daily quota for ingestion. */ - status?: string; + dailyQuotaGb?: number; /** - * The start time for the search. + * The time when the quota will be rest. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - startTime?: Date; + readonly quotaNextResetTime?: string; /** - * The time of last update. + * The status of data ingestion for this workspace. Possible values include: 'RespectQuota', + * 'ForceOn', 'ForceOff', 'OverQuota', 'SubscriptionSuspended', 'ApproachingQuota' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - lastUpdated?: Date; + readonly dataIngestionStatus?: DataIngestionStatus; +} + +/** + * The private link scope resource reference. + */ +export interface PrivateLinkScopedResource { /** - * The ETag of the search results. + * The full resource Id of the private link scope resource. */ - eTag?: string; + resourceId?: string; /** - * How the results are sorted. + * The private link scope unique Identifier. */ - sort?: SearchSort[]; + scopeId?: string; +} + +/** + * The top level Workspace resource container. + */ +export interface Workspace extends TrackedResource { /** - * The request time. + * The provisioning state of the workspace. Possible values include: 'Creating', 'Succeeded', + * 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount', 'Updating' */ - requestTime?: number; + provisioningState?: WorkspaceEntityStatus; /** - * The aggregated value field. + * 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.** */ - aggregatedValueField?: string; + readonly customerId?: string; /** - * The aggregated grouping fields. + * The SKU of the workspace. */ - aggregatedGroupingFields?: string; + sku?: WorkspaceSku; /** - * The sum of all aggregates returned in the result set. + * The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers + * documentation for details. */ - sum?: number; + retentionInDays?: number; /** - * The max of all aggregates returned in the result set. + * The daily volume cap for ingestion. */ - max?: number; + workspaceCapping?: WorkspaceCapping; /** - * The schema. + * Workspace creation date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - schema?: SearchMetadataSchema; -} - -/** - * Value object for schema results. - */ -export interface SearchSchemaValue { + readonly createdDate?: string; /** - * The name of the schema. + * Workspace modification date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: string; + readonly modifiedDate?: string; /** - * The display name of the schema. + * The network access type for accessing Log Analytics ingestion. Possible values include: + * 'Enabled', 'Disabled'. Default value: 'Enabled'. */ - displayName?: string; + publicNetworkAccessForIngestion?: PublicNetworkAccessType; /** - * The type. + * The network access type for accessing Log Analytics query. Possible values include: 'Enabled', + * 'Disabled'. Default value: 'Enabled'. */ - type?: string; + publicNetworkAccessForQuery?: PublicNetworkAccessType; /** - * The boolean that indicates the field is searchable as free text. + * Indicates whether customer managed storage is mandatory for query management. */ - indexed: boolean; + forceCmkForQuery?: boolean; /** - * The boolean that indicates whether or not the field is stored. + * List of linked private link scope resources. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - stored: boolean; + readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; /** - * The boolean that indicates whether or not the field is a facet. + * Workspace features. */ - facet: boolean; + features?: { [propertyName: string]: any }; /** - * The array of workflows containing the field. + * The ETag of the workspace. */ - ownerType?: string[]; + eTag?: string; } /** - * The get schema operation response. + * The top level Workspace resource container. */ -export interface SearchGetSchemaResponse { +export interface WorkspacePatch extends AzureEntityResource { /** - * The metadata from search results. + * The provisioning state of the workspace. Possible values include: 'Creating', 'Succeeded', + * 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount', 'Updating' */ - metadata?: SearchMetadata; + provisioningState?: WorkspaceEntityStatus; /** - * The array of result values. + * 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.** */ - value?: SearchSchemaValue[]; -} - -/** - * User-defined filters to return data which will be purged from the table. - */ -export interface WorkspacePurgeBodyFilters { + readonly customerId?: string; /** - * The column of the table over which the given query should run + * The SKU of the workspace. */ - column?: string; + sku?: WorkspaceSku; /** - * A query operator to evaluate over the provided column and value(s). Supported operators are - * ==, =~, in, in~, >, >=, <, <=, between, and have the same behavior as they would in a KQL - * query. + * The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers + * documentation for details. */ - operator?: string; + retentionInDays?: number; /** - * the value for the operator to function over. This can be a number (e.g., > 100), a string - * (timestamp >= '2017-09-01') or array of values. + * The daily volume cap for ingestion. */ - value?: any; + workspaceCapping?: WorkspaceCapping; /** - * When filtering over custom dimensions, this key will be used as the name of the custom - * dimension. + * Workspace creation date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - key?: string; -} - -/** - * Describes the body of a purge request for an App Insights Workspace - */ -export interface WorkspacePurgeBody { + readonly createdDate?: string; /** - * Table from which to purge data. + * Workspace modification date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - table: string; + readonly modifiedDate?: string; /** - * The set of columns and filters (queries) to run over them to purge the resulting data. + * The network access type for accessing Log Analytics ingestion. Possible values include: + * 'Enabled', 'Disabled'. Default value: 'Enabled'. */ - filters: WorkspacePurgeBodyFilters[]; -} - -/** - * Response containing operationId for a specific purge action. - */ -export interface WorkspacePurgeResponse { + publicNetworkAccessForIngestion?: PublicNetworkAccessType; /** - * Id to use when querying for status for a particular purge operation. + * The network access type for accessing Log Analytics query. Possible values include: 'Enabled', + * 'Disabled'. Default value: 'Enabled'. */ - operationId: string; -} - -/** - * Response containing status for a specific purge operation. - */ -export interface WorkspacePurgeStatusResponse { + publicNetworkAccessForQuery?: PublicNetworkAccessType; /** - * Status of the operation represented by the requested Id. Possible values include: 'pending', - * 'completed' + * Indicates whether customer managed storage is mandatory for query management. */ - status: PurgeState; -} - -/** - * Workspace data table definition. - */ -export interface Table extends ProxyResource { + forceCmkForQuery?: boolean; /** - * The data table data retention in days, between 30 and 730. Setting this property to null will - * default to the workspace retention. + * List of linked private link scope resources. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - retentionInDays?: number; -} - -/** - * Contains details when the response code indicates an error. - * @summary Error details. - */ -export interface ErrorContract { + readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; /** - * The details of the error. + * Workspace features. */ - error?: ErrorResponse; + features?: { [propertyName: string]: any }; + /** + * Resource tags. Optional. + */ + tags?: { [propertyName: string]: string }; } /** @@ -1233,19 +1372,6 @@ export interface LinkedStorageAccountsListResult extends Array { } -/** - * @interface - * Result of the request to list solution operations. - * @extends Array - */ -export interface OperationListResult extends Array { - /** - * URL to get the next set of operation list results if there are any. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; -} - /** * @interface * The list workspace usages operation response. @@ -1256,10 +1382,14 @@ export interface WorkspaceListUsagesResult extends Array { /** * @interface - * The list workspaces operation response. - * @extends Array + * The list storage insights operation response. + * @extends Array */ -export interface WorkspaceListResult extends Array { +export interface StorageInsightListResult extends Array { + /** + * The link (url) to the next page of results. + */ + odataNextLink?: string; } /** @@ -1276,14 +1406,15 @@ export interface ClusterListResult extends Array { /** * @interface - * The list storage insights operation response. - * @extends Array + * Result of the request to list solution operations. + * @extends Array */ -export interface StorageInsightListResult extends Array { +export interface OperationListResult extends Array { /** - * The link (url) to the next page of results. + * 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.** */ - odataNextLink?: string; + readonly nextLink?: string; } /** @@ -1294,6 +1425,14 @@ export interface StorageInsightListResult extends Array { export interface TablesListResult extends Array { } +/** + * @interface + * The list workspaces operation response. + * @extends Array + */ +export interface WorkspaceListResult extends Array { +} + /** * Defines values for Type. * Possible values include: 'StorageAccount', 'EventHub' @@ -1337,39 +1476,37 @@ export type LinkedServiceEntityStatus = 'Succeeded' | 'Deleting' | 'Provisioning export type DataSourceType = 'CustomLogs' | 'AzureWatson' | 'Query' | 'Alerts'; /** - * Defines values for WorkspaceSkuNameEnum. - * Possible values include: 'Free', 'Standard', 'Premium', 'PerNode', 'PerGB2018', 'Standalone', - * 'CapacityReservation' + * Defines values for StorageInsightState. + * Possible values include: 'OK', 'ERROR' * @readonly * @enum {string} */ -export type WorkspaceSkuNameEnum = 'Free' | 'Standard' | 'Premium' | 'PerNode' | 'PerGB2018' | 'Standalone' | 'CapacityReservation'; +export type StorageInsightState = 'OK' | 'ERROR'; /** - * Defines values for DataIngestionStatus. - * Possible values include: 'RespectQuota', 'ForceOn', 'ForceOff', 'OverQuota', - * 'SubscriptionSuspended', 'ApproachingQuota' + * Defines values for SkuNameEnum. + * Possible values include: 'Free', 'Standard', 'Premium', 'PerNode', 'PerGB2018', 'Standalone', + * 'CapacityReservation' * @readonly * @enum {string} */ -export type DataIngestionStatus = 'RespectQuota' | 'ForceOn' | 'ForceOff' | 'OverQuota' | 'SubscriptionSuspended' | 'ApproachingQuota'; +export type SkuNameEnum = 'Free' | 'Standard' | 'Premium' | 'PerNode' | 'PerGB2018' | 'Standalone' | 'CapacityReservation'; /** - * Defines values for WorkspaceEntityStatus. - * Possible values include: 'Creating', 'Succeeded', 'Failed', 'Canceled', 'Deleting', - * 'ProvisioningAccount', 'Updating' + * Defines values for SearchSortEnum. + * Possible values include: 'asc', 'desc' * @readonly * @enum {string} */ -export type WorkspaceEntityStatus = 'Creating' | 'Succeeded' | 'Failed' | 'Canceled' | 'Deleting' | 'ProvisioningAccount' | 'Updating'; +export type SearchSortEnum = 'asc' | 'desc'; /** - * Defines values for PublicNetworkAccessType. - * Possible values include: 'Enabled', 'Disabled' + * Defines values for PurgeState. + * Possible values include: 'pending', 'completed' * @readonly * @enum {string} */ -export type PublicNetworkAccessType = 'Enabled' | 'Disabled'; +export type PurgeState = 'pending' | 'completed'; /** * Defines values for ClusterEntityStatus. @@ -1381,53 +1518,63 @@ export type PublicNetworkAccessType = 'Enabled' | 'Disabled'; export type ClusterEntityStatus = 'Creating' | 'Succeeded' | 'Failed' | 'Canceled' | 'Deleting' | 'ProvisioningAccount' | 'Updating'; /** - * Defines values for ClusterSkuNameEnum. - * Possible values include: 'CapacityReservation' + * Defines values for BillingType. + * Possible values include: 'Cluster', 'Workspaces' * @readonly * @enum {string} */ -export type ClusterSkuNameEnum = 'CapacityReservation'; +export type BillingType = 'Cluster' | 'Workspaces'; /** * Defines values for IdentityType. - * Possible values include: 'SystemAssigned', 'None' + * Possible values include: 'SystemAssigned', 'UserAssigned', 'None' * @readonly * @enum {string} */ -export type IdentityType = 'SystemAssigned' | 'None'; +export type IdentityType = 'SystemAssigned' | 'UserAssigned' | 'None'; /** - * Defines values for StorageInsightState. - * Possible values include: 'OK', 'ERROR' + * Defines values for ClusterSkuNameEnum. + * Possible values include: 'CapacityReservation' * @readonly * @enum {string} */ -export type StorageInsightState = 'OK' | 'ERROR'; +export type ClusterSkuNameEnum = 'CapacityReservation'; /** - * Defines values for SkuNameEnum. + * Defines values for WorkspaceSkuNameEnum. * Possible values include: 'Free', 'Standard', 'Premium', 'PerNode', 'PerGB2018', 'Standalone', - * 'CapacityReservation' + * 'CapacityReservation', 'LACluster' * @readonly * @enum {string} */ -export type SkuNameEnum = 'Free' | 'Standard' | 'Premium' | 'PerNode' | 'PerGB2018' | 'Standalone' | 'CapacityReservation'; +export type WorkspaceSkuNameEnum = 'Free' | 'Standard' | 'Premium' | 'PerNode' | 'PerGB2018' | 'Standalone' | 'CapacityReservation' | 'LACluster'; /** - * Defines values for SearchSortEnum. - * Possible values include: 'asc', 'desc' + * Defines values for DataIngestionStatus. + * Possible values include: 'RespectQuota', 'ForceOn', 'ForceOff', 'OverQuota', + * 'SubscriptionSuspended', 'ApproachingQuota' * @readonly * @enum {string} */ -export type SearchSortEnum = 'asc' | 'desc'; +export type DataIngestionStatus = 'RespectQuota' | 'ForceOn' | 'ForceOff' | 'OverQuota' | 'SubscriptionSuspended' | 'ApproachingQuota'; /** - * Defines values for PurgeState. - * Possible values include: 'pending', 'completed' + * Defines values for WorkspaceEntityStatus. + * Possible values include: 'Creating', 'Succeeded', 'Failed', 'Canceled', 'Deleting', + * 'ProvisioningAccount', 'Updating' * @readonly * @enum {string} */ -export type PurgeState = 'pending' | 'completed'; +export type WorkspaceEntityStatus = 'Creating' | 'Succeeded' | 'Failed' | 'Canceled' | 'Deleting' | 'ProvisioningAccount' | 'Updating'; + +/** + * Defines values for PublicNetworkAccessType. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type PublicNetworkAccessType = 'Enabled' | 'Disabled'; /** * Contains response data for the listByWorkspace operation. @@ -1790,9 +1937,9 @@ export type ManagementGroupsListResponse = WorkspaceListManagementGroupsResult & }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type OperationsListResponse = OperationListResult & { +export type OperationStatusesGetResponse = OperationStatus & { /** * The underlying HTTP response. */ @@ -1805,14 +1952,14 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: OperationStatus; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the getSharedKeys operation. */ -export type OperationsListNextResponse = OperationListResult & { +export type SharedKeysGetSharedKeysResponse = SharedKeys & { /** * The underlying HTTP response. */ @@ -1825,14 +1972,14 @@ export type OperationsListNextResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: SharedKeys; }; }; /** - * Contains response data for the get operation. + * Contains response data for the regenerate operation. */ -export type OperationStatusesGetResponse = OperationStatus & { +export type SharedKeysRegenerateResponse = SharedKeys & { /** * The underlying HTTP response. */ @@ -1845,14 +1992,14 @@ export type OperationStatusesGetResponse = OperationStatus & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationStatus; + parsedBody: SharedKeys; }; }; /** - * Contains response data for the getSharedKeys operation. + * Contains response data for the list operation. */ -export type SharedKeysGetSharedKeysResponse = SharedKeys & { +export type UsagesListResponse = WorkspaceListUsagesResult & { /** * The underlying HTTP response. */ @@ -1865,14 +2012,14 @@ export type SharedKeysGetSharedKeysResponse = SharedKeys & { /** * The response body as parsed JSON or XML */ - parsedBody: SharedKeys; + parsedBody: WorkspaceListUsagesResult; }; }; /** - * Contains response data for the regenerate operation. + * Contains response data for the createOrUpdate operation. */ -export type SharedKeysRegenerateResponse = SharedKeys & { +export type StorageInsightConfigsCreateOrUpdateResponse = StorageInsight & { /** * The underlying HTTP response. */ @@ -1885,14 +2032,14 @@ export type SharedKeysRegenerateResponse = SharedKeys & { /** * The response body as parsed JSON or XML */ - parsedBody: SharedKeys; + parsedBody: StorageInsight; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type UsagesListResponse = WorkspaceListUsagesResult & { +export type StorageInsightConfigsGetResponse = StorageInsight & { /** * The underlying HTTP response. */ @@ -1905,14 +2052,14 @@ export type UsagesListResponse = WorkspaceListUsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListUsagesResult; + parsedBody: StorageInsight; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByWorkspace operation. */ -export type WorkspacesListResponse = WorkspaceListResult & { +export type StorageInsightConfigsListByWorkspaceResponse = StorageInsightListResult & { /** * The underlying HTTP response. */ @@ -1925,14 +2072,14 @@ export type WorkspacesListResponse = WorkspaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: StorageInsightListResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listByWorkspaceNext operation. */ -export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { +export type StorageInsightConfigsListByWorkspaceNextResponse = StorageInsightListResult & { /** * The underlying HTTP response. */ @@ -1945,14 +2092,14 @@ export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: StorageInsightListResult; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type WorkspacesCreateOrUpdateResponse = Workspace & { +export type SavedSearchesCreateOrUpdateResponse = SavedSearch & { /** * The underlying HTTP response. */ @@ -1965,14 +2112,14 @@ export type WorkspacesCreateOrUpdateResponse = Workspace & { /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: SavedSearch; }; }; /** * Contains response data for the get operation. */ -export type WorkspacesGetResponse = Workspace & { +export type SavedSearchesGetResponse = SavedSearch & { /** * The underlying HTTP response. */ @@ -1985,14 +2132,14 @@ export type WorkspacesGetResponse = Workspace & { /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: SavedSearch; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listByWorkspace operation. */ -export type WorkspacesUpdateResponse = Workspace & { +export type SavedSearchesListByWorkspaceResponse = SavedSearchesListResult & { /** * The underlying HTTP response. */ @@ -2005,14 +2152,14 @@ export type WorkspacesUpdateResponse = Workspace & { /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: SavedSearchesListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByWorkspace operation. */ -export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { +export type AvailableServiceTiersListByWorkspaceResponse = Array & { /** * The underlying HTTP response. */ @@ -2025,14 +2172,14 @@ export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: AvailableServiceTier[]; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type DeletedWorkspacesListResponse = WorkspaceListResult & { +export type SchemaGetResponse = SearchGetSchemaResponse & { /** * The underlying HTTP response. */ @@ -2045,18 +2192,23 @@ export type DeletedWorkspacesListResponse = WorkspaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: SearchGetSchemaResponse; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the purge operation. */ -export type DeletedWorkspacesListByResourceGroupResponse = WorkspaceListResult & { +export type WorkspacePurgePurgeResponse = WorkspacePurgeResponse & WorkspacePurgePurgeHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: WorkspacePurgePurgeHeaders; + /** * The response body as text (string format) */ @@ -2065,7 +2217,27 @@ export type DeletedWorkspacesListByResourceGroupResponse = WorkspaceListResult & /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: WorkspacePurgeResponse; + }; +}; + +/** + * Contains response data for the getPurgeStatus operation. + */ +export type WorkspacePurgeGetPurgeStatusResponse = WorkspacePurgeStatusResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkspacePurgeStatusResponse; }; }; @@ -2230,9 +2402,9 @@ export type ClustersListNextResponse = ClusterListResult & { }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the list operation. */ -export type StorageInsightConfigsCreateOrUpdateResponse = StorageInsight & { +export type OperationsListResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -2245,14 +2417,14 @@ export type StorageInsightConfigsCreateOrUpdateResponse = StorageInsight & { /** * The response body as parsed JSON or XML */ - parsedBody: StorageInsight; + parsedBody: OperationListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type StorageInsightConfigsGetResponse = StorageInsight & { +export type OperationsListNextResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -2265,34 +2437,14 @@ export type StorageInsightConfigsGetResponse = StorageInsight & { /** * The response body as parsed JSON or XML */ - parsedBody: StorageInsight; + parsedBody: OperationListResult; }; }; /** * Contains response data for the listByWorkspace operation. */ -export type StorageInsightConfigsListByWorkspaceResponse = StorageInsightListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: StorageInsightListResult; - }; -}; - -/** - * Contains response data for the listByWorkspaceNext operation. - */ -export type StorageInsightConfigsListByWorkspaceNextResponse = StorageInsightListResult & { +export type TablesListByWorkspaceResponse = TablesListResult & { /** * The underlying HTTP response. */ @@ -2305,14 +2457,14 @@ export type StorageInsightConfigsListByWorkspaceNextResponse = StorageInsightLis /** * The response body as parsed JSON or XML */ - parsedBody: StorageInsightListResult; + parsedBody: TablesListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the update operation. */ -export type SavedSearchesCreateOrUpdateResponse = SavedSearch & { +export type TablesUpdateResponse = Table & { /** * The underlying HTTP response. */ @@ -2325,14 +2477,14 @@ export type SavedSearchesCreateOrUpdateResponse = SavedSearch & { /** * The response body as parsed JSON or XML */ - parsedBody: SavedSearch; + parsedBody: Table; }; }; /** * Contains response data for the get operation. */ -export type SavedSearchesGetResponse = SavedSearch & { +export type TablesGetResponse = Table & { /** * The underlying HTTP response. */ @@ -2345,14 +2497,14 @@ export type SavedSearchesGetResponse = SavedSearch & { /** * The response body as parsed JSON or XML */ - parsedBody: SavedSearch; + parsedBody: Table; }; }; /** - * Contains response data for the listByWorkspace operation. + * Contains response data for the list operation. */ -export type SavedSearchesListByWorkspaceResponse = SavedSearchesListResult & { +export type WorkspacesListResponse = WorkspaceListResult & { /** * The underlying HTTP response. */ @@ -2365,14 +2517,14 @@ export type SavedSearchesListByWorkspaceResponse = SavedSearchesListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SavedSearchesListResult; + parsedBody: WorkspaceListResult; }; }; /** - * Contains response data for the listByWorkspace operation. + * Contains response data for the listByResourceGroup operation. */ -export type AvailableServiceTiersListByWorkspaceResponse = Array & { +export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { /** * The underlying HTTP response. */ @@ -2385,14 +2537,14 @@ export type AvailableServiceTiersListByWorkspaceResponse = Array