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 mgmt-v2019_05_01_preview] [Hub Generated] Review request for Microsoft.AppPlatform to add version preview/2020-11-01-preview #6496

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
6 changes: 3 additions & 3 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>
<relativePath>../../parents/azure-arm-parent</relativePath>
<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,16 @@ public interface AppResource extends HasInner<AppResourceInner>, Indexable, Upda
*/
String id();

/**
* @return the identity value.
*/
ManagedIdentityProperties identity();

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

/**
* @return the name value.
*/
Expand All @@ -45,7 +54,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 +88,42 @@ 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 Identity.
*/
interface WithIdentity {
/**
* Specifies identity.
* @param identity The Managed Identity type of the app resource
* @return the next definition stage
*/
WithCreate withIdentity(ManagedIdentityProperties identity);
}

/**
* 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 +132,43 @@ 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.WithIdentity, 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.WithIdentity, UpdateStages.WithLocation, UpdateStages.WithProperties {
}

/**
* Grouping of AppResource update stages.
*/
interface UpdateStages {
/**
* The stage of the appresource update allowing to specify Identity.
*/
interface WithIdentity {
/**
* Specifies identity.
* @param identity The Managed Identity type of the app resource
* @return the next update stage
*/
Update withIdentity(ManagedIdentityProperties identity);
}

/**
* 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.appplatform.v2019_05_01_preview;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.appplatform.v2019_05_01_preview.implementation.AppPlatformManager;
import com.microsoft.azure.management.appplatform.v2019_05_01_preview.implementation.AvailableRuntimeVersionsInner;
import java.util.List;

/**
* Type representing AvailableRuntimeVersions.
*/
public interface AvailableRuntimeVersions extends HasInner<AvailableRuntimeVersionsInner>, HasManager<AppPlatformManager> {
/**
* @return the value value.
*/
List<SupportedRuntimeVersion> value();

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ public class BindingResourceProperties {
/**
* The name of the bound resource.
*/
@JsonProperty(value = "resourceName")
@JsonProperty(value = "resourceName", access = JsonProperty.Access.WRITE_ONLY)
private String resourceName;

/**
* The standard Azure resource type of the bound resource.
*/
@JsonProperty(value = "resourceType")
@JsonProperty(value = "resourceType", access = JsonProperty.Access.WRITE_ONLY)
private String resourceType;

/**
Expand Down Expand Up @@ -73,17 +73,6 @@ public String resourceName() {
return this.resourceName;
}

/**
* Set the name of the bound resource.
*
* @param resourceName the resourceName value to set
* @return the BindingResourceProperties object itself.
*/
public BindingResourceProperties withResourceName(String resourceName) {
this.resourceName = resourceName;
return this;
}

/**
* Get the standard Azure resource type of the bound resource.
*
Expand All @@ -93,17 +82,6 @@ public String resourceType() {
return this.resourceType;
}

/**
* Set the standard Azure resource type of the bound resource.
*
* @param resourceType the resourceType value to set
* @return the BindingResourceProperties object itself.
*/
public BindingResourceProperties withResourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}

/**
* Get the Azure resource id of the bound resource.
*
Expand Down
Loading