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

[AutoPR network/resource-manager] Added NetworkConfigurationDiagnostic rest API + example #3302

Merged
merged 6 commits into from
Aug 15, 2018
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,66 @@
/*
* 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');

/**
* Results of query particular connection monitor.
*
*/
class ConnectionMonitorsQueryResultItem {
/**
* Create a ConnectionMonitorsQueryResultItem.
* @member {string} [resourceId] Connection monitor resource ID.
* @member {object} [report]
* @member {string} [report.sourceStatus] Status of connection monitor
* source. Possible values include: 'Uknown', 'Active', 'Inactive'
* @member {array} [report.states] Information about connection states.
*/
constructor() {
}

/**
* Defines the metadata of ConnectionMonitorsQueryResultItem
*
* @returns {object} metadata of ConnectionMonitorsQueryResultItem
*
*/
mapper() {
return {
required: false,
serializedName: 'ConnectionMonitorsQueryResultItem',
type: {
name: 'Composite',
className: 'ConnectionMonitorsQueryResultItem',
modelProperties: {
resourceId: {
required: false,
serializedName: 'resourceId',
type: {
name: 'String'
}
},
report: {
required: false,
serializedName: 'report',
type: {
name: 'Composite',
className: 'ConnectionMonitorQueryResult'
}
}
}
}
};
}
}

module.exports = ConnectionMonitorsQueryResultItem;
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ class ConnectionStateSnapshot {
* @member {date} [endTime] The end time of the connection snapshot.
* @member {string} [evaluationState] Connectivity analysis evaluation state.
* Possible values include: 'NotStarted', 'InProgress', 'Completed'
* @member {number} [avgLatencyInMs] Average latency in ms.
* @member {number} [minLatencyInMs] Minimum latency in ms.
* @member {number} [maxLatencyInMs] Maximum latency in ms.
* @member {number} [probesSent] The number of sent probes.
* @member {number} [probesFailed] The number of failed probes.
* @member {array} [hops] List of hops between the source and the
* destination.
*/
Expand Down Expand Up @@ -73,6 +78,41 @@ class ConnectionStateSnapshot {
name: 'String'
}
},
avgLatencyInMs: {
required: false,
serializedName: 'avgLatencyInMs',
type: {
name: 'Number'
}
},
minLatencyInMs: {
required: false,
serializedName: 'minLatencyInMs',
type: {
name: 'Number'
}
},
maxLatencyInMs: {
required: false,
serializedName: 'maxLatencyInMs',
type: {
name: 'Number'
}
},
probesSent: {
required: false,
serializedName: 'probesSent',
type: {
name: 'Number'
}
},
probesFailed: {
required: false,
serializedName: 'probesFailed',
type: {
name: 'Number'
}
},
hops: {
required: false,
readOnly: true,
Expand Down
58 changes: 58 additions & 0 deletions lib/services/networkManagement2/lib/models/errorResponse.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/*
* 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');

/**
* The error object.
*
*/
class ErrorResponse {
/**
* Create a ErrorResponse.
* @member {object} [error] Error.
* @member {string} [error.code]
* @member {string} [error.target]
* @member {string} [error.message]
*/
constructor() {
}

/**
* Defines the metadata of ErrorResponse
*
* @returns {object} metadata of ErrorResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'ErrorResponse',
type: {
name: 'Composite',
className: 'ErrorResponse',
modelProperties: {
error: {
required: false,
serializedName: 'error',
type: {
name: 'Composite',
className: 'ErrorDetails'
}
}
}
}
};
}
}

module.exports = ErrorResponse;
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
/*
* 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');

/**
* Results of network security group evaluation.
*
*/
class EvaluatedNetworkSecurityGroup {
/**
* Create a EvaluatedNetworkSecurityGroup.
* @member {string} [networkSecurityGroupId] Network security group ID.
* @member {object} [matchedRule]
* @member {string} [matchedRule.ruleName] Name of the matched network
* security rule.
* @member {string} [matchedRule.action] The network traffic is allowed or
* denied. Possible values are 'Allow' and 'Deny'.
* @member {array} [rulesEvaluationResult] List of network security rules
* evaluation results.
*/
constructor() {
}

/**
* Defines the metadata of EvaluatedNetworkSecurityGroup
*
* @returns {object} metadata of EvaluatedNetworkSecurityGroup
*
*/
mapper() {
return {
required: false,
serializedName: 'EvaluatedNetworkSecurityGroup',
type: {
name: 'Composite',
className: 'EvaluatedNetworkSecurityGroup',
modelProperties: {
networkSecurityGroupId: {
required: false,
serializedName: 'networkSecurityGroupId',
type: {
name: 'String'
}
},
matchedRule: {
required: false,
serializedName: 'matchedRule',
type: {
name: 'Composite',
className: 'MatchedRule'
}
},
rulesEvaluationResult: {
required: false,
readOnly: true,
serializedName: 'rulesEvaluationResult',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'NetworkSecurityRulesEvaluationResultElementType',
type: {
name: 'Composite',
className: 'NetworkSecurityRulesEvaluationResult'
}
}
}
}
}
}
};
}
}

module.exports = EvaluatedNetworkSecurityGroup;
Loading