diff --git a/sdk/operationalinsights/arm-operationalinsights/package.json b/sdk/operationalinsights/arm-operationalinsights/package.json index 7c0ab0ee610a..e05f38ed0b65 100644 --- a/sdk/operationalinsights/arm-operationalinsights/package.json +++ b/sdk/operationalinsights/arm-operationalinsights/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-operationalinsights", "author": "Microsoft Corporation", "description": "OperationalInsightsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "2.0.0", + "version": "3.0.0", "dependencies": { "@azure/ms-rest-azure-js": "^2.0.1", "@azure/ms-rest-js": "^2.0.4", diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts index 7b4c9e48cf5b..d0fe360776c7 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts @@ -270,7 +270,7 @@ export interface LinkedService extends ProxyResource { export interface LinkedStorageAccountsResource extends ProxyResource { /** * Linked storage accounts type. Possible values include: 'CustomLogs', 'AzureWatson', 'Query', - * 'Ingestion', 'Alerts' + * 'Alerts' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly dataSourceType?: DataSourceType; @@ -473,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; /** @@ -522,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; /** @@ -570,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; /** @@ -1319,11 +1317,11 @@ export type LinkedServiceEntityStatus = 'Succeeded' | 'Deleting' | 'Provisioning /** * Defines values for DataSourceType. - * Possible values include: 'CustomLogs', 'AzureWatson', 'Query', 'Ingestion', 'Alerts' + * Possible values include: 'CustomLogs', 'AzureWatson', 'Query', 'Alerts' * @readonly * @enum {string} */ -export type DataSourceType = 'CustomLogs' | 'AzureWatson' | 'Query' | 'Ingestion' | 'Alerts'; +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 4c9c0f4976b0..befc4d87a383 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts @@ -412,7 +412,6 @@ export const LinkedStorageAccountsResource: msRest.CompositeMapper = { "CustomLogs", "AzureWatson", "Query", - "Ingestion", "Alerts" ] } @@ -805,7 +804,7 @@ export const Workspace: msRest.CompositeMapper = { serializedName: "properties.retentionInDays", constraints: { InclusiveMaximum: 730, - InclusiveMinimum: -1 + InclusiveMinimum: 30 }, type: { name: "Number" @@ -886,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 b83e4641490d..b3c84763fa03 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts @@ -114,7 +114,6 @@ export const dataSourceType: msRest.OperationURLParameter = { "CustomLogs", "AzureWatson", "Query", - "Ingestion", "Alerts" ] } diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts index 590d65dd9fa8..71a88b924119 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-operationalinsights"; -const packageVersion = "2.0.0"; +const packageVersion = "3.0.0"; export class OperationalInsightsManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -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 bf092d4f3220..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', 'Query', 'Ingestion', 'Alerts' + * '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', 'Query', 'Ingestion', 'Alerts' + * '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', 'Query', 'Ingestion', 'Alerts' + * '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', 'Query', 'Ingestion', 'Alerts' + * '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', 'Query', 'Ingestion', 'Alerts' + * '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', 'Query', 'Ingestion', 'Alerts' + * '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', 'Query', 'Ingestion', 'Alerts' + * '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', 'Query', 'Ingestion', 'Alerts' + * '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', 'Query', 'Ingestion', 'Alerts' + * 'AzureWatson', 'Query', 'Alerts' * @param options The optional parameters * @param callback The callback */