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 |
Updates the specified lead.
See: Google Partners API Reference for partners.updateLeads
.
Synopsis
- type UpdateLeadsResource = "v2" :> ("leads" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (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] Lead :> Patch '[JSON] Lead))))))))))))))))
- updateLeads :: Lead -> UpdateLeads
- data UpdateLeads
- ulXgafv :: Lens' UpdateLeads (Maybe Xgafv)
- ulUploadProtocol :: Lens' UpdateLeads (Maybe Text)
- ulUpdateMask :: Lens' UpdateLeads (Maybe GFieldMask)
- ulAccessToken :: Lens' UpdateLeads (Maybe Text)
- ulUploadType :: Lens' UpdateLeads (Maybe Text)
- ulPayload :: Lens' UpdateLeads Lead
- ulRequestMetadataPartnersSessionId :: Lens' UpdateLeads (Maybe Text)
- ulRequestMetadataLocale :: Lens' UpdateLeads (Maybe Text)
- ulRequestMetadataExperimentIds :: Lens' UpdateLeads [Text]
- ulRequestMetadataUserOverridesIPAddress :: Lens' UpdateLeads (Maybe Text)
- ulRequestMetadataTrafficSourceTrafficSubId :: Lens' UpdateLeads (Maybe Text)
- ulRequestMetadataUserOverridesUserId :: Lens' UpdateLeads (Maybe Text)
- ulRequestMetadataTrafficSourceTrafficSourceId :: Lens' UpdateLeads (Maybe Text)
- ulCallback :: Lens' UpdateLeads (Maybe Text)
REST Resource
type UpdateLeadsResource = "v2" :> ("leads" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (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] Lead :> Patch '[JSON] Lead)))))))))))))))) Source #
A resource alias for partners.updateLeads
method which the
UpdateLeads
request conforms to.
Creating a Request
:: Lead | |
-> UpdateLeads |
Creates a value of UpdateLeads
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ulXgafv
ulUploadProtocol
ulUpdateMask
ulAccessToken
ulUploadType
ulPayload
ulRequestMetadataPartnersSessionId
ulRequestMetadataLocale
ulRequestMetadataExperimentIds
ulRequestMetadataUserOverridesIPAddress
ulRequestMetadataTrafficSourceTrafficSubId
ulRequestMetadataUserOverridesUserId
ulRequestMetadataTrafficSourceTrafficSourceId
ulCallback
data UpdateLeads Source #
Updates the specified lead.
See: updateLeads
smart constructor.
Instances
Request Lenses
ulUploadProtocol :: Lens' UpdateLeads (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ulUpdateMask :: Lens' UpdateLeads (Maybe GFieldMask) Source #
Standard field mask for the set of fields to be updated. Required with at least 1 value in FieldMask's paths. Only `state` and `adwords_customer_id` are currently supported.
ulAccessToken :: Lens' UpdateLeads (Maybe Text) Source #
OAuth access token.
ulUploadType :: Lens' UpdateLeads (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ulRequestMetadataPartnersSessionId :: Lens' UpdateLeads (Maybe Text) Source #
Google Partners session ID.
ulRequestMetadataLocale :: Lens' UpdateLeads (Maybe Text) Source #
Locale to use for the current request.
ulRequestMetadataExperimentIds :: Lens' UpdateLeads [Text] Source #
Experiment IDs the current request belongs to.
ulRequestMetadataUserOverridesIPAddress :: Lens' UpdateLeads (Maybe Text) Source #
IP address to use instead of the user's geo-located IP address.
ulRequestMetadataTrafficSourceTrafficSubId :: Lens' UpdateLeads (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.
ulRequestMetadataUserOverridesUserId :: Lens' UpdateLeads (Maybe Text) Source #
Logged-in user ID to impersonate instead of the user's ID.
ulRequestMetadataTrafficSourceTrafficSourceId :: Lens' UpdateLeads (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.
ulCallback :: Lens' UpdateLeads (Maybe Text) Source #
JSONP