diff --git a/sdk/operationalinsights/arm-operationalinsights/README.md b/sdk/operationalinsights/arm-operationalinsights/README.md index 513d0855bfb6..05ad8e242225 100644 --- a/sdk/operationalinsights/arm-operationalinsights/README.md +++ b/sdk/operationalinsights/arm-operationalinsights/README.md @@ -1,11 +1,11 @@ ## Azure OperationalInsightsManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for OperationalInsightsManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for OperationalInsightsManagementClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-operationalinsights @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - #### nodejs - Authentication, client creation, and listByWorkspace dataExports as an example written in JavaScript. ##### Sample code @@ -87,7 +85,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmOperationalinsights.OperationalInsightsManagementClient(creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; diff --git a/sdk/operationalinsights/arm-operationalinsights/package.json b/sdk/operationalinsights/arm-operationalinsights/package.json index 89e2cd8ef7dc..80f0c39d2d18 100644 --- a/sdk/operationalinsights/arm-operationalinsights/package.json +++ b/sdk/operationalinsights/arm-operationalinsights/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/operationalinsights/arm-operationalinsights", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/operationalinsights/arm-operationalinsights", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/clustersMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/clustersMappers.ts index 526d3ac0394d..de585c63fe75 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/clustersMappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/clustersMappers.ts @@ -7,8 +7,10 @@ */ export { + AssociatedWorkspace, AzureEntityResource, BaseResource, + CapacityReservationProperties, Cluster, ClusterListResult, ClusterPatch, @@ -32,8 +34,10 @@ export { Table, Tag, TrackedResource, + UserIdentityProperties, Workspace, WorkspaceCapping, + WorkspaceFeatures, WorkspacePatch, WorkspaceSku } from "../models/mappers"; diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/dataExportsMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/dataExportsMappers.ts index 7ae4780713a6..b1a7b2fd1753 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/dataExportsMappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/dataExportsMappers.ts @@ -7,8 +7,10 @@ */ export { + AssociatedWorkspace, AzureEntityResource, BaseResource, + CapacityReservationProperties, Cluster, ClusterPatch, ClusterSku, @@ -32,8 +34,10 @@ export { Table, Tag, TrackedResource, + UserIdentityProperties, Workspace, WorkspaceCapping, + WorkspaceFeatures, WorkspacePatch, WorkspaceSku } from "../models/mappers"; diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/dataSourcesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/dataSourcesMappers.ts index 88e6e0fce92a..10e020a97235 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,8 +32,10 @@ export { Table, Tag, TrackedResource, + UserIdentityProperties, Workspace, WorkspaceCapping, + WorkspaceFeatures, WorkspacePatch, WorkspaceSku } from "../models/mappers"; diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/deletedWorkspacesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/deletedWorkspacesMappers.ts index 6bfe44aaf661..566bd6f18b8a 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/deletedWorkspacesMappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/deletedWorkspacesMappers.ts @@ -7,8 +7,10 @@ */ export { + AssociatedWorkspace, AzureEntityResource, BaseResource, + CapacityReservationProperties, Cluster, ClusterPatch, ClusterSku, @@ -31,8 +33,10 @@ export { Table, Tag, TrackedResource, + UserIdentityProperties, Workspace, WorkspaceCapping, + WorkspaceFeatures, WorkspaceListResult, WorkspacePatch, WorkspaceSku diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts index bfaff881e198..5e7a0c3f0a0f 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts @@ -320,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. */ @@ -445,704 +409,872 @@ export interface UsageMetric { } /** - * The SKU (tier) of a workspace. + * Describes a storage account connection. */ -export interface WorkspaceSku { - /** - * The name of the SKU. Possible values include: 'Free', 'Standard', 'Premium', 'PerNode', - * 'PerGB2018', 'Standalone', 'CapacityReservation', 'LACluster' - */ - name: WorkspaceSkuNameEnum; - /** - * The capacity reservation level for this workspace, when CapacityReservation sku is selected. - */ - capacityReservationLevel?: number; +export interface StorageAccount { /** - * 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 Azure Resource Manager ID of the storage account resource. */ - readonly maxCapacityReservationLevel?: number; + id: string; /** - * The last time when the sku was updated. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The storage account key. */ - readonly lastSkuUpdate?: string; + key: string; } /** - * The daily volume cap for ingestion. + * The status of the storage insight. */ -export interface WorkspaceCapping { - /** - * The workspace daily quota for ingestion. - */ - dailyQuotaGb?: number; +export interface StorageInsightStatus { /** - * The time when the quota will be rest. - * **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 quotaNextResetTime?: string; + state: StorageInsightState; /** - * 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.** + * Description of the state of the storage insight. */ - readonly dataIngestionStatus?: DataIngestionStatus; + description?: string; } /** - * The private link scope resource reference. + * The top level storage insight resource container. */ -export interface PrivateLinkScopedResource { +export interface StorageInsight extends ProxyResource { /** - * The full resource Id of the private link scope resource. + * The names of the blob containers that the workspace should read */ - resourceId?: string; + containers?: string[]; /** - * The private link scope unique Identifier. + * The names of the Azure tables that the workspace should read */ - scopeId?: string; -} - -/** - * The top level Workspace resource container. - */ -export interface Workspace extends TrackedResource { + tables?: string[]; /** - * The provisioning state of the workspace. Possible values include: 'Creating', 'Succeeded', - * 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount', 'Updating' + * The storage account connection details */ - provisioningState?: WorkspaceEntityStatus; + storageAccount: StorageAccount; /** - * This is a read-only property. Represents the ID associated with the workspace. + * The status of the storage insight * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly customerId?: string; + readonly status?: StorageInsightStatus; /** - * The SKU of the workspace. + * The ETag of the storage insight. */ - sku?: WorkspaceSku; + eTag?: string; /** - * The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers - * documentation for details. + * Resource tags. */ - retentionInDays?: number; + tags?: { [propertyName: string]: string }; +} + +/** + * A tag of a saved search. + */ +export interface Tag { /** - * The daily volume cap for ingestion. + * The tag name. */ - workspaceCapping?: WorkspaceCapping; + name: string; /** - * Workspace creation date. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The tag value. */ - readonly createdDate?: string; + value: string; +} + +/** + * Value object for saved search results. + */ +export interface SavedSearch extends ProxyResource { /** - * Workspace modification date. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The ETag of the saved search. To override an existing saved search, use "*" or specify the + * current Etag */ - readonly modifiedDate?: string; + etag?: string; /** - * The network access type for accessing Log Analytics ingestion. Possible values include: - * 'Enabled', 'Disabled'. Default value: 'Enabled'. + * The category of the saved search. This helps the user to find a saved search faster. */ - publicNetworkAccessForIngestion?: PublicNetworkAccessType; + category: string; /** - * The network access type for accessing Log Analytics query. Possible values include: 'Enabled', - * 'Disabled'. Default value: 'Enabled'. + * Saved search display name. */ - publicNetworkAccessForQuery?: PublicNetworkAccessType; + displayName: string; /** - * Indicates whether customer managed storage is mandatory for query management. + * The query expression for the saved search. */ - forceCmkForQuery?: boolean; + query: string; /** - * List of linked private link scope resources. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The function alias if query serves as a function. */ - readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; + functionAlias?: string; /** - * Workspace features. + * 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. */ - features?: { [propertyName: string]: any }; + functionParameters?: string; /** - * The ETag of the workspace. + * The version number of the query language. The current version is 2 and is the default. */ - eTag?: string; + version?: number; + /** + * The tags attached to the saved search. + */ + 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; - /** - * 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; + readonly serviceTier?: SkuNameEnum; /** - * Workspace creation date. + * True if the Service Tier is enabled for the workspace. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly createdDate?: string; + readonly enabled?: boolean; /** - * Workspace modification date. + * The minimum retention for the Service Tier, in days. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly modifiedDate?: string; + 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; /** - * Indicates whether customer managed storage is mandatory for query management. + * 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.** */ - forceCmkForQuery?: boolean; + readonly capacityReservationLevel?: number; /** - * List of linked private link scope resources. + * Time when the sku was last updated for the workspace. Returned for the Capacity Reservation + * Service Tier. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; + readonly lastSkuUpdate?: string; +} + +/** + * The core summary of a search. + */ +export interface CoreSummary { /** - * Workspace features. + * The status of a core summary. */ - features?: { [propertyName: string]: any }; + status?: string; /** - * Resource tags. Optional. + * The number of documents of a core summary. */ - tags?: { [propertyName: string]: string }; + numberOfDocuments: number; } /** - * The key vault properties. + * The sort parameters for search. */ -export interface KeyVaultProperties { +export interface SearchSort { /** - * The Key Vault uri which holds they key associated with the Log Analytics cluster. + * The name of the field the search query is sorted on. */ - keyVaultUri?: string; + name?: string; /** - * The name of the key associated with the Log Analytics cluster. - */ - keyName?: string; - /** - * The version of the key associated with the Log Analytics cluster. + * The sort order of the search. Possible values include: 'asc', 'desc' */ - keyVersion?: string; + 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. + * Workspace data table definition. */ -export interface StorageInsight extends ProxyResource { +export interface Table extends ProxyResource { /** - * The names of the blob containers that the workspace should read + * The data table data retention in days, between 30 and 730. Setting this property to null will + * default to the workspace retention. */ - containers?: string[]; + retentionInDays?: number; +} + +/** + * The key vault properties. + */ +export interface KeyVaultProperties { /** - * The names of the Azure tables that the workspace should read + * The Key Vault uri which holds they key associated with the Log Analytics cluster. */ - tables?: string[]; + keyVaultUri?: string; /** - * The storage account connection details + * The name of the key associated with the Log Analytics cluster. */ - storageAccount: StorageAccount; + keyName?: string; /** - * The status of the storage insight + * The version of the key associated with the Log Analytics cluster. + */ + keyVersion?: string; + /** + * Selected key minimum required size. + */ + keyRsaSize?: number; +} + +/** + * The list of Log Analytics workspaces associated with the cluster. + */ +export interface AssociatedWorkspace { + /** + * The 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; } /** - * 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 cluster's billing type. Possible values include: 'Cluster', 'Workspaces' + */ + billingType?: BillingType; + /** + * 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; + /** + * The cluster's billing type. 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. + * The SKU (tier) of a workspace. */ -export interface SearchMetadata { - /** - * The request id of the search. - */ - searchId?: string; - /** - * The search result type. - */ - resultType?: string; - /** - * The total number of search results. - */ - total?: number; +export interface WorkspaceSku { /** - * The number of top search results. + * The name of the SKU. Possible values include: 'Free', 'Standard', 'Premium', 'PerNode', + * 'PerGB2018', 'Standalone', 'CapacityReservation', 'LACluster' */ - top?: number; + name: WorkspaceSkuNameEnum; /** - * The id of the search results request. + * The capacity reservation level for this workspace, when CapacityReservation sku is selected. */ - id?: string; + capacityReservationLevel?: 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; +} + +/** + * Workspace features. + */ +export interface WorkspaceFeatures { /** - * The request time. + * Flag that indicate if data should be exported. */ - requestTime?: number; + enableDataExport?: boolean; /** - * The aggregated value field. + * Flag that describes if we want to remove the data after 30 days. */ - aggregatedValueField?: string; + immediatePurgeDataOn30Days?: boolean; /** - * The aggregated grouping fields. + * Flag that indicate which permission to use - resource or workspace or both. */ - aggregatedGroupingFields?: string; + enableLogAccessUsingOnlyResourcePermissions?: boolean; /** - * The sum of all aggregates returned in the result set. + * Dedicated LA cluster resourceId that is linked to the workspaces. */ - sum?: number; + clusterResourceId?: string; /** - * The max of all aggregates returned in the result set. + * Disable Non-AAD based Auth. */ - max?: number; + disableLocalAuth?: boolean; /** - * The schema. + * Describes unknown properties. The value of an unknown property can be of "any" type. */ - schema?: SearchMetadataSchema; + [property: string]: any; } /** - * Value object for schema results. + * The top level Workspace resource container. */ -export interface SearchSchemaValue { +export interface Workspace extends TrackedResource { /** - * The name of the schema. + * The provisioning state of the workspace. Possible values include: 'Creating', 'Succeeded', + * 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount', 'Updating' */ - name?: string; + provisioningState?: WorkspaceEntityStatus; /** - * The display name of the schema. + * 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.** */ - displayName?: string; + readonly customerId?: string; /** - * The type. + * The SKU of the workspace. */ - type?: string; + sku?: WorkspaceSku; /** - * The boolean that indicates the field is searchable as free text. + * The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers + * documentation for details. */ - indexed: boolean; + retentionInDays?: number; /** - * The boolean that indicates whether or not the field is stored. + * The daily volume cap for ingestion. */ - stored: boolean; + workspaceCapping?: WorkspaceCapping; /** - * The boolean that indicates whether or not the field is a facet. + * Workspace creation date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - facet: boolean; + readonly createdDate?: string; /** - * The array of workflows containing the field. + * Workspace modification date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - ownerType?: string[]; -} - -/** - * The get schema operation response. - */ -export interface SearchGetSchemaResponse { + readonly modifiedDate?: string; /** - * The metadata from search results. + * The network access type for accessing Log Analytics ingestion. Possible values include: + * 'Enabled', 'Disabled'. Default value: 'Enabled'. */ - metadata?: SearchMetadata; + publicNetworkAccessForIngestion?: PublicNetworkAccessType; /** - * The array of result values. + * The network access type for accessing Log Analytics query. Possible values include: 'Enabled', + * 'Disabled'. Default value: 'Enabled'. */ - value?: SearchSchemaValue[]; -} - -/** - * User-defined filters to return data which will be purged from the table. - */ -export interface WorkspacePurgeBodyFilters { + publicNetworkAccessForQuery?: PublicNetworkAccessType; /** - * The column of the table over which the given query should run + * Indicates whether customer managed storage is mandatory for query management. */ - column?: string; + forceCmkForQuery?: boolean; /** - * 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. + * List of linked private link scope resources. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - operator?: string; + readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; /** - * 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. + * Workspace features. */ - value?: any; + features?: WorkspaceFeatures; /** - * When filtering over custom dimensions, this key will be used as the name of the custom - * dimension. + * The ETag of the workspace. */ - key?: string; + eTag?: string; } /** - * Describes the body of a purge request for an App Insights Workspace + * The top level Workspace resource container. */ -export interface WorkspacePurgeBody { +export interface WorkspacePatch extends AzureEntityResource { /** - * Table from which to purge data. + * The provisioning state of the workspace. Possible values include: 'Creating', 'Succeeded', + * 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount', 'Updating' */ - table: string; + provisioningState?: WorkspaceEntityStatus; /** - * The set of columns and filters (queries) to run over them to purge the resulting data. + * 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.** */ - filters: WorkspacePurgeBodyFilters[]; -} - -/** - * Response containing operationId for a specific purge action. - */ -export interface WorkspacePurgeResponse { + readonly customerId?: string; /** - * Id to use when querying for status for a particular purge operation. + * The SKU of the workspace. */ - operationId: string; -} - -/** - * Response containing status for a specific purge operation. - */ -export interface WorkspacePurgeStatusResponse { + sku?: WorkspaceSku; /** - * Status of the operation represented by the requested Id. Possible values include: 'pending', - * 'completed' + * The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers + * documentation for details. */ - status: PurgeState; -} - -/** - * Workspace data table definition. - */ -export interface Table extends ProxyResource { + retentionInDays?: number; /** - * The data table data retention in days, between 30 and 730. Setting this property to null will - * default to the workspace retention. + * The daily volume cap for ingestion. */ - retentionInDays?: number; + 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. Possible values include: + * 'Enabled', 'Disabled'. Default value: 'Enabled'. + */ + publicNetworkAccessForIngestion?: PublicNetworkAccessType; + /** + * The network access type for accessing Log Analytics query. Possible values include: 'Enabled', + * 'Disabled'. Default value: 'Enabled'. + */ + 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; + /** + * Resource tags. Optional. + */ + tags?: { [propertyName: string]: string }; } /** @@ -1250,31 +1382,30 @@ export interface WorkspaceListManagementGroupsResult extends Array + * The list workspace usages operation response. + * @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; +export interface WorkspaceListUsagesResult extends Array { } /** * @interface - * The list workspace usages operation response. - * @extends Array + * The list storage insights operation response. + * @extends Array */ -export interface WorkspaceListUsagesResult extends Array { +export interface StorageInsightListResult extends Array { + /** + * The link (url) to the next page of results. + */ + odataNextLink?: string; } /** * @interface - * The list workspaces operation response. - * @extends Array + * The list tables operation response. + * @extends Array */ -export interface WorkspaceListResult extends Array { +export interface TablesListResult extends Array
{ } /** @@ -1291,22 +1422,23 @@ 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; } /** * @interface - * The list tables operation response. - * @extends Array
+ * The list workspaces operation response. + * @extends Array */ -export interface TablesListResult extends Array
{ +export interface WorkspaceListResult extends Array { } /** @@ -1352,39 +1484,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', 'LACluster' + * Defines values for StorageInsightState. + * Possible values include: 'OK', 'ERROR' * @readonly * @enum {string} */ -export type WorkspaceSkuNameEnum = 'Free' | 'Standard' | 'Premium' | 'PerNode' | 'PerGB2018' | 'Standalone' | 'CapacityReservation' | 'LACluster'; +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. @@ -1393,7 +1523,23 @@ export type PublicNetworkAccessType = 'Enabled' | 'Disabled'; * @readonly * @enum {string} */ -export type ClusterEntityStatus = 'Creating' | 'Succeeded' | 'Failed' | 'Canceled' | 'Deleting' | 'ProvisioningAccount' | 'Updating'; +export type ClusterEntityStatus = 'Creating' | 'Succeeded' | 'Failed' | 'Canceled' | 'Deleting' | 'ProvisioningAccount' | 'Updating'; + +/** + * Defines values for BillingType. + * Possible values include: 'Cluster', 'Workspaces' + * @readonly + * @enum {string} + */ +export type BillingType = 'Cluster' | 'Workspaces'; + +/** + * Defines values for IdentityType. + * Possible values include: 'SystemAssigned', 'UserAssigned', 'None' + * @readonly + * @enum {string} + */ +export type IdentityType = 'SystemAssigned' | 'UserAssigned' | 'None'; /** * Defines values for ClusterSkuNameEnum. @@ -1404,45 +1550,39 @@ export type ClusterEntityStatus = 'Creating' | 'Succeeded' | 'Failed' | 'Cancele export type ClusterSkuNameEnum = 'CapacityReservation'; /** - * Defines values for IdentityType. - * Possible values include: 'SystemAssigned', 'None' - * @readonly - * @enum {string} - */ -export type IdentityType = 'SystemAssigned' | 'None'; - -/** - * Defines values for StorageInsightState. - * Possible values include: 'OK', 'ERROR' + * Defines values for WorkspaceSkuNameEnum. + * Possible values include: 'Free', 'Standard', 'Premium', 'PerNode', 'PerGB2018', 'Standalone', + * 'CapacityReservation', 'LACluster' * @readonly * @enum {string} */ -export type StorageInsightState = 'OK' | 'ERROR'; +export type WorkspaceSkuNameEnum = 'Free' | 'Standard' | 'Premium' | 'PerNode' | 'PerGB2018' | 'Standalone' | 'CapacityReservation' | 'LACluster'; /** - * Defines values for SkuNameEnum. - * Possible values include: 'Free', 'Standard', 'Premium', 'PerNode', 'PerGB2018', 'Standalone', - * 'CapacityReservation' + * Defines values for DataIngestionStatus. + * Possible values include: 'RespectQuota', 'ForceOn', 'ForceOff', 'OverQuota', + * 'SubscriptionSuspended', 'ApproachingQuota' * @readonly * @enum {string} */ -export type SkuNameEnum = 'Free' | 'Standard' | 'Premium' | 'PerNode' | 'PerGB2018' | 'Standalone' | 'CapacityReservation'; +export type DataIngestionStatus = 'RespectQuota' | 'ForceOn' | 'ForceOff' | 'OverQuota' | 'SubscriptionSuspended' | 'ApproachingQuota'; /** - * Defines values for SearchSortEnum. - * Possible values include: 'asc', 'desc' + * Defines values for WorkspaceEntityStatus. + * Possible values include: 'Creating', 'Succeeded', 'Failed', 'Canceled', 'Deleting', + * 'ProvisioningAccount', 'Updating' * @readonly * @enum {string} */ -export type SearchSortEnum = 'asc' | 'desc'; +export type WorkspaceEntityStatus = 'Creating' | 'Succeeded' | 'Failed' | 'Canceled' | 'Deleting' | 'ProvisioningAccount' | 'Updating'; /** - * Defines values for PurgeState. - * Possible values include: 'pending', 'completed' + * Defines values for PublicNetworkAccessType. + * Possible values include: 'Enabled', 'Disabled' * @readonly * @enum {string} */ -export type PurgeState = 'pending' | 'completed'; +export type PublicNetworkAccessType = 'Enabled' | 'Disabled'; /** * Contains response data for the listByWorkspace operation. @@ -1805,9 +1945,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. */ @@ -1820,14 +1960,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. */ @@ -1840,14 +1980,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. */ @@ -1860,14 +2000,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. */ @@ -1880,14 +2020,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. */ @@ -1900,14 +2040,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. */ @@ -1920,14 +2060,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. */ @@ -1940,14 +2080,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. */ @@ -1960,14 +2100,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. */ @@ -1980,14 +2120,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. */ @@ -2000,14 +2140,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. */ @@ -2020,14 +2160,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. */ @@ -2040,14 +2180,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. */ @@ -2060,18 +2200,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) */ @@ -2080,14 +2225,14 @@ export type DeletedWorkspacesListByResourceGroupResponse = WorkspaceListResult & /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: WorkspacePurgeResponse; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the getPurgeStatus operation. */ -export type ClustersListByResourceGroupResponse = ClusterListResult & { +export type WorkspacePurgeGetPurgeStatusResponse = WorkspacePurgeStatusResponse & { /** * The underlying HTTP response. */ @@ -2100,14 +2245,14 @@ export type ClustersListByResourceGroupResponse = ClusterListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ClusterListResult; + parsedBody: WorkspacePurgeStatusResponse; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByWorkspace operation. */ -export type ClustersListResponse = ClusterListResult & { +export type TablesListByWorkspaceResponse = TablesListResult & { /** * The underlying HTTP response. */ @@ -2120,14 +2265,14 @@ export type ClustersListResponse = ClusterListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ClusterListResult; + parsedBody: TablesListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the update operation. */ -export type ClustersCreateOrUpdateResponse = Cluster & { +export type TablesUpdateResponse = Table & { /** * The underlying HTTP response. */ @@ -2140,14 +2285,14 @@ export type ClustersCreateOrUpdateResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: Table; }; }; /** * Contains response data for the get operation. */ -export type ClustersGetResponse = Cluster & { +export type TablesGetResponse = Table & { /** * The underlying HTTP response. */ @@ -2160,14 +2305,14 @@ export type ClustersGetResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: Table; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listByResourceGroup operation. */ -export type ClustersUpdateResponse = Cluster & { +export type ClustersListByResourceGroupResponse = ClusterListResult & { /** * The underlying HTTP response. */ @@ -2180,14 +2325,14 @@ export type ClustersUpdateResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: ClusterListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the list operation. */ -export type ClustersBeginCreateOrUpdateResponse = Cluster & { +export type ClustersListResponse = ClusterListResult & { /** * The underlying HTTP response. */ @@ -2200,14 +2345,14 @@ export type ClustersBeginCreateOrUpdateResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: ClusterListResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the createOrUpdate operation. */ -export type ClustersListByResourceGroupNextResponse = ClusterListResult & { +export type ClustersCreateOrUpdateResponse = Cluster & { /** * The underlying HTTP response. */ @@ -2220,14 +2365,14 @@ export type ClustersListByResourceGroupNextResponse = ClusterListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ClusterListResult; + parsedBody: Cluster; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type ClustersListNextResponse = ClusterListResult & { +export type ClustersGetResponse = Cluster & { /** * The underlying HTTP response. */ @@ -2240,14 +2385,14 @@ export type ClustersListNextResponse = ClusterListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ClusterListResult; + parsedBody: Cluster; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the update operation. */ -export type StorageInsightConfigsCreateOrUpdateResponse = StorageInsight & { +export type ClustersUpdateResponse = Cluster & { /** * The underlying HTTP response. */ @@ -2260,14 +2405,14 @@ export type StorageInsightConfigsCreateOrUpdateResponse = StorageInsight & { /** * The response body as parsed JSON or XML */ - parsedBody: StorageInsight; + parsedBody: Cluster; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type StorageInsightConfigsGetResponse = StorageInsight & { +export type ClustersBeginCreateOrUpdateResponse = Cluster & { /** * The underlying HTTP response. */ @@ -2280,14 +2425,14 @@ export type StorageInsightConfigsGetResponse = StorageInsight & { /** * The response body as parsed JSON or XML */ - parsedBody: StorageInsight; + parsedBody: Cluster; }; }; /** - * Contains response data for the listByWorkspace operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type StorageInsightConfigsListByWorkspaceResponse = StorageInsightListResult & { +export type ClustersListByResourceGroupNextResponse = ClusterListResult & { /** * The underlying HTTP response. */ @@ -2300,14 +2445,14 @@ export type StorageInsightConfigsListByWorkspaceResponse = StorageInsightListRes /** * The response body as parsed JSON or XML */ - parsedBody: StorageInsightListResult; + parsedBody: ClusterListResult; }; }; /** - * Contains response data for the listByWorkspaceNext operation. + * Contains response data for the listNext operation. */ -export type StorageInsightConfigsListByWorkspaceNextResponse = StorageInsightListResult & { +export type ClustersListNextResponse = ClusterListResult & { /** * The underlying HTTP response. */ @@ -2320,14 +2465,14 @@ export type StorageInsightConfigsListByWorkspaceNextResponse = StorageInsightLis /** * The response body as parsed JSON or XML */ - parsedBody: StorageInsightListResult; + parsedBody: ClusterListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the list operation. */ -export type SavedSearchesCreateOrUpdateResponse = SavedSearch & { +export type OperationsListResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -2340,14 +2485,14 @@ export type SavedSearchesCreateOrUpdateResponse = SavedSearch & { /** * The response body as parsed JSON or XML */ - parsedBody: SavedSearch; + parsedBody: OperationListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type SavedSearchesGetResponse = SavedSearch & { +export type OperationsListNextResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -2360,14 +2505,14 @@ export type SavedSearchesGetResponse = SavedSearch & { /** * The response body as parsed JSON or XML */ - parsedBody: SavedSearch; + parsedBody: OperationListResult; }; }; /** - * 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. */ @@ -2380,14 +2525,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. */ @@ -2400,14 +2545,14 @@ export type AvailableServiceTiersListByWorkspaceResponse = Array