Skip to content

Commit

Permalink
Generated from 7ec2bd4609060afcc99c3d328a2085d52324ece7 (#3470)
Browse files Browse the repository at this point in the history
Fix missing enum for proxy override
  • Loading branch information
AutorestCI authored Apr 26, 2019
1 parent ac0f5e2 commit 028cd39
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public interface ManagedInstance extends HasInner<ManagedInstanceInner>, Resourc
/**
* @return the proxyOverride value.
*/
String proxyOverride();
ManagedInstanceProxyOverride proxyOverride();

/**
* @return the publicDataEndpointEnabled value.
Expand Down Expand Up @@ -234,7 +234,7 @@ interface WithProxyOverride {
/**
* Specifies proxyOverride.
*/
WithCreate withProxyOverride(String proxyOverride);
WithCreate withProxyOverride(ManagedInstanceProxyOverride proxyOverride);
}

/**
Expand Down Expand Up @@ -412,7 +412,7 @@ interface WithProxyOverride {
/**
* Specifies proxyOverride.
*/
Update withProxyOverride(String proxyOverride);
Update withProxyOverride(ManagedInstanceProxyOverride proxyOverride);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ public class ManagedInstanceUpdate {
private DateTime restorePointInTime;

/**
* Proxy override of the managed instance.
* Connection type used for connecting to the instance. Possible values
* include: 'Proxy', 'Redirect', 'Default'.
*/
@JsonProperty(value = "properties.proxyOverride")
private String proxyOverride;
private ManagedInstanceProxyOverride proxyOverride;

/**
* Id of the timezone. Allowed values are timezones supported by Windows.
Expand Down Expand Up @@ -456,21 +457,21 @@ public ManagedInstanceUpdate withRestorePointInTime(DateTime restorePointInTime)
}

/**
* Get proxy override of the managed instance.
* Get connection type used for connecting to the instance. Possible values include: 'Proxy', 'Redirect', 'Default'.
*
* @return the proxyOverride value
*/
public String proxyOverride() {
public ManagedInstanceProxyOverride proxyOverride() {
return this.proxyOverride;
}

/**
* Set proxy override of the managed instance.
* Set connection type used for connecting to the instance. Possible values include: 'Proxy', 'Redirect', 'Default'.
*
* @param proxyOverride the proxyOverride value to set
* @return the ManagedInstanceUpdate object itself.
*/
public ManagedInstanceUpdate withProxyOverride(String proxyOverride) {
public ManagedInstanceUpdate withProxyOverride(ManagedInstanceProxyOverride proxyOverride) {
this.proxyOverride = proxyOverride;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import com.microsoft.azure.management.sql.v2015_05_01_preview.Sku;
import com.microsoft.azure.management.sql.v2015_05_01_preview.ManagedServerCreateMode;
import com.microsoft.azure.management.sql.v2015_05_01_preview.ManagedInstanceLicenseType;
import com.microsoft.azure.management.sql.v2015_05_01_preview.ManagedInstanceProxyOverride;
import rx.functions.Func1;

class ManagedInstanceImpl extends GroupableResourceCoreImpl<ManagedInstance, ManagedInstanceInner, ManagedInstanceImpl, SqlManager> implements ManagedInstance, ManagedInstance.Definition, ManagedInstance.Update {
Expand Down Expand Up @@ -120,7 +121,7 @@ public ManagedServerCreateMode managedInstanceCreateMode() {
}

@Override
public String proxyOverride() {
public ManagedInstanceProxyOverride proxyOverride() {
return this.inner().proxyOverride();
}

Expand Down Expand Up @@ -246,7 +247,7 @@ public ManagedInstanceImpl withManagedInstanceCreateMode(ManagedServerCreateMode
}

@Override
public ManagedInstanceImpl withProxyOverride(String proxyOverride) {
public ManagedInstanceImpl withProxyOverride(ManagedInstanceProxyOverride proxyOverride) {
if (isInCreateMode()) {
this.inner().withProxyOverride(proxyOverride);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.microsoft.azure.management.sql.v2015_05_01_preview.ManagedServerCreateMode;
import com.microsoft.azure.management.sql.v2015_05_01_preview.ManagedInstanceLicenseType;
import org.joda.time.DateTime;
import com.microsoft.azure.management.sql.v2015_05_01_preview.ManagedInstanceProxyOverride;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.Resource;
Expand Down Expand Up @@ -142,10 +143,11 @@ public class ManagedInstanceInner extends Resource {
private DateTime restorePointInTime;

/**
* Proxy override of the managed instance.
* Connection type used for connecting to the instance. Possible values
* include: 'Proxy', 'Redirect', 'Default'.
*/
@JsonProperty(value = "properties.proxyOverride")
private String proxyOverride;
private ManagedInstanceProxyOverride proxyOverride;

/**
* Id of the timezone. Allowed values are timezones supported by Windows.
Expand Down Expand Up @@ -481,21 +483,21 @@ public ManagedInstanceInner withRestorePointInTime(DateTime restorePointInTime)
}

/**
* Get proxy override of the managed instance.
* Get connection type used for connecting to the instance. Possible values include: 'Proxy', 'Redirect', 'Default'.
*
* @return the proxyOverride value
*/
public String proxyOverride() {
public ManagedInstanceProxyOverride proxyOverride() {
return this.proxyOverride;
}

/**
* Set proxy override of the managed instance.
* Set connection type used for connecting to the instance. Possible values include: 'Proxy', 'Redirect', 'Default'.
*
* @param proxyOverride the proxyOverride value to set
* @return the ManagedInstanceInner object itself.
*/
public ManagedInstanceInner withProxyOverride(String proxyOverride) {
public ManagedInstanceInner withProxyOverride(ManagedInstanceProxyOverride proxyOverride) {
this.proxyOverride = proxyOverride;
return this;
}
Expand Down

0 comments on commit 028cd39

Please sign in to comment.