{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.Partners.Users.DeleteCompanyRelation
(
UsersDeleteCompanyRelationResource
, usersDeleteCompanyRelation
, UsersDeleteCompanyRelation
, udcrXgafv
, udcrUploadProtocol
, udcrAccessToken
, udcrUploadType
, udcrUserId
, udcrRequestMetadataPartnersSessionId
, udcrRequestMetadataLocale
, udcrRequestMetadataExperimentIds
, udcrRequestMetadataUserOverridesIPAddress
, udcrRequestMetadataTrafficSourceTrafficSubId
, udcrRequestMetadataUserOverridesUserId
, udcrRequestMetadataTrafficSourceTrafficSourceId
, udcrCallback
) where
import Network.Google.Partners.Types
import Network.Google.Prelude
type UsersDeleteCompanyRelationResource =
"v2" :>
"users" :>
Capture "userId" Text :>
"companyRelation" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "requestMetadata.partnersSessionId" Text
:>
QueryParam "requestMetadata.locale" Text :>
QueryParams "requestMetadata.experimentIds" Text :>
QueryParam "requestMetadata.userOverrides.ipAddress"
Text
:>
QueryParam
"requestMetadata.trafficSource.trafficSubId"
Text
:>
QueryParam "requestMetadata.userOverrides.userId"
Text
:>
QueryParam
"requestMetadata.trafficSource.trafficSourceId"
Text
:>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Delete '[JSON] Empty
data UsersDeleteCompanyRelation = UsersDeleteCompanyRelation'
{ _udcrXgafv :: !(Maybe Xgafv)
, _udcrUploadProtocol :: !(Maybe Text)
, _udcrAccessToken :: !(Maybe Text)
, _udcrUploadType :: !(Maybe Text)
, _udcrUserId :: !Text
, _udcrRequestMetadataPartnersSessionId :: !(Maybe Text)
, _udcrRequestMetadataLocale :: !(Maybe Text)
, _udcrRequestMetadataExperimentIds :: !(Maybe [Text])
, _udcrRequestMetadataUserOverridesIPAddress :: !(Maybe Text)
, _udcrRequestMetadataTrafficSourceTrafficSubId :: !(Maybe Text)
, _udcrRequestMetadataUserOverridesUserId :: !(Maybe Text)
, _udcrRequestMetadataTrafficSourceTrafficSourceId :: !(Maybe Text)
, _udcrCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
usersDeleteCompanyRelation
:: Text
-> UsersDeleteCompanyRelation
usersDeleteCompanyRelation pUdcrUserId_ =
UsersDeleteCompanyRelation'
{ _udcrXgafv = Nothing
, _udcrUploadProtocol = Nothing
, _udcrAccessToken = Nothing
, _udcrUploadType = Nothing
, _udcrUserId = pUdcrUserId_
, _udcrRequestMetadataPartnersSessionId = Nothing
, _udcrRequestMetadataLocale = Nothing
, _udcrRequestMetadataExperimentIds = Nothing
, _udcrRequestMetadataUserOverridesIPAddress = Nothing
, _udcrRequestMetadataTrafficSourceTrafficSubId = Nothing
, _udcrRequestMetadataUserOverridesUserId = Nothing
, _udcrRequestMetadataTrafficSourceTrafficSourceId = Nothing
, _udcrCallback = Nothing
}
udcrXgafv :: Lens' UsersDeleteCompanyRelation (Maybe Xgafv)
udcrXgafv
= lens _udcrXgafv (\ s a -> s{_udcrXgafv = a})
udcrUploadProtocol :: Lens' UsersDeleteCompanyRelation (Maybe Text)
udcrUploadProtocol
= lens _udcrUploadProtocol
(\ s a -> s{_udcrUploadProtocol = a})
udcrAccessToken :: Lens' UsersDeleteCompanyRelation (Maybe Text)
udcrAccessToken
= lens _udcrAccessToken
(\ s a -> s{_udcrAccessToken = a})
udcrUploadType :: Lens' UsersDeleteCompanyRelation (Maybe Text)
udcrUploadType
= lens _udcrUploadType
(\ s a -> s{_udcrUploadType = a})
udcrUserId :: Lens' UsersDeleteCompanyRelation Text
udcrUserId
= lens _udcrUserId (\ s a -> s{_udcrUserId = a})
udcrRequestMetadataPartnersSessionId :: Lens' UsersDeleteCompanyRelation (Maybe Text)
udcrRequestMetadataPartnersSessionId
= lens _udcrRequestMetadataPartnersSessionId
(\ s a ->
s{_udcrRequestMetadataPartnersSessionId = a})
udcrRequestMetadataLocale :: Lens' UsersDeleteCompanyRelation (Maybe Text)
udcrRequestMetadataLocale
= lens _udcrRequestMetadataLocale
(\ s a -> s{_udcrRequestMetadataLocale = a})
udcrRequestMetadataExperimentIds :: Lens' UsersDeleteCompanyRelation [Text]
udcrRequestMetadataExperimentIds
= lens _udcrRequestMetadataExperimentIds
(\ s a -> s{_udcrRequestMetadataExperimentIds = a})
. _Default
. _Coerce
udcrRequestMetadataUserOverridesIPAddress :: Lens' UsersDeleteCompanyRelation (Maybe Text)
udcrRequestMetadataUserOverridesIPAddress
= lens _udcrRequestMetadataUserOverridesIPAddress
(\ s a ->
s{_udcrRequestMetadataUserOverridesIPAddress = a})
udcrRequestMetadataTrafficSourceTrafficSubId :: Lens' UsersDeleteCompanyRelation (Maybe Text)
udcrRequestMetadataTrafficSourceTrafficSubId
= lens _udcrRequestMetadataTrafficSourceTrafficSubId
(\ s a ->
s{_udcrRequestMetadataTrafficSourceTrafficSubId = a})
udcrRequestMetadataUserOverridesUserId :: Lens' UsersDeleteCompanyRelation (Maybe Text)
udcrRequestMetadataUserOverridesUserId
= lens _udcrRequestMetadataUserOverridesUserId
(\ s a ->
s{_udcrRequestMetadataUserOverridesUserId = a})
udcrRequestMetadataTrafficSourceTrafficSourceId :: Lens' UsersDeleteCompanyRelation (Maybe Text)
udcrRequestMetadataTrafficSourceTrafficSourceId
= lens
_udcrRequestMetadataTrafficSourceTrafficSourceId
(\ s a ->
s{_udcrRequestMetadataTrafficSourceTrafficSourceId =
a})
udcrCallback :: Lens' UsersDeleteCompanyRelation (Maybe Text)
udcrCallback
= lens _udcrCallback (\ s a -> s{_udcrCallback = a})
instance GoogleRequest UsersDeleteCompanyRelation
where
type Rs UsersDeleteCompanyRelation = Empty
type Scopes UsersDeleteCompanyRelation = '[]
requestClient UsersDeleteCompanyRelation'{..}
= go _udcrUserId _udcrXgafv _udcrUploadProtocol
_udcrAccessToken
_udcrUploadType
_udcrRequestMetadataPartnersSessionId
_udcrRequestMetadataLocale
(_udcrRequestMetadataExperimentIds ^. _Default)
_udcrRequestMetadataUserOverridesIPAddress
_udcrRequestMetadataTrafficSourceTrafficSubId
_udcrRequestMetadataUserOverridesUserId
_udcrRequestMetadataTrafficSourceTrafficSourceId
_udcrCallback
(Just AltJSON)
partnersService
where go
= buildClient
(Proxy :: Proxy UsersDeleteCompanyRelationResource)
mempty