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

[ReleasePR sdk/appplatform/mgmt-v2019_05_01_preview] Update status and fix one property name. #10424

Closed
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
4 changes: 2 additions & 2 deletions sdk/appplatform/mgmt-v2019_05_01_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-appplatform</artifactId>
<version>1.0.0-beta-1</version>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for AppPlatform Management</name>
<description>This package contains Microsoft AppPlatform Management SDK.</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.appplatform.v2019_05_01_preview.implementation.AppPlatformManager;
import org.joda.time.DateTime;

/**
* Type representing AppResource.
Expand All @@ -27,6 +26,11 @@ public interface AppResource extends HasInner<AppResourceInner>, Indexable, Upda
*/
String id();

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

/**
* @return the name value.
*/
Expand All @@ -45,7 +49,7 @@ public interface AppResource extends HasInner<AppResourceInner>, Indexable, Upda
/**
* The entirety of the AppResource definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithResourceGroupName, DefinitionStages.WithServiceName, DefinitionStages.WithProperties, DefinitionStages.WithCreate {
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithResourceGroupName, DefinitionStages.WithServiceName, DefinitionStages.WithCreate {
}

/**
Expand Down Expand Up @@ -79,18 +83,30 @@ interface WithServiceName {
* @param serviceName The name of the Service resource
* @return the next definition stage
*/
WithProperties withServiceName(String serviceName);
WithCreate withServiceName(String serviceName);
}

/**
* The stage of the appresource definition allowing to specify Location.
*/
interface WithLocation {
/**
* Specifies location.
* @param location The GEO location of the application, always the same with its parent resource
* @return the next definition stage
*/
WithCreate withLocation(String location);
}

/**
* The stage of the appresource definition allowing to specify Properties.
*/
interface WithProperties {
/**
* Specifies properties.
* @param properties Properties of the App resource
* @return the next definition stage
*/
/**
* Specifies properties.
* @param properties Properties of the App resource
* @return the next definition stage
*/
WithCreate withProperties(AppResourceProperties properties);
}

Expand All @@ -99,19 +115,31 @@ interface WithProperties {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<AppResource> {
interface WithCreate extends Creatable<AppResource>, DefinitionStages.WithLocation, DefinitionStages.WithProperties {
}
}
/**
* The template for a AppResource update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<AppResource>, UpdateStages.WithProperties {
interface Update extends Appliable<AppResource>, UpdateStages.WithLocation, UpdateStages.WithProperties {
}

/**
* Grouping of AppResource update stages.
*/
interface UpdateStages {
/**
* The stage of the appresource update allowing to specify Location.
*/
interface WithLocation {
/**
* Specifies location.
* @param location The GEO location of the application, always the same with its parent resource
* @return the next update stage
*/
Update withLocation(String location);
}

/**
* The stage of the appresource update allowing to specify Properties.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class AppResourceProperties {

/**
* Provisioning state of the App. Possible values include: 'Succeeded',
* 'Failed'.
* 'Failed', 'Creating', 'Updating'.
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private AppResourceProvisioningState provisioningState;
Expand All @@ -40,6 +40,18 @@ public class AppResourceProperties {
@JsonProperty(value = "activeDeploymentName")
private String activeDeploymentName;

/**
* Fully qualified dns Name.
*/
@JsonProperty(value = "fqdn")
private String fqdn;

/**
* Indicate if only https is allowed.
*/
@JsonProperty(value = "httpsOnly")
private Boolean httpsOnly;

/**
* Date time when the resource is created.
*/
Expand Down Expand Up @@ -88,7 +100,7 @@ public String url() {
}

/**
* Get provisioning state of the App. Possible values include: 'Succeeded', 'Failed'.
* Get provisioning state of the App. Possible values include: 'Succeeded', 'Failed', 'Creating', 'Updating'.
*
* @return the provisioningState value
*/
Expand Down Expand Up @@ -116,6 +128,46 @@ public AppResourceProperties withActiveDeploymentName(String activeDeploymentNam
return this;
}

/**
* Get fully qualified dns Name.
*
* @return the fqdn value
*/
public String fqdn() {
return this.fqdn;
}

/**
* Set fully qualified dns Name.
*
* @param fqdn the fqdn value to set
* @return the AppResourceProperties object itself.
*/
public AppResourceProperties withFqdn(String fqdn) {
this.fqdn = fqdn;
return this;
}

/**
* Get indicate if only https is allowed.
*
* @return the httpsOnly value
*/
public Boolean httpsOnly() {
return this.httpsOnly;
}

/**
* Set indicate if only https is allowed.
*
* @param httpsOnly the httpsOnly value to set
* @return the AppResourceProperties object itself.
*/
public AppResourceProperties withHttpsOnly(Boolean httpsOnly) {
this.httpsOnly = httpsOnly;
return this;
}

/**
* Get date time when the resource is created.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ public final class AppResourceProvisioningState extends ExpandableStringEnum<App
/** Static value Failed for AppResourceProvisioningState. */
public static final AppResourceProvisioningState FAILED = fromString("Failed");

/** Static value Creating for AppResourceProvisioningState. */
public static final AppResourceProvisioningState CREATING = fromString("Creating");

/** Static value Updating for AppResourceProvisioningState. */
public static final AppResourceProvisioningState UPDATING = fromString("Updating");

/**
* Creates or finds a AppResourceProvisioningState from its string representation.
* @param name a name to look for
Expand Down
Loading