Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR applicationinsights/resource-manager] Modify Workbook Resource Type to include RG and remove unused endpoint #2756

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 @@ -71,6 +71,7 @@ export default class ApplicationInsightsManagementClient extends AzureServiceCli
favorite: operations.Favorite;
webTestLocations: operations.WebTestLocations;
webTests: operations.WebTests;
analyticsItem: operations.AnalyticsItem;
workbooksOperations: operations.WorkbooksOperations;
workbookOperations: operations.WorkbookOperations;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class ApplicationInsightsManagementClient extends ServiceClient {
this.favorite = new operations.Favorite(this);
this.webTestLocations = new operations.WebTestLocations(this);
this.webTests = new operations.WebTests(this);
this.analyticsItem = new operations.AnalyticsItem(this);
this.workbooksOperations = new operations.WorkbooksOperations(this);
this.workbookOperations = new operations.WorkbookOperations(this);
this.models = models;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

const models = require('./index');

/**
* Properties that define an Analytics item that is associated to an
* Application Insights component.
*
*/
class ApplicationInsightsComponentAnalyticsItem {
/**
* Create a ApplicationInsightsComponentAnalyticsItem.
* @member {string} [id] Internally assigned unique id of the item
* definition.
* @member {string} [name] The user-defined name of the item.
* @member {string} [content] The content of this item
* @member {string} [version] This instance's version of the data model. This
* can change as new features are added.
* @member {string} [scope] Enum indicating if this item definition is owned
* by a specific user or is shared between all users with access to the
* Application Insights component. Possible values include: 'shared', 'user'
* @member {string} [type] Enum indicating the type of the Analytics item.
* Possible values include: 'query', 'function', 'folder', 'recent'
* @member {string} [timeCreated] Date and time in UTC when this item was
* created.
* @member {string} [timeModified] Date and time in UTC of the last
* modification that was made to this item.
* @member {object} [properties]
* @member {string} [properties.functionAlias] A function alias, used when
* the type of the item is Function
*/
constructor() {
}

/**
* Defines the metadata of ApplicationInsightsComponentAnalyticsItem
*
* @returns {object} metadata of ApplicationInsightsComponentAnalyticsItem
*
*/
mapper() {
return {
required: false,
serializedName: 'ApplicationInsightsComponentAnalyticsItem',
type: {
name: 'Composite',
className: 'ApplicationInsightsComponentAnalyticsItem',
modelProperties: {
id: {
required: false,
serializedName: 'Id',
type: {
name: 'String'
}
},
name: {
required: false,
serializedName: 'Name',
type: {
name: 'String'
}
},
content: {
required: false,
serializedName: 'Content',
type: {
name: 'String'
}
},
version: {
required: false,
readOnly: true,
serializedName: 'Version',
type: {
name: 'String'
}
},
scope: {
required: false,
serializedName: 'Scope',
type: {
name: 'String'
}
},
type: {
required: false,
serializedName: 'Type',
type: {
name: 'String'
}
},
timeCreated: {
required: false,
readOnly: true,
serializedName: 'TimeCreated',
type: {
name: 'String'
}
},
timeModified: {
required: false,
readOnly: true,
serializedName: 'TimeModified',
type: {
name: 'String'
}
},
properties: {
required: false,
serializedName: 'Properties',
type: {
name: 'Composite',
className: 'ApplicationInsightsComponentAnalyticsItemProperties'
}
}
}
}
};
}
}

module.exports = ApplicationInsightsComponentAnalyticsItem;
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* A set of properties that can be defined in the context of a specific item
* type. Each type may have its own properties.
*
*/
class ApplicationInsightsComponentAnalyticsItemProperties {
/**
* Create a ApplicationInsightsComponentAnalyticsItemProperties.
* @member {string} [functionAlias] A function alias, used when the type of
* the item is Function
*/
constructor() {
}

/**
* Defines the metadata of ApplicationInsightsComponentAnalyticsItemProperties
*
* @returns {object} metadata of ApplicationInsightsComponentAnalyticsItemProperties
*
*/
mapper() {
return {
required: false,
serializedName: 'ApplicationInsightsComponentAnalyticsItemProperties',
type: {
name: 'Composite',
className: 'ApplicationInsightsComponentAnalyticsItemProperties',
modelProperties: {
functionAlias: {
required: false,
serializedName: 'functionAlias',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = ApplicationInsightsComponentAnalyticsItemProperties;
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ class ComponentPurgeBodyFilters {
* Create a ComponentPurgeBodyFilters.
* @member {string} [column] The column of the table over which the given
* query should run
* @member {string} [filter] A query to to run over the provided table and
* column to purge the corresponding data.
* @member {string} [operator] A query operator to evaluate over the provided
* column and value(s).
* @member {object} [value] 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.
*/
constructor() {
}
Expand All @@ -46,12 +49,19 @@ class ComponentPurgeBodyFilters {
name: 'String'
}
},
filter: {
operator: {
required: false,
serializedName: 'filter',
serializedName: 'operator',
type: {
name: 'String'
}
},
value: {
required: false,
serializedName: 'value',
type: {
name: 'Object'
}
}
}
}
Expand Down
61 changes: 58 additions & 3 deletions lib/services/applicationinsights/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -629,12 +629,16 @@ export interface ApplicationInsightsComponent extends Resource {
*
* @member {string} [column] The column of the table over which the given query
* should run
* @member {string} [filter] A query to to run over the provided table and
* column to purge the corresponding data.
* @member {string} [operator] A query operator to evaluate over the provided
* column and value(s).
* @member {object} [value] 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.
*/
export interface ComponentPurgeBodyFilters {
column?: string;
filter?: string;
operator?: string;
value?: any;
}

/**
Expand Down Expand Up @@ -876,6 +880,57 @@ export interface WebTest extends Resource {
readonly provisioningState?: string;
}

/**
* @class
* Initializes a new instance of the ApplicationInsightsComponentAnalyticsItemProperties class.
* @constructor
* A set of properties that can be defined in the context of a specific item
* type. Each type may have its own properties.
*
* @member {string} [functionAlias] A function alias, used when the type of the
* item is Function
*/
export interface ApplicationInsightsComponentAnalyticsItemProperties {
functionAlias?: string;
}

/**
* @class
* Initializes a new instance of the ApplicationInsightsComponentAnalyticsItem class.
* @constructor
* Properties that define an Analytics item that is associated to an
* Application Insights component.
*
* @member {string} [id] Internally assigned unique id of the item definition.
* @member {string} [name] The user-defined name of the item.
* @member {string} [content] The content of this item
* @member {string} [version] This instance's version of the data model. This
* can change as new features are added.
* @member {string} [scope] Enum indicating if this item definition is owned by
* a specific user or is shared between all users with access to the
* Application Insights component. Possible values include: 'shared', 'user'
* @member {string} [type] Enum indicating the type of the Analytics item.
* Possible values include: 'query', 'function', 'folder', 'recent'
* @member {string} [timeCreated] Date and time in UTC when this item was
* created.
* @member {string} [timeModified] Date and time in UTC of the last
* modification that was made to this item.
* @member {object} [properties]
* @member {string} [properties.functionAlias] A function alias, used when the
* type of the item is Function
*/
export interface ApplicationInsightsComponentAnalyticsItem {
id?: string;
name?: string;
content?: string;
readonly version?: string;
scope?: string;
type?: string;
readonly timeCreated?: string;
readonly timeModified?: string;
properties?: ApplicationInsightsComponentAnalyticsItemProperties;
}

/**
* @class
* Initializes a new instance of the Workbook class.
Expand Down
2 changes: 2 additions & 0 deletions lib/services/applicationinsights/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ exports.ApplicationInsightsComponentWebTestLocation = require('./applicationInsi
exports.WebTestGeolocation = require('./webTestGeolocation');
exports.WebTestPropertiesConfiguration = require('./webTestPropertiesConfiguration');
exports.WebTest = require('./webTest');
exports.ApplicationInsightsComponentAnalyticsItemProperties = require('./applicationInsightsComponentAnalyticsItemProperties');
exports.ApplicationInsightsComponentAnalyticsItem = require('./applicationInsightsComponentAnalyticsItem');
exports.Workbook = require('./workbook');
exports.Workbooks = require('./workbooks');
exports.LinkProperties = require('./linkProperties');
Expand Down
Loading