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 Redis instance based on the specified tier and memory size. By default, the instance is accessible from the project's default network. The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis instance will be fully functional. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.
See: Google Cloud Memorystore for Redis API Reference for redis.projects.locations.instances.create
.
Synopsis
- type ProjectsLocationsInstancesCreateResource = "v1" :> (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 = "v1" :> (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 redis.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 a Redis instance based on the specified tier and memory size. By default, the instance is accessible from the project's default network. The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis instance will be fully functional. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.
See: projectsLocationsInstancesCreate
smart constructor.
Instances
Request Lenses
plicParent :: Lens' ProjectsLocationsInstancesCreate Text Source #
Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region
plicInstanceId :: Lens' ProjectsLocationsInstancesCreate (Maybe Text) Source #
Required. The logical name of the Redis instance in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-40 characters. * Must end with a number or a letter. * Must be unique within the customer project / 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.