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

Commit

Permalink
Generated from 766139bd449800ec13a7686a5a1d04d2cfd87ff3 (#2820)
Browse files Browse the repository at this point in the history
Reverting back x-ms-azure-resource from TrackedResource definition as it is already part of the base class Resource.
  • Loading branch information
AutorestCI authored May 1, 2018
1 parent 00af6cd commit 48c4c5c
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/services/eventgridManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export interface Operation {
* @member {string} location Location of the resource
* @member {object} [tags] Tags of the resource
*/
export interface TrackedResource extends BaseResource {
export interface TrackedResource extends Resource {
location: string;
tags?: { [propertyName: string]: string };
}
Expand Down
24 changes: 24 additions & 0 deletions lib/services/eventgridManagement/lib/models/topic.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,30 @@ class Topic extends models['TrackedResource'] {
name: 'Composite',
className: 'Topic',
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',
Expand Down
28 changes: 26 additions & 2 deletions lib/services/eventgridManagement/lib/models/trackedResource.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const models = require('./index');
/**
* Definition of a Tracked Resource
*
* @extends models['BaseResource']
* @extends models['Resource']
*/
class TrackedResource extends models['BaseResource'] {
class TrackedResource extends models['Resource'] {
/**
* Create a TrackedResource.
* @member {string} location Location of the resource
Expand All @@ -41,6 +41,30 @@ class TrackedResource extends models['BaseResource'] {
name: 'Composite',
className: 'TrackedResource',
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',
Expand Down

0 comments on commit 48c4c5c

Please sign in to comment.