Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
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
60 changes: 60 additions & 0 deletions lib/services/eventgrid/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -755,3 +755,63 @@ export interface ContainerRegistryEventSource {
instanceID?: string;
}

/**
* @class
* Initializes a new instance of the ServiceBusActiveMessagesAvailableWithNoListenersEventData class.
* @constructor
* Schema of the Data property of an EventGridEvent for a
* Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners event.
*
* @member {string} [namespaceName] The namespace name of the
* Microsoft.ServiceBus resource.
* @member {string} [requestUri] The endpoint of the Microsoft.ServiceBus
* resource.
* @member {string} [entityType] The entity type of the Microsoft.ServiceBus
* resource. Could be one of 'queue' or 'subscriber'.
* @member {string} [queueName] The name of the Microsoft.ServiceBus queue. If
* the entity type is of type 'subscriber', then this value will be null.
* @member {string} [topicName] The name of the Microsoft.ServiceBus topic. If
* the entity type is of type 'queue', then this value will be null.
* @member {string} [subscriptionName] The name of the Microsoft.ServiceBus
* topic's subscription. If the entity type is of type 'queue', then this value
* will be null.
*/
export interface ServiceBusActiveMessagesAvailableWithNoListenersEventData {
namespaceName?: string;
requestUri?: string;
entityType?: string;
queueName?: string;
topicName?: string;
subscriptionName?: string;
}

/**
* @class
* Initializes a new instance of the ServiceBusDeadletterMessagesAvailableWithNoListenersEventData class.
* @constructor
* Schema of the Data property of an EventGridEvent for a
* Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListenersEvent event.
*
* @member {string} [namespaceName] The namespace name of the
* Microsoft.ServiceBus resource.
* @member {string} [requestUri] The endpoint of the Microsoft.ServiceBus
* resource.
* @member {string} [entityType] The entity type of the Microsoft.ServiceBus
* resource. Could be one of 'queue' or 'subscriber'.
* @member {string} [queueName] The name of the Microsoft.ServiceBus queue. If
* the entity type is of type 'subscriber', then this value will be null.
* @member {string} [topicName] The name of the Microsoft.ServiceBus topic. If
* the entity type is of type 'queue', then this value will be null.
* @member {string} [subscriptionName] The name of the Microsoft.ServiceBus
* topic's subscription. If the entity type is of type 'queue', then this value
* will be null.
*/
export interface ServiceBusDeadletterMessagesAvailableWithNoListenersEventData {
namespaceName?: string;
requestUri?: string;
entityType?: string;
queueName?: string;
topicName?: string;
subscriptionName?: string;
}

2 changes: 2 additions & 0 deletions lib/services/eventgrid/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ exports.ContainerRegistryEventTarget = require('./containerRegistryEventTarget')
exports.ContainerRegistryEventRequest = require('./containerRegistryEventRequest');
exports.ContainerRegistryEventActor = require('./containerRegistryEventActor');
exports.ContainerRegistryEventSource = require('./containerRegistryEventSource');
exports.ServiceBusActiveMessagesAvailableWithNoListenersEventData = require('./serviceBusActiveMessagesAvailableWithNoListenersEventData');
exports.ServiceBusDeadletterMessagesAvailableWithNoListenersEventData = require('./serviceBusDeadletterMessagesAvailableWithNoListenersEventData');
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
/*
* 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';

/**
* Schema of the Data property of an EventGridEvent for a
* Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners event.
*
*/
class ServiceBusActiveMessagesAvailableWithNoListenersEventData {
/**
* Create a ServiceBusActiveMessagesAvailableWithNoListenersEventData.
* @member {string} [namespaceName] The namespace name of the
* Microsoft.ServiceBus resource.
* @member {string} [requestUri] The endpoint of the Microsoft.ServiceBus
* resource.
* @member {string} [entityType] The entity type of the Microsoft.ServiceBus
* resource. Could be one of 'queue' or 'subscriber'.
* @member {string} [queueName] The name of the Microsoft.ServiceBus queue.
* If the entity type is of type 'subscriber', then this value will be null.
* @member {string} [topicName] The name of the Microsoft.ServiceBus topic.
* If the entity type is of type 'queue', then this value will be null.
* @member {string} [subscriptionName] The name of the Microsoft.ServiceBus
* topic's subscription. If the entity type is of type 'queue', then this
* value will be null.
*/
constructor() {
}

/**
* Defines the metadata of ServiceBusActiveMessagesAvailableWithNoListenersEventData
*
* @returns {object} metadata of ServiceBusActiveMessagesAvailableWithNoListenersEventData
*
*/
mapper() {
return {
required: false,
serializedName: 'ServiceBusActiveMessagesAvailableWithNoListenersEventData',
type: {
name: 'Composite',
className: 'ServiceBusActiveMessagesAvailableWithNoListenersEventData',
modelProperties: {
namespaceName: {
required: false,
serializedName: 'namespaceName',
type: {
name: 'String'
}
},
requestUri: {
required: false,
serializedName: 'requestUri',
type: {
name: 'String'
}
},
entityType: {
required: false,
serializedName: 'entityType',
type: {
name: 'String'
}
},
queueName: {
required: false,
serializedName: 'queueName',
type: {
name: 'String'
}
},
topicName: {
required: false,
serializedName: 'topicName',
type: {
name: 'String'
}
},
subscriptionName: {
required: false,
serializedName: 'subscriptionName',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = ServiceBusActiveMessagesAvailableWithNoListenersEventData;
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
/*
* 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';

/**
* Schema of the Data property of an EventGridEvent for a
* Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListenersEvent event.
*
*/
class ServiceBusDeadletterMessagesAvailableWithNoListenersEventData {
/**
* Create a ServiceBusDeadletterMessagesAvailableWithNoListenersEventData.
* @member {string} [namespaceName] The namespace name of the
* Microsoft.ServiceBus resource.
* @member {string} [requestUri] The endpoint of the Microsoft.ServiceBus
* resource.
* @member {string} [entityType] The entity type of the Microsoft.ServiceBus
* resource. Could be one of 'queue' or 'subscriber'.
* @member {string} [queueName] The name of the Microsoft.ServiceBus queue.
* If the entity type is of type 'subscriber', then this value will be null.
* @member {string} [topicName] The name of the Microsoft.ServiceBus topic.
* If the entity type is of type 'queue', then this value will be null.
* @member {string} [subscriptionName] The name of the Microsoft.ServiceBus
* topic's subscription. If the entity type is of type 'queue', then this
* value will be null.
*/
constructor() {
}

/**
* Defines the metadata of ServiceBusDeadletterMessagesAvailableWithNoListenersEventData
*
* @returns {object} metadata of ServiceBusDeadletterMessagesAvailableWithNoListenersEventData
*
*/
mapper() {
return {
required: false,
serializedName: 'ServiceBusDeadletterMessagesAvailableWithNoListenersEventData',
type: {
name: 'Composite',
className: 'ServiceBusDeadletterMessagesAvailableWithNoListenersEventData',
modelProperties: {
namespaceName: {
required: false,
serializedName: 'namespaceName',
type: {
name: 'String'
}
},
requestUri: {
required: false,
serializedName: 'requestUri',
type: {
name: 'String'
}
},
entityType: {
required: false,
serializedName: 'entityType',
type: {
name: 'String'
}
},
queueName: {
required: false,
serializedName: 'queueName',
type: {
name: 'String'
}
},
topicName: {
required: false,
serializedName: 'topicName',
type: {
name: 'String'
}
},
subscriptionName: {
required: false,
serializedName: 'subscriptionName',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = ServiceBusDeadletterMessagesAvailableWithNoListenersEventData;
7 changes: 5 additions & 2 deletions lib/services/eventgrid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
"description": "EventGridClient Library with typescript type definitions for node",
"version": "1.1.0",
"dependencies": {
"ms-rest": "^2.3.2",
"ms-rest": "^2.3.3",
"ms-rest-azure": "^2.5.5"
},
"keywords": [ "node", "azure" ],
"keywords": [
"node",
"azure"
],
"license": "MIT",
"main": "./lib/eventGridClient.js",
"types": "./lib/eventGridClient.d.ts",
Expand Down