Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
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
@@ -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;
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 lib/services/securityManagement/lib/models/connectableResource.js
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 lib/services/securityManagement/lib/models/connectedResource.js
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;
Loading