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 |
Updates the metadata and configuration of a specific Redis instance. 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.patch
.
Synopsis
- type ProjectsLocationsInstancesPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Instance :> Patch '[JSON] Operation)))))))))
- projectsLocationsInstancesPatch :: Instance -> Text -> ProjectsLocationsInstancesPatch
- data ProjectsLocationsInstancesPatch
- plipXgafv :: Lens' ProjectsLocationsInstancesPatch (Maybe Xgafv)
- plipUploadProtocol :: Lens' ProjectsLocationsInstancesPatch (Maybe Text)
- plipUpdateMask :: Lens' ProjectsLocationsInstancesPatch (Maybe GFieldMask)
- plipAccessToken :: Lens' ProjectsLocationsInstancesPatch (Maybe Text)
- plipUploadType :: Lens' ProjectsLocationsInstancesPatch (Maybe Text)
- plipPayload :: Lens' ProjectsLocationsInstancesPatch Instance
- plipName :: Lens' ProjectsLocationsInstancesPatch Text
- plipCallback :: Lens' ProjectsLocationsInstancesPatch (Maybe Text)
REST Resource
type ProjectsLocationsInstancesPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Instance :> Patch '[JSON] Operation))))))))) Source #
A resource alias for redis.projects.locations.instances.patch
method which the
ProjectsLocationsInstancesPatch
request conforms to.
Creating a Request
projectsLocationsInstancesPatch Source #
Creates a value of ProjectsLocationsInstancesPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsInstancesPatch Source #
Updates the metadata and configuration of a specific Redis instance. 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: projectsLocationsInstancesPatch
smart constructor.
Instances
Request Lenses
plipUploadProtocol :: Lens' ProjectsLocationsInstancesPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
plipUpdateMask :: Lens' ProjectsLocationsInstancesPatch (Maybe GFieldMask) Source #
Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Instance: * `displayName` * `labels` * `memorySizeGb` * `redisConfig`
plipAccessToken :: Lens' ProjectsLocationsInstancesPatch (Maybe Text) Source #
OAuth access token.
plipUploadType :: Lens' ProjectsLocationsInstancesPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
plipPayload :: Lens' ProjectsLocationsInstancesPatch Instance Source #
Multipart request metadata.
plipName :: Lens' ProjectsLocationsInstancesPatch Text Source #
Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` Note: Redis instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to [location_id] and [alternative_location_id] fields for more details.
plipCallback :: Lens' ProjectsLocationsInstancesPatch (Maybe Text) Source #
JSONP