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 |
Update the name of an existing contact group owned by the authenticated user.
See: People API Reference for people.contactGroups.update
.
Synopsis
- type ContactGroupsUpdateResource = "v1" :> (Capture "resourceName" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UpdateContactGroupRequest :> Put '[JSON] ContactGroup))))))))
- contactGroupsUpdate :: Text -> UpdateContactGroupRequest -> ContactGroupsUpdate
- data ContactGroupsUpdate
- cguXgafv :: Lens' ContactGroupsUpdate (Maybe Xgafv)
- cguUploadProtocol :: Lens' ContactGroupsUpdate (Maybe Text)
- cguResourceName :: Lens' ContactGroupsUpdate Text
- cguAccessToken :: Lens' ContactGroupsUpdate (Maybe Text)
- cguUploadType :: Lens' ContactGroupsUpdate (Maybe Text)
- cguPayload :: Lens' ContactGroupsUpdate UpdateContactGroupRequest
- cguCallback :: Lens' ContactGroupsUpdate (Maybe Text)
REST Resource
type ContactGroupsUpdateResource = "v1" :> (Capture "resourceName" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UpdateContactGroupRequest :> Put '[JSON] ContactGroup)))))))) Source #
A resource alias for people.contactGroups.update
method which the
ContactGroupsUpdate
request conforms to.
Creating a Request
Creates a value of ContactGroupsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ContactGroupsUpdate Source #
Update the name of an existing contact group owned by the authenticated user.
See: contactGroupsUpdate
smart constructor.
Instances
Request Lenses
cguUploadProtocol :: Lens' ContactGroupsUpdate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
cguResourceName :: Lens' ContactGroupsUpdate Text Source #
The resource name for the contact group, assigned by the server. An ASCII string, in the form of `contactGroups/`contact_group_id.
cguAccessToken :: Lens' ContactGroupsUpdate (Maybe Text) Source #
OAuth access token.
cguUploadType :: Lens' ContactGroupsUpdate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
cguPayload :: Lens' ContactGroupsUpdate UpdateContactGroupRequest Source #
Multipart request metadata.
cguCallback :: Lens' ContactGroupsUpdate (Maybe Text) Source #
JSONP