Skip to content

Commit

Permalink
[AutoPR network/resource-manager] NetworkWatcher: Added new parameter…
Browse files Browse the repository at this point in the history
…s to QueryConnectionMonitorResult and ConnectivityCheckRequest (#21)

* Generated from e374ea2d092a3b230f5b158fc358e665aa68e5bb

NetworkWatcher: Fixed typo

* Generated from 72acce73b1ca4439a875b2fec63125d27d7139a3

Fixed casing for HTTPConfiguration property
  • Loading branch information
AutorestCI authored Mar 30, 2018
1 parent 98dc428 commit 41cfae1
Show file tree
Hide file tree
Showing 10 changed files with 428 additions and 8 deletions.
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);
}
}
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;
}

}
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;
}

}
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);
}
}
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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@
* Defines values for Protocol.
*/
public final class Protocol extends ExpandableStringEnum<Protocol> {
/** 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.
Expand Down
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;
}

}
Loading

0 comments on commit 41cfae1

Please sign in to comment.