repositoryVariables
RepositoryVariable
Bases: BitbucketCloudBase
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/repositoryVariables.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
|
key
property
writable
The repository variable key
scope
property
The repository variable scope
secured
property
The repository variable secured
system
property
The repository variable system
type
property
The repository variable type
uuid
property
The repository variable uuid
value
property
writable
The repository variable value
delete()
Delete the repository variable.
:return: The response on success
API docs: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-config-variables-variable-uuid-delete
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/repositoryVariables.py
93 94 95 96 97 98 99 100 101 |
|
update(**kwargs)
Update the repository variable properties. Fields not present in the request body are ignored.
:param kwargs: dict: The data to update.
:return: The updated repository variable
API docs: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-config-variables-variable-uuid-put
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/repositoryVariables.py
81 82 83 84 85 86 87 88 89 90 91 |
|
RepositoryVariables
Bases: BitbucketCloudBase
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/repositoryVariables.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
|
create(key, value, secured)
Create a new repository variable for the given repository.
:param key: string: The unique name of the variable. :param value: string: The value of the variable. If the variable is secured, this will be empty. :param secured: boolean: If true, this variable will be treated as secured. The value will never be exposed in the logs or the REST API.
:return: The created RepositoryVariable object
API docs: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-config-variables-post
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/repositoryVariables.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
each(q=None, sort=None)
Returns the list of repository variables in this repository.
:param q: string: Query string to narrow down the response. See https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering for details. :param sort: string: Name of a response property to sort results. See https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering for details.
:return: A generator for the RepositoryVariable objects
API docs: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-config-variables-get
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/repositoryVariables.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|
get(uuid)
Returns the pipeline with the uuid in this repository.
:param uuid: string: The requested pipeline uuid
:return: The requested RepositoryVariable objects
API docs: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-config-variables-variable-uuid-get
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/repositoryVariables.py
64 65 66 67 68 69 70 71 72 73 74 |
|