Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR network/resource-manager] Merge Network-2018-02-01 to Master Networking Swagger Changes for Feb 2018 #372

Merged
merged 5 commits into from
Mar 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,52 +8,34 @@

package com.microsoft.azure.management.network;

import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for Access.
*/
public final class Access {
public final class Access extends ExpandableStringEnum<Access> {
/** Static value Allow for Access. */
public static final Access ALLOW = new Access("Allow");
public static final Access ALLOW = fromString("Allow");

/** Static value Deny for Access. */
public static final Access DENY = new Access("Deny");

private String value;
public static final Access DENY = fromString("Deny");

/**
* Creates a custom value for Access.
* @param value the custom value
* Creates or finds a Access from its string representation.
* @param name a name to look for
* @return the corresponding Access
*/
public Access(String value) {
this.value = value;
}

@JsonValue
@Override
public String toString() {
return value;
@JsonCreator
public static Access fromString(String name) {
return fromString(name, Access.class);
}

@Override
public int hashCode() {
return value.hashCode();
}

@Override
public boolean equals(Object obj) {
if (!(obj instanceof Access)) {
return false;
}
if (obj == this) {
return true;
}
Access rhs = (Access) obj;
if (value == null) {
return rhs.value == null;
} else {
return value.equals(rhs.value);
}
/**
* @return known Access values
*/
public static Collection<Access> values() {
return values(Access.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public String ipAddress() {
* @param ipAddress the ipAddress value to set
* @return the ApplicationGatewayBackendAddress object itself.
*/
public ApplicationGatewayBackendAddress withIPAddress(String ipAddress) {
public ApplicationGatewayBackendAddress withIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,61 +8,43 @@

package com.microsoft.azure.management.network;

import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for ApplicationGatewayBackendHealthServerHealth.
*/
public final class ApplicationGatewayBackendHealthServerHealth {
public final class ApplicationGatewayBackendHealthServerHealth extends ExpandableStringEnum<ApplicationGatewayBackendHealthServerHealth> {
/** Static value Unknown for ApplicationGatewayBackendHealthServerHealth. */
public static final ApplicationGatewayBackendHealthServerHealth UNKNOWN = new ApplicationGatewayBackendHealthServerHealth("Unknown");
public static final ApplicationGatewayBackendHealthServerHealth UNKNOWN = fromString("Unknown");

/** Static value Up for ApplicationGatewayBackendHealthServerHealth. */
public static final ApplicationGatewayBackendHealthServerHealth UP = new ApplicationGatewayBackendHealthServerHealth("Up");
public static final ApplicationGatewayBackendHealthServerHealth UP = fromString("Up");

/** Static value Down for ApplicationGatewayBackendHealthServerHealth. */
public static final ApplicationGatewayBackendHealthServerHealth DOWN = new ApplicationGatewayBackendHealthServerHealth("Down");
public static final ApplicationGatewayBackendHealthServerHealth DOWN = fromString("Down");

/** Static value Partial for ApplicationGatewayBackendHealthServerHealth. */
public static final ApplicationGatewayBackendHealthServerHealth PARTIAL = new ApplicationGatewayBackendHealthServerHealth("Partial");
public static final ApplicationGatewayBackendHealthServerHealth PARTIAL = fromString("Partial");

/** Static value Draining for ApplicationGatewayBackendHealthServerHealth. */
public static final ApplicationGatewayBackendHealthServerHealth DRAINING = new ApplicationGatewayBackendHealthServerHealth("Draining");

private String value;
public static final ApplicationGatewayBackendHealthServerHealth DRAINING = fromString("Draining");

/**
* Creates a custom value for ApplicationGatewayBackendHealthServerHealth.
* @param value the custom value
* Creates or finds a ApplicationGatewayBackendHealthServerHealth from its string representation.
* @param name a name to look for
* @return the corresponding ApplicationGatewayBackendHealthServerHealth
*/
public ApplicationGatewayBackendHealthServerHealth(String value) {
this.value = value;
}

@JsonValue
@Override
public String toString() {
return value;
@JsonCreator
public static ApplicationGatewayBackendHealthServerHealth fromString(String name) {
return fromString(name, ApplicationGatewayBackendHealthServerHealth.class);
}

@Override
public int hashCode() {
return value.hashCode();
}

@Override
public boolean equals(Object obj) {
if (!(obj instanceof ApplicationGatewayBackendHealthServerHealth)) {
return false;
}
if (obj == this) {
return true;
}
ApplicationGatewayBackendHealthServerHealth rhs = (ApplicationGatewayBackendHealthServerHealth) obj;
if (value == null) {
return rhs.value == null;
} else {
return value.equals(rhs.value);
}
/**
* @return known ApplicationGatewayBackendHealthServerHealth values
*/
public static Collection<ApplicationGatewayBackendHealthServerHealth> values() {
return values(ApplicationGatewayBackendHealthServerHealth.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,52 +8,34 @@

package com.microsoft.azure.management.network;

import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for ApplicationGatewayCookieBasedAffinity.
*/
public final class ApplicationGatewayCookieBasedAffinity {
public final class ApplicationGatewayCookieBasedAffinity extends ExpandableStringEnum<ApplicationGatewayCookieBasedAffinity> {
/** Static value Enabled for ApplicationGatewayCookieBasedAffinity. */
public static final ApplicationGatewayCookieBasedAffinity ENABLED = new ApplicationGatewayCookieBasedAffinity("Enabled");
public static final ApplicationGatewayCookieBasedAffinity ENABLED = fromString("Enabled");

/** Static value Disabled for ApplicationGatewayCookieBasedAffinity. */
public static final ApplicationGatewayCookieBasedAffinity DISABLED = new ApplicationGatewayCookieBasedAffinity("Disabled");

private String value;
public static final ApplicationGatewayCookieBasedAffinity DISABLED = fromString("Disabled");

/**
* Creates a custom value for ApplicationGatewayCookieBasedAffinity.
* @param value the custom value
* Creates or finds a ApplicationGatewayCookieBasedAffinity from its string representation.
* @param name a name to look for
* @return the corresponding ApplicationGatewayCookieBasedAffinity
*/
public ApplicationGatewayCookieBasedAffinity(String value) {
this.value = value;
}

@JsonValue
@Override
public String toString() {
return value;
@JsonCreator
public static ApplicationGatewayCookieBasedAffinity fromString(String name) {
return fromString(name, ApplicationGatewayCookieBasedAffinity.class);
}

@Override
public int hashCode() {
return value.hashCode();
}

@Override
public boolean equals(Object obj) {
if (!(obj instanceof ApplicationGatewayCookieBasedAffinity)) {
return false;
}
if (obj == this) {
return true;
}
ApplicationGatewayCookieBasedAffinity rhs = (ApplicationGatewayCookieBasedAffinity) obj;
if (value == null) {
return rhs.value == null;
} else {
return value.equals(rhs.value);
}
/**
* @return known ApplicationGatewayCookieBasedAffinity values
*/
public static Collection<ApplicationGatewayCookieBasedAffinity> values() {
return values(ApplicationGatewayCookieBasedAffinity.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,52 +8,34 @@

package com.microsoft.azure.management.network;

import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for ApplicationGatewayFirewallMode.
*/
public final class ApplicationGatewayFirewallMode {
public final class ApplicationGatewayFirewallMode extends ExpandableStringEnum<ApplicationGatewayFirewallMode> {
/** Static value Detection for ApplicationGatewayFirewallMode. */
public static final ApplicationGatewayFirewallMode DETECTION = new ApplicationGatewayFirewallMode("Detection");
public static final ApplicationGatewayFirewallMode DETECTION = fromString("Detection");

/** Static value Prevention for ApplicationGatewayFirewallMode. */
public static final ApplicationGatewayFirewallMode PREVENTION = new ApplicationGatewayFirewallMode("Prevention");

private String value;
public static final ApplicationGatewayFirewallMode PREVENTION = fromString("Prevention");

/**
* Creates a custom value for ApplicationGatewayFirewallMode.
* @param value the custom value
* Creates or finds a ApplicationGatewayFirewallMode from its string representation.
* @param name a name to look for
* @return the corresponding ApplicationGatewayFirewallMode
*/
public ApplicationGatewayFirewallMode(String value) {
this.value = value;
}

@JsonValue
@Override
public String toString() {
return value;
@JsonCreator
public static ApplicationGatewayFirewallMode fromString(String name) {
return fromString(name, ApplicationGatewayFirewallMode.class);
}

@Override
public int hashCode() {
return value.hashCode();
}

@Override
public boolean equals(Object obj) {
if (!(obj instanceof ApplicationGatewayFirewallMode)) {
return false;
}
if (obj == this) {
return true;
}
ApplicationGatewayFirewallMode rhs = (ApplicationGatewayFirewallMode) obj;
if (value == null) {
return rhs.value == null;
} else {
return value.equals(rhs.value);
}
/**
* @return known ApplicationGatewayFirewallMode values
*/
public static Collection<ApplicationGatewayFirewallMode> values() {
return values(ApplicationGatewayFirewallMode.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,58 +8,40 @@

package com.microsoft.azure.management.network;

import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for ApplicationGatewayOperationalState.
*/
public final class ApplicationGatewayOperationalState {
public final class ApplicationGatewayOperationalState extends ExpandableStringEnum<ApplicationGatewayOperationalState> {
/** Static value Stopped for ApplicationGatewayOperationalState. */
public static final ApplicationGatewayOperationalState STOPPED = new ApplicationGatewayOperationalState("Stopped");
public static final ApplicationGatewayOperationalState STOPPED = fromString("Stopped");

/** Static value Starting for ApplicationGatewayOperationalState. */
public static final ApplicationGatewayOperationalState STARTING = new ApplicationGatewayOperationalState("Starting");
public static final ApplicationGatewayOperationalState STARTING = fromString("Starting");

/** Static value Running for ApplicationGatewayOperationalState. */
public static final ApplicationGatewayOperationalState RUNNING = new ApplicationGatewayOperationalState("Running");
public static final ApplicationGatewayOperationalState RUNNING = fromString("Running");

/** Static value Stopping for ApplicationGatewayOperationalState. */
public static final ApplicationGatewayOperationalState STOPPING = new ApplicationGatewayOperationalState("Stopping");

private String value;
public static final ApplicationGatewayOperationalState STOPPING = fromString("Stopping");

/**
* Creates a custom value for ApplicationGatewayOperationalState.
* @param value the custom value
* Creates or finds a ApplicationGatewayOperationalState from its string representation.
* @param name a name to look for
* @return the corresponding ApplicationGatewayOperationalState
*/
public ApplicationGatewayOperationalState(String value) {
this.value = value;
}

@JsonValue
@Override
public String toString() {
return value;
@JsonCreator
public static ApplicationGatewayOperationalState fromString(String name) {
return fromString(name, ApplicationGatewayOperationalState.class);
}

@Override
public int hashCode() {
return value.hashCode();
}

@Override
public boolean equals(Object obj) {
if (!(obj instanceof ApplicationGatewayOperationalState)) {
return false;
}
if (obj == this) {
return true;
}
ApplicationGatewayOperationalState rhs = (ApplicationGatewayOperationalState) obj;
if (value == null) {
return rhs.value == null;
} else {
return value.equals(rhs.value);
}
/**
* @return known ApplicationGatewayOperationalState values
*/
public static Collection<ApplicationGatewayOperationalState> values() {
return values(ApplicationGatewayOperationalState.class);
}
}
Loading