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 all ASI RP APIs #4666

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
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ const models = require('./index');
/**
* Represents AAD (Azure Active Directory) data connector.
*
* @extends models['DataConnectorWithAlerts']
* @extends models['DataConnector']
*/
class AADDataConnector extends models['DataConnectorWithAlerts'] {
class AADDataConnector extends models['DataConnector'] {
/**
* Create a AADDataConnector.
* @property {string} [tenantId] The tenant id to connect to, and get the
* data from.
* @property {object} [dataTypes] The available data types for the connector.
* @property {object} [dataTypes.alerts] Alerts data type connection.
*/
constructor() {
super();
Expand Down Expand Up @@ -83,9 +87,9 @@ class AADDataConnector extends models['DataConnectorWithAlerts'] {
name: 'String'
}
},
contextId: {
tenantId: {
required: false,
serializedName: 'properties.contextId',
serializedName: 'properties.tenantId',
type: {
name: 'String'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ const models = require('./index');
/**
* Represents ASC (Azure Security Center) data connector.
*
* @extends models['DataConnectorWithAlerts']
* @extends models['DataConnector']
*/
class ASCDataConnector extends models['DataConnectorWithAlerts'] {
class ASCDataConnector extends models['DataConnector'] {
/**
* Create a ASCDataConnector.
* @property {object} [dataTypes] The available data types for the connector.
* @property {object} [dataTypes.alerts] Alerts data type connection.
* @property {string} [subscriptionId] The subscription id to connect to, and
* get the data from.
*/
constructor() {
super();
Expand Down Expand Up @@ -83,20 +87,20 @@ class ASCDataConnector extends models['DataConnectorWithAlerts'] {
name: 'String'
}
},
contextId: {
required: false,
serializedName: 'properties.contextId',
type: {
name: 'String'
}
},
dataTypes: {
required: false,
serializedName: 'properties.dataTypes',
type: {
name: 'Composite',
className: 'AlertsDataTypeOfDataConnector'
}
},
subscriptionId: {
required: false,
serializedName: 'properties.subscriptionId',
type: {
name: 'String'
}
}
}
}
Expand Down
173 changes: 173 additions & 0 deletions lib/services/securityInsightManagement/lib/models/accountEntity.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
/*
* 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 an account entity.
*
* @extends models['Entity']
*/
class AccountEntity extends models['Entity'] {
/**
* Create a AccountEntity.
* @property {string} [accountName] The name of the account. This field
* should hold only the name without any domain added to it, i.e.
* administrator.
* @property {string} [ntDomain] The NETBIOS domain name as it appears in the
* alert format – domain\username. Examples: NT AUTHORITY.
* @property {string} [upnSuffix] The user principal name suffix for the
* account, in some cases it is also the domain name. Examples: contoso.com.
* @property {string} [sid] The account security identifier, e.g. S-1-5-18.
* @property {string} [aadTenantId] The Azure Active Directory tenant id.
* @property {string} [aadUserId] The Azure Active Directory user id.
* @property {string} [puid] The Azure Active Directory Passport User ID.
* @property {boolean} [isDomainJoined] Determines whether this is a domain
* account.
* @property {uuid} [objectGuid] The objectGUID attribute is a single-value
* attribute that is the unique identifier for the object, assigned by active
* directory.
*/
constructor() {
super();
}

/**
* Defines the metadata of AccountEntity
*
* @returns {object} metadata of AccountEntity
*
*/
mapper() {
return {
required: false,
serializedName: 'Account',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'kind',
clientName: 'kind'
},
uberParent: 'Entity',
className: 'AccountEntity',
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'
}
},
kind: {
required: true,
serializedName: 'kind',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
},
accountName: {
required: false,
readOnly: true,
serializedName: 'properties.accountName',
type: {
name: 'String'
}
},
ntDomain: {
required: false,
readOnly: true,
serializedName: 'properties.ntDomain',
type: {
name: 'String'
}
},
upnSuffix: {
required: false,
readOnly: true,
serializedName: 'properties.upnSuffix',
type: {
name: 'String'
}
},
sid: {
required: false,
readOnly: true,
serializedName: 'properties.sid',
type: {
name: 'String'
}
},
aadTenantId: {
required: false,
readOnly: true,
serializedName: 'properties.aadTenantId',
type: {
name: 'String'
}
},
aadUserId: {
required: false,
readOnly: true,
serializedName: 'properties.aadUserId',
type: {
name: 'String'
}
},
puid: {
required: false,
readOnly: true,
serializedName: 'properties.puid',
type: {
name: 'String'
}
},
isDomainJoined: {
required: false,
readOnly: true,
serializedName: 'properties.isDomainJoined',
type: {
name: 'Boolean'
}
},
objectGuid: {
required: false,
readOnly: true,
serializedName: 'properties.objectGuid',
type: {
name: 'String'
}
}
}
}
};
}
}

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

/**
* Action for alert rule.
*
* @extends models['Resource']
*/
class Action extends models['Resource'] {
/**
* Create a Action.
* @property {string} [etag] Etag of the action.
* @property {string} [triggerUri] The uri for the action to trigger.
*/
constructor() {
super();
}

/**
* Defines the metadata of Action
*
* @returns {object} metadata of Action
*
*/
mapper() {
return {
required: false,
serializedName: 'Action',
type: {
name: 'Composite',
className: 'Action',
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'
}
},
triggerUri: {
required: false,
serializedName: 'properties.triggerUri',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = Action;
Loading