DockerBuildRequest Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. RunRequest - com.
azure. resourcemanager. containerregistry. models. DockerBuildRequest
- com.
- com.
public final class DockerBuildRequest
extends RunRequest
The parameters for a docker quick build.
Constructor Summary
| Constructor | Description |
|---|---|
| DockerBuildRequest() |
Creates an instance of Docker |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Agent |
agentConfiguration()
Get the agent |
| List<Argument> |
arguments()
Get the arguments property: The collection of override arguments to be used when executing the run. |
| Credentials |
credentials()
Get the credentials property: The properties that describes a set of credentials that will be used when this run is invoked. |
| String |
dockerFilePath()
Get the docker |
|
static
Docker |
fromJson(JsonReader jsonReader)
Reads an instance of Docker |
| List<String> |
imageNames()
Get the image |
| Boolean |
isPushEnabled()
Get the is |
| Boolean |
noCache()
Get the no |
|
Platform |
platform()
Get the platform property: The platform properties against which the run has to happen. |
| String |
sourceLocation()
Get the source |
| String |
target()
Get the target property: The name of the target build stage for the docker build. |
| Integer |
timeout()
Get the timeout property: Run timeout in seconds. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the run request. |
| void |
validate()
Validates the instance. |
|
Docker |
withAgentConfiguration(AgentProperties agentConfiguration)
Set the agent |
|
Docker |
withAgentPoolName(String agentPoolName)
Set the agent |
|
Docker |
withArguments(List<Argument> arguments)
Set the arguments property: The collection of override arguments to be used when executing the run. |
|
Docker |
withCredentials(Credentials credentials)
Set the credentials property: The properties that describes a set of credentials that will be used when this run is invoked. |
|
Docker |
withDockerFilePath(String dockerFilePath)
Set the docker |
|
Docker |
withImageNames(List<String> imageNames)
Set the image |
|
Docker |
withIsArchiveEnabled(Boolean isArchiveEnabled)
Set the is |
|
Docker |
withIsPushEnabled(Boolean isPushEnabled)
Set the is |
|
Docker |
withLogTemplate(String logTemplate)
Set the log |
|
Docker |
withNoCache(Boolean noCache)
Set the no |
|
Docker |
withPlatform(PlatformProperties platform)
Set the platform property: The platform properties against which the run has to happen. |
|
Docker |
withSourceLocation(String sourceLocation)
Set the source |
|
Docker |
withTarget(String target)
Set the target property: The name of the target build stage for the docker build. |
|
Docker |
withTimeout(Integer timeout)
Set the timeout property: Run timeout in seconds. |
Methods inherited from RunRequest
Methods inherited from java.lang.Object
Constructor Details
DockerBuildRequest
public DockerBuildRequest()
Creates an instance of DockerBuildRequest class.
Method Details
agentConfiguration
public AgentProperties agentConfiguration()
Get the agentConfiguration property: The machine configuration of the run agent.
Returns:
arguments
public List<Argument> arguments()
Get the arguments property: The collection of override arguments to be used when executing the run.
Returns:
credentials
public Credentials credentials()
Get the credentials property: The properties that describes a set of credentials that will be used when this run is invoked.
Returns:
dockerFilePath
public String dockerFilePath()
Get the dockerFilePath property: The Docker file path relative to the source location.
Returns:
fromJson
public static DockerBuildRequest fromJson(JsonReader jsonReader)
Reads an instance of DockerBuildRequest from the JsonReader.
Parameters:
Returns:
Throws:
imageNames
public List<String> imageNames()
Get the imageNames property: The fully qualified image names including the repository and tag.
Returns:
isPushEnabled
public Boolean isPushEnabled()
Get the isPushEnabled property: The value of this property indicates whether the image built should be pushed to the registry or not.
Returns:
noCache
public Boolean noCache()
Get the noCache property: The value of this property indicates whether the image cache is enabled or not.
Returns:
platform
public PlatformProperties platform()
Get the platform property: The platform properties against which the run has to happen.
Returns:
sourceLocation
public String sourceLocation()
Get the sourceLocation property: The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository. If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
Returns:
target
public String target()
Get the target property: The name of the target build stage for the docker build.
Returns:
timeout
public Integer timeout()
Get the timeout property: Run timeout in seconds.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DockerBuildRequest.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the run request.
Overrides:
DockerBuildRequest.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
DockerBuildRequest.validate()withAgentConfiguration
public DockerBuildRequest withAgentConfiguration(AgentProperties agentConfiguration)
Set the agentConfiguration property: The machine configuration of the run agent.
Parameters:
Returns:
withAgentPoolName
public DockerBuildRequest withAgentPoolName(String agentPoolName)
Set the agentPoolName property: The dedicated agent pool for the run.
Overrides:
DockerBuildRequest.withAgentPoolName(String agentPoolName)Parameters:
withArguments
public DockerBuildRequest withArguments(List<Argument> arguments)
Set the arguments property: The collection of override arguments to be used when executing the run.
Parameters:
Returns:
withCredentials
public DockerBuildRequest withCredentials(Credentials credentials)
Set the credentials property: The properties that describes a set of credentials that will be used when this run is invoked.
Parameters:
Returns:
withDockerFilePath
public DockerBuildRequest withDockerFilePath(String dockerFilePath)
Set the dockerFilePath property: The Docker file path relative to the source location.
Parameters:
Returns:
withImageNames
public DockerBuildRequest withImageNames(List<String> imageNames)
Set the imageNames property: The fully qualified image names including the repository and tag.
Parameters:
Returns:
withIsArchiveEnabled
public DockerBuildRequest withIsArchiveEnabled(Boolean isArchiveEnabled)
Set the isArchiveEnabled property: The value that indicates whether archiving is enabled for the run or not.
Overrides:
DockerBuildRequest.withIsArchiveEnabled(Boolean isArchiveEnabled)Parameters:
withIsPushEnabled
public DockerBuildRequest withIsPushEnabled(Boolean isPushEnabled)
Set the isPushEnabled property: The value of this property indicates whether the image built should be pushed to the registry or not.
Parameters:
Returns:
withLogTemplate
public DockerBuildRequest withLogTemplate(String logTemplate)
Set the logTemplate property: The template that describes the repository and tag information for run log artifact.
Overrides:
DockerBuildRequest.withLogTemplate(String logTemplate)Parameters:
withNoCache
public DockerBuildRequest withNoCache(Boolean noCache)
Set the noCache property: The value of this property indicates whether the image cache is enabled or not.
Parameters:
Returns:
withPlatform
public DockerBuildRequest withPlatform(PlatformProperties platform)
Set the platform property: The platform properties against which the run has to happen.
Parameters:
Returns:
withSourceLocation
public DockerBuildRequest withSourceLocation(String sourceLocation)
Set the sourceLocation property: The URL(absolute or relative) of the source context. It can be an URL to a tar or git repository. If it is relative URL, the relative path should be obtained from calling listBuildSourceUploadUrl API.
Parameters:
Returns:
withTarget
public DockerBuildRequest withTarget(String target)
Set the target property: The name of the target build stage for the docker build.
Parameters:
Returns:
withTimeout
public DockerBuildRequest withTimeout(Integer timeout)
Set the timeout property: Run timeout in seconds.
Parameters:
Returns: