Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ interface WithCreate extends Creatable<App>, Resource.DefinitionWithTags<WithCre
/**
* The template for a App update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<App>, Resource.UpdateWithTags<Update>, UpdateStages.WithDisplayName, UpdateStages.WithSubdomain, UpdateStages.WithTemplate {
interface Update extends Appliable<App>, Resource.UpdateWithTags<Update>, UpdateStages.WithDisplayName, UpdateStages.WithSku, UpdateStages.WithSubdomain, UpdateStages.WithTemplate {
}

/**
Expand All @@ -149,6 +149,18 @@ interface WithDisplayName {
Update withDisplayName(String displayName);
}

/**
* The stage of the app update allowing to specify Sku.
*/
interface WithSku {
/**
* Specifies sku.
* @param sku A valid instance SKU
* @return the next update stage
*/
Update withSku(AppSkuInfo sku);
}

/**
* The stage of the app update allowing to specify Subdomain.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ public class AppPatch {
@JsonProperty(value = "tags")
private Map<String, String> tags;

/**
* A valid instance SKU.
*/
@JsonProperty(value = "sku")
private AppSkuInfo sku;

/**
* The ID of the application.
*/
Expand Down Expand Up @@ -70,6 +76,26 @@ public AppPatch withTags(Map<String, String> tags) {
return this;
}

/**
* Get a valid instance SKU.
*
* @return the sku value
*/
public AppSkuInfo sku() {
return this.sku;
}

/**
* Set a valid instance SKU.
*
* @param sku the sku value to set
* @return the AppPatch object itself.
*/
public AppPatch withSku(AppSkuInfo sku) {
this.sku = sku;
return this;
}

/**
* Get the ID of the application.
*
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ public String template() {

@Override
public AppImpl withSku(AppSkuInfo sku) {
this.inner().withSku(sku);
if (isInCreateMode()) {
this.inner().withSku(sku);
} else {
this.updateParameter.withSku(sku);
}
return this;
}

Expand Down