BuildTask Class

The build task that has the resource properties and all build items. The build task will have all information to schedule a build against it.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.containerregistry.v2018_02_01_preview.models._models_py3.Resource
BuildTask

Constructor

BuildTask(*, location: str, tags: Optional[Dict[str, str]] = None, alias: Optional[str] = None, status: Optional[Union[str, azure.mgmt.containerregistry.v2018_02_01_preview.models._container_registry_management_client_enums.BuildTaskStatus]] = None, source_repository: Optional[azure.mgmt.containerregistry.v2018_02_01_preview.models._models_py3.SourceRepositoryProperties] = None, platform: Optional[azure.mgmt.containerregistry.v2018_02_01_preview.models._models_py3.PlatformProperties] = None, timeout: Optional[int] = 3600, **kwargs)

Variables

id
str

The resource ID.

name
str

The name of the resource.

type
str

The type of the resource.

location
str

Required. The location of the resource. This cannot be changed after the resource is created.

tags
dict[str, str]

A set of tags. The tags of the resource.

provisioning_state
str or ProvisioningState

The provisioning state of the build task. Possible values include: "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled".

creation_date
datetime

The creation date of build task.

alias
str

The alternative updatable name for a build task.

status
str or BuildTaskStatus

The current status of build task. Possible values include: "Disabled", "Enabled".

source_repository
SourceRepositoryProperties

The properties that describes the source(code) for the build task.

platform
PlatformProperties

The platform properties against which the build has to happen.

timeout
int

Build timeout in seconds.