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 |
Creates a node.
See: Cloud TPU API Reference for tpu.projects.locations.nodes.create
.
Synopsis
- type ProjectsLocationsNodesCreateResource = "v1" :> (Capture "parent" Text :> ("nodes" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "nodeId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Node :> Post '[JSON] Operation))))))))))
- projectsLocationsNodesCreate :: Text -> Node -> ProjectsLocationsNodesCreate
- data ProjectsLocationsNodesCreate
- plncParent :: Lens' ProjectsLocationsNodesCreate Text
- plncXgafv :: Lens' ProjectsLocationsNodesCreate (Maybe Xgafv)
- plncUploadProtocol :: Lens' ProjectsLocationsNodesCreate (Maybe Text)
- plncAccessToken :: Lens' ProjectsLocationsNodesCreate (Maybe Text)
- plncUploadType :: Lens' ProjectsLocationsNodesCreate (Maybe Text)
- plncPayload :: Lens' ProjectsLocationsNodesCreate Node
- plncNodeId :: Lens' ProjectsLocationsNodesCreate (Maybe Text)
- plncCallback :: Lens' ProjectsLocationsNodesCreate (Maybe Text)
REST Resource
type ProjectsLocationsNodesCreateResource = "v1" :> (Capture "parent" Text :> ("nodes" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "nodeId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Node :> Post '[JSON] Operation)))))))))) Source #
A resource alias for tpu.projects.locations.nodes.create
method which the
ProjectsLocationsNodesCreate
request conforms to.
Creating a Request
projectsLocationsNodesCreate Source #
Creates a value of ProjectsLocationsNodesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsNodesCreate Source #
Creates a node.
See: projectsLocationsNodesCreate
smart constructor.
Instances
Request Lenses
plncParent :: Lens' ProjectsLocationsNodesCreate Text Source #
The parent resource name.
plncUploadProtocol :: Lens' ProjectsLocationsNodesCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
plncAccessToken :: Lens' ProjectsLocationsNodesCreate (Maybe Text) Source #
OAuth access token.
plncUploadType :: Lens' ProjectsLocationsNodesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
plncPayload :: Lens' ProjectsLocationsNodesCreate Node Source #
Multipart request metadata.
plncNodeId :: Lens' ProjectsLocationsNodesCreate (Maybe Text) Source #
The unqualified resource name.
plncCallback :: Lens' ProjectsLocationsNodesCreate (Maybe Text) Source #
JSONP