From cdd76ec9bc8148a78072a95310a53e5bbc862da5 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Mon, 24 Aug 2020 02:10:00 +0000 Subject: [PATCH 1/2] Generated from ba891b7274af8cb22ee173e1998b4145d2d8d98b Adding a point get. --- .../src/models/index.ts | 15 +++++++-------- .../src/models/mappers.ts | 8 +++++--- .../src/models/parameters.ts | 4 +++- ...erationalInsightsManagementClientContext.ts | 2 +- .../src/operations/linkedStorageAccounts.ts | 18 +++++++++--------- 5 files changed, 25 insertions(+), 22 deletions(-) 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 */ From f61faf5a455b99c1ecfc00497752fb090f8e2613 Mon Sep 17 00:00:00 2001 From: Changlong Liu Date: Mon, 31 Aug 2020 11:02:09 +0800 Subject: [PATCH 2/2] version 4.0.0 --- .../arm-operationalinsights/package.json | 2 +- .../src/operationalInsightsManagementClientContext.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sdk/operationalinsights/arm-operationalinsights/package.json b/sdk/operationalinsights/arm-operationalinsights/package.json index e05f38ed0b65..95d35dbda598 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": "3.0.0", + "version": "4.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/operationalInsightsManagementClientContext.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts index 71a88b924119..2980f6aad2a0 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 = "3.0.0"; +const packageVersion = "4.0.0"; export class OperationalInsightsManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -37,7 +37,7 @@ export class OperationalInsightsManagementClientContext extends msRestAzure.Azur if (!options) { options = {}; } - if(!options.userAgent) { + if (!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } @@ -52,10 +52,10 @@ export class OperationalInsightsManagementClientContext extends msRestAzure.Azur this.credentials = credentials; this.subscriptionId = subscriptionId; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } }