list_source_repository_branches
¶
list_source_repository_branches(
space_name: NameString,
project_name: NameString,
source_repository_name: SourceRepositoryNameString,
*,
config_overrides: Optional[CodeCatalystClientConfig] = None,
next_token: Optional[str] = None,
max_results: Optional[int] = None,
) -> ListSourceRepositoryBranchesResponse
Retrieves a list of branches in a specified source repository.
Parameters:
-
space_name(NameString) –The name of the space.
-
project_name(NameString) –The name of the project in the space.
-
source_repository_name(SourceRepositoryNameString) –The name of the source repository.
-
next_token(Optional[str], default:None) –A token returned from a call to this API to indicate the next batch of results to return, if any.
-
max_results(Optional[int], default:None) –The maximum number of results to show in a single call to this API. If the number of results is larger than the number you specified, the response will include a
NextTokenelement, which you can use to obtain additional results.
Raises:
-
AccessDeniedException–The request was denied because you don't have sufficient access to perform this action. Verify that you are a member of a role that allows this action.
-
ConflictException–The request was denied because the requested operation would cause a conflict with the current state of a service resource associated with the request. Another user might have updated the resource. Reload, make sure you have the latest data, and then try again.
-
ResourceNotFoundException–The request was denied because the specified resource was not found. Verify that the spelling is correct and that you have access to the resource.
-
ServiceQuotaExceededException–The request was denied because one or more resources has reached its limits for the tier the space belongs to. Either reduce the number of resources, or change the tier if applicable.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request was denied because an input failed to satisfy the constraints specified by the service. Check the spelling and input requirements, and then try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codecatalyst/_services/code_catalyst.py
2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 | |