-
Notifications
You must be signed in to change notification settings - Fork 2k
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 (#2305) * 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
191f4cb
commit 1768cae
Showing
22 changed files
with
2,281 additions
and
142 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...com/microsoft/azure/management/network/v2018_06_01/ConnectionMonitorsQueryResultItem.java
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,31 @@ | ||
/** | ||
* 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. | ||
*/ | ||
|
||
package com.microsoft.azure.management.network.v2018_06_01; | ||
|
||
import com.microsoft.azure.arm.model.HasInner; | ||
import com.microsoft.azure.arm.resources.models.HasManager; | ||
import com.microsoft.azure.management.network.v2018_06_01.implementation.NetworkManager; | ||
import com.microsoft.azure.management.network.v2018_06_01.implementation.ConnectionMonitorsQueryResultItemInner; | ||
import com.microsoft.azure.management.network.v2018_06_01.implementation.ConnectionMonitorQueryResultInner; | ||
|
||
/** | ||
* Type representing ConnectionMonitorsQueryResultItem. | ||
*/ | ||
public interface ConnectionMonitorsQueryResultItem extends HasInner<ConnectionMonitorsQueryResultItemInner>, HasManager<NetworkManager> { | ||
/** | ||
* @return the report value. | ||
*/ | ||
ConnectionMonitorQueryResultInner report(); | ||
|
||
/** | ||
* @return the resourceId value. | ||
*/ | ||
String resourceId(); | ||
|
||
} |
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
43 changes: 43 additions & 0 deletions
43
...06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/ErrorResponse.java
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,43 @@ | ||
/** | ||
* 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. | ||
*/ | ||
|
||
package com.microsoft.azure.management.network.v2018_06_01; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* The error object. | ||
*/ | ||
public class ErrorResponse { | ||
/** | ||
* Error. | ||
*/ | ||
@JsonProperty(value = "error") | ||
private ErrorDetails error; | ||
|
||
/** | ||
* Get the error value. | ||
* | ||
* @return the error value | ||
*/ | ||
public ErrorDetails error() { | ||
return this.error; | ||
} | ||
|
||
/** | ||
* Set the error value. | ||
* | ||
* @param error the error value to set | ||
* @return the ErrorResponse object itself. | ||
*/ | ||
public ErrorResponse withError(ErrorDetails error) { | ||
this.error = error; | ||
return this; | ||
} | ||
|
||
} |
44 changes: 44 additions & 0 deletions
44
.../main/java/com/microsoft/azure/management/network/v2018_06_01/ErrorResponseException.java
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,44 @@ | ||
/** | ||
* 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. | ||
*/ | ||
|
||
package com.microsoft.azure.management.network.v2018_06_01; | ||
|
||
import com.microsoft.rest.RestException; | ||
import okhttp3.ResponseBody; | ||
import retrofit2.Response; | ||
|
||
/** | ||
* Exception thrown for an invalid response with ErrorResponse information. | ||
*/ | ||
public class ErrorResponseException extends RestException { | ||
/** | ||
* Initializes a new instance of the ErrorResponseException class. | ||
* | ||
* @param message the exception message or the response content if a message is not available | ||
* @param response the HTTP response | ||
*/ | ||
public ErrorResponseException(final String message, final Response<ResponseBody> response) { | ||
super(message, response); | ||
} | ||
|
||
/** | ||
* Initializes a new instance of the ErrorResponseException class. | ||
* | ||
* @param message the exception message or the response content if a message is not available | ||
* @param response the HTTP response | ||
* @param body the deserialized response body | ||
*/ | ||
public ErrorResponseException(final String message, final Response<ResponseBody> response, final ErrorResponse body) { | ||
super(message, response, body); | ||
} | ||
|
||
@Override | ||
public ErrorResponse body() { | ||
return (ErrorResponse) super.body(); | ||
} | ||
} |
85 changes: 85 additions & 0 deletions
85
...ava/com/microsoft/azure/management/network/v2018_06_01/EvaluatedNetworkSecurityGroup.java
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. | ||
*/ | ||
|
||
package com.microsoft.azure.management.network.v2018_06_01; | ||
|
||
import java.util.List; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Results of network security group evaluation. | ||
*/ | ||
public class EvaluatedNetworkSecurityGroup { | ||
/** | ||
* Network security group ID. | ||
*/ | ||
@JsonProperty(value = "networkSecurityGroupId") | ||
private String networkSecurityGroupId; | ||
|
||
/** | ||
* The matchedRule property. | ||
*/ | ||
@JsonProperty(value = "matchedRule") | ||
private MatchedRule matchedRule; | ||
|
||
/** | ||
* List of network security rules evaluation results. | ||
*/ | ||
@JsonProperty(value = "rulesEvaluationResult", access = JsonProperty.Access.WRITE_ONLY) | ||
private List<NetworkSecurityRulesEvaluationResult> rulesEvaluationResult; | ||
|
||
/** | ||
* Get network security group ID. | ||
* | ||
* @return the networkSecurityGroupId value | ||
*/ | ||
public String networkSecurityGroupId() { | ||
return this.networkSecurityGroupId; | ||
} | ||
|
||
/** | ||
* Set network security group ID. | ||
* | ||
* @param networkSecurityGroupId the networkSecurityGroupId value to set | ||
* @return the EvaluatedNetworkSecurityGroup object itself. | ||
*/ | ||
public EvaluatedNetworkSecurityGroup withNetworkSecurityGroupId(String networkSecurityGroupId) { | ||
this.networkSecurityGroupId = networkSecurityGroupId; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the matchedRule value. | ||
* | ||
* @return the matchedRule value | ||
*/ | ||
public MatchedRule matchedRule() { | ||
return this.matchedRule; | ||
} | ||
|
||
/** | ||
* Set the matchedRule value. | ||
* | ||
* @param matchedRule the matchedRule value to set | ||
* @return the EvaluatedNetworkSecurityGroup object itself. | ||
*/ | ||
public EvaluatedNetworkSecurityGroup withMatchedRule(MatchedRule matchedRule) { | ||
this.matchedRule = matchedRule; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get list of network security rules evaluation results. | ||
* | ||
* @return the rulesEvaluationResult value | ||
*/ | ||
public List<NetworkSecurityRulesEvaluationResult> rulesEvaluationResult() { | ||
return this.rulesEvaluationResult; | ||
} | ||
|
||
} |
Oops, something went wrong.