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

/**
* @class
* Initializes a new instance of the MediaJobStateChangeEventData class.
* @constructor
* Schema of the Data property of an EventGridEvent for a
* Microsoft.Media.JobStateChange event.
*
* @member {string} [previousState] The previous state of the Job. Possible
* values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing',
* 'Queued', 'Scheduled'
* @member {string} [state] The new state of the Job. Possible values include:
* 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued',
* 'Scheduled'
*/
export interface MediaJobStateChangeEventData {
readonly previousState?: string;
readonly state?: string;
}

1 change: 1 addition & 0 deletions lib/services/eventgrid/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ exports.ContainerRegistryEventActor = require('./containerRegistryEventActor');
exports.ContainerRegistryEventSource = require('./containerRegistryEventSource');
exports.ServiceBusActiveMessagesAvailableWithNoListenersEventData = require('./serviceBusActiveMessagesAvailableWithNoListenersEventData');
exports.ServiceBusDeadletterMessagesAvailableWithNoListenersEventData = require('./serviceBusDeadletterMessagesAvailableWithNoListenersEventData');
exports.MediaJobStateChangeEventData = require('./mediaJobStateChangeEventData');
67 changes: 67 additions & 0 deletions lib/services/eventgrid/lib/models/mediaJobStateChangeEventData.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
* 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.Media.JobStateChange event.
*
*/
class MediaJobStateChangeEventData {
/**
* Create a MediaJobStateChangeEventData.
* @member {string} [previousState] The previous state of the Job. Possible
* values include: 'Canceled', 'Canceling', 'Error', 'Finished',
* 'Processing', 'Queued', 'Scheduled'
* @member {string} [state] The new state of the Job. Possible values
* include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing',
* 'Queued', 'Scheduled'
*/
constructor() {
}

/**
* Defines the metadata of MediaJobStateChangeEventData
*
* @returns {object} metadata of MediaJobStateChangeEventData
*
*/
mapper() {
return {
required: false,
serializedName: 'MediaJobStateChangeEventData',
type: {
name: 'Composite',
className: 'MediaJobStateChangeEventData',
modelProperties: {
previousState: {
required: false,
readOnly: true,
serializedName: 'previousState',
type: {
name: 'String'
}
},
state: {
required: false,
readOnly: true,
serializedName: 'state',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = MediaJobStateChangeEventData;