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 sql/resource-manager] Update managedInstances.json #2890

Merged
merged 1 commit into from
Jan 30, 2019
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 @@ -64,6 +64,16 @@ public interface ManagedInstance extends HasInner<ManagedInstanceInner>, Resourc
*/
String licenseType();

/**
* @return the proxyOverride value.
*/
String proxyOverride();

/**
* @return the publicDataEndpointEnabled value.
*/
Boolean publicDataEndpointEnabled();

/**
* @return the sku value.
*/
Expand Down Expand Up @@ -171,6 +181,26 @@ interface WithLicenseType {
WithCreate withLicenseType(String licenseType);
}

/**
* The stage of the managedinstance update allowing to specify ProxyOverride.
*/
interface WithProxyOverride {
/**
* Specifies proxyOverride.
*/
WithCreate withProxyOverride(String proxyOverride);
}

/**
* The stage of the managedinstance update allowing to specify PublicDataEndpointEnabled.
*/
interface WithPublicDataEndpointEnabled {
/**
* Specifies publicDataEndpointEnabled.
*/
WithCreate withPublicDataEndpointEnabled(Boolean publicDataEndpointEnabled);
}

/**
* The stage of the managedinstance update allowing to specify Sku.
*/
Expand Down Expand Up @@ -216,13 +246,13 @@ interface WithVCores {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<ManagedInstance>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithAdministratorLogin, DefinitionStages.WithAdministratorLoginPassword, DefinitionStages.WithCollation, DefinitionStages.WithDnsZonePartner, DefinitionStages.WithIdentity, DefinitionStages.WithLicenseType, DefinitionStages.WithSku, DefinitionStages.WithStorageSizeInGB, DefinitionStages.WithSubnetId, DefinitionStages.WithVCores {
interface WithCreate extends Creatable<ManagedInstance>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithAdministratorLogin, DefinitionStages.WithAdministratorLoginPassword, DefinitionStages.WithCollation, DefinitionStages.WithDnsZonePartner, DefinitionStages.WithIdentity, DefinitionStages.WithLicenseType, DefinitionStages.WithProxyOverride, DefinitionStages.WithPublicDataEndpointEnabled, DefinitionStages.WithSku, DefinitionStages.WithStorageSizeInGB, DefinitionStages.WithSubnetId, DefinitionStages.WithVCores {
}
}
/**
* The template for a ManagedInstance update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<ManagedInstance>, Resource.UpdateWithTags<Update>, UpdateStages.WithAdministratorLogin, UpdateStages.WithAdministratorLoginPassword, UpdateStages.WithCollation, UpdateStages.WithDnsZonePartner, UpdateStages.WithLicenseType, UpdateStages.WithSku, UpdateStages.WithStorageSizeInGB, UpdateStages.WithSubnetId, UpdateStages.WithVCores {
interface Update extends Appliable<ManagedInstance>, Resource.UpdateWithTags<Update>, UpdateStages.WithAdministratorLogin, UpdateStages.WithAdministratorLoginPassword, UpdateStages.WithCollation, UpdateStages.WithDnsZonePartner, UpdateStages.WithLicenseType, UpdateStages.WithProxyOverride, UpdateStages.WithPublicDataEndpointEnabled, UpdateStages.WithSku, UpdateStages.WithStorageSizeInGB, UpdateStages.WithSubnetId, UpdateStages.WithVCores {
}

/**
Expand Down Expand Up @@ -279,6 +309,26 @@ interface WithLicenseType {
Update withLicenseType(String licenseType);
}

/**
* The stage of the managedinstance {0} allowing to specify ProxyOverride.
*/
interface WithProxyOverride {
/**
* Specifies proxyOverride.
*/
Update withProxyOverride(String proxyOverride);
}

/**
* The stage of the managedinstance {0} allowing to specify PublicDataEndpointEnabled.
*/
interface WithPublicDataEndpointEnabled {
/**
* Specifies publicDataEndpointEnabled.
*/
Update withPublicDataEndpointEnabled(Boolean publicDataEndpointEnabled);
}

/**
* The stage of the managedinstance {0} allowing to specify Sku.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,18 @@ public class ManagedInstanceUpdate {
@JsonProperty(value = "properties.dnsZonePartner")
private String dnsZonePartner;

/**
* Whether or not the public data endpoint is enabled.
*/
@JsonProperty(value = "properties.publicDataEndpointEnabled")
private Boolean publicDataEndpointEnabled;

/**
* Proxy override of the managed instance.
*/
@JsonProperty(value = "properties.proxyOverride")
private String proxyOverride;

/**
* Resource tags.
*/
Expand Down Expand Up @@ -306,6 +318,46 @@ public ManagedInstanceUpdate withDnsZonePartner(String dnsZonePartner) {
return this;
}

/**
* Get whether or not the public data endpoint is enabled.
*
* @return the publicDataEndpointEnabled value
*/
public Boolean publicDataEndpointEnabled() {
return this.publicDataEndpointEnabled;
}

/**
* Set whether or not the public data endpoint is enabled.
*
* @param publicDataEndpointEnabled the publicDataEndpointEnabled value to set
* @return the ManagedInstanceUpdate object itself.
*/
public ManagedInstanceUpdate withPublicDataEndpointEnabled(Boolean publicDataEndpointEnabled) {
this.publicDataEndpointEnabled = publicDataEndpointEnabled;
return this;
}

/**
* Get proxy override of the managed instance.
*
* @return the proxyOverride value
*/
public String proxyOverride() {
return this.proxyOverride;
}

/**
* Set proxy override of the managed instance.
*
* @param proxyOverride the proxyOverride value to set
* @return the ManagedInstanceUpdate object itself.
*/
public ManagedInstanceUpdate withProxyOverride(String proxyOverride) {
this.proxyOverride = proxyOverride;
return this;
}

/**
* Get resource tags.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ public String licenseType() {
return this.inner().licenseType();
}

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

@Override
public Boolean publicDataEndpointEnabled() {
return this.inner().publicDataEndpointEnabled();
}

@Override
public Sku sku() {
return this.inner().sku();
Expand Down Expand Up @@ -187,6 +197,26 @@ public ManagedInstanceImpl withLicenseType(String licenseType) {
return this;
}

@Override
public ManagedInstanceImpl withProxyOverride(String proxyOverride) {
if (isInCreateMode()) {
this.inner().withProxyOverride(proxyOverride);
} else {
this.updateParameter.withProxyOverride(proxyOverride);
}
return this;
}

@Override
public ManagedInstanceImpl withPublicDataEndpointEnabled(Boolean publicDataEndpointEnabled) {
if (isInCreateMode()) {
this.inner().withPublicDataEndpointEnabled(publicDataEndpointEnabled);
} else {
this.updateParameter.withPublicDataEndpointEnabled(publicDataEndpointEnabled);
}
return this;
}

@Override
public ManagedInstanceImpl withSku(Sku sku) {
if (isInCreateMode()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@ public class ManagedInstanceInner extends Resource {
@JsonProperty(value = "properties.dnsZonePartner")
private String dnsZonePartner;

/**
* Whether or not the public data endpoint is enabled.
*/
@JsonProperty(value = "properties.publicDataEndpointEnabled")
private Boolean publicDataEndpointEnabled;

/**
* Proxy override of the managed instance.
*/
@JsonProperty(value = "properties.proxyOverride")
private String proxyOverride;

/**
* Get the Azure Active Directory identity of the managed instance.
*
Expand Down Expand Up @@ -328,4 +340,44 @@ public ManagedInstanceInner withDnsZonePartner(String dnsZonePartner) {
return this;
}

/**
* Get whether or not the public data endpoint is enabled.
*
* @return the publicDataEndpointEnabled value
*/
public Boolean publicDataEndpointEnabled() {
return this.publicDataEndpointEnabled;
}

/**
* Set whether or not the public data endpoint is enabled.
*
* @param publicDataEndpointEnabled the publicDataEndpointEnabled value to set
* @return the ManagedInstanceInner object itself.
*/
public ManagedInstanceInner withPublicDataEndpointEnabled(Boolean publicDataEndpointEnabled) {
this.publicDataEndpointEnabled = publicDataEndpointEnabled;
return this;
}

/**
* Get proxy override of the managed instance.
*
* @return the proxyOverride value
*/
public String proxyOverride() {
return this.proxyOverride;
}

/**
* Set proxy override of the managed instance.
*
* @param proxyOverride the proxyOverride value to set
* @return the ManagedInstanceInner object itself.
*/
public ManagedInstanceInner withProxyOverride(String proxyOverride) {
this.proxyOverride = proxyOverride;
return this;
}

}