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

[AutoPR security/resource-manager] Security: 2017-08-01-preview - Introduce IoT security groups resource #4494

Closed
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/securityManagement/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,95 @@
/*
* 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');

/**
* A custom alert rule that checks if a value (depends on the custom alert
* type) is allowed
*
* @extends models['CustomAlertRule']
*/
class AllowlistCustomAlertRule extends models['CustomAlertRule'] {
/**
* Create a AllowlistCustomAlertRule.
* @property {array} allowlistValues The values to allow. The format of the
* values depends on the rule type.
*/
constructor() {
super();
}

/**
* Defines the metadata of AllowlistCustomAlertRule
*
* @returns {object} metadata of AllowlistCustomAlertRule
*
*/
mapper() {
return {
required: false,
serializedName: 'AllowlistCustomAlertRule',
type: {
name: 'Composite',
className: 'AllowlistCustomAlertRule',
modelProperties: {
displayName: {
required: false,
readOnly: true,
serializedName: 'displayName',
type: {
name: 'String'
}
},
description: {
required: false,
readOnly: true,
serializedName: 'description',
type: {
name: 'String'
}
},
isEnabled: {
required: true,
serializedName: 'isEnabled',
type: {
name: 'Boolean'
}
},
ruleType: {
required: true,
serializedName: 'ruleType',
type: {
name: 'String'
}
},
allowlistValues: {
required: true,
serializedName: 'allowlistValues',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
};
}
}

module.exports = AllowlistCustomAlertRule;
78 changes: 78 additions & 0 deletions lib/services/securityManagement/lib/models/customAlertRule.js
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';

/**
* A custom alert rule
*
*/
class CustomAlertRule {
/**
* Create a CustomAlertRule.
* @property {string} [displayName] The display name of the custom alert.
* @property {string} [description] The description of the custom alert.
* @property {boolean} isEnabled Whether the custom alert is enabled.
* @property {string} ruleType The type of the custom alert rule.
*/
constructor() {
}

/**
* Defines the metadata of CustomAlertRule
*
* @returns {object} metadata of CustomAlertRule
*
*/
mapper() {
return {
required: false,
serializedName: 'CustomAlertRule',
type: {
name: 'Composite',
className: 'CustomAlertRule',
modelProperties: {
displayName: {
required: false,
readOnly: true,
serializedName: 'displayName',
type: {
name: 'String'
}
},
description: {
required: false,
readOnly: true,
serializedName: 'description',
type: {
name: 'String'
}
},
isEnabled: {
required: true,
serializedName: 'isEnabled',
type: {
name: 'Boolean'
}
},
ruleType: {
required: true,
serializedName: 'ruleType',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = CustomAlertRule;
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ class DataExportSetting extends models['Setting'] {
serializedName: 'DataExportSetting',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'kind',
clientName: 'kind'
},
uberParent: 'Setting',
className: 'DataExportSetting',
modelProperties: {
id: {
Expand Down Expand Up @@ -72,7 +67,6 @@ class DataExportSetting extends models['Setting'] {
kind: {
required: true,
serializedName: 'kind',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/*
* 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');

/**
* A custom alert rule that checks if a value (depends on the custom alert
* type) is denied
*
* @extends models['CustomAlertRule']
*/
class DenylistCustomAlertRule extends models['CustomAlertRule'] {
/**
* Create a DenylistCustomAlertRule.
* @property {array} denylistValues The values to deny. The format of the
* values depends on the rule type.
*/
constructor() {
super();
}

/**
* Defines the metadata of DenylistCustomAlertRule
*
* @returns {object} metadata of DenylistCustomAlertRule
*
*/
mapper() {
return {
required: false,
serializedName: 'DenylistCustomAlertRule',
type: {
name: 'Composite',
className: 'DenylistCustomAlertRule',
modelProperties: {
displayName: {
required: false,
readOnly: true,
serializedName: 'displayName',
type: {
name: 'String'
}
},
description: {
required: false,
readOnly: true,
serializedName: 'description',
type: {
name: 'String'
}
},
isEnabled: {
required: true,
serializedName: 'isEnabled',
type: {
name: 'Boolean'
}
},
ruleType: {
required: true,
serializedName: 'ruleType',
type: {
name: 'String'
}
},
denylistValues: {
required: true,
serializedName: 'denylistValues',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
};
}
}

module.exports = DenylistCustomAlertRule;
Loading