FileTaskStep Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. TaskStepProperties - com.
azure. resourcemanager. containerregistry. models. FileTaskStep
- com.
- com.
public final class FileTaskStep
extends TaskStepProperties
The properties of a task step.
Constructor Summary
| Constructor | Description |
|---|---|
| FileTaskStep() |
Creates an instance of File |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
File |
fromJson(JsonReader jsonReader)
Reads an instance of File |
| String |
taskFilePath()
Get the task |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Step |
type()
Get the type property: The type of the step. |
| 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 |
withContextAccessToken(String contextAccessToken)
Set the context |
|
File |
withContextPath(String contextPath)
Set the context |
|
File |
withTaskFilePath(String taskFilePath)
Set the task |
|
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 TaskStepProperties
Methods inherited from java.lang.Object
Constructor Details
FileTaskStep
public FileTaskStep()
Creates an instance of FileTaskStep class.
Method Details
fromJson
public static FileTaskStep fromJson(JsonReader jsonReader)
Reads an instance of FileTaskStep from the JsonReader.
Parameters:
Returns:
Throws:
taskFilePath
public String taskFilePath()
Get the taskFilePath property: The task template/definition file path relative to the source context.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
FileTaskStep.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public StepType type()
Get the type property: The type of the step.
Overrides:
FileTaskStep.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
FileTaskStep.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 task values/parameters file path relative to the source context.
Returns:
withContextAccessToken
public FileTaskStep withContextAccessToken(String contextAccessToken)
Set the contextAccessToken property: The token (git PAT or SAS token of storage account blob) associated with the context for a step.
Overrides:
FileTaskStep.withContextAccessToken(String contextAccessToken)Parameters:
withContextPath
public FileTaskStep withContextPath(String contextPath)
Set the contextPath property: The URL(absolute or relative) of the source context for the task step.
Overrides:
FileTaskStep.withContextPath(String contextPath)Parameters:
withTaskFilePath
public FileTaskStep withTaskFilePath(String taskFilePath)
Set the taskFilePath property: The task template/definition file path relative to the source context.
Parameters:
Returns:
withValues
public FileTaskStep 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 FileTaskStep withValuesFilePath(String valuesFilePath)
Set the valuesFilePath property: The task values/parameters file path relative to the source context.
Parameters:
Returns: