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