BitbucketServerBuildRunSource

class oci.devops.models.BitbucketServerBuildRunSource(**kwargs)

Bases: BuildRunSource

Specifies details of build run through Bitbucket Server.

Attributes:

SOURCE_TYPE_BITBUCKET_CLOUD

A constant which can be used with the source_type property of a BuildRunSource.

SOURCE_TYPE_BITBUCKET_SERVER

A constant which can be used with the source_type property of a BuildRunSource.

SOURCE_TYPE_DEVOPS_CODE_REPOSITORY

A constant which can be used with the source_type property of a BuildRunSource.

SOURCE_TYPE_GITHUB

A constant which can be used with the source_type property of a BuildRunSource.

SOURCE_TYPE_GITLAB

A constant which can be used with the source_type property of a BuildRunSource.

SOURCE_TYPE_GITLAB_SERVER

A constant which can be used with the source_type property of a BuildRunSource.

SOURCE_TYPE_MANUAL

A constant which can be used with the source_type property of a BuildRunSource.

SOURCE_TYPE_VBS

A constant which can be used with the source_type property of a BuildRunSource.

source_type

[Required] Gets the source_type of this BuildRunSource.

trigger_id

[Required] Gets the trigger_id of this BitbucketServerBuildRunSource.

trigger_info

[Required] Gets the trigger_info of this BitbucketServerBuildRunSource.

Methods:

__init__(**kwargs)

Initializes a new BitbucketServerBuildRunSource object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

SOURCE_TYPE_BITBUCKET_CLOUD = 'BITBUCKET_CLOUD'

A constant which can be used with the source_type property of a BuildRunSource. This constant has a value of “BITBUCKET_CLOUD”

SOURCE_TYPE_BITBUCKET_SERVER = 'BITBUCKET_SERVER'

A constant which can be used with the source_type property of a BuildRunSource. This constant has a value of “BITBUCKET_SERVER”

SOURCE_TYPE_DEVOPS_CODE_REPOSITORY = 'DEVOPS_CODE_REPOSITORY'

A constant which can be used with the source_type property of a BuildRunSource. This constant has a value of “DEVOPS_CODE_REPOSITORY”

SOURCE_TYPE_GITHUB = 'GITHUB'

A constant which can be used with the source_type property of a BuildRunSource. This constant has a value of “GITHUB”

SOURCE_TYPE_GITLAB = 'GITLAB'

A constant which can be used with the source_type property of a BuildRunSource. This constant has a value of “GITLAB”

SOURCE_TYPE_GITLAB_SERVER = 'GITLAB_SERVER'

A constant which can be used with the source_type property of a BuildRunSource. This constant has a value of “GITLAB_SERVER”

SOURCE_TYPE_MANUAL = 'MANUAL'

A constant which can be used with the source_type property of a BuildRunSource. This constant has a value of “MANUAL”

SOURCE_TYPE_VBS = 'VBS'

A constant which can be used with the source_type property of a BuildRunSource. This constant has a value of “VBS”

__init__(**kwargs)

Initializes a new BitbucketServerBuildRunSource object with values from keyword arguments. The default value of the source_type attribute of this class is BITBUCKET_SERVER and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • source_type (str) – The value to assign to the source_type property of this BitbucketServerBuildRunSource. Allowed values for this property are: “MANUAL”, “GITHUB”, “GITLAB”, “GITLAB_SERVER”, “BITBUCKET_CLOUD”, “BITBUCKET_SERVER”, “DEVOPS_CODE_REPOSITORY”, “VBS”

  • trigger_id (str) – The value to assign to the trigger_id property of this BitbucketServerBuildRunSource.

  • trigger_info (oci.devops.models.TriggerInfo) – The value to assign to the trigger_info property of this BitbucketServerBuildRunSource.

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property source_type

[Required] Gets the source_type of this BuildRunSource. The source from which the build run is triggered.

Allowed values for this property are: “MANUAL”, “GITHUB”, “GITLAB”, “GITLAB_SERVER”, “BITBUCKET_CLOUD”, “BITBUCKET_SERVER”, “DEVOPS_CODE_REPOSITORY”, “VBS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The source_type of this BuildRunSource.

Return type

str

property trigger_id

[Required] Gets the trigger_id of this BitbucketServerBuildRunSource. The trigger that invoked the build run.

Returns

The trigger_id of this BitbucketServerBuildRunSource.

Return type

str

property trigger_info

[Required] Gets the trigger_info of this BitbucketServerBuildRunSource.

Returns

The trigger_info of this BitbucketServerBuildRunSource.

Return type

oci.devops.models.TriggerInfo