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 |
Provides tools for running validation tests against single URLs
Synopsis
- searchConsoleService :: ServiceConfig
- type SearchConsoleAPI = URLTestingToolsMobileFriendlyTestRunResource
- module Network.Google.Resource.SearchConsole.URLTestingTools.MobileFriendlyTest.Run
- data RunMobileFriendlyTestResponseMobileFriendliness
- data Image
- image :: Image
- iData :: Lens' Image (Maybe ByteString)
- iMimeType :: Lens' Image (Maybe Text)
- data BlockedResource
- blockedResource :: BlockedResource
- brURL :: Lens' BlockedResource (Maybe Text)
- data ResourceIssue
- resourceIssue :: ResourceIssue
- riBlockedResource :: Lens' ResourceIssue (Maybe BlockedResource)
- data TestStatusStatus
- data RunMobileFriendlyTestRequest
- runMobileFriendlyTestRequest :: RunMobileFriendlyTestRequest
- rmftrURL :: Lens' RunMobileFriendlyTestRequest (Maybe Text)
- rmftrRequestScreenshot :: Lens' RunMobileFriendlyTestRequest (Maybe Bool)
- data TestStatus
- testStatus :: TestStatus
- tsStatus :: Lens' TestStatus (Maybe TestStatusStatus)
- tsDetails :: Lens' TestStatus (Maybe Text)
- data Xgafv
- data MobileFriendlyIssueRule
- data RunMobileFriendlyTestResponse
- runMobileFriendlyTestResponse :: RunMobileFriendlyTestResponse
- rmftrScreenshot :: Lens' RunMobileFriendlyTestResponse (Maybe Image)
- rmftrResourceIssues :: Lens' RunMobileFriendlyTestResponse [ResourceIssue]
- rmftrMobileFriendliness :: Lens' RunMobileFriendlyTestResponse (Maybe RunMobileFriendlyTestResponseMobileFriendliness)
- rmftrTestStatus :: Lens' RunMobileFriendlyTestResponse (Maybe TestStatus)
- rmftrMobileFriendlyIssues :: Lens' RunMobileFriendlyTestResponse [MobileFriendlyIssue]
- data MobileFriendlyIssue
- mobileFriendlyIssue :: MobileFriendlyIssue
- mfiRule :: Lens' MobileFriendlyIssue (Maybe MobileFriendlyIssueRule)
Service Configuration
searchConsoleService :: ServiceConfig Source #
Default request referring to version v1
of the Google Search Console URL Testing Tools API. This contains the host and root path used as a starting point for constructing service requests.
API Declaration
type SearchConsoleAPI = URLTestingToolsMobileFriendlyTestRunResource Source #
Represents the entirety of the methods and resources available for the Google Search Console URL Testing Tools API service.
Resources
searchconsole.urlTestingTools.mobileFriendlyTest.run
Types
RunMobileFriendlyTestResponseMobileFriendliness
data RunMobileFriendlyTestResponseMobileFriendliness Source #
Test verdict, whether the page is mobile friendly or not.
MobileFriendlyTestResultUnspecified |
|
MobileFriendly |
|
NotMobileFriendly |
|
Instances
Image
Describe image data.
See: image
smart constructor.
Instances
Eq Image Source # | |
Data Image Source # | |
Defined in Network.Google.SearchConsole.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Image -> c Image # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Image # dataTypeOf :: Image -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Image) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Image) # gmapT :: (forall b. Data b => b -> b) -> Image -> Image # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Image -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Image -> r # gmapQ :: (forall d. Data d => d -> u) -> Image -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Image -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Image -> m Image # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Image -> m Image # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Image -> m Image # | |
Show Image Source # | |
Generic Image Source # | |
ToJSON Image Source # | |
Defined in Network.Google.SearchConsole.Types.Product | |
FromJSON Image Source # | |
type Rep Image Source # | |
Defined in Network.Google.SearchConsole.Types.Product type Rep Image = D1 (MetaData "Image" "Network.Google.SearchConsole.Types.Product" "gogol-searchconsole-0.4.0-33UccPcwZbN43RIExLRMSU" False) (C1 (MetaCons "Image'" PrefixI True) (S1 (MetaSel (Just "_iData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bytes)) :*: S1 (MetaSel (Just "_iMimeType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) |
iData :: Lens' Image (Maybe ByteString) Source #
Image data in format determined by the mime type. Currently, the format will always be "image/png", but this might change in the future.
BlockedResource
data BlockedResource Source #
Blocked resource.
See: blockedResource
smart constructor.
Instances
blockedResource :: BlockedResource Source #
Creates a value of BlockedResource
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ResourceIssue
data ResourceIssue Source #
Information about a resource with issue.
See: resourceIssue
smart constructor.
Instances
resourceIssue :: ResourceIssue Source #
Creates a value of ResourceIssue
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
riBlockedResource :: Lens' ResourceIssue (Maybe BlockedResource) Source #
Describes a blocked resource issue.
TestStatusStatus
data TestStatusStatus Source #
Status of the test.
TestStatusUnspecified |
|
Complete |
|
InternalError |
|
PageUnreachable |
|
Instances
RunMobileFriendlyTestRequest
data RunMobileFriendlyTestRequest Source #
Mobile-friendly test request.
See: runMobileFriendlyTestRequest
smart constructor.
Instances
runMobileFriendlyTestRequest :: RunMobileFriendlyTestRequest Source #
Creates a value of RunMobileFriendlyTestRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rmftrRequestScreenshot :: Lens' RunMobileFriendlyTestRequest (Maybe Bool) Source #
Whether or not screenshot is requested. Default is false.
TestStatus
data TestStatus Source #
Final state of the test, including error details if necessary.
See: testStatus
smart constructor.
Instances
testStatus :: TestStatus Source #
Creates a value of TestStatus
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tsStatus :: Lens' TestStatus (Maybe TestStatusStatus) Source #
Status of the test.
Xgafv
V1 error format.
Instances
MobileFriendlyIssueRule
data MobileFriendlyIssueRule Source #
Rule violated.
MobileFriendlyRuleUnspecified |
|
UsesIncompatiblePlugins |
|
ConfigureViewport |
|
FixedWidthViewport |
|
SizeContentToViewport |
|
UseLegibleFontSizes |
|
TapTargetsTooClose |
|
Instances
RunMobileFriendlyTestResponse
data RunMobileFriendlyTestResponse Source #
Mobile-friendly test response, including mobile-friendly issues and resource issues.
See: runMobileFriendlyTestResponse
smart constructor.
Instances
runMobileFriendlyTestResponse :: RunMobileFriendlyTestResponse Source #
Creates a value of RunMobileFriendlyTestResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rmftrScreenshot :: Lens' RunMobileFriendlyTestResponse (Maybe Image) Source #
Screenshot of the requested URL.
rmftrResourceIssues :: Lens' RunMobileFriendlyTestResponse [ResourceIssue] Source #
Information about embedded resources issues.
rmftrMobileFriendliness :: Lens' RunMobileFriendlyTestResponse (Maybe RunMobileFriendlyTestResponseMobileFriendliness) Source #
Test verdict, whether the page is mobile friendly or not.
rmftrTestStatus :: Lens' RunMobileFriendlyTestResponse (Maybe TestStatus) Source #
Final state of the test, can be either complete or an error.
rmftrMobileFriendlyIssues :: Lens' RunMobileFriendlyTestResponse [MobileFriendlyIssue] Source #
List of mobile-usability issues.
MobileFriendlyIssue
data MobileFriendlyIssue Source #
Mobile-friendly issue.
See: mobileFriendlyIssue
smart constructor.
Instances
mobileFriendlyIssue :: MobileFriendlyIssue Source #
Creates a value of MobileFriendlyIssue
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mfiRule :: Lens' MobileFriendlyIssue (Maybe MobileFriendlyIssueRule) Source #
Rule violated.