BuildRunSnapshot¶
- class oci.devops.models.BuildRunSnapshot(**kwargs)¶
Bases:
objectSnapshot of a build run. Contains information including pipelineId, commitId.
Attributes:
A constant which can be used with the lifecycle_state property of a BuildRunSnapshot.
A constant which can be used with the lifecycle_state property of a BuildRunSnapshot.
A constant which can be used with the lifecycle_state property of a BuildRunSnapshot.
A constant which can be used with the lifecycle_state property of a BuildRunSnapshot.
A constant which can be used with the lifecycle_state property of a BuildRunSnapshot.
A constant which can be used with the lifecycle_state property of a BuildRunSnapshot.
[Required] Gets the build_pipeline_id of this BuildRunSnapshot.
[Required] Gets the build_run_id of this BuildRunSnapshot.
[Required] Gets the commit_id of this BuildRunSnapshot.
Gets the display_name of this BuildRunSnapshot.
[Required] Gets the lifecycle_details of this BuildRunSnapshot.
[Required] Gets the lifecycle_state of this BuildRunSnapshot.
Gets the time_created of this BuildRunSnapshot.
Gets the time_updated of this BuildRunSnapshot.
Methods:
__init__(**kwargs)Initializes a new BuildRunSnapshot object with values from keyword arguments.
- LIFECYCLE_STATE_ACCEPTED = 'ACCEPTED'¶
A constant which can be used with the lifecycle_state property of a BuildRunSnapshot. This constant has a value of “ACCEPTED”
- LIFECYCLE_STATE_CANCELED = 'CANCELED'¶
A constant which can be used with the lifecycle_state property of a BuildRunSnapshot. This constant has a value of “CANCELED”
- LIFECYCLE_STATE_CANCELING = 'CANCELING'¶
A constant which can be used with the lifecycle_state property of a BuildRunSnapshot. This constant has a value of “CANCELING”
- LIFECYCLE_STATE_FAILED = 'FAILED'¶
A constant which can be used with the lifecycle_state property of a BuildRunSnapshot. This constant has a value of “FAILED”
- LIFECYCLE_STATE_IN_PROGRESS = 'IN_PROGRESS'¶
A constant which can be used with the lifecycle_state property of a BuildRunSnapshot. This constant has a value of “IN_PROGRESS”
- LIFECYCLE_STATE_SUCCEEDED = 'SUCCEEDED'¶
A constant which can be used with the lifecycle_state property of a BuildRunSnapshot. This constant has a value of “SUCCEEDED”
- __init__(**kwargs)¶
Initializes a new BuildRunSnapshot object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
build_pipeline_id (str) – The value to assign to the build_pipeline_id property of this BuildRunSnapshot.
display_name (str) – The value to assign to the display_name property of this BuildRunSnapshot.
commit_id (str) – The value to assign to the commit_id property of this BuildRunSnapshot.
build_run_id (str) – The value to assign to the build_run_id property of this BuildRunSnapshot.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this BuildRunSnapshot. Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “FAILED”, “SUCCEEDED”, “CANCELING”, “CANCELED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
lifecycle_details (str) – The value to assign to the lifecycle_details property of this BuildRunSnapshot.
time_created (datetime) – The value to assign to the time_created property of this BuildRunSnapshot.
time_updated (datetime) – The value to assign to the time_updated property of this BuildRunSnapshot.
- property build_pipeline_id¶
[Required] Gets the build_pipeline_id of this BuildRunSnapshot. The OCID of the build pipeline where the build was triggered.
- Returns
The build_pipeline_id of this BuildRunSnapshot.
- Return type
str
- property build_run_id¶
[Required] Gets the build_run_id of this BuildRunSnapshot. The OCID of the build run.
- Returns
The build_run_id of this BuildRunSnapshot.
- Return type
str
- property commit_id¶
[Required] Gets the commit_id of this BuildRunSnapshot. The commit id which the build was triggered from.
- Returns
The commit_id of this BuildRunSnapshot.
- Return type
str
- property display_name¶
Gets the display_name of this BuildRunSnapshot. The display name of the build run.
- Returns
The display_name of this BuildRunSnapshot.
- Return type
str
- property lifecycle_details¶
[Required] Gets the lifecycle_details of this BuildRunSnapshot. A message describing the current state in more detail.
- Returns
The lifecycle_details of this BuildRunSnapshot.
- Return type
str
- property lifecycle_state¶
[Required] Gets the lifecycle_state of this BuildRunSnapshot. The current status of the build run.
Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “FAILED”, “SUCCEEDED”, “CANCELING”, “CANCELED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The lifecycle_state of this BuildRunSnapshot.
- Return type
str