deploymentEnvironments
DeploymentEnvironment
Bases: BitbucketCloudBase
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 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 |
|
category
property
The deployment environment category
deployment_environment_variables
property
The deployment environment variables
deployment_gate_enabled
property
The deployment environment deployment gate enabled
environment_lock_enabled
property
The deployment environment environment lock enabled
environment_type
property
The deployment environment environment type
hidden
property
The deployment environment hidden
lock
property
The deployment environment lock
name
property
The deployment environment name
rank
property
The deployment environment rank
restrictions
property
The deployment environment restrictions
slug
property
The deployment environment slug
type
property
The deployment environment type
uuid
property
The deployment environment uuid
DeploymentEnvironmentVariable
Bases: BitbucketCloudBase
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 |
|
key
property
writable
The deployment environment variable key
secured
property
The deployment environment variable is secured
type
property
The deployment environment variable type
uuid
property
The deployment environment variable uuid
value
property
writable
The deployment environment 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-deployments-config-environments-environment-uuid-variables-variable-uuid-delete
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py
223 224 225 226 227 228 229 |
|
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-deployments-config-environments-environment-uuid-variables-variable-uuid-put
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py
211 212 213 214 215 216 217 218 219 220 221 |
|
DeploymentEnvironmentVariables
Bases: BitbucketCloudBase
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
|
create(key, value, secured)
Create a new deployment environment 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 DeploymentEnvironment object
API docs: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-deployments-config-environments-environment-uuid-variables-post
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py
147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
|
each(pagelen=10)
Returns the list of deployment environment variables in this repository.
:param pagelen: integer: Query string to return this number of items from api. See https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering for details.
:return: A list of DeploymentEnvironmentVariable objects
API docs: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-deployments-config-environments-environment-uuid-variables-get
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
|
DeploymentEnvironments
Bases: BitbucketCloudBase
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py
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 |
|
each()
Returns the list of environments in this repository.
:return: A list of the DeploymentEnvironment objects
API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/environments/#get
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
get(uuid)
Returns the environment with the uuid in this repository.
:param uuid: string: The requested environment uuid
:return: The requested DeploymentEnvironment objects
API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/environments/%7Benvironment_uuid%7D#get
Source code in server/vendor/atlassian/bitbucket/cloud/repositories/deploymentEnvironments.py
39 40 41 42 43 44 45 46 47 48 49 |
|