From 48c4c5c0c52c562181bd645e127b8a1f64356654 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 1 May 2018 16:15:33 -0700 Subject: [PATCH] Generated from 766139bd449800ec13a7686a5a1d04d2cfd87ff3 (#2820) Reverting back x-ms-azure-resource from TrackedResource definition as it is already part of the base class Resource. --- .../eventgridManagement/lib/models/index.d.ts | 2 +- .../eventgridManagement/lib/models/topic.js | 24 ++++++++++++++++ .../lib/models/trackedResource.js | 28 +++++++++++++++++-- 3 files changed, 51 insertions(+), 3 deletions(-) diff --git a/lib/services/eventgridManagement/lib/models/index.d.ts b/lib/services/eventgridManagement/lib/models/index.d.ts index 0f8dbbf09d..9ac935cb08 100644 --- a/lib/services/eventgridManagement/lib/models/index.d.ts +++ b/lib/services/eventgridManagement/lib/models/index.d.ts @@ -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 }; } diff --git a/lib/services/eventgridManagement/lib/models/topic.js b/lib/services/eventgridManagement/lib/models/topic.js index 83119080d7..3ef90b3250 100644 --- a/lib/services/eventgridManagement/lib/models/topic.js +++ b/lib/services/eventgridManagement/lib/models/topic.js @@ -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', diff --git a/lib/services/eventgridManagement/lib/models/trackedResource.js b/lib/services/eventgridManagement/lib/models/trackedResource.js index a437e0bdac..4dd61ff851 100644 --- a/lib/services/eventgridManagement/lib/models/trackedResource.js +++ b/lib/services/eventgridManagement/lib/models/trackedResource.js @@ -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 @@ -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',