Skip to content
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
2 changes: 1 addition & 1 deletion sdk/eventgrid/eventgrid/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Microsoft
Copyright (c) 2020 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion sdk/eventgrid/eventgrid/src/eventGridClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class EventGridClient extends EventGridClientContext {
* @param credentials Credentials needed for the client to connect to Azure.
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, options?: msRestAzure.AzureServiceClientOptions) {
constructor(credentials: msRest.ServiceClientCredentials, options?: msRest.AzureServiceClientOptions) {
super(credentials, options);
}

Expand Down
74 changes: 74 additions & 0 deletions sdk/eventgrid/eventgrid/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2581,6 +2581,80 @@ export interface MachineLearningServicesDatasetDriftDetectedEventData {
endTime?: Date;
}

/**
* Schema of the Data property of an EventGridEvent for an Microsoft.Cache.PatchingCompleted event.
*/
export interface RedisPatchingCompletedEventData {
/**
* The time at which the event occurred.
*/
timestamp?: Date;
/**
* The name of this event.
*/
name?: string;
/**
* The status of this event. Failed or succeeded
*/
status?: string;
}

/**
* Schema of the Data property of an EventGridEvent for an Microsoft.Cache.ScalingCompleted event.
*/
export interface RedisScalingCompletedEventData {
/**
* The time at which the event occurred.
*/
timestamp?: Date;
/**
* The name of this event.
*/
name?: string;
/**
* The status of this event. Failed or succeeded
*/
status?: string;
}

/**
* Schema of the Data property of an EventGridEvent for an Microsoft.Cache.ExportRDBCompleted
* event.
*/
export interface RedisExportRDBCompletedEventData {
/**
* The time at which the event occurred.
*/
timestamp?: Date;
/**
* The name of this event.
*/
name?: string;
/**
* The status of this event. Failed or succeeded
*/
status?: string;
}

/**
* Schema of the Data property of an EventGridEvent for an Microsoft.Cache.ImportRDBCompleted
* event.
*/
export interface RedisImportRDBCompletedEventData {
/**
* The time at which the event occurred.
*/
timestamp?: Date;
/**
* The name of this event.
*/
name?: string;
/**
* The status of this event. Failed or succeeded
*/
status?: string;
}

/**
* Defines values for MediaJobState.
* Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued',
Expand Down
112 changes: 112 additions & 0 deletions sdk/eventgrid/eventgrid/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3891,6 +3891,118 @@ export const MachineLearningServicesDatasetDriftDetectedEventData: msRest.Compos
}
};

export const RedisPatchingCompletedEventData: msRest.CompositeMapper = {
serializedName: "RedisPatchingCompletedEventData",
type: {
name: "Composite",
className: "RedisPatchingCompletedEventData",
modelProperties: {
timestamp: {
serializedName: "timestamp",
type: {
name: "DateTime"
}
},
name: {
serializedName: "name",
type: {
name: "String"
}
},
status: {
serializedName: "status",
type: {
name: "String"
}
}
}
}
};

export const RedisScalingCompletedEventData: msRest.CompositeMapper = {
serializedName: "RedisScalingCompletedEventData",
type: {
name: "Composite",
className: "RedisScalingCompletedEventData",
modelProperties: {
timestamp: {
serializedName: "timestamp",
type: {
name: "DateTime"
}
},
name: {
serializedName: "name",
type: {
name: "String"
}
},
status: {
serializedName: "status",
type: {
name: "String"
}
}
}
}
};

export const RedisExportRDBCompletedEventData: msRest.CompositeMapper = {
serializedName: "RedisExportRDBCompletedEventData",
type: {
name: "Composite",
className: "RedisExportRDBCompletedEventData",
modelProperties: {
timestamp: {
serializedName: "timestamp",
type: {
name: "DateTime"
}
},
name: {
serializedName: "name",
type: {
name: "String"
}
},
status: {
serializedName: "status",
type: {
name: "String"
}
}
}
}
};

export const RedisImportRDBCompletedEventData: msRest.CompositeMapper = {
serializedName: "RedisImportRDBCompletedEventData",
type: {
name: "Composite",
className: "RedisImportRDBCompletedEventData",
modelProperties: {
timestamp: {
serializedName: "timestamp",
type: {
name: "DateTime"
}
},
name: {
serializedName: "name",
type: {
name: "String"
}
},
status: {
serializedName: "status",
type: {
name: "String"
}
}
}
}
};

export const discriminators = {
'MediaJobOutput' : MediaJobOutput,
'MediaJobOutput.#Microsoft.Media.JobOutputAsset' : MediaJobOutputAsset
Expand Down