Skip to content
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 @@ -65,6 +65,11 @@ public interface AppServicePlan extends HasInner<AppServicePlanInner>, Resource,
*/
String kind();

/**
* @return the maximumElasticWorkerCount value.
*/
Integer maximumElasticWorkerCount();

/**
* @return the maximumNumberOfWorkers value.
*/
Expand Down Expand Up @@ -222,6 +227,16 @@ interface WithKind {
WithCreate withKind(String kind);
}

/**
* The stage of the appserviceplan update allowing to specify MaximumElasticWorkerCount.
*/
interface WithMaximumElasticWorkerCount {
/**
* Specifies maximumElasticWorkerCount.
*/
WithCreate withMaximumElasticWorkerCount(Integer maximumElasticWorkerCount);
}

/**
* The stage of the appserviceplan update allowing to specify PerSiteScaling.
*/
Expand Down Expand Up @@ -297,13 +312,13 @@ interface WithWorkerTierName {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<AppServicePlan>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithAdminSiteName, DefinitionStages.WithFreeOfferExpirationTime, DefinitionStages.WithHostingEnvironmentProfile, DefinitionStages.WithHyperV, DefinitionStages.WithIsSpot, DefinitionStages.WithIsXenon, DefinitionStages.WithKind, DefinitionStages.WithPerSiteScaling, DefinitionStages.WithReserved, DefinitionStages.WithSku, DefinitionStages.WithSpotExpirationTime, DefinitionStages.WithTargetWorkerCount, DefinitionStages.WithTargetWorkerSizeId, DefinitionStages.WithWorkerTierName {
interface WithCreate extends Creatable<AppServicePlan>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithAdminSiteName, DefinitionStages.WithFreeOfferExpirationTime, DefinitionStages.WithHostingEnvironmentProfile, DefinitionStages.WithHyperV, DefinitionStages.WithIsSpot, DefinitionStages.WithIsXenon, DefinitionStages.WithKind, DefinitionStages.WithMaximumElasticWorkerCount, DefinitionStages.WithPerSiteScaling, DefinitionStages.WithReserved, DefinitionStages.WithSku, DefinitionStages.WithSpotExpirationTime, DefinitionStages.WithTargetWorkerCount, DefinitionStages.WithTargetWorkerSizeId, DefinitionStages.WithWorkerTierName {
}
}
/**
* The template for a AppServicePlan update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<AppServicePlan>, Resource.UpdateWithTags<Update>, UpdateStages.WithAdminSiteName, UpdateStages.WithFreeOfferExpirationTime, UpdateStages.WithHostingEnvironmentProfile, UpdateStages.WithHyperV, UpdateStages.WithIsSpot, UpdateStages.WithIsXenon, UpdateStages.WithKind, UpdateStages.WithPerSiteScaling, UpdateStages.WithReserved, UpdateStages.WithSpotExpirationTime, UpdateStages.WithTargetWorkerCount, UpdateStages.WithTargetWorkerSizeId, UpdateStages.WithWorkerTierName {
interface Update extends Appliable<AppServicePlan>, Resource.UpdateWithTags<Update>, UpdateStages.WithAdminSiteName, UpdateStages.WithFreeOfferExpirationTime, UpdateStages.WithHostingEnvironmentProfile, UpdateStages.WithHyperV, UpdateStages.WithIsSpot, UpdateStages.WithIsXenon, UpdateStages.WithKind, UpdateStages.WithMaximumElasticWorkerCount, UpdateStages.WithPerSiteScaling, UpdateStages.WithReserved, UpdateStages.WithSpotExpirationTime, UpdateStages.WithTargetWorkerCount, UpdateStages.WithTargetWorkerSizeId, UpdateStages.WithWorkerTierName {
}

/**
Expand Down Expand Up @@ -380,6 +395,16 @@ interface WithKind {
Update withKind(String kind);
}

/**
* The stage of the appserviceplan {0} allowing to specify MaximumElasticWorkerCount.
*/
interface WithMaximumElasticWorkerCount {
/**
* Specifies maximumElasticWorkerCount.
*/
Update withMaximumElasticWorkerCount(Integer maximumElasticWorkerCount);
}

/**
* The stage of the appserviceplan {0} allowing to specify PerSiteScaling.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ public class AppServicePlanPatchResource extends ProxyOnlyResource {
@JsonProperty(value = "properties.perSiteScaling")
private Boolean perSiteScaling;

/**
* Maximum number of total workers allowed for this ElasticScaleEnabled App
* Service Plan.
*/
@JsonProperty(value = "properties.maximumElasticWorkerCount")
private Integer maximumElasticWorkerCount;

/**
* Number of apps assigned to this App Service plan.
*/
Expand Down Expand Up @@ -261,6 +268,26 @@ public AppServicePlanPatchResource withPerSiteScaling(Boolean perSiteScaling) {
return this;
}

/**
* Get maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.
*
* @return the maximumElasticWorkerCount value
*/
public Integer maximumElasticWorkerCount() {
return this.maximumElasticWorkerCount;
}

/**
* Set maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.
*
* @param maximumElasticWorkerCount the maximumElasticWorkerCount value to set
* @return the AppServicePlanPatchResource object itself.
*/
public AppServicePlanPatchResource withMaximumElasticWorkerCount(Integer maximumElasticWorkerCount) {
this.maximumElasticWorkerCount = maximumElasticWorkerCount;
return this;
}

/**
* Get number of apps assigned to this App Service plan.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ public interface HostingEnvironmentAppServicePlan extends HasInner<AppServicePla
*/
String location();

/**
* @return the maximumElasticWorkerCount value.
*/
Integer maximumElasticWorkerCount();

/**
* @return the maximumNumberOfWorkers value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ public final class SkuName extends ExpandableStringEnum<SkuName> {
/** Static value PremiumV2 for SkuName. */
public static final SkuName PREMIUM_V2 = fromString("PremiumV2");

/** Static value ElasticPremium for SkuName. */
public static final SkuName ELASTIC_PREMIUM = fromString("ElasticPremium");

/** Static value ElasticIsolated for SkuName. */
public static final SkuName ELASTIC_ISOLATED = fromString("ElasticIsolated");

/**
* Creates or finds a SkuName from its string representation.
* @param name a name to look for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ public String kind() {
return this.inner().kind();
}

@Override
public Integer maximumElasticWorkerCount() {
return this.inner().maximumElasticWorkerCount();
}

@Override
public Integer maximumNumberOfWorkers() {
return this.inner().maximumNumberOfWorkers();
Expand Down Expand Up @@ -250,6 +255,16 @@ public AppServicePlanImpl withKind(String kind) {
return this;
}

@Override
public AppServicePlanImpl withMaximumElasticWorkerCount(Integer maximumElasticWorkerCount) {
if (isInCreateMode()) {
this.inner().withMaximumElasticWorkerCount(maximumElasticWorkerCount);
} else {
this.updateParameter.withMaximumElasticWorkerCount(maximumElasticWorkerCount);
}
return this;
}

@Override
public AppServicePlanImpl withPerSiteScaling(Boolean perSiteScaling) {
if (isInCreateMode()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ public class AppServicePlanInner extends Resource {
@JsonProperty(value = "properties.perSiteScaling")
private Boolean perSiteScaling;

/**
* Maximum number of total workers allowed for this ElasticScaleEnabled App
* Service Plan.
*/
@JsonProperty(value = "properties.maximumElasticWorkerCount")
private Integer maximumElasticWorkerCount;

/**
* Number of apps assigned to this App Service plan.
*/
Expand Down Expand Up @@ -278,6 +285,26 @@ public AppServicePlanInner withPerSiteScaling(Boolean perSiteScaling) {
return this;
}

/**
* Get maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.
*
* @return the maximumElasticWorkerCount value
*/
public Integer maximumElasticWorkerCount() {
return this.maximumElasticWorkerCount;
}

/**
* Set maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.
*
* @param maximumElasticWorkerCount the maximumElasticWorkerCount value to set
* @return the AppServicePlanInner object itself.
*/
public AppServicePlanInner withMaximumElasticWorkerCount(Integer maximumElasticWorkerCount) {
this.maximumElasticWorkerCount = maximumElasticWorkerCount;
return this;
}

/**
* Get number of apps assigned to this App Service plan.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ public String location() {
return this.inner().location();
}

@Override
public Integer maximumElasticWorkerCount() {
return this.inner().maximumElasticWorkerCount();
}

@Override
public Integer maximumNumberOfWorkers() {
return this.inner().maximumNumberOfWorkers();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,7 @@ public Observable<ServiceResponse<Page<GeoRegionInner>>> call(Response<ResponseB
* Get a list of available geographical regions.
* Get a list of available geographical regions.
*
* @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2'
* @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated'
* @param linuxWorkersEnabled Specify &lt;code&gt;true&lt;/code&gt; if you want to filter to only regions that support Linux workers.
* @param xenonWorkersEnabled Specify &lt;code&gt;true&lt;/code&gt; if you want to filter to only regions that support Xenon workers.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand All @@ -1562,7 +1562,7 @@ public Page<GeoRegionInner> nextPage(String nextPageLink) {
* Get a list of available geographical regions.
* Get a list of available geographical regions.
*
* @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2'
* @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated'
* @param linuxWorkersEnabled Specify &lt;code&gt;true&lt;/code&gt; if you want to filter to only regions that support Linux workers.
* @param xenonWorkersEnabled Specify &lt;code&gt;true&lt;/code&gt; if you want to filter to only regions that support Xenon workers.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
Expand All @@ -1585,7 +1585,7 @@ public Observable<ServiceResponse<Page<GeoRegionInner>>> call(String nextPageLin
* Get a list of available geographical regions.
* Get a list of available geographical regions.
*
* @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2'
* @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated'
* @param linuxWorkersEnabled Specify &lt;code&gt;true&lt;/code&gt; if you want to filter to only regions that support Linux workers.
* @param xenonWorkersEnabled Specify &lt;code&gt;true&lt;/code&gt; if you want to filter to only regions that support Xenon workers.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand All @@ -1605,7 +1605,7 @@ public Page<GeoRegionInner> call(ServiceResponse<Page<GeoRegionInner>> response)
* Get a list of available geographical regions.
* Get a list of available geographical regions.
*
* @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2'
* @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated'
* @param linuxWorkersEnabled Specify &lt;code&gt;true&lt;/code&gt; if you want to filter to only regions that support Linux workers.
* @param xenonWorkersEnabled Specify &lt;code&gt;true&lt;/code&gt; if you want to filter to only regions that support Xenon workers.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand All @@ -1629,7 +1629,7 @@ public Observable<ServiceResponse<Page<GeoRegionInner>>> call(ServiceResponse<Pa
* Get a list of available geographical regions.
* Get a list of available geographical regions.
*
ServiceResponse<PageImpl<GeoRegionInner>> * @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2'
ServiceResponse<PageImpl<GeoRegionInner>> * @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated'
ServiceResponse<PageImpl<GeoRegionInner>> * @param linuxWorkersEnabled Specify &lt;code&gt;true&lt;/code&gt; if you want to filter to only regions that support Linux workers.
ServiceResponse<PageImpl<GeoRegionInner>> * @param xenonWorkersEnabled Specify &lt;code&gt;true&lt;/code&gt; if you want to filter to only regions that support Xenon workers.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand Down