BitbucketCloudBuildSource

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

Bases: BuildSource

Bitbucket Cloud Build Source for Build Stage

Attributes:

CONNECTION_TYPE_BITBUCKET_CLOUD

A constant which can be used with the connection_type property of a BuildSource.

CONNECTION_TYPE_BITBUCKET_SERVER

A constant which can be used with the connection_type property of a BuildSource.

CONNECTION_TYPE_DEVOPS_CODE_REPOSITORY

A constant which can be used with the connection_type property of a BuildSource.

CONNECTION_TYPE_GITHUB

A constant which can be used with the connection_type property of a BuildSource.

CONNECTION_TYPE_GITLAB

A constant which can be used with the connection_type property of a BuildSource.

CONNECTION_TYPE_GITLAB_SERVER

A constant which can be used with the connection_type property of a BuildSource.

CONNECTION_TYPE_VBS

A constant which can be used with the connection_type property of a BuildSource.

branch

[Required] Gets the branch of this BuildSource.

connection_id

[Required] Gets the connection_id of this BitbucketCloudBuildSource.

connection_type

[Required] Gets the connection_type of this BuildSource.

name

[Required] Gets the name of this BuildSource.

repository_url

[Required] Gets the repository_url of this BuildSource.

Methods:

__init__(**kwargs)

Initializes a new BitbucketCloudBuildSource 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.

CONNECTION_TYPE_BITBUCKET_CLOUD = 'BITBUCKET_CLOUD'

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

CONNECTION_TYPE_BITBUCKET_SERVER = 'BITBUCKET_SERVER'

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

CONNECTION_TYPE_DEVOPS_CODE_REPOSITORY = 'DEVOPS_CODE_REPOSITORY'

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

CONNECTION_TYPE_GITHUB = 'GITHUB'

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

CONNECTION_TYPE_GITLAB = 'GITLAB'

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

CONNECTION_TYPE_GITLAB_SERVER = 'GITLAB_SERVER'

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

CONNECTION_TYPE_VBS = 'VBS'

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

__init__(**kwargs)

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

Parameters
  • name (str) – The value to assign to the name property of this BitbucketCloudBuildSource.

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

  • repository_url (str) – The value to assign to the repository_url property of this BitbucketCloudBuildSource.

  • branch (str) – The value to assign to the branch property of this BitbucketCloudBuildSource.

  • connection_id (str) – The value to assign to the connection_id property of this BitbucketCloudBuildSource.

property branch

[Required] Gets the branch of this BuildSource. Branch name.

Returns

The branch of this BuildSource.

Return type

str

property connection_id

[Required] Gets the connection_id of this BitbucketCloudBuildSource. Connection identifier pertinent to Bitbucket Cloud source provider

Returns

The connection_id of this BitbucketCloudBuildSource.

Return type

str

property connection_type

[Required] Gets the connection_type of this BuildSource. The type of source provider.

Allowed values for this property are: “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 connection_type of this BuildSource.

Return type

str

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 name

[Required] Gets the name of this BuildSource. Name of the build source. This must be unique within a build source collection. The name can be used by customers to locate the working directory pertinent to this repository.

Returns

The name of this BuildSource.

Return type

str

property repository_url

[Required] Gets the repository_url of this BuildSource. URL for the repository.

Returns

The repository_url of this BuildSource.

Return type

str