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 #22

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
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
The table of contents is too big for display.
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 @@ -24,7 +24,7 @@ public class AddressSpace {
private List<String> addressPrefixes;

/**
* Get the addressPrefixes value.
* Get a list of address blocks reserved for this virtual network in CIDR notation.
*
* @return the addressPrefixes value
*/
Expand All @@ -33,7 +33,7 @@ public List<String> addressPrefixes() {
}

/**
* Set the addressPrefixes value.
* Set a list of address blocks reserved for this virtual network in CIDR notation.
*
* @param addressPrefixes the addressPrefixes value to set
* @return the AddressSpace object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class ApplicationGatewayBackendAddress {
private String ipAddress;

/**
* Get the fqdn value.
* Get fully qualified domain name (FQDN).
*
* @return the fqdn value
*/
Expand All @@ -36,7 +36,7 @@ public String fqdn() {
}

/**
* Set the fqdn value.
* Set fully qualified domain name (FQDN).
*
* @param fqdn the fqdn value to set
* @return the ApplicationGatewayBackendAddress object itself.
Expand All @@ -47,7 +47,7 @@ public ApplicationGatewayBackendAddress withFqdn(String fqdn) {
}

/**
* Get the ipAddress value.
* Get iP address.
*
* @return the ipAddress value
*/
Expand All @@ -56,12 +56,12 @@ public String ipAddress() {
}

/**
* Set the ipAddress value.
* Set iP address.
*
* @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 @@ -29,7 +29,7 @@ public class ApplicationGatewayBackendHealthHttpSettings {
private List<ApplicationGatewayBackendHealthServer> servers;

/**
* Get the backendHttpSettings value.
* Get reference of an ApplicationGatewayBackendHttpSettings resource.
*
* @return the backendHttpSettings value
*/
Expand All @@ -38,7 +38,7 @@ public ApplicationGatewayBackendHttpSettingsInner backendHttpSettings() {
}

/**
* Set the backendHttpSettings value.
* Set reference of an ApplicationGatewayBackendHttpSettings resource.
*
* @param backendHttpSettings the backendHttpSettings value to set
* @return the ApplicationGatewayBackendHealthHttpSettings object itself.
Expand All @@ -49,7 +49,7 @@ public ApplicationGatewayBackendHealthHttpSettings withBackendHttpSettings(Appli
}

/**
* Get the servers value.
* Get list of ApplicationGatewayBackendHealthServer resources.
*
* @return the servers value
*/
Expand All @@ -58,7 +58,7 @@ public List<ApplicationGatewayBackendHealthServer> servers() {
}

/**
* Set the servers value.
* Set list of ApplicationGatewayBackendHealthServer resources.
*
* @param servers the servers value to set
* @return the ApplicationGatewayBackendHealthHttpSettings object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class ApplicationGatewayBackendHealthPool {
private List<ApplicationGatewayBackendHealthHttpSettings> backendHttpSettingsCollection;

/**
* Get the backendAddressPool value.
* Get reference of an ApplicationGatewayBackendAddressPool resource.
*
* @return the backendAddressPool value
*/
Expand All @@ -38,7 +38,7 @@ public ApplicationGatewayBackendAddressPoolInner backendAddressPool() {
}

/**
* Set the backendAddressPool value.
* Set reference of an ApplicationGatewayBackendAddressPool resource.
*
* @param backendAddressPool the backendAddressPool value to set
* @return the ApplicationGatewayBackendHealthPool object itself.
Expand All @@ -49,7 +49,7 @@ public ApplicationGatewayBackendHealthPool withBackendAddressPool(ApplicationGat
}

/**
* Get the backendHttpSettingsCollection value.
* Get list of ApplicationGatewayBackendHealthHttpSettings resources.
*
* @return the backendHttpSettingsCollection value
*/
Expand All @@ -58,7 +58,7 @@ public List<ApplicationGatewayBackendHealthHttpSettings> backendHttpSettingsColl
}

/**
* Set the backendHttpSettingsCollection value.
* Set list of ApplicationGatewayBackendHealthHttpSettings resources.
*
* @param backendHttpSettingsCollection the backendHttpSettingsCollection value to set
* @return the ApplicationGatewayBackendHealthPool object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class ApplicationGatewayBackendHealthServer {
private ApplicationGatewayBackendHealthServerHealth health;

/**
* Get the address value.
* Get iP address or FQDN of backend server.
*
* @return the address value
*/
Expand All @@ -44,7 +44,7 @@ public String address() {
}

/**
* Set the address value.
* Set iP address or FQDN of backend server.
*
* @param address the address value to set
* @return the ApplicationGatewayBackendHealthServer object itself.
Expand All @@ -55,7 +55,7 @@ public ApplicationGatewayBackendHealthServer withAddress(String address) {
}

/**
* Get the ipConfiguration value.
* Get reference of IP configuration of backend server.
*
* @return the ipConfiguration value
*/
Expand All @@ -64,7 +64,7 @@ public NetworkInterfaceIPConfigurationInner ipConfiguration() {
}

/**
* Set the ipConfiguration value.
* Set reference of IP configuration of backend server.
*
* @param ipConfiguration the ipConfiguration value to set
* @return the ApplicationGatewayBackendHealthServer object itself.
Expand All @@ -75,7 +75,7 @@ public ApplicationGatewayBackendHealthServer withIpConfiguration(NetworkInterfac
}

/**
* Get the health value.
* Get health of backend server. Possible values include: 'Unknown', 'Up', 'Down', 'Partial', 'Draining'.
*
* @return the health value
*/
Expand All @@ -84,7 +84,7 @@ public ApplicationGatewayBackendHealthServerHealth health() {
}

/**
* Set the health value.
* Set health of backend server. Possible values include: 'Unknown', 'Up', 'Down', 'Partial', 'Draining'.
*
* @param health the health value to set
* @return the ApplicationGatewayBackendHealthServer object itself.
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 @@ -30,7 +30,7 @@ public class ApplicationGatewayConnectionDraining {
private int drainTimeoutInSec;

/**
* Get the enabled value.
* Get whether connection draining is enabled or not.
*
* @return the enabled value
*/
Expand All @@ -39,7 +39,7 @@ public boolean enabled() {
}

/**
* Set the enabled value.
* Set whether connection draining is enabled or not.
*
* @param enabled the enabled value to set
* @return the ApplicationGatewayConnectionDraining object itself.
Expand All @@ -50,7 +50,7 @@ public ApplicationGatewayConnectionDraining withEnabled(boolean enabled) {
}

/**
* Get the drainTimeoutInSec value.
* Get the number of seconds connection draining is active. Acceptable values are from 1 second to 3600 seconds.
*
* @return the drainTimeoutInSec value
*/
Expand All @@ -59,7 +59,7 @@ public int drainTimeoutInSec() {
}

/**
* Set the drainTimeoutInSec value.
* Set the number of seconds connection draining is active. Acceptable values are from 1 second to 3600 seconds.
*
* @param drainTimeoutInSec the drainTimeoutInSec value to set
* @return the ApplicationGatewayConnectionDraining object itself.
Expand Down
Loading