Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Lists all the code reviews that the customer has created in the past 90 days.
Synopsis
- data ListCodeReviews = ListCodeReviews' {
- states :: Maybe (NonEmpty JobState)
- providerTypes :: Maybe (NonEmpty ProviderType)
- repositoryNames :: Maybe (NonEmpty Text)
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- type' :: Type
- newListCodeReviews :: Type -> ListCodeReviews
- listCodeReviews_states :: Lens' ListCodeReviews (Maybe (NonEmpty JobState))
- listCodeReviews_providerTypes :: Lens' ListCodeReviews (Maybe (NonEmpty ProviderType))
- listCodeReviews_repositoryNames :: Lens' ListCodeReviews (Maybe (NonEmpty Text))
- listCodeReviews_nextToken :: Lens' ListCodeReviews (Maybe Text)
- listCodeReviews_maxResults :: Lens' ListCodeReviews (Maybe Natural)
- listCodeReviews_type :: Lens' ListCodeReviews Type
- data ListCodeReviewsResponse = ListCodeReviewsResponse' {}
- newListCodeReviewsResponse :: Int -> ListCodeReviewsResponse
- listCodeReviewsResponse_codeReviewSummaries :: Lens' ListCodeReviewsResponse (Maybe [CodeReviewSummary])
- listCodeReviewsResponse_nextToken :: Lens' ListCodeReviewsResponse (Maybe Text)
- listCodeReviewsResponse_httpStatus :: Lens' ListCodeReviewsResponse Int
Creating a Request
data ListCodeReviews Source #
See: newListCodeReviews
smart constructor.
ListCodeReviews' | |
|
Instances
Create a value of ListCodeReviews
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:states:ListCodeReviews'
, listCodeReviews_states
- 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.
$sel:providerTypes:ListCodeReviews'
, listCodeReviews_providerTypes
- List of provider types for filtering that needs to be applied before
displaying the result. For example, providerTypes=[GitHub]
lists code
reviews from GitHub.
$sel:repositoryNames:ListCodeReviews'
, listCodeReviews_repositoryNames
- List of repository names for filtering that needs to be applied before
displaying the result.
$sel:nextToken:ListCodeReviews'
, listCodeReviews_nextToken
- If nextToken is returned, there are more results available. The value of
nextToken is 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.
$sel:maxResults:ListCodeReviews'
, listCodeReviews_maxResults
- The maximum number of results that are returned per call. The default is
100.
$sel:type':ListCodeReviews'
, listCodeReviews_type
- The type of code reviews to list in the response.
Request Lenses
listCodeReviews_states :: Lens' ListCodeReviews (Maybe (NonEmpty JobState)) Source #
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.
listCodeReviews_providerTypes :: Lens' ListCodeReviews (Maybe (NonEmpty ProviderType)) Source #
List of provider types for filtering that needs to be applied before
displaying the result. For example, providerTypes=[GitHub]
lists code
reviews from GitHub.
listCodeReviews_repositoryNames :: Lens' ListCodeReviews (Maybe (NonEmpty Text)) Source #
List of repository names for filtering that needs to be applied before displaying the result.
listCodeReviews_nextToken :: Lens' ListCodeReviews (Maybe Text) Source #
If nextToken is returned, there are more results available. The value of nextToken is 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.
listCodeReviews_maxResults :: Lens' ListCodeReviews (Maybe Natural) Source #
The maximum number of results that are returned per call. The default is 100.
listCodeReviews_type :: Lens' ListCodeReviews Type Source #
The type of code reviews to list in the response.
Destructuring the Response
data ListCodeReviewsResponse Source #
See: newListCodeReviewsResponse
smart constructor.
ListCodeReviewsResponse' | |
|
Instances
newListCodeReviewsResponse Source #
Create a value of ListCodeReviewsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:codeReviewSummaries:ListCodeReviewsResponse'
, listCodeReviewsResponse_codeReviewSummaries
- A list of code reviews that meet the criteria of the request.
$sel:nextToken:ListCodeReviews'
, listCodeReviewsResponse_nextToken
- Pagination token.
$sel:httpStatus:ListCodeReviewsResponse'
, listCodeReviewsResponse_httpStatus
- The response's http status code.
Response Lenses
listCodeReviewsResponse_codeReviewSummaries :: Lens' ListCodeReviewsResponse (Maybe [CodeReviewSummary]) Source #
A list of code reviews that meet the criteria of the request.
listCodeReviewsResponse_nextToken :: Lens' ListCodeReviewsResponse (Maybe Text) Source #
Pagination token.
listCodeReviewsResponse_httpStatus :: Lens' ListCodeReviewsResponse Int Source #
The response's http status code.