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 |
Creates a user's company relation. Affiliates the user to a company.
See: Google Partners API Reference for partners.users.createCompanyRelation
.
Synopsis
- type UsersCreateCompanyRelationResource = "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 :> (ReqBody '[JSON] CompanyRelation :> Put '[JSON] CompanyRelation)))))))))))))))))
- usersCreateCompanyRelation :: CompanyRelation -> Text -> UsersCreateCompanyRelation
- data UsersCreateCompanyRelation
- uccrXgafv :: Lens' UsersCreateCompanyRelation (Maybe Xgafv)
- uccrUploadProtocol :: Lens' UsersCreateCompanyRelation (Maybe Text)
- uccrAccessToken :: Lens' UsersCreateCompanyRelation (Maybe Text)
- uccrUploadType :: Lens' UsersCreateCompanyRelation (Maybe Text)
- uccrPayload :: Lens' UsersCreateCompanyRelation CompanyRelation
- uccrUserId :: Lens' UsersCreateCompanyRelation Text
- uccrRequestMetadataPartnersSessionId :: Lens' UsersCreateCompanyRelation (Maybe Text)
- uccrRequestMetadataLocale :: Lens' UsersCreateCompanyRelation (Maybe Text)
- uccrRequestMetadataExperimentIds :: Lens' UsersCreateCompanyRelation [Text]
- uccrRequestMetadataUserOverridesIPAddress :: Lens' UsersCreateCompanyRelation (Maybe Text)
- uccrRequestMetadataTrafficSourceTrafficSubId :: Lens' UsersCreateCompanyRelation (Maybe Text)
- uccrRequestMetadataUserOverridesUserId :: Lens' UsersCreateCompanyRelation (Maybe Text)
- uccrRequestMetadataTrafficSourceTrafficSourceId :: Lens' UsersCreateCompanyRelation (Maybe Text)
- uccrCallback :: Lens' UsersCreateCompanyRelation (Maybe Text)
REST Resource
type UsersCreateCompanyRelationResource = "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 :> (ReqBody '[JSON] CompanyRelation :> Put '[JSON] CompanyRelation))))))))))))))))) Source #
A resource alias for partners.users.createCompanyRelation
method which the
UsersCreateCompanyRelation
request conforms to.
Creating a Request
usersCreateCompanyRelation Source #
Creates a value of UsersCreateCompanyRelation
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uccrXgafv
uccrUploadProtocol
uccrAccessToken
uccrUploadType
uccrPayload
uccrUserId
uccrRequestMetadataPartnersSessionId
uccrRequestMetadataLocale
uccrRequestMetadataExperimentIds
uccrRequestMetadataUserOverridesIPAddress
uccrRequestMetadataTrafficSourceTrafficSubId
uccrRequestMetadataUserOverridesUserId
uccrRequestMetadataTrafficSourceTrafficSourceId
uccrCallback
data UsersCreateCompanyRelation Source #
Creates a user's company relation. Affiliates the user to a company.
See: usersCreateCompanyRelation
smart constructor.
Instances
Request Lenses
uccrUploadProtocol :: Lens' UsersCreateCompanyRelation (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
uccrAccessToken :: Lens' UsersCreateCompanyRelation (Maybe Text) Source #
OAuth access token.
uccrUploadType :: Lens' UsersCreateCompanyRelation (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
uccrPayload :: Lens' UsersCreateCompanyRelation CompanyRelation Source #
Multipart request metadata.
uccrUserId :: Lens' UsersCreateCompanyRelation Text Source #
The ID of the user. Can be set to me
to mean the currently
authenticated user.
uccrRequestMetadataPartnersSessionId :: Lens' UsersCreateCompanyRelation (Maybe Text) Source #
Google Partners session ID.
uccrRequestMetadataLocale :: Lens' UsersCreateCompanyRelation (Maybe Text) Source #
Locale to use for the current request.
uccrRequestMetadataExperimentIds :: Lens' UsersCreateCompanyRelation [Text] Source #
Experiment IDs the current request belongs to.
uccrRequestMetadataUserOverridesIPAddress :: Lens' UsersCreateCompanyRelation (Maybe Text) Source #
IP address to use instead of the user's geo-located IP address.
uccrRequestMetadataTrafficSourceTrafficSubId :: Lens' UsersCreateCompanyRelation (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.
uccrRequestMetadataUserOverridesUserId :: Lens' UsersCreateCompanyRelation (Maybe Text) Source #
Logged-in user ID to impersonate instead of the user's ID.
uccrRequestMetadataTrafficSourceTrafficSourceId :: Lens' UsersCreateCompanyRelation (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.
uccrCallback :: Lens' UsersCreateCompanyRelation (Maybe Text) Source #
JSONP