Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Sets the service account on the instance.
See: Compute Engine API Reference for compute.instances.setServiceAccount
.
- type InstancesSetServiceAccountResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("instances" :> (Capture "instance" Text :> ("setServiceAccount" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] InstancesSetServiceAccountRequest :> Post '[JSON] Operation))))))))))
- instancesSetServiceAccount :: Text -> Text -> InstancesSetServiceAccountRequest -> Text -> InstancesSetServiceAccount
- data InstancesSetServiceAccount
- issaProject :: Lens' InstancesSetServiceAccount Text
- issaZone :: Lens' InstancesSetServiceAccount Text
- issaPayload :: Lens' InstancesSetServiceAccount InstancesSetServiceAccountRequest
- issaInstance :: Lens' InstancesSetServiceAccount Text
REST Resource
type InstancesSetServiceAccountResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("instances" :> (Capture "instance" Text :> ("setServiceAccount" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] InstancesSetServiceAccountRequest :> Post '[JSON] Operation)))))))))) Source #
A resource alias for compute.instances.setServiceAccount
method which the
InstancesSetServiceAccount
request conforms to.
Creating a Request
instancesSetServiceAccount Source #
Creates a value of InstancesSetServiceAccount
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data InstancesSetServiceAccount Source #
Sets the service account on the instance.
See: instancesSetServiceAccount
smart constructor.
Request Lenses
issaProject :: Lens' InstancesSetServiceAccount Text Source #
Project ID for this request.
issaPayload :: Lens' InstancesSetServiceAccount InstancesSetServiceAccountRequest Source #
Multipart request metadata.
issaInstance :: Lens' InstancesSetServiceAccount Text Source #
Name of the instance resource to start.