Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Use to get the active deployments from a device.
Synopsis
- data GetDeployments = GetDeployments' {}
- newGetDeployments :: Text -> Text -> GetDeployments
- getDeployments_deviceName :: Lens' GetDeployments Text
- getDeployments_deviceFleetName :: Lens' GetDeployments Text
- data GetDeploymentsResponse = GetDeploymentsResponse' {
- deployments :: Maybe [EdgeDeployment]
- httpStatus :: Int
- newGetDeploymentsResponse :: Int -> GetDeploymentsResponse
- getDeploymentsResponse_deployments :: Lens' GetDeploymentsResponse (Maybe [EdgeDeployment])
- getDeploymentsResponse_httpStatus :: Lens' GetDeploymentsResponse Int
Creating a Request
data GetDeployments Source #
See: newGetDeployments
smart constructor.
GetDeployments' | |
|
Instances
Create a value of GetDeployments
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:deviceName:GetDeployments'
, getDeployments_deviceName
- The unique name of the device you want to get the configuration of
active deployments from.
$sel:deviceFleetName:GetDeployments'
, getDeployments_deviceFleetName
- The name of the fleet that the device belongs to.
Request Lenses
getDeployments_deviceName :: Lens' GetDeployments Text Source #
The unique name of the device you want to get the configuration of active deployments from.
getDeployments_deviceFleetName :: Lens' GetDeployments Text Source #
The name of the fleet that the device belongs to.
Destructuring the Response
data GetDeploymentsResponse Source #
See: newGetDeploymentsResponse
smart constructor.
GetDeploymentsResponse' | |
|
Instances
newGetDeploymentsResponse Source #
Create a value of GetDeploymentsResponse
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:deployments:GetDeploymentsResponse'
, getDeploymentsResponse_deployments
- Returns a list of the configurations of the active deployments on the
device.
$sel:httpStatus:GetDeploymentsResponse'
, getDeploymentsResponse_httpStatus
- The response's http status code.
Response Lenses
getDeploymentsResponse_deployments :: Lens' GetDeploymentsResponse (Maybe [EdgeDeployment]) Source #
Returns a list of the configurations of the active deployments on the device.
getDeploymentsResponse_httpStatus :: Lens' GetDeploymentsResponse Int Source #
The response's http status code.