This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4079 from Azure/restapi_auto_security/resource-ma…
…nager [AutoPR] security/resource-manager
- Loading branch information
Showing
14 changed files
with
1,899 additions
and
16 deletions.
There are no files selected for viewing
69 changes: 69 additions & 0 deletions
69
lib/services/securityManagement/lib/models/allowedConnectionsList.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
* 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'; | ||
|
||
/** | ||
* List of all possible traffic between Azure resources | ||
*/ | ||
class AllowedConnectionsList extends Array { | ||
/** | ||
* Create a AllowedConnectionsList. | ||
* @member {string} [nextLink] The URI to fetch the next page. | ||
*/ | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Defines the metadata of AllowedConnectionsList | ||
* | ||
* @returns {object} metadata of AllowedConnectionsList | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'AllowedConnectionsList', | ||
type: { | ||
name: 'Composite', | ||
className: 'AllowedConnectionsList', | ||
modelProperties: { | ||
value: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: '', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'AllowedConnectionsResourceElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'AllowedConnectionsResource' | ||
} | ||
} | ||
} | ||
}, | ||
nextLink: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'nextLink', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = AllowedConnectionsList; |
108 changes: 108 additions & 0 deletions
108
lib/services/securityManagement/lib/models/allowedConnectionsResource.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
/* | ||
* 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 resource whose properties describes the allowed traffic between Azure | ||
* resources | ||
* | ||
*/ | ||
class AllowedConnectionsResource { | ||
/** | ||
* Create a AllowedConnectionsResource. | ||
* @member {string} [id] Resource Id | ||
* @member {string} [name] Resource name | ||
* @member {string} [type] Resource type | ||
* @member {string} [location] Location where the resource is stored | ||
* @member {date} [calculatedDateTime] The UTC time on which the allowed | ||
* connections resource was calculated | ||
* @member {array} [connectableResources] List of connectable resources | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of AllowedConnectionsResource | ||
* | ||
* @returns {object} metadata of AllowedConnectionsResource | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'AllowedConnectionsResource', | ||
type: { | ||
name: 'Composite', | ||
className: 'AllowedConnectionsResource', | ||
modelProperties: { | ||
id: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'id', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
name: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'name', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
type: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'type', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
location: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'location', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
calculatedDateTime: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.calculatedDateTime', | ||
type: { | ||
name: 'DateTime' | ||
} | ||
}, | ||
connectableResources: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.connectableResources', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'ConnectableResourceElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'ConnectableResource' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = AllowedConnectionsResource; |
89 changes: 89 additions & 0 deletions
89
lib/services/securityManagement/lib/models/connectableResource.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
/* | ||
* 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'; | ||
|
||
/** | ||
* Describes the allowed inbound and outbound traffic of an Azure resource | ||
* | ||
*/ | ||
class ConnectableResource { | ||
/** | ||
* Create a ConnectableResource. | ||
* @member {string} [id] The Azure resource id | ||
* @member {array} [inboundConnectedResources] The list of Azure resources | ||
* that the resource has inbound allowed connection from | ||
* @member {array} [outboundConnectedResources] The list of Azure resources | ||
* that the resource has outbound allowed connection to | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of ConnectableResource | ||
* | ||
* @returns {object} metadata of ConnectableResource | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'ConnectableResource', | ||
type: { | ||
name: 'Composite', | ||
className: 'ConnectableResource', | ||
modelProperties: { | ||
id: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'id', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
inboundConnectedResources: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'inboundConnectedResources', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'ConnectedResourceElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'ConnectedResource' | ||
} | ||
} | ||
} | ||
}, | ||
outboundConnectedResources: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'outboundConnectedResources', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'ConnectedResourceElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'ConnectedResource' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = ConnectableResource; |
72 changes: 72 additions & 0 deletions
72
lib/services/securityManagement/lib/models/connectedResource.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* | ||
* 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'; | ||
|
||
/** | ||
* Describes properties of a connected resource | ||
* | ||
*/ | ||
class ConnectedResource { | ||
/** | ||
* Create a ConnectedResource. | ||
* @member {string} [connectedResourceId] The Azure resource id of the | ||
* connected resource | ||
* @member {string} [tcpPorts] The allowed tcp ports | ||
* @member {string} [udpPorts] The allowed udp ports | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of ConnectedResource | ||
* | ||
* @returns {object} metadata of ConnectedResource | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'ConnectedResource', | ||
type: { | ||
name: 'Composite', | ||
className: 'ConnectedResource', | ||
modelProperties: { | ||
connectedResourceId: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'connectedResourceId', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
tcpPorts: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'tcpPorts', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
udpPorts: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'udpPorts', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = ConnectedResource; |
Oops, something went wrong.