diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts index 53ccc24a692a..d0fe360776c7 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts @@ -269,7 +269,8 @@ export interface LinkedService extends ProxyResource { */ export interface LinkedStorageAccountsResource extends ProxyResource { /** - * Linked storage accounts type. Possible values include: 'CustomLogs', 'AzureWatson' + * Linked storage accounts type. Possible values include: 'CustomLogs', 'AzureWatson', 'Query', + * 'Alerts' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly dataSourceType?: DataSourceType; @@ -472,7 +473,7 @@ export interface WorkspaceSku { */ export interface WorkspaceCapping { /** - * The workspace daily quota for ingestion. -1 means unlimited. + * The workspace daily quota for ingestion. */ dailyQuotaGb?: number; /** @@ -521,8 +522,7 @@ export interface Workspace extends TrackedResource { */ sku?: WorkspaceSku; /** - * The workspace data retention in days. -1 means Unlimited retention for the Unlimited Sku. 730 - * days is the maximum allowed for all other Skus. + * The workspace data retention in days, between 30 and 730. */ retentionInDays?: number; /** @@ -569,8 +569,7 @@ export interface WorkspacePatch extends AzureEntityResource { */ sku?: WorkspaceSku; /** - * The workspace data retention in days. -1 means Unlimited retention for the Unlimited Sku. 730 - * days is the maximum allowed for all other Skus. + * The workspace data retention in days, between 30 and 730. */ retentionInDays?: number; /** @@ -1318,11 +1317,11 @@ export type LinkedServiceEntityStatus = 'Succeeded' | 'Deleting' | 'Provisioning /** * Defines values for DataSourceType. - * Possible values include: 'CustomLogs', 'AzureWatson' + * Possible values include: 'CustomLogs', 'AzureWatson', 'Query', 'Alerts' * @readonly * @enum {string} */ -export type DataSourceType = 'CustomLogs' | 'AzureWatson'; +export type DataSourceType = 'CustomLogs' | 'AzureWatson' | 'Query' | 'Alerts'; /** * Defines values for WorkspaceSkuNameEnum. diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts index 67b33b23c24f..befc4d87a383 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts @@ -410,7 +410,9 @@ export const LinkedStorageAccountsResource: msRest.CompositeMapper = { name: "Enum", allowedValues: [ "CustomLogs", - "AzureWatson" + "AzureWatson", + "Query", + "Alerts" ] } }, @@ -802,7 +804,7 @@ export const Workspace: msRest.CompositeMapper = { serializedName: "properties.retentionInDays", constraints: { InclusiveMaximum: 730, - InclusiveMinimum: -1 + InclusiveMinimum: 30 }, type: { name: "Number" @@ -883,7 +885,7 @@ export const WorkspacePatch: msRest.CompositeMapper = { serializedName: "properties.retentionInDays", constraints: { InclusiveMaximum: 730, - InclusiveMinimum: -1 + InclusiveMinimum: 30 }, type: { name: "Number" diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts index 200a64a58ac4..b3c84763fa03 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts @@ -112,7 +112,9 @@ export const dataSourceType: msRest.OperationURLParameter = { name: "Enum", allowedValues: [ "CustomLogs", - "AzureWatson" + "AzureWatson", + "Query", + "Alerts" ] } } diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts index 7ca0b6769c2e..71a88b924119 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts @@ -44,7 +44,7 @@ export class OperationalInsightsManagementClientContext extends msRestAzure.Azur super(credentials, options); - this.apiVersion = '2020-03-01-preview'; + this.apiVersion = '2020-08-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedStorageAccounts.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedStorageAccounts.ts index 0c3a6e5e4332..f8bca31db0a2 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedStorageAccounts.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedStorageAccounts.ts @@ -32,7 +32,7 @@ export class LinkedStorageAccounts { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dataSourceType Linked storage accounts type. Possible values include: 'CustomLogs', - * 'AzureWatson' + * 'AzureWatson', 'Query', 'Alerts' * @param parameters The parameters required to create or update linked storage accounts. * @param [options] The optional parameters * @returns Promise @@ -42,7 +42,7 @@ export class LinkedStorageAccounts { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dataSourceType Linked storage accounts type. Possible values include: 'CustomLogs', - * 'AzureWatson' + * 'AzureWatson', 'Query', 'Alerts' * @param parameters The parameters required to create or update linked storage accounts. * @param callback The callback */ @@ -51,7 +51,7 @@ export class LinkedStorageAccounts { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dataSourceType Linked storage accounts type. Possible values include: 'CustomLogs', - * 'AzureWatson' + * 'AzureWatson', 'Query', 'Alerts' * @param parameters The parameters required to create or update linked storage accounts. * @param options The optional parameters * @param callback The callback @@ -76,7 +76,7 @@ export class LinkedStorageAccounts { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dataSourceType Linked storage accounts type. Possible values include: 'CustomLogs', - * 'AzureWatson' + * 'AzureWatson', 'Query', 'Alerts' * @param [options] The optional parameters * @returns Promise */ @@ -85,7 +85,7 @@ export class LinkedStorageAccounts { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dataSourceType Linked storage accounts type. Possible values include: 'CustomLogs', - * 'AzureWatson' + * 'AzureWatson', 'Query', 'Alerts' * @param callback The callback */ deleteMethod(resourceGroupName: string, workspaceName: string, dataSourceType: Models.DataSourceType, callback: msRest.ServiceCallback): void; @@ -93,7 +93,7 @@ export class LinkedStorageAccounts { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dataSourceType Linked storage accounts type. Possible values include: 'CustomLogs', - * 'AzureWatson' + * 'AzureWatson', 'Query', 'Alerts' * @param options The optional parameters * @param callback The callback */ @@ -116,7 +116,7 @@ export class LinkedStorageAccounts { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dataSourceType Linked storage accounts type. Possible values include: 'CustomLogs', - * 'AzureWatson' + * 'AzureWatson', 'Query', 'Alerts' * @param [options] The optional parameters * @returns Promise */ @@ -125,7 +125,7 @@ export class LinkedStorageAccounts { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dataSourceType Linked storage accounts type. Possible values include: 'CustomLogs', - * 'AzureWatson' + * 'AzureWatson', 'Query', 'Alerts' * @param callback The callback */ get(resourceGroupName: string, workspaceName: string, dataSourceType: Models.DataSourceType, callback: msRest.ServiceCallback): void; @@ -133,7 +133,7 @@ export class LinkedStorageAccounts { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dataSourceType Linked storage accounts type. Possible values include: 'CustomLogs', - * 'AzureWatson' + * 'AzureWatson', 'Query', 'Alerts' * @param options The optional parameters * @param callback The callback */