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 |
Returns detailed information about a proposal.
Applies only to Hyperledger Fabric.
Synopsis
- data GetProposal = GetProposal' {
- networkId :: Text
- proposalId :: Text
- newGetProposal :: Text -> Text -> GetProposal
- getProposal_networkId :: Lens' GetProposal Text
- getProposal_proposalId :: Lens' GetProposal Text
- data GetProposalResponse = GetProposalResponse' {
- proposal :: Maybe Proposal
- httpStatus :: Int
- newGetProposalResponse :: Int -> GetProposalResponse
- getProposalResponse_proposal :: Lens' GetProposalResponse (Maybe Proposal)
- getProposalResponse_httpStatus :: Lens' GetProposalResponse Int
Creating a Request
data GetProposal Source #
See: newGetProposal
smart constructor.
GetProposal' | |
|
Instances
Create a value of GetProposal
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:networkId:GetProposal'
, getProposal_networkId
- The unique identifier of the network for which the proposal is made.
$sel:proposalId:GetProposal'
, getProposal_proposalId
- The unique identifier of the proposal.
Request Lenses
getProposal_networkId :: Lens' GetProposal Text Source #
The unique identifier of the network for which the proposal is made.
getProposal_proposalId :: Lens' GetProposal Text Source #
The unique identifier of the proposal.
Destructuring the Response
data GetProposalResponse Source #
See: newGetProposalResponse
smart constructor.
GetProposalResponse' | |
|
Instances
newGetProposalResponse Source #
Create a value of GetProposalResponse
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:proposal:GetProposalResponse'
, getProposalResponse_proposal
- Information about a proposal.
$sel:httpStatus:GetProposalResponse'
, getProposalResponse_httpStatus
- The response's http status code.
Response Lenses
getProposalResponse_proposal :: Lens' GetProposalResponse (Maybe Proposal) Source #
Information about a proposal.
getProposalResponse_httpStatus :: Lens' GetProposalResponse Int Source #
The response's http status code.