list_code_reviews
async
¶
list_code_reviews(
type: Type,
*,
config_overrides: Optional[AsyncCodeGuruReviewerClientConfig] = None,
provider_types: Optional[ProviderTypes] = None,
states: Optional[JobStates] = None,
repository_names: Optional[RepositoryNames] = None,
max_results: Optional[ListCodeReviewsMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListCodeReviewsResponse
Lists all the code reviews that the customer has created in the past 90 days.
Parameters:
-
provider_types(Optional[ProviderTypes], default:None) –List of provider types for filtering that needs to be applied before displaying the result. For example,
providerTypes=[GitHub]lists code reviews from GitHub. -
states(Optional[JobStates], default:None) –List of states for filtering that needs to be applied before displaying the result. For example,
states=[Pending]lists code reviews in the Pending state.The valid code review states are:
-
Completed: The code review is complete. -
Pending: The code review started and has not completed or failed. -
Failed: The code review failed. -
Deleting: The code review is being deleted.
-
-
repository_names(Optional[RepositoryNames], default:None) –List of repository names for filtering that needs to be applied before displaying the result.
-
type(Type) –The type of code reviews to list in the response.
-
max_results(Optional[ListCodeReviewsMaxResults], default:None) –The maximum number of results that are returned per call. The default is 100.
-
next_token(Optional[NextToken], default:None) –If
nextTokenis returned, there are more results available. The value ofnextTokenis a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–The server encountered an internal error and is unable to complete the request.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the specified constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codeguru_reviewer/_services/async_code_guru_reviewer.py
539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 | |