diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionMonitorSourceStatus.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionMonitorSourceStatus.java new file mode 100644 index 00000000000..4dffb239721 --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionMonitorSourceStatus.java @@ -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 { + /** 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 values() { + return values(ConnectionMonitorSourceStatus.class); + } +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPConfiguration.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPConfiguration.java new file mode 100644 index 00000000000..1375da6b3cc --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPConfiguration.java @@ -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 headers; + + /** + * Valid status codes. + */ + @JsonProperty(value = "validStatusCodes") + private List 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 headers() { + return this.headers; + } + + /** + * Set the headers value. + * + * @param headers the headers value to set + * @return the HTTPConfiguration object itself. + */ + public HTTPConfiguration withHeaders(List headers) { + this.headers = headers; + return this; + } + + /** + * Get the validStatusCodes value. + * + * @return the validStatusCodes value + */ + public List validStatusCodes() { + return this.validStatusCodes; + } + + /** + * Set the validStatusCodes value. + * + * @param validStatusCodes the validStatusCodes value to set + * @return the HTTPConfiguration object itself. + */ + public HTTPConfiguration withValidStatusCodes(List validStatusCodes) { + this.validStatusCodes = validStatusCodes; + return this; + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPHeader.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPHeader.java new file mode 100644 index 00000000000..f9a835552eb --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPHeader.java @@ -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; + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPMethod.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPMethod.java new file mode 100644 index 00000000000..9abed6928c4 --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPMethod.java @@ -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 { + /** 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 values() { + return values(HTTPMethod.class); + } +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/IpFlowProtocol.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/IpFlowProtocol.java new file mode 100644 index 00000000000..a860d8bb5e3 --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/IpFlowProtocol.java @@ -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 { + /** 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 values() { + return values(IpFlowProtocol.class); + } +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Protocol.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Protocol.java index 6cd99bb8345..8a30dace2f0 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Protocol.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Protocol.java @@ -16,11 +16,17 @@ * Defines values for Protocol. */ public final class Protocol extends ExpandableStringEnum { - /** Static value TCP for Protocol. */ - public static final Protocol TCP = fromString("TCP"); + /** Static value Tcp for Protocol. */ + public static final Protocol TCP = fromString("Tcp"); - /** Static value UDP for Protocol. */ - public static final Protocol UDP = fromString("UDP"); + /** Static value Http for Protocol. */ + public static final Protocol HTTP = fromString("Http"); + + /** Static value Https for Protocol. */ + public static final Protocol HTTPS = fromString("Https"); + + /** Static value Icmp for Protocol. */ + public static final Protocol ICMP = fromString("Icmp"); /** * Creates or finds a Protocol from its string representation. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ProtocolConfiguration.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ProtocolConfiguration.java new file mode 100644 index 00000000000..2efd779648a --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ProtocolConfiguration.java @@ -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; + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionMonitorQueryResultInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionMonitorQueryResultInner.java index 623b3f09740..f9811c3f7aa 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionMonitorQueryResultInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionMonitorQueryResultInner.java @@ -8,6 +8,7 @@ package com.microsoft.azure.management.network.implementation; +import com.microsoft.azure.management.network.ConnectionMonitorSourceStatus; import java.util.List; import com.microsoft.azure.management.network.ConnectionStateSnapshot; import com.fasterxml.jackson.annotation.JsonProperty; @@ -16,12 +17,39 @@ * List of connection states snaphots. */ public class ConnectionMonitorQueryResultInner { + /** + * Status of connection monitor source. Possible values include: 'Uknown', + * 'Active', 'Inactive'. + */ + @JsonProperty(value = "sourceStatus") + private ConnectionMonitorSourceStatus sourceStatus; + /** * Information about connection states. */ @JsonProperty(value = "states") private List states; + /** + * Get the sourceStatus value. + * + * @return the sourceStatus value + */ + public ConnectionMonitorSourceStatus sourceStatus() { + return this.sourceStatus; + } + + /** + * Set the sourceStatus value. + * + * @param sourceStatus the sourceStatus value to set + * @return the ConnectionMonitorQueryResultInner object itself. + */ + public ConnectionMonitorQueryResultInner withSourceStatus(ConnectionMonitorSourceStatus sourceStatus) { + this.sourceStatus = sourceStatus; + return this; + } + /** * Get the states value. * diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectivityParametersInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectivityParametersInner.java index e0742f8b55e..b85e7952ee0 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectivityParametersInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectivityParametersInner.java @@ -10,6 +10,8 @@ import com.microsoft.azure.management.network.ConnectivitySource; import com.microsoft.azure.management.network.ConnectivityDestination; +import com.microsoft.azure.management.network.Protocol; +import com.microsoft.azure.management.network.ProtocolConfiguration; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -28,6 +30,19 @@ public class ConnectivityParametersInner { @JsonProperty(value = "destination", required = true) private ConnectivityDestination destination; + /** + * Network protocol. Possible values include: 'Tcp', 'Http', 'Https', + * 'Icmp'. + */ + @JsonProperty(value = "protocol") + private Protocol protocol; + + /** + * The protocolConfiguration property. + */ + @JsonProperty(value = "protocolConfiguration") + private ProtocolConfiguration protocolConfiguration; + /** * Get the source value. * @@ -68,4 +83,44 @@ public ConnectivityParametersInner withDestination(ConnectivityDestination desti return this; } + /** + * Get the protocol value. + * + * @return the protocol value + */ + public Protocol protocol() { + return this.protocol; + } + + /** + * Set the protocol value. + * + * @param protocol the protocol value to set + * @return the ConnectivityParametersInner object itself. + */ + public ConnectivityParametersInner withProtocol(Protocol protocol) { + this.protocol = protocol; + return this; + } + + /** + * Get the protocolConfiguration value. + * + * @return the protocolConfiguration value + */ + public ProtocolConfiguration protocolConfiguration() { + return this.protocolConfiguration; + } + + /** + * Set the protocolConfiguration value. + * + * @param protocolConfiguration the protocolConfiguration value to set + * @return the ConnectivityParametersInner object itself. + */ + public ConnectivityParametersInner withProtocolConfiguration(ProtocolConfiguration protocolConfiguration) { + this.protocolConfiguration = protocolConfiguration; + return this; + } + } diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VerificationIPFlowParametersInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VerificationIPFlowParametersInner.java index c787a41d9fe..5f2c7f4bd45 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VerificationIPFlowParametersInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VerificationIPFlowParametersInner.java @@ -9,7 +9,7 @@ package com.microsoft.azure.management.network.implementation; import com.microsoft.azure.management.network.Direction; -import com.microsoft.azure.management.network.Protocol; +import com.microsoft.azure.management.network.IpFlowProtocol; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -33,7 +33,7 @@ public class VerificationIPFlowParametersInner { * Protocol to be verified on. Possible values include: 'TCP', 'UDP'. */ @JsonProperty(value = "protocol", required = true) - private Protocol protocol; + private IpFlowProtocol protocol; /** * The local port. Acceptable values are a single integer in the range @@ -115,7 +115,7 @@ public VerificationIPFlowParametersInner withDirection(Direction direction) { * * @return the protocol value */ - public Protocol protocol() { + public IpFlowProtocol protocol() { return this.protocol; } @@ -125,7 +125,7 @@ public Protocol protocol() { * @param protocol the protocol value to set * @return the VerificationIPFlowParametersInner object itself. */ - public VerificationIPFlowParametersInner withProtocol(Protocol protocol) { + public VerificationIPFlowParametersInner withProtocol(IpFlowProtocol protocol) { this.protocol = protocol; return this; }