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

[AutoPR securityinsights/resource-manager] Adding data connectors APIs #4620

Merged
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
107 changes: 107 additions & 0 deletions lib/services/securityInsightManagement/lib/models/aADDataConnector.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
/*
* 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');

/**
* Represents AAD (Azure Active Directory) data connector.
*
* @extends models['DataConnectorWithAlerts']
*/
class AADDataConnector extends models['DataConnectorWithAlerts'] {
/**
* Create a AADDataConnector.
*/
constructor() {
super();
}

/**
* Defines the metadata of AADDataConnector
*
* @returns {object} metadata of AADDataConnector
*
*/
mapper() {
return {
required: false,
serializedName: 'AzureActiveDirectory',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'kind',
clientName: 'kind'
},
uberParent: 'DataConnector',
className: 'AADDataConnector',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
etag: {
required: false,
serializedName: 'etag',
type: {
name: 'String'
}
},
kind: {
required: true,
serializedName: 'kind',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
},
contextId: {
required: false,
serializedName: 'properties.contextId',
type: {
name: 'String'
}
},
dataTypes: {
required: false,
serializedName: 'properties.dataTypes',
type: {
name: 'Composite',
className: 'AlertsDataTypeOfDataConnector'
}
}
}
}
};
}
}

module.exports = AADDataConnector;
107 changes: 107 additions & 0 deletions lib/services/securityInsightManagement/lib/models/aSCDataConnector.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
/*
* 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');

/**
* Represents ASC (Azure Security Center) data connector.
*
* @extends models['DataConnectorWithAlerts']
*/
class ASCDataConnector extends models['DataConnectorWithAlerts'] {
/**
* Create a ASCDataConnector.
*/
constructor() {
super();
}

/**
* Defines the metadata of ASCDataConnector
*
* @returns {object} metadata of ASCDataConnector
*
*/
mapper() {
return {
required: false,
serializedName: 'AzureSecurityCenter',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'kind',
clientName: 'kind'
},
uberParent: 'DataConnector',
className: 'ASCDataConnector',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
etag: {
required: false,
serializedName: 'etag',
type: {
name: 'String'
}
},
kind: {
required: true,
serializedName: 'kind',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
},
contextId: {
required: false,
serializedName: 'properties.contextId',
type: {
name: 'String'
}
},
dataTypes: {
required: false,
serializedName: 'properties.dataTypes',
type: {
name: 'Composite',
className: 'AlertsDataTypeOfDataConnector'
}
}
}
}
};
}
}

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

/**
* Alerts data type for data connectors.
*
*/
class AlertsDataTypeOfDataConnector {
/**
* Create a AlertsDataTypeOfDataConnector.
* @property {object} [alerts] Alerts data type connection.
*/
constructor() {
}

/**
* Defines the metadata of AlertsDataTypeOfDataConnector
*
* @returns {object} metadata of AlertsDataTypeOfDataConnector
*
*/
mapper() {
return {
required: false,
serializedName: 'AlertsDataTypeOfDataConnector',
type: {
name: 'Composite',
className: 'AlertsDataTypeOfDataConnector',
modelProperties: {
alerts: {
required: false,
serializedName: 'alerts',
type: {
name: 'Composite',
className: 'AlertsDataTypeOfDataConnectorAlerts'
}
}
}
}
};
}
}

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

/**
* Alerts data type connection.
*
* @extends models['DataConnectorDataTypeCommon']
*/
class AlertsDataTypeOfDataConnectorAlerts extends models['DataConnectorDataTypeCommon'] {
/**
* Create a AlertsDataTypeOfDataConnectorAlerts.
*/
constructor() {
super();
}

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

module.exports = AlertsDataTypeOfDataConnectorAlerts;
Loading