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 an instance's scheduling options.
See: Compute Engine API Reference for compute.instances.setScheduling
.
Synopsis
- type InstancesSetSchedulingResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("instances" :> (Capture "instance" Text :> ("setScheduling" :> (QueryParam "requestId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Scheduling :> Post '[JSON] Operation)))))))))))
- instancesSetScheduling :: Text -> Text -> Scheduling -> Text -> InstancesSetScheduling
- data InstancesSetScheduling
- issRequestId :: Lens' InstancesSetScheduling (Maybe Text)
- issProject :: Lens' InstancesSetScheduling Text
- issZone :: Lens' InstancesSetScheduling Text
- issPayload :: Lens' InstancesSetScheduling Scheduling
- issInstance :: Lens' InstancesSetScheduling Text
REST Resource
type InstancesSetSchedulingResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("instances" :> (Capture "instance" Text :> ("setScheduling" :> (QueryParam "requestId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Scheduling :> Post '[JSON] Operation))))))))))) Source #
A resource alias for compute.instances.setScheduling
method which the
InstancesSetScheduling
request conforms to.
Creating a Request
instancesSetScheduling Source #
Creates a value of InstancesSetScheduling
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data InstancesSetScheduling Source #
Sets an instance's scheduling options.
See: instancesSetScheduling
smart constructor.
Instances
Request Lenses
issRequestId :: Lens' InstancesSetScheduling (Maybe Text) Source #
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
issProject :: Lens' InstancesSetScheduling Text Source #
Project ID for this request.
issPayload :: Lens' InstancesSetScheduling Scheduling Source #
Multipart request metadata.
issInstance :: Lens' InstancesSetScheduling Text Source #
Instance name for this request.