FileTaskRunRequest Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. RunRequest - com.
azure. resourcemanager. containerregistry. models. FileTaskRunRequest
- com.
- com.
public final class FileTaskRunRequest
extends RunRequest
The request parameters for a scheduling run against a task file.
Constructor Summary
| Constructor | Description |
|---|---|
| FileTaskRunRequest() |
Creates an instance of File |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Agent |
agentConfiguration()
Get the agent |
| Credentials |
credentials()
Get the credentials property: The properties that describes a set of credentials that will be used when this run is invoked. |
|
static
File |
fromJson(JsonReader jsonReader)
Reads an instance of File |
|
Platform |
platform()
Get the platform property: The platform properties against which the run has to happen. |
| String |
sourceLocation()
Get the source |
| String |
taskFilePath()
Get the task |
| 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. |
|
List<Set |
values()
Get the values property: The collection of overridable values that can be passed when running a task. |
| String |
valuesFilePath()
Get the values |
|
File |
withAgentConfiguration(AgentProperties agentConfiguration)
Set the agent |
|
File |
withAgentPoolName(String agentPoolName)
Set the agent |
|
File |
withCredentials(Credentials credentials)
Set the credentials property: The properties that describes a set of credentials that will be used when this run is invoked. |
|
File |
withIsArchiveEnabled(Boolean isArchiveEnabled)
Set the is |
|
File |
withLogTemplate(String logTemplate)
Set the log |
|
File |
withPlatform(PlatformProperties platform)
Set the platform property: The platform properties against which the run has to happen. |
|
File |
withSourceLocation(String sourceLocation)
Set the source |
|
File |
withTaskFilePath(String taskFilePath)
Set the task |
|
File |
withTimeout(Integer timeout)
Set the timeout property: Run timeout in seconds. |
|
File |
withValues(List<SetValue> values)
Set the values property: The collection of overridable values that can be passed when running a task. |
|
File |
withValuesFilePath(String valuesFilePath)
Set the values |
Methods inherited from RunRequest
Methods inherited from java.lang.Object
Constructor Details
FileTaskRunRequest
public FileTaskRunRequest()
Creates an instance of FileTaskRunRequest class.
Method Details
agentConfiguration
public AgentProperties agentConfiguration()
Get the agentConfiguration property: The machine configuration of the run agent.
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:
fromJson
public static FileTaskRunRequest fromJson(JsonReader jsonReader)
Reads an instance of FileTaskRunRequest from the JsonReader.
Parameters:
Returns:
Throws:
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:
taskFilePath
public String taskFilePath()
Get the taskFilePath property: The template/definition file path relative to the source.
Returns:
timeout
public Integer timeout()
Get the timeout property: Run timeout in seconds.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
FileTaskRunRequest.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the run request.
Overrides:
FileTaskRunRequest.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
FileTaskRunRequest.validate()values
public List<SetValue> values()
Get the values property: The collection of overridable values that can be passed when running a task.
Returns:
valuesFilePath
public String valuesFilePath()
Get the valuesFilePath property: The values/parameters file path relative to the source.
Returns:
withAgentConfiguration
public FileTaskRunRequest withAgentConfiguration(AgentProperties agentConfiguration)
Set the agentConfiguration property: The machine configuration of the run agent.
Parameters:
Returns:
withAgentPoolName
public FileTaskRunRequest withAgentPoolName(String agentPoolName)
Set the agentPoolName property: The dedicated agent pool for the run.
Overrides:
FileTaskRunRequest.withAgentPoolName(String agentPoolName)Parameters:
withCredentials
public FileTaskRunRequest 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:
withIsArchiveEnabled
public FileTaskRunRequest withIsArchiveEnabled(Boolean isArchiveEnabled)
Set the isArchiveEnabled property: The value that indicates whether archiving is enabled for the run or not.
Overrides:
FileTaskRunRequest.withIsArchiveEnabled(Boolean isArchiveEnabled)Parameters:
withLogTemplate
public FileTaskRunRequest withLogTemplate(String logTemplate)
Set the logTemplate property: The template that describes the repository and tag information for run log artifact.
Overrides:
FileTaskRunRequest.withLogTemplate(String logTemplate)Parameters:
withPlatform
public FileTaskRunRequest withPlatform(PlatformProperties platform)
Set the platform property: The platform properties against which the run has to happen.
Parameters:
Returns:
withSourceLocation
public FileTaskRunRequest 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:
withTaskFilePath
public FileTaskRunRequest withTaskFilePath(String taskFilePath)
Set the taskFilePath property: The template/definition file path relative to the source.
Parameters:
Returns:
withTimeout
public FileTaskRunRequest withTimeout(Integer timeout)
Set the timeout property: Run timeout in seconds.
Parameters:
Returns:
withValues
public FileTaskRunRequest withValues(List<SetValue> values)
Set the values property: The collection of overridable values that can be passed when running a task.
Parameters:
Returns:
withValuesFilePath
public FileTaskRunRequest withValuesFilePath(String valuesFilePath)
Set the valuesFilePath property: The values/parameters file path relative to the source.
Parameters:
Returns: