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 |
Network.Google.AcceleratedMobilePageURL.Types
Contents
Description
Synopsis
- acceleratedMobilePageUrlService :: ServiceConfig
- 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.
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.
Constructors
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 Methods 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
Enum Xgafv Source # | |
Eq Xgafv Source # | |
Data Xgafv Source # | |
Defined in Network.Google.AcceleratedMobilePageURL.Types.Sum Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Xgafv -> c Xgafv # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Xgafv # dataTypeOf :: Xgafv -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Xgafv) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Xgafv) # gmapT :: (forall b. Data b => b -> b) -> Xgafv -> Xgafv # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Xgafv -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Xgafv -> r # gmapQ :: (forall d. Data d => d -> u) -> Xgafv -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Xgafv -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Xgafv -> m Xgafv # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Xgafv -> m Xgafv # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Xgafv -> m Xgafv # | |
Ord Xgafv Source # | |
Read Xgafv Source # | |
Show Xgafv Source # | |
Generic Xgafv Source # | |
Hashable Xgafv Source # | |
ToJSON Xgafv Source # | |
FromJSON Xgafv Source # | |
FromHttpApiData Xgafv Source # | |
Defined in Network.Google.AcceleratedMobilePageURL.Types.Sum | |
ToHttpApiData Xgafv Source # | |
Defined in Network.Google.AcceleratedMobilePageURL.Types.Sum Methods toUrlPiece :: Xgafv -> Text # toEncodedUrlPiece :: Xgafv -> Builder # toHeader :: Xgafv -> ByteString # toQueryParam :: Xgafv -> Text # | |
type Rep Xgafv Source # | |
BatchGetAmpURLsRequestLookupStrategy
data BatchGetAmpURLsRequestLookupStrategy Source #
The lookup_strategy being requested.
Constructors
FetchLiveDoc |
|
InIndexDoc |
|