Class EncodedTaskRunRequest
java.lang.Object
com.azure.resourcemanager.containerregistry.models.RunRequest
com.azure.resourcemanager.containerregistry.models.EncodedTaskRunRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RunRequest>
The parameters for a quick task run request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the agentConfiguration property: The machine configuration of the run agent.Get the credentials property: The properties that describes a set of credentials that will be used when this run is invoked.Get the encodedTaskContent property: Base64 encoded value of the template/definition file content.Get the encodedValuesContent property: Base64 encoded value of the parameters/values file content.static EncodedTaskRunRequestfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EncodedTaskRunRequest from the JsonReader.platform()Get the platform property: The platform properties against which the run has to happen.Get the sourceLocation property: The URL(absolute or relative) of the source context.timeout()Get the timeout property: Run timeout in seconds.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the run request.voidvalidate()Validates the instance.values()Get the values property: The collection of overridable values that can be passed when running a task.withAgentConfiguration(AgentProperties agentConfiguration) Set the agentConfiguration property: The machine configuration of the run agent.withAgentPoolName(String agentPoolName) Set the agentPoolName property: The dedicated agent pool for the run.withCredentials(Credentials credentials) Set the credentials property: The properties that describes a set of credentials that will be used when this run is invoked.withEncodedTaskContent(String encodedTaskContent) Set the encodedTaskContent property: Base64 encoded value of the template/definition file content.withEncodedValuesContent(String encodedValuesContent) Set the encodedValuesContent property: Base64 encoded value of the parameters/values file content.withIsArchiveEnabled(Boolean isArchiveEnabled) Set the isArchiveEnabled property: The value that indicates whether archiving is enabled for the run or not.withLogTemplate(String logTemplate) Set the logTemplate property: The template that describes the repository and tag information for run log artifact.withPlatform(PlatformProperties platform) Set the platform property: The platform properties against which the run has to happen.withSourceLocation(String sourceLocation) Set the sourceLocation property: The URL(absolute or relative) of the source context.withTimeout(Integer timeout) Set the timeout property: Run timeout in seconds.withValues(List<SetValue> values) Set the values property: The collection of overridable values that can be passed when running a task.Methods inherited from class RunRequest
agentPoolName, isArchiveEnabled, logTemplateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EncodedTaskRunRequest
public EncodedTaskRunRequest()Creates an instance of EncodedTaskRunRequest class.
-
-
Method Details
-
type
Get the type property: The type of the run request.- Overrides:
typein classRunRequest- Returns:
- the type value.
-
encodedTaskContent
Get the encodedTaskContent property: Base64 encoded value of the template/definition file content.- Returns:
- the encodedTaskContent value.
-
withEncodedTaskContent
Set the encodedTaskContent property: Base64 encoded value of the template/definition file content.- Parameters:
encodedTaskContent- the encodedTaskContent value to set.- Returns:
- the EncodedTaskRunRequest object itself.
-
encodedValuesContent
Get the encodedValuesContent property: Base64 encoded value of the parameters/values file content.- Returns:
- the encodedValuesContent value.
-
withEncodedValuesContent
Set the encodedValuesContent property: Base64 encoded value of the parameters/values file content.- Parameters:
encodedValuesContent- the encodedValuesContent value to set.- Returns:
- the EncodedTaskRunRequest object itself.
-
values
-
withValues
Set the values property: The collection of overridable values that can be passed when running a task.- Parameters:
values- the values value to set.- Returns:
- the EncodedTaskRunRequest object itself.
-
timeout
Get the timeout property: Run timeout in seconds.- Returns:
- the timeout value.
-
withTimeout
Set the timeout property: Run timeout in seconds.- Parameters:
timeout- the timeout value to set.- Returns:
- the EncodedTaskRunRequest object itself.
-
platform
Get the platform property: The platform properties against which the run has to happen.- Returns:
- the platform value.
-
withPlatform
Set the platform property: The platform properties against which the run has to happen.- Parameters:
platform- the platform value to set.- Returns:
- the EncodedTaskRunRequest object itself.
-
agentConfiguration
Get the agentConfiguration property: The machine configuration of the run agent.- Returns:
- the agentConfiguration value.
-
withAgentConfiguration
Set the agentConfiguration property: The machine configuration of the run agent.- Parameters:
agentConfiguration- the agentConfiguration value to set.- Returns:
- the EncodedTaskRunRequest object itself.
-
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:
- the sourceLocation value.
-
withSourceLocation
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:
sourceLocation- the sourceLocation value to set.- Returns:
- the EncodedTaskRunRequest object itself.
-
credentials
Get the credentials property: The properties that describes a set of credentials that will be used when this run is invoked.- Returns:
- the credentials value.
-
withCredentials
Set the credentials property: The properties that describes a set of credentials that will be used when this run is invoked.- Parameters:
credentials- the credentials value to set.- Returns:
- the EncodedTaskRunRequest object itself.
-
withIsArchiveEnabled
Set the isArchiveEnabled property: The value that indicates whether archiving is enabled for the run or not.- Overrides:
withIsArchiveEnabledin classRunRequest- Parameters:
isArchiveEnabled- the isArchiveEnabled value to set.- Returns:
- the RunRequest object itself.
-
withAgentPoolName
Set the agentPoolName property: The dedicated agent pool for the run.- Overrides:
withAgentPoolNamein classRunRequest- Parameters:
agentPoolName- the agentPoolName value to set.- Returns:
- the RunRequest object itself.
-
withLogTemplate
Set the logTemplate property: The template that describes the repository and tag information for run log artifact.- Overrides:
withLogTemplatein classRunRequest- Parameters:
logTemplate- the logTemplate value to set.- Returns:
- the RunRequest object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classRunRequest- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RunRequest>- Overrides:
toJsonin classRunRequest- Throws:
IOException
-
fromJson
public static EncodedTaskRunRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EncodedTaskRunRequest from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EncodedTaskRunRequest if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the EncodedTaskRunRequest.
-