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.
[AutoPR network/resource-manager] Added NetworkConfigurationDiagnosti…
…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
1 parent
5919307
commit eb7a6f5
Showing
19 changed files
with
4,244 additions
and
1,284 deletions.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
lib/services/networkManagement2/lib/models/connectionMonitorsQueryResultItem.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,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; |
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
58 changes: 58 additions & 0 deletions
58
lib/services/networkManagement2/lib/models/errorResponse.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,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; |
85 changes: 85 additions & 0 deletions
85
lib/services/networkManagement2/lib/models/evaluatedNetworkSecurityGroup.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,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; |
Oops, something went wrong.