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

[AutoPR] eventgrid/data-plane #4322

Closed
wants to merge 4 commits into from
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 lib/services/eventgrid/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft
Copyright (c) 2019 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/*
* 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';

/**
* The content of the event request message.
*
*/
class ContainerRegistryArtifactEventData {
/**
* Create a ContainerRegistryArtifactEventData.
* @member {string} [id] The event ID.
* @member {date} [timestamp] The time at which the event occurred.
* @member {string} [action] The action that encompasses the provided event.
* @member {object} [target] The target of the event.
* @member {string} [target.mediaType] The MIME type of the artifact.
* @member {number} [target.size] The size in bytes of the artifact.
* @member {string} [target.digest] The digest of the artifact.
* @member {string} [target.repository] The repository name of the artifact.
* @member {string} [target.tag] The tag of the artifact.
* @member {string} [target.name] The name of the artifact.
* @member {string} [target.version] The version of the artifact.
*/
constructor() {
}

/**
* Defines the metadata of ContainerRegistryArtifactEventData
*
* @returns {object} metadata of ContainerRegistryArtifactEventData
*
*/
mapper() {
return {
required: false,
serializedName: 'ContainerRegistryArtifactEventData',
type: {
name: 'Composite',
className: 'ContainerRegistryArtifactEventData',
modelProperties: {
id: {
required: false,
serializedName: 'id',
type: {
name: 'String'
}
},
timestamp: {
required: false,
serializedName: 'timestamp',
type: {
name: 'DateTime'
}
},
action: {
required: false,
serializedName: 'action',
type: {
name: 'String'
}
},
target: {
required: false,
serializedName: 'target',
type: {
name: 'Composite',
className: 'ContainerRegistryArtifactEventTarget'
}
}
}
}
};
}
}

module.exports = ContainerRegistryArtifactEventData;
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';

/**
* The target of the event.
*
*/
class ContainerRegistryArtifactEventTarget {
/**
* Create a ContainerRegistryArtifactEventTarget.
* @member {string} [mediaType] The MIME type of the artifact.
* @member {number} [size] The size in bytes of the artifact.
* @member {string} [digest] The digest of the artifact.
* @member {string} [repository] The repository name of the artifact.
* @member {string} [tag] The tag of the artifact.
* @member {string} [name] The name of the artifact.
* @member {string} [version] The version of the artifact.
*/
constructor() {
}

/**
* Defines the metadata of ContainerRegistryArtifactEventTarget
*
* @returns {object} metadata of ContainerRegistryArtifactEventTarget
*
*/
mapper() {
return {
required: false,
serializedName: 'ContainerRegistryArtifactEventTarget',
type: {
name: 'Composite',
className: 'ContainerRegistryArtifactEventTarget',
modelProperties: {
mediaType: {
required: false,
serializedName: 'mediaType',
type: {
name: 'String'
}
},
size: {
required: false,
serializedName: 'size',
type: {
name: 'Number'
}
},
digest: {
required: false,
serializedName: 'digest',
type: {
name: 'String'
}
},
repository: {
required: false,
serializedName: 'repository',
type: {
name: 'String'
}
},
tag: {
required: false,
serializedName: 'tag',
type: {
name: 'String'
}
},
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
version: {
required: false,
serializedName: 'version',
type: {
name: 'String'
}
}
}
}
};
}
}

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

const models = require('./index');

/**
* Schema of the Data property of an EventGridEvent for a
* Microsoft.ContainerRegistry.ChartDeleted event.
*
* @extends models['ContainerRegistryArtifactEventData']
*/
class ContainerRegistryChartDeletedEventData extends models['ContainerRegistryArtifactEventData'] {
/**
* Create a ContainerRegistryChartDeletedEventData.
*/
constructor() {
super();
}

/**
* Defines the metadata of ContainerRegistryChartDeletedEventData
*
* @returns {object} metadata of ContainerRegistryChartDeletedEventData
*
*/
mapper() {
return {
required: false,
serializedName: 'ContainerRegistryChartDeletedEventData',
type: {
name: 'Composite',
className: 'ContainerRegistryChartDeletedEventData',
modelProperties: {
id: {
required: false,
serializedName: 'id',
type: {
name: 'String'
}
},
timestamp: {
required: false,
serializedName: 'timestamp',
type: {
name: 'DateTime'
}
},
action: {
required: false,
serializedName: 'action',
type: {
name: 'String'
}
},
target: {
required: false,
serializedName: 'target',
type: {
name: 'Composite',
className: 'ContainerRegistryArtifactEventTarget'
}
}
}
}
};
}
}

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

const models = require('./index');

/**
* Schema of the Data property of an EventGridEvent for a
* Microsoft.ContainerRegistry.ChartPushed event.
*
* @extends models['ContainerRegistryArtifactEventData']
*/
class ContainerRegistryChartPushedEventData extends models['ContainerRegistryArtifactEventData'] {
/**
* Create a ContainerRegistryChartPushedEventData.
*/
constructor() {
super();
}

/**
* Defines the metadata of ContainerRegistryChartPushedEventData
*
* @returns {object} metadata of ContainerRegistryChartPushedEventData
*
*/
mapper() {
return {
required: false,
serializedName: 'ContainerRegistryChartPushedEventData',
type: {
name: 'Composite',
className: 'ContainerRegistryChartPushedEventData',
modelProperties: {
id: {
required: false,
serializedName: 'id',
type: {
name: 'String'
}
},
timestamp: {
required: false,
serializedName: 'timestamp',
type: {
name: 'DateTime'
}
},
action: {
required: false,
serializedName: 'action',
type: {
name: 'String'
}
},
target: {
required: false,
serializedName: 'target',
type: {
name: 'Composite',
className: 'ContainerRegistryArtifactEventTarget'
}
}
}
}
};
}
}

module.exports = ContainerRegistryChartPushedEventData;
Loading