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

Commit

Permalink
[AutoPR applicationinsights/resource-manager] Java tags1 (#3087)
Browse files Browse the repository at this point in the history
* Generated from 414f3b0aa9e434782dc37b0fbe8f71f567975b7e

Using plural for operation group name consistently

* Generated from 190ab39fd849acebb0ff3546dc03ee4de9b94c42

Using plural for operation group name consistently
  • Loading branch information
AutorestCI authored Jul 2, 2018
1 parent 42675cd commit cb5318c
Show file tree
Hide file tree
Showing 22 changed files with 3,653 additions and 759 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,10 @@ export default class ApplicationInsightsManagementClient extends AzureServiceCli
components: operations.Components;
workItemConfigurations: operations.WorkItemConfigurations;
favorites: operations.Favorites;
favorite: operations.Favorite;
webTestLocations: operations.WebTestLocations;
webTests: operations.WebTests;
analyticsItem: operations.AnalyticsItem;
workbooksOperations: operations.WorkbooksOperations;
workbookOperations: operations.WorkbookOperations;
analyticsItems: operations.AnalyticsItems;
workbooks: operations.Workbooks;
}

export { ApplicationInsightsManagementClient, models as ApplicationInsightsManagementModels };
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,10 @@ class ApplicationInsightsManagementClient extends ServiceClient {
this.components = new operations.Components(this);
this.workItemConfigurations = new operations.WorkItemConfigurations(this);
this.favorites = new operations.Favorites(this);
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.analyticsItems = new operations.AnalyticsItems(this);
this.workbooks = new operations.Workbooks(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
* 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';

/**
* Annotations list result.
*/
class AnnotationsListResult extends Array {
/**
* Create a AnnotationsListResult.
*/
constructor() {
super();
}

/**
* Defines the metadata of AnnotationsListResult
*
* @returns {object} metadata of AnnotationsListResult
*
*/
mapper() {
return {
required: false,
serializedName: 'AnnotationsListResult',
type: {
name: 'Composite',
className: 'AnnotationsListResult',
modelProperties: {
value: {
required: false,
readOnly: true,
serializedName: '',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'AnnotationElementType',
type: {
name: 'Composite',
className: 'Annotation'
}
}
}
}
}
}
};
}
}

module.exports = AnnotationsListResult;
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const models = require('./index');
/**
* An Application Insights component definition.
*
* @extends models['Resource']
* @extends models['ComponentsResource']
*/
class ApplicationInsightsComponent extends models['Resource'] {
class ApplicationInsightsComponent extends models['ComponentsResource'] {
/**
* Create a ApplicationInsightsComponent.
* @member {string} kind The kind of application that this component refers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ComponentPurgeStatusResponse {
/**
* Create a ComponentPurgeStatusResponse.
* @member {string} status Status of the operation represented by the
* requested Id. Possible values include: 'Pending', 'Completed'
* requested Id. Possible values include: 'pending', 'completed'
*/
constructor() {
}
Expand Down
98 changes: 98 additions & 0 deletions lib/services/applicationinsights/lib/models/componentsResource.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
/*
* 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');

/**
* An azure resource object
*
* @extends models['BaseResource']
*/
class ComponentsResource extends models['BaseResource'] {
/**
* Create a ComponentsResource.
* @member {string} [id] Azure resource Id
* @member {string} [name] Azure resource name
* @member {string} [type] Azure resource type
* @member {string} location Resource location
* @member {object} [tags] Resource tags
*/
constructor() {
super();
}

/**
* Defines the metadata of ComponentsResource
*
* @returns {object} metadata of ComponentsResource
*
*/
mapper() {
return {
required: false,
serializedName: 'ComponentsResource',
type: {
name: 'Composite',
className: 'ComponentsResource',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
location: {
required: true,
serializedName: 'location',
type: {
name: 'String'
}
},
tags: {
required: false,
serializedName: 'tags',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
};
}
}

module.exports = ComponentsResource;
94 changes: 76 additions & 18 deletions lib/services/applicationinsights/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ export interface ApplicationInsightsComponentProactiveDetectionConfiguration ext

/**
* @class
* Initializes a new instance of the Resource class.
* Initializes a new instance of the ComponentsResource class.
* @constructor
* An azure resource object
*
Expand All @@ -543,7 +543,7 @@ export interface ApplicationInsightsComponentProactiveDetectionConfiguration ext
* @member {string} location Resource location
* @member {object} [tags] Resource tags
*/
export interface Resource extends BaseResource {
export interface ComponentsResource extends BaseResource {
readonly id?: string;
readonly name?: string;
readonly type?: string;
Expand Down Expand Up @@ -605,7 +605,7 @@ export interface TagsResource {
* application being monitored that is being sampled for Application Insights
* telemetry.
*/
export interface ApplicationInsightsComponent extends Resource {
export interface ApplicationInsightsComponent extends ComponentsResource {
kind: string;
readonly applicationId?: string;
readonly appId?: string;
Expand Down Expand Up @@ -676,7 +676,7 @@ export interface ComponentPurgeResponse {
* Response containing status for a specific purge operation.
*
* @member {string} status Status of the operation represented by the requested
* Id. Possible values include: 'Pending', 'Completed'
* Id. Possible values include: 'pending', 'completed'
*/
export interface ComponentPurgeStatusResponse {
status: string;
Expand Down Expand Up @@ -805,6 +805,26 @@ export interface ApplicationInsightsComponentWebTestLocation {
readonly tag?: string;
}

/**
* @class
* Initializes a new instance of the WebtestsResource class.
* @constructor
* An azure resource object
*
* @member {string} [id] Azure resource Id
* @member {string} [name] Azure resource name
* @member {string} [type] Azure resource type
* @member {string} location Resource location
* @member {object} [tags] Resource tags
*/
export interface WebtestsResource extends BaseResource {
readonly id?: string;
readonly name?: string;
readonly type?: string;
location: string;
tags?: { [propertyName: string]: string };
}

/**
* @class
* Initializes a new instance of the WebTestGeolocation class.
Expand Down Expand Up @@ -865,7 +885,7 @@ export interface WebTestPropertiesConfiguration {
* defined. Users cannot change this value but are able to read from it. Values
* will include Succeeded, Deploying, Canceled, and Failed.
*/
export interface WebTest extends Resource {
export interface WebTest extends WebtestsResource {
kind?: string;
syntheticMonitorId: string;
webTestName: string;
Expand Down Expand Up @@ -931,6 +951,26 @@ export interface ApplicationInsightsComponentAnalyticsItem {
properties?: ApplicationInsightsComponentAnalyticsItemProperties;
}

/**
* @class
* Initializes a new instance of the WorkbookResource class.
* @constructor
* An azure resource object
*
* @member {string} [id] Azure resource Id
* @member {string} [name] Azure resource name
* @member {string} [type] Azure resource type
* @member {string} [location] Resource location
* @member {object} [tags] Resource tags
*/
export interface WorkbookResource extends BaseResource {
readonly id?: string;
readonly name?: string;
readonly type?: string;
location?: string;
tags?: { [propertyName: string]: string };
}

/**
* @class
* Initializes a new instance of the Workbook class.
Expand Down Expand Up @@ -961,7 +1001,7 @@ export interface ApplicationInsightsComponentAnalyticsItem {
* @member {string} [sourceResourceId] Optional resourceId for a source
* resource.
*/
export interface Workbook extends Resource {
export interface Workbook extends WorkbookResource {
kind?: string;
workbookName: string;
serializedData: string;
Expand All @@ -975,18 +1015,6 @@ export interface Workbook extends Resource {
sourceResourceId?: string;
}

/**
* @class
* Initializes a new instance of the Workbooks class.
* @constructor
* Workbook list result.
*
* @member {array} [value] An array of workbooks.
*/
export interface Workbooks {
value?: Workbook[];
}

/**
* @class
* Initializes a new instance of the LinkProperties class.
Expand Down Expand Up @@ -1053,6 +1081,16 @@ export interface OperationListResult extends Array<Operation> {
nextLink?: string;
}

/**
* @class
* Initializes a new instance of the AnnotationsListResult class.
* @constructor
* Annotations list result.
*
*/
export interface AnnotationsListResult extends Array<Annotation> {
}

/**
* @class
* Initializes a new instance of the ApplicationInsightsComponentAPIKeyListResult class.
Expand All @@ -1077,6 +1115,16 @@ export interface ApplicationInsightsComponentListResult extends Array<Applicatio
nextLink?: string;
}

/**
* @class
* Initializes a new instance of the WorkItemConfigurationsListResult class.
* @constructor
* Work item configuration list result.
*
*/
export interface WorkItemConfigurationsListResult extends Array<WorkItemConfiguration> {
}

/**
* @class
* Initializes a new instance of the ApplicationInsightsWebTestLocationsListResult class.
Expand All @@ -1101,3 +1149,13 @@ export interface ApplicationInsightsWebTestLocationsListResult extends Array<App
export interface WebTestListResult extends Array<WebTest> {
nextLink?: string;
}

/**
* @class
* Initializes a new instance of the WorkbooksListResult class.
* @constructor
* Workbook list result.
*
*/
export interface WorkbooksListResult extends Array<Workbook> {
}
Loading

0 comments on commit cb5318c

Please sign in to comment.