Copyright | (c) 2015 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 an existing user in a Cloud SQL instance.
See: Cloud SQL Administration API Reference for sql.users.update
.
- type UsersUpdateResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("users" :> (QueryParam "host" Text :> (QueryParam "name" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` User :> Put `[JSON]` Operation))))))))))
- usersUpdate :: Text -> User -> Text -> Text -> Text -> UsersUpdate
- data UsersUpdate
- uuProject :: Lens' UsersUpdate Text
- uuPayload :: Lens' UsersUpdate User
- uuName :: Lens' UsersUpdate Text
- uuHost :: Lens' UsersUpdate Text
- uuInstance :: Lens' UsersUpdate Text
REST Resource
type UsersUpdateResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("users" :> (QueryParam "host" Text :> (QueryParam "name" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` User :> Put `[JSON]` Operation)))))))))) Source
A resource alias for sql.users.update
method which the
UsersUpdate
request conforms to.
Creating a Request
Creates a value of UsersUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersUpdate Source
Updates an existing user in a Cloud SQL instance.
See: usersUpdate
smart constructor.
Request Lenses
uuProject :: Lens' UsersUpdate Text Source
Project ID of the project that contains the instance.
uuPayload :: Lens' UsersUpdate User Source
Multipart request metadata.
uuName :: Lens' UsersUpdate Text Source
Name of the user in the instance.
uuHost :: Lens' UsersUpdate Text Source
Host of the user in the instance.
uuInstance :: Lens' UsersUpdate Text Source
Database instance ID. This does not include the project ID.