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 |
Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).
Synopsis
- acceleratedMobilePageUrlService :: ServiceConfig
- type AcceleratedMobilePageUrlAPI = AmpURLsBatchGetResource
- module Network.Google.Resource.AcceleratedMobilePageURL.AmpURLs.BatchGet
- data AmpURLError
- ampURLError :: AmpURLError
- aueOriginalURL :: Lens' AmpURLError (Maybe Text)
- aueErrorCode :: Lens' AmpURLError (Maybe AmpURLErrorErrorCode)
- aueErrorMessage :: Lens' AmpURLError (Maybe Text)
- data AmpURLErrorErrorCode
- data BatchGetAmpURLsResponse
- batchGetAmpURLsResponse :: BatchGetAmpURLsResponse
- bgaurAmpURLs :: Lens' BatchGetAmpURLsResponse [AmpURL]
- bgaurURLErrors :: Lens' BatchGetAmpURLsResponse [AmpURLError]
- data BatchGetAmpURLsRequest
- batchGetAmpURLsRequest :: BatchGetAmpURLsRequest
- bgaurURLs :: Lens' BatchGetAmpURLsRequest [Text]
- bgaurLookupStrategy :: Lens' BatchGetAmpURLsRequest (Maybe BatchGetAmpURLsRequestLookupStrategy)
- data AmpURL
- ampURL :: AmpURL
- auOriginalURL :: Lens' AmpURL (Maybe Text)
- auAmpURL :: Lens' AmpURL (Maybe Text)
- auCdnAmpURL :: Lens' AmpURL (Maybe Text)
- data Xgafv
- data BatchGetAmpURLsRequestLookupStrategy
Service Configuration
acceleratedMobilePageUrlService :: ServiceConfig Source #
Default request referring to version v1
of the Accelerated Mobile Pages (AMP) URL API. This contains the host and root path used as a starting point for constructing service requests.
API Declaration
type AcceleratedMobilePageUrlAPI = AmpURLsBatchGetResource Source #
Represents the entirety of the methods and resources available for the Accelerated Mobile Pages (AMP) URL API service.
Resources
acceleratedmobilepageurl.ampUrls.batchGet
Types
AmpURLError
data AmpURLError Source #
AMP URL Error resource for a requested URL that couldn't be found.
See: ampURLError
smart constructor.
Instances
ampURLError :: AmpURLError Source #
Creates a value of AmpURLError
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aueOriginalURL :: Lens' AmpURLError (Maybe Text) Source #
The original non-AMP URL.
aueErrorCode :: Lens' AmpURLError (Maybe AmpURLErrorErrorCode) Source #
The error code of an API call.
aueErrorMessage :: Lens' AmpURLError (Maybe Text) Source #
An optional descriptive error message.
AmpURLErrorErrorCode
data AmpURLErrorErrorCode Source #
The error code of an API call.
ErrorCodeUnspecified |
|
InputURLNotFound |
|
NoAmpURL |
|
ApplicationError |
|
URLIsValidAmp |
|
URLIsInvalidAmp |
|
Instances
BatchGetAmpURLsResponse
data BatchGetAmpURLsResponse Source #
Batch AMP URL response.
See: batchGetAmpURLsResponse
smart constructor.
Instances
batchGetAmpURLsResponse :: BatchGetAmpURLsResponse Source #
Creates a value of BatchGetAmpURLsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bgaurAmpURLs :: Lens' BatchGetAmpURLsResponse [AmpURL] Source #
For each URL in BatchAmpUrlsRequest, the URL response. The response might not be in the same order as URLs in the batch request. If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated only once.
bgaurURLErrors :: Lens' BatchGetAmpURLsResponse [AmpURLError] Source #
The errors for requested URLs that have no AMP URL.
BatchGetAmpURLsRequest
data BatchGetAmpURLsRequest Source #
AMP URL request for a batch of URLs.
See: batchGetAmpURLsRequest
smart constructor.
Instances
batchGetAmpURLsRequest :: BatchGetAmpURLsRequest Source #
Creates a value of BatchGetAmpURLsRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bgaurURLs :: Lens' BatchGetAmpURLsRequest [Text] Source #
List of URLs to look up for the paired AMP URLs. The URLs are case-sensitive. Up to 50 URLs per lookup (see Usage Limits).
bgaurLookupStrategy :: Lens' BatchGetAmpURLsRequest (Maybe BatchGetAmpURLsRequestLookupStrategy) Source #
The lookup_strategy being requested.
AmpURL
AMP URL response for a requested URL.
See: ampURL
smart constructor.
Instances
Eq AmpURL Source # | |
Data AmpURL Source # | |
Defined in Network.Google.AcceleratedMobilePageURL.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AmpURL -> c AmpURL # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AmpURL # toConstr :: AmpURL -> Constr # dataTypeOf :: AmpURL -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AmpURL) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AmpURL) # gmapT :: (forall b. Data b => b -> b) -> AmpURL -> AmpURL # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AmpURL -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AmpURL -> r # gmapQ :: (forall d. Data d => d -> u) -> AmpURL -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> AmpURL -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> AmpURL -> m AmpURL # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AmpURL -> m AmpURL # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AmpURL -> m AmpURL # | |
Show AmpURL Source # | |
Generic AmpURL Source # | |
ToJSON AmpURL Source # | |
FromJSON AmpURL Source # | |
type Rep AmpURL Source # | |
Defined in Network.Google.AcceleratedMobilePageURL.Types.Product type Rep AmpURL = D1 (MetaData "AmpURL" "Network.Google.AcceleratedMobilePageURL.Types.Product" "gogol-acceleratedmobilepageurl-0.4.0-6EABpOGIjk0B7S07xu40wP" False) (C1 (MetaCons "AmpURL'" PrefixI True) (S1 (MetaSel (Just "_auOriginalURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_auAmpURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_auCdnAmpURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) |
Creates a value of AmpURL
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
auCdnAmpURL :: Lens' AmpURL (Maybe Text) Source #
The AMP Cache URL pointing to the cached document in the Google AMP Cache.
Xgafv
V1 error format.
Instances
BatchGetAmpURLsRequestLookupStrategy
data BatchGetAmpURLsRequestLookupStrategy Source #
The lookup_strategy being requested.
FetchLiveDoc |
|
InIndexDoc |
|