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 an instance.
See: Cloud Filestore API Reference for file.projects.locations.instances.create
.
Synopsis
- type ProjectsLocationsInstancesCreateResource = "v1beta1" :> (Capture "parent" Text :> ("instances" :> (QueryParam "instanceId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Instance :> Post '[JSON] Operation))))))))))
- projectsLocationsInstancesCreate :: Text -> Instance -> ProjectsLocationsInstancesCreate
- data ProjectsLocationsInstancesCreate
- plicParent :: Lens' ProjectsLocationsInstancesCreate Text
- plicInstanceId :: Lens' ProjectsLocationsInstancesCreate (Maybe Text)
- plicXgafv :: Lens' ProjectsLocationsInstancesCreate (Maybe Xgafv)
- plicUploadProtocol :: Lens' ProjectsLocationsInstancesCreate (Maybe Text)
- plicAccessToken :: Lens' ProjectsLocationsInstancesCreate (Maybe Text)
- plicUploadType :: Lens' ProjectsLocationsInstancesCreate (Maybe Text)
- plicPayload :: Lens' ProjectsLocationsInstancesCreate Instance
- plicCallback :: Lens' ProjectsLocationsInstancesCreate (Maybe Text)
REST Resource
type ProjectsLocationsInstancesCreateResource = "v1beta1" :> (Capture "parent" Text :> ("instances" :> (QueryParam "instanceId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Instance :> Post '[JSON] Operation)))))))))) Source #
A resource alias for file.projects.locations.instances.create
method which the
ProjectsLocationsInstancesCreate
request conforms to.
Creating a Request
projectsLocationsInstancesCreate Source #
Creates a value of ProjectsLocationsInstancesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsInstancesCreate Source #
Creates an instance.
See: projectsLocationsInstancesCreate
smart constructor.
Instances
Request Lenses
plicParent :: Lens' ProjectsLocationsInstancesCreate Text Source #
The instance's project and location, in the format projects/{project_id}/locations/{location}. In Cloud Filestore, locations map to GCP zones, for example **us-west1-b**.
plicInstanceId :: Lens' ProjectsLocationsInstancesCreate (Maybe Text) Source #
The name of the instance to create. The name must be unique for the specified project and location.
plicUploadProtocol :: Lens' ProjectsLocationsInstancesCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
plicAccessToken :: Lens' ProjectsLocationsInstancesCreate (Maybe Text) Source #
OAuth access token.
plicUploadType :: Lens' ProjectsLocationsInstancesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
plicPayload :: Lens' ProjectsLocationsInstancesCreate Instance Source #
Multipart request metadata.