forked from Azure/azure-libraries-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
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] NetworkWatcher: Added new parameter…
…s to QueryConnectionMonitorResult and ConnectivityCheckRequest (#21) * Generated from e374ea2d092a3b230f5b158fc358e665aa68e5bb NetworkWatcher: Fixed typo * Generated from 72acce73b1ca4439a875b2fec63125d27d7139a3 Fixed casing for HTTPConfiguration property
- Loading branch information
1 parent
98dc428
commit 41cfae1
Showing
10 changed files
with
428 additions
and
8 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...k/src/main/java/com/microsoft/azure/management/network/ConnectionMonitorSourceStatus.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; | ||
|
||
import java.util.Collection; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.microsoft.rest.ExpandableStringEnum; | ||
|
||
/** | ||
* Defines values for ConnectionMonitorSourceStatus. | ||
*/ | ||
public final class ConnectionMonitorSourceStatus extends ExpandableStringEnum<ConnectionMonitorSourceStatus> { | ||
/** Static value Uknown for ConnectionMonitorSourceStatus. */ | ||
public static final ConnectionMonitorSourceStatus UKNOWN = fromString("Uknown"); | ||
|
||
/** Static value Active for ConnectionMonitorSourceStatus. */ | ||
public static final ConnectionMonitorSourceStatus ACTIVE = fromString("Active"); | ||
|
||
/** Static value Inactive for ConnectionMonitorSourceStatus. */ | ||
public static final ConnectionMonitorSourceStatus INACTIVE = fromString("Inactive"); | ||
|
||
/** | ||
* Creates or finds a ConnectionMonitorSourceStatus from its string representation. | ||
* @param name a name to look for | ||
* @return the corresponding ConnectionMonitorSourceStatus | ||
*/ | ||
@JsonCreator | ||
public static ConnectionMonitorSourceStatus fromString(String name) { | ||
return fromString(name, ConnectionMonitorSourceStatus.class); | ||
} | ||
|
||
/** | ||
* @return known ConnectionMonitorSourceStatus values | ||
*/ | ||
public static Collection<ConnectionMonitorSourceStatus> values() { | ||
return values(ConnectionMonitorSourceStatus.class); | ||
} | ||
} |
96 changes: 96 additions & 0 deletions
96
...-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPConfiguration.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,96 @@ | ||
/** | ||
* 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; | ||
|
||
import java.util.List; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* HTTP configuration of the connectivity check. | ||
*/ | ||
public class HTTPConfiguration { | ||
/** | ||
* HTTP method. Possible values include: 'Get'. | ||
*/ | ||
@JsonProperty(value = "method") | ||
private HTTPMethod method; | ||
|
||
/** | ||
* List of HTTP headers. | ||
*/ | ||
@JsonProperty(value = "headers") | ||
private List<HTTPHeader> headers; | ||
|
||
/** | ||
* Valid status codes. | ||
*/ | ||
@JsonProperty(value = "validStatusCodes") | ||
private List<Integer> validStatusCodes; | ||
|
||
/** | ||
* Get the method value. | ||
* | ||
* @return the method value | ||
*/ | ||
public HTTPMethod method() { | ||
return this.method; | ||
} | ||
|
||
/** | ||
* Set the method value. | ||
* | ||
* @param method the method value to set | ||
* @return the HTTPConfiguration object itself. | ||
*/ | ||
public HTTPConfiguration withMethod(HTTPMethod method) { | ||
this.method = method; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the headers value. | ||
* | ||
* @return the headers value | ||
*/ | ||
public List<HTTPHeader> headers() { | ||
return this.headers; | ||
} | ||
|
||
/** | ||
* Set the headers value. | ||
* | ||
* @param headers the headers value to set | ||
* @return the HTTPConfiguration object itself. | ||
*/ | ||
public HTTPConfiguration withHeaders(List<HTTPHeader> headers) { | ||
this.headers = headers; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the validStatusCodes value. | ||
* | ||
* @return the validStatusCodes value | ||
*/ | ||
public List<Integer> validStatusCodes() { | ||
return this.validStatusCodes; | ||
} | ||
|
||
/** | ||
* Set the validStatusCodes value. | ||
* | ||
* @param validStatusCodes the validStatusCodes value to set | ||
* @return the HTTPConfiguration object itself. | ||
*/ | ||
public HTTPConfiguration withValidStatusCodes(List<Integer> validStatusCodes) { | ||
this.validStatusCodes = validStatusCodes; | ||
return this; | ||
} | ||
|
||
} |
69 changes: 69 additions & 0 deletions
69
azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPHeader.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,69 @@ | ||
/** | ||
* 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; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Describes the HTTP header. | ||
*/ | ||
public class HTTPHeader { | ||
/** | ||
* The name in HTTP header. | ||
*/ | ||
@JsonProperty(value = "name") | ||
private String name; | ||
|
||
/** | ||
* The value in HTTP header. | ||
*/ | ||
@JsonProperty(value = "value") | ||
private String value; | ||
|
||
/** | ||
* Get the name value. | ||
* | ||
* @return the name value | ||
*/ | ||
public String name() { | ||
return this.name; | ||
} | ||
|
||
/** | ||
* Set the name value. | ||
* | ||
* @param name the name value to set | ||
* @return the HTTPHeader object itself. | ||
*/ | ||
public HTTPHeader withName(String name) { | ||
this.name = name; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the value value. | ||
* | ||
* @return the value value | ||
*/ | ||
public String value() { | ||
return this.value; | ||
} | ||
|
||
/** | ||
* Set the value value. | ||
* | ||
* @param value the value value to set | ||
* @return the HTTPHeader object itself. | ||
*/ | ||
public HTTPHeader withValue(String value) { | ||
this.value = value; | ||
return this; | ||
} | ||
|
||
} |
38 changes: 38 additions & 0 deletions
38
azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPMethod.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,38 @@ | ||
/** | ||
* 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; | ||
|
||
import java.util.Collection; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.microsoft.rest.ExpandableStringEnum; | ||
|
||
/** | ||
* Defines values for HTTPMethod. | ||
*/ | ||
public final class HTTPMethod extends ExpandableStringEnum<HTTPMethod> { | ||
/** Static value Get for HTTPMethod. */ | ||
public static final HTTPMethod GET = fromString("Get"); | ||
|
||
/** | ||
* Creates or finds a HTTPMethod from its string representation. | ||
* @param name a name to look for | ||
* @return the corresponding HTTPMethod | ||
*/ | ||
@JsonCreator | ||
public static HTTPMethod fromString(String name) { | ||
return fromString(name, HTTPMethod.class); | ||
} | ||
|
||
/** | ||
* @return known HTTPMethod values | ||
*/ | ||
public static Collection<HTTPMethod> values() { | ||
return values(HTTPMethod.class); | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/IpFlowProtocol.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,41 @@ | ||
/** | ||
* 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; | ||
|
||
import java.util.Collection; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.microsoft.rest.ExpandableStringEnum; | ||
|
||
/** | ||
* Defines values for IpFlowProtocol. | ||
*/ | ||
public final class IpFlowProtocol extends ExpandableStringEnum<IpFlowProtocol> { | ||
/** Static value TCP for IpFlowProtocol. */ | ||
public static final IpFlowProtocol TCP = fromString("TCP"); | ||
|
||
/** Static value UDP for IpFlowProtocol. */ | ||
public static final IpFlowProtocol UDP = fromString("UDP"); | ||
|
||
/** | ||
* Creates or finds a IpFlowProtocol from its string representation. | ||
* @param name a name to look for | ||
* @return the corresponding IpFlowProtocol | ||
*/ | ||
@JsonCreator | ||
public static IpFlowProtocol fromString(String name) { | ||
return fromString(name, IpFlowProtocol.class); | ||
} | ||
|
||
/** | ||
* @return known IpFlowProtocol values | ||
*/ | ||
public static Collection<IpFlowProtocol> values() { | ||
return values(IpFlowProtocol.class); | ||
} | ||
} |
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
...t-network/src/main/java/com/microsoft/azure/management/network/ProtocolConfiguration.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; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Configuration of the protocol. | ||
*/ | ||
public class ProtocolConfiguration { | ||
/** | ||
* The hTTPConfiguration property. | ||
*/ | ||
@JsonProperty(value = "HTTPConfiguration") | ||
private HTTPConfiguration hTTPConfiguration; | ||
|
||
/** | ||
* Get the hTTPConfiguration value. | ||
* | ||
* @return the hTTPConfiguration value | ||
*/ | ||
public HTTPConfiguration hTTPConfiguration() { | ||
return this.hTTPConfiguration; | ||
} | ||
|
||
/** | ||
* Set the hTTPConfiguration value. | ||
* | ||
* @param hTTPConfiguration the hTTPConfiguration value to set | ||
* @return the ProtocolConfiguration object itself. | ||
*/ | ||
public ProtocolConfiguration withHTTPConfiguration(HTTPConfiguration hTTPConfiguration) { | ||
this.hTTPConfiguration = hTTPConfiguration; | ||
return this; | ||
} | ||
|
||
} |
Oops, something went wrong.