Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sdk automation/@azure arm operationalinsights #10935

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,9 @@ export const LinkedStorageAccountsResource: msRest.CompositeMapper = {
name: "Enum",
allowedValues: [
"CustomLogs",
"AzureWatson"
"AzureWatson",
"Query",
"Alerts"
]
}
},
Expand Down Expand Up @@ -802,7 +804,7 @@ export const Workspace: msRest.CompositeMapper = {
serializedName: "properties.retentionInDays",
constraints: {
InclusiveMaximum: 730,
InclusiveMinimum: -1
InclusiveMinimum: 30
},
type: {
name: "Number"
Expand Down Expand Up @@ -883,7 +885,7 @@ export const WorkspacePatch: msRest.CompositeMapper = {
serializedName: "properties.retentionInDays",
constraints: {
InclusiveMaximum: 730,
InclusiveMinimum: -1
InclusiveMinimum: 30
},
type: {
name: "Number"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ export const dataSourceType: msRest.OperationURLParameter = {
name: "Enum",
allowedValues: [
"CustomLogs",
"AzureWatson"
"AzureWatson",
"Query",
"Alerts"
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -37,25 +37,25 @@ export class OperationalInsightsManagementClientContext extends msRestAzure.Azur
if (!options) {
options = {};
}
if(!options.userAgent) {
if (!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}

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";
this.requestContentType = "application/json; charset=utf-8";
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;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Models.LinkedStorageAccountsCreateOrUpdateResponse>
Expand All @@ -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
*/
Expand All @@ -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
Expand All @@ -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<msRest.RestResponse>
*/
Expand All @@ -85,15 +85,15 @@ 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>): void;
/**
* @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
*/
Expand All @@ -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<Models.LinkedStorageAccountsGetResponse>
*/
Expand All @@ -125,15 +125,15 @@ 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<Models.LinkedStorageAccountsResource>): void;
/**
* @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
*/
Expand Down