Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
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
21 changes: 21 additions & 0 deletions lib/services/peeringManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

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
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
151 changes: 151 additions & 0 deletions lib/services/peeringManagement/lib/models/bgpSession.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
/*
* 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 properties that define a BGP session.
*
*/
class BgpSession {
/**
* Create a BgpSession.
* @property {string} [sessionPrefixV4] The IPv4 prefix that contains both
* ends' IPv4 addresses.
* @property {string} [sessionPrefixV6] The IPv6 prefix that contains both
* ends' IPv6 addresses.
* @property {string} [microsoftSessionIPv4Address] The IPv4 session address
* on Microsoft's end.
* @property {string} [microsoftSessionIPv6Address] The IPv6 session address
* on Microsoft's end.
* @property {string} [peerSessionIPv4Address] The IPv4 session address on
* peer's end.
* @property {string} [peerSessionIPv6Address] The IPv6 session address on
* peer's end.
* @property {string} [sessionStateV4] The state of the IPv4 session.
* Possible values include: 'None', 'Idle', 'Connect', 'Active', 'OpenSent',
* 'OpenConfirm', 'Established', 'PendingAdd', 'PendingUpdate',
* 'PendingRemove'
* @property {string} [sessionStateV6] The state of the IPv6 session.
* Possible values include: 'None', 'Idle', 'Connect', 'Active', 'OpenSent',
* 'OpenConfirm', 'Established', 'PendingAdd', 'PendingUpdate',
* 'PendingRemove'
* @property {number} [maxPrefixesAdvertisedV4] The maximum number of
* prefixes advertised over the IPv4 session.
* @property {number} [maxPrefixesAdvertisedV6] The maximum number of
* prefixes advertised over the IPv6 session.
* @property {string} [md5AuthenticationKey] The MD5 authentication key of
* the session.
*/
constructor() {
}

/**
* Defines the metadata of BgpSession
*
* @returns {object} metadata of BgpSession
*
*/
mapper() {
return {
required: false,
serializedName: 'BgpSession',
type: {
name: 'Composite',
className: 'BgpSession',
modelProperties: {
sessionPrefixV4: {
required: false,
serializedName: 'sessionPrefixV4',
type: {
name: 'String'
}
},
sessionPrefixV6: {
required: false,
serializedName: 'sessionPrefixV6',
type: {
name: 'String'
}
},
microsoftSessionIPv4Address: {
required: false,
readOnly: true,
serializedName: 'microsoftSessionIPv4Address',
type: {
name: 'String'
}
},
microsoftSessionIPv6Address: {
required: false,
readOnly: true,
serializedName: 'microsoftSessionIPv6Address',
type: {
name: 'String'
}
},
peerSessionIPv4Address: {
required: false,
serializedName: 'peerSessionIPv4Address',
type: {
name: 'String'
}
},
peerSessionIPv6Address: {
required: false,
serializedName: 'peerSessionIPv6Address',
type: {
name: 'String'
}
},
sessionStateV4: {
required: false,
readOnly: true,
serializedName: 'sessionStateV4',
type: {
name: 'String'
}
},
sessionStateV6: {
required: false,
readOnly: true,
serializedName: 'sessionStateV6',
type: {
name: 'String'
}
},
maxPrefixesAdvertisedV4: {
required: false,
serializedName: 'maxPrefixesAdvertisedV4',
type: {
name: 'Number'
}
},
maxPrefixesAdvertisedV6: {
required: false,
serializedName: 'maxPrefixesAdvertisedV6',
type: {
name: 'Number'
}
},
md5AuthenticationKey: {
required: false,
serializedName: 'md5AuthenticationKey',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = BgpSession;
74 changes: 74 additions & 0 deletions lib/services/peeringManagement/lib/models/contactInfo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/*
* 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 contact information of the peer.
*
*/
class ContactInfo {
/**
* Create a ContactInfo.
* @property {array} [emails] The list of email addresses.
* @property {array} [phone] The list of contact numbers.
*/
constructor() {
}

/**
* Defines the metadata of ContactInfo
*
* @returns {object} metadata of ContactInfo
*
*/
mapper() {
return {
required: false,
serializedName: 'ContactInfo',
type: {
name: 'Composite',
className: 'ContactInfo',
modelProperties: {
emails: {
required: false,
serializedName: 'emails',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
phone: {
required: false,
serializedName: 'phone',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
};
}
}

module.exports = ContactInfo;
118 changes: 118 additions & 0 deletions lib/services/peeringManagement/lib/models/directConnection.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
/*
* 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 properties that define a direct connection.
*
*/
class DirectConnection {
/**
* Create a DirectConnection.
* @property {number} [bandwidthInMbps] The bandwidth of the connection.
* @property {number} [provisionedBandwidthInMbps] The bandwidth that is
* actually provisioned.
* @property {number} [peeringDBFacilityId] The PeeringDB.com ID of the
* facility at which the connection has to be set up.
* @property {string} [connectionState] The state of the connection. Possible
* values include: 'None', 'PendingApproval', 'Approved',
* 'ProvisioningStarted', 'ProvisioningFailed', 'ProvisioningCompleted',
* 'Validating', 'Active'
* @property {object} [bgpSession] The BGP session associated with the
* connection.
* @property {string} [bgpSession.sessionPrefixV4] The IPv4 prefix that
* contains both ends' IPv4 addresses.
* @property {string} [bgpSession.sessionPrefixV6] The IPv6 prefix that
* contains both ends' IPv6 addresses.
* @property {string} [bgpSession.microsoftSessionIPv4Address] The IPv4
* session address on Microsoft's end.
* @property {string} [bgpSession.microsoftSessionIPv6Address] The IPv6
* session address on Microsoft's end.
* @property {string} [bgpSession.peerSessionIPv4Address] The IPv4 session
* address on peer's end.
* @property {string} [bgpSession.peerSessionIPv6Address] The IPv6 session
* address on peer's end.
* @property {string} [bgpSession.sessionStateV4] The state of the IPv4
* session. Possible values include: 'None', 'Idle', 'Connect', 'Active',
* 'OpenSent', 'OpenConfirm', 'Established', 'PendingAdd', 'PendingUpdate',
* 'PendingRemove'
* @property {string} [bgpSession.sessionStateV6] The state of the IPv6
* session. Possible values include: 'None', 'Idle', 'Connect', 'Active',
* 'OpenSent', 'OpenConfirm', 'Established', 'PendingAdd', 'PendingUpdate',
* 'PendingRemove'
* @property {number} [bgpSession.maxPrefixesAdvertisedV4] The maximum number
* of prefixes advertised over the IPv4 session.
* @property {number} [bgpSession.maxPrefixesAdvertisedV6] The maximum number
* of prefixes advertised over the IPv6 session.
* @property {string} [bgpSession.md5AuthenticationKey] The MD5
* authentication key of the session.
*/
constructor() {
}

/**
* Defines the metadata of DirectConnection
*
* @returns {object} metadata of DirectConnection
*
*/
mapper() {
return {
required: false,
serializedName: 'DirectConnection',
type: {
name: 'Composite',
className: 'DirectConnection',
modelProperties: {
bandwidthInMbps: {
required: false,
serializedName: 'bandwidthInMbps',
type: {
name: 'Number'
}
},
provisionedBandwidthInMbps: {
required: false,
serializedName: 'provisionedBandwidthInMbps',
type: {
name: 'Number'
}
},
peeringDBFacilityId: {
required: false,
serializedName: 'peeringDBFacilityId',
type: {
name: 'Number'
}
},
connectionState: {
required: false,
readOnly: true,
serializedName: 'connectionState',
type: {
name: 'String'
}
},
bgpSession: {
required: false,
serializedName: 'bgpSession',
type: {
name: 'Composite',
className: 'BgpSession'
}
}
}
}
};
}
}

module.exports = DirectConnection;
Loading