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 |
Deletes a user's company relation. Unaffiliaites the user from a company.
See: Google Partners API Reference for partners.users.deleteCompanyRelation
.
Synopsis
- 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))))))))))))))))
- usersDeleteCompanyRelation :: Text -> UsersDeleteCompanyRelation
- data UsersDeleteCompanyRelation
- udcrXgafv :: Lens' UsersDeleteCompanyRelation (Maybe Xgafv)
- udcrUploadProtocol :: Lens' UsersDeleteCompanyRelation (Maybe Text)
- udcrAccessToken :: Lens' UsersDeleteCompanyRelation (Maybe Text)
- udcrUploadType :: Lens' UsersDeleteCompanyRelation (Maybe Text)
- udcrUserId :: Lens' UsersDeleteCompanyRelation Text
- udcrRequestMetadataPartnersSessionId :: Lens' UsersDeleteCompanyRelation (Maybe Text)
- udcrRequestMetadataLocale :: Lens' UsersDeleteCompanyRelation (Maybe Text)
- udcrRequestMetadataExperimentIds :: Lens' UsersDeleteCompanyRelation [Text]
- udcrRequestMetadataUserOverridesIPAddress :: Lens' UsersDeleteCompanyRelation (Maybe Text)
- udcrRequestMetadataTrafficSourceTrafficSubId :: Lens' UsersDeleteCompanyRelation (Maybe Text)
- udcrRequestMetadataUserOverridesUserId :: Lens' UsersDeleteCompanyRelation (Maybe Text)
- udcrRequestMetadataTrafficSourceTrafficSourceId :: Lens' UsersDeleteCompanyRelation (Maybe Text)
- udcrCallback :: Lens' UsersDeleteCompanyRelation (Maybe Text)
REST Resource
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)))))))))))))))) Source #
A resource alias for partners.users.deleteCompanyRelation
method which the
UsersDeleteCompanyRelation
request conforms to.
Creating a Request
usersDeleteCompanyRelation Source #
Creates a value of UsersDeleteCompanyRelation
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
udcrXgafv
udcrUploadProtocol
udcrAccessToken
udcrUploadType
udcrUserId
udcrRequestMetadataPartnersSessionId
udcrRequestMetadataLocale
udcrRequestMetadataExperimentIds
udcrRequestMetadataUserOverridesIPAddress
udcrRequestMetadataTrafficSourceTrafficSubId
udcrRequestMetadataUserOverridesUserId
udcrRequestMetadataTrafficSourceTrafficSourceId
udcrCallback
data UsersDeleteCompanyRelation Source #
Deletes a user's company relation. Unaffiliaites the user from a company.
See: usersDeleteCompanyRelation
smart constructor.
Instances
Request Lenses
udcrUploadProtocol :: Lens' UsersDeleteCompanyRelation (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
udcrAccessToken :: Lens' UsersDeleteCompanyRelation (Maybe Text) Source #
OAuth access token.
udcrUploadType :: Lens' UsersDeleteCompanyRelation (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
udcrUserId :: Lens' UsersDeleteCompanyRelation Text Source #
The ID of the user. Can be set to me
to mean the currently
authenticated user.
udcrRequestMetadataPartnersSessionId :: Lens' UsersDeleteCompanyRelation (Maybe Text) Source #
Google Partners session ID.
udcrRequestMetadataLocale :: Lens' UsersDeleteCompanyRelation (Maybe Text) Source #
Locale to use for the current request.
udcrRequestMetadataExperimentIds :: Lens' UsersDeleteCompanyRelation [Text] Source #
Experiment IDs the current request belongs to.
udcrRequestMetadataUserOverridesIPAddress :: Lens' UsersDeleteCompanyRelation (Maybe Text) Source #
IP address to use instead of the user's geo-located IP address.
udcrRequestMetadataTrafficSourceTrafficSubId :: Lens' UsersDeleteCompanyRelation (Maybe Text) Source #
Second level identifier to indicate where the traffic comes from. An identifier has multiple letters created by a team which redirected the traffic to us.
udcrRequestMetadataUserOverridesUserId :: Lens' UsersDeleteCompanyRelation (Maybe Text) Source #
Logged-in user ID to impersonate instead of the user's ID.
udcrRequestMetadataTrafficSourceTrafficSourceId :: Lens' UsersDeleteCompanyRelation (Maybe Text) Source #
Identifier to indicate where the traffic comes from. An identifier has multiple letters created by a team which redirected the traffic to us.
udcrCallback :: Lens' UsersDeleteCompanyRelation (Maybe Text) Source #
JSONP