Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */
package com.microsoft.azure.management.appservice; import com.microsoft.azure.management.apigeneration.Beta; import com.microsoft.azure.management.resources.fluentcore.model.Appliable; import com.microsoft.azure.management.resources.fluentcore.model.Updatable;
An immutable client-side representation of an Azure Web App deployment slot.
Type parameters:
  • <FluentT> – the type of the resource
/** * An immutable client-side representation of an Azure Web App deployment slot. * * @param <FluentT> the type of the resource */
@Beta public interface DeploymentSlotBase<FluentT> extends WebAppBase, Updatable<DeploymentSlotBase.Update<FluentT>> {
Grouping of all the deployment slot update stages.
/** * Grouping of all the deployment slot update stages. */
interface UpdateStages {
A deployment slot update allowing runtime version to be specified.
/** * A deployment slot update allowing runtime version to be specified. */
interface WithRuntimeVersion<FluentT> {
Specifies the runtime for the function app.
Params:
  • runtime – the Azure Functions runtime
Returns:the next stage of the definition
/** * Specifies the runtime for the function app. * @param runtime the Azure Functions runtime * @return the next stage of the definition */
Update<FluentT> withRuntime(String runtime);
Specifies the runtime version for the function app.
Params:
  • version – the version of the Azure Functions runtime
Returns:the next stage of the definition
/** * Specifies the runtime version for the function app. * @param version the version of the Azure Functions runtime * @return the next stage of the definition */
Update<FluentT> withRuntimeVersion(String version);
Uses the latest runtime version for the function app.
Returns:the next stage of the definition
/** * Uses the latest runtime version for the function app. * @return the next stage of the definition */
Update<FluentT> withLatestRuntimeVersion(); }
A deployment slot update allowing docker image source to be specified.
/** * A deployment slot update allowing docker image source to be specified. */
interface WithDockerContainerImage<FluentT> {
Specifies the docker container image to be one from Docker Hub.
Params:
  • imageAndTag – image and optional tag (eg 'image:tag')
Returns:the next stage of the web app update
/** * Specifies the docker container image to be one from Docker Hub. * @param imageAndTag image and optional tag (eg 'image:tag') * @return the next stage of the web app update */
Update<FluentT> withPublicDockerHubImage(String imageAndTag);
Specifies the docker container image to be one from Docker Hub.
Params:
  • imageAndTag – image and optional tag (eg 'image:tag')
Returns:the next stage of the web app update
/** * Specifies the docker container image to be one from Docker Hub. * @param imageAndTag image and optional tag (eg 'image:tag') * @return the next stage of the web app update */
UpdateStages.WithCredentials<FluentT> withPrivateDockerHubImage(String imageAndTag);
Specifies the docker container image to be one from a private registry.
Params:
  • imageAndTag – image and optional tag (eg 'image:tag')
  • serverUrl – the URL to the private registry server
Returns:the next stage of the web app update
/** * Specifies the docker container image to be one from a private registry. * @param imageAndTag image and optional tag (eg 'image:tag') * @param serverUrl the URL to the private registry server * @return the next stage of the web app update */
UpdateStages.WithCredentials<FluentT> withPrivateRegistryImage(String imageAndTag, String serverUrl); }
A deployment slot update allowing docker hub credentials to be set.
/** * A deployment slot update allowing docker hub credentials to be set. */
interface WithCredentials<FluentT> {
Specifies the username and password for Docker Hub.
Params:
  • username – the username for Docker Hub
  • password – the password for Docker Hub
Returns:the next stage of the web app update
/** * Specifies the username and password for Docker Hub. * @param username the username for Docker Hub * @param password the password for Docker Hub * @return the next stage of the web app update */
Update<FluentT> withCredentials(String username, String password); } } interface Update<FluentT> extends Appliable<FluentT>, WebAppBase.Update<FluentT>, UpdateStages.WithRuntimeVersion<FluentT>, UpdateStages.WithDockerContainerImage<FluentT>, UpdateStages.WithCredentials<FluentT> { } }