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

[AutoPR eventgrid/resource-manager] Reverting back x-ms-azure-resource from TrackedResource definition as it is already part of the base class Resource. #2820

Merged
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
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