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

Commit

Permalink
[AutoPR network/resource-manager] Added NetworkConfigurationDiagnosti…
Browse files Browse the repository at this point in the history
…c rest API + example (#3302)

* Generated from 6ad7c8a080cf905ffcbe9c42c0382059ce753188

Added NetworkConfigurationDiagnostic rest API + example

* Generated from 6909b52c5e23056444d410930b8702e7540811e2

Removed 'read-only' from queries in NetworkConfigurationDiagnostic API

* Generated from f12e6b41326c05506097b75dce076c297074a3d2

Fixed example name

* Generated from 9e5daf5f1cd3c59140eec06d6fb55e6456323c54

Fixed reference to ErrorDetails

* Generated from 0858a238c818aa119584a9d61deddc2a26494de9

Fixed response for QueryConnectionMonitors API + fixed example

* Generated from 377e5cc3f8f10f71d7816d78462fbb68685453bd

Fixed types for latencies in networkwatcher.json
  • Loading branch information
AutorestCI authored Aug 15, 2018
1 parent 5919307 commit eb7a6f5
Show file tree
Hide file tree
Showing 19 changed files with 4,244 additions and 1,284 deletions.
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

0 comments on commit eb7a6f5

Please sign in to comment.