Class PagespeedapiResource.RunpagespeedRequest
Runs PageSpeed analysis on the page at the specified URL, and returns a PageSpeed score, a list of suggestions to make that page faster, and other information.
Inheritance
System.Object
PagespeedapiResource.RunpagespeedRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Pagespeedonline.v1
Assembly: Google.Apis.Pagespeedonline.v1.dll
Syntax
public class RunpagespeedRequest : PagespeedonlineBaseServiceRequest<Result>, IClientServiceRequest<Result>, IClientServiceRequest
Constructors
RunpagespeedRequest(IClientService, String)
Constructs a new Runpagespeed request.
Declaration
public RunpagespeedRequest(IClientService service, string url)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
System.String | url |
Properties
FilterThirdPartyResources
Indicates if third party resources should be filtered out before PageSpeed analysis.
Declaration
[RequestParameter("filter_third_party_resources", RequestParameterType.Query)]
public virtual bool? FilterThirdPartyResources { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Pagespeedonline.v1.Data.Result>.HttpMethod
Locale
The locale used to localize formatted results
Declaration
[RequestParameter("locale", RequestParameterType.Query)]
public virtual string Locale { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Pagespeedonline.v1.Data.Result>.MethodName
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Pagespeedonline.v1.Data.Result>.RestPath
Rule
A PageSpeed rule to run; if none are given, all rules are run
Declaration
[RequestParameter("rule", RequestParameterType.Query)]
public virtual Repeatable<string> Rule { get; set; }
Property Value
Type | Description |
---|---|
Repeatable<System.String> |
Screenshot
Indicates if binary data containing a screenshot should be included
Declaration
[RequestParameter("screenshot", RequestParameterType.Query)]
public virtual bool? Screenshot { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Strategy
The analysis strategy to use
Declaration
[RequestParameter("strategy", RequestParameterType.Query)]
public virtual PagespeedapiResource.RunpagespeedRequest.StrategyEnum? Strategy { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<PagespeedapiResource.RunpagespeedRequest.StrategyEnum> |
Url
The URL to fetch and analyze
Declaration
[RequestParameter("url", RequestParameterType.Query)]
public virtual string Url { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
InitParameters()
Initializes Runpagespeed parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.Pagespeedonline.v1.PagespeedonlineBaseServiceRequest<Google.Apis.Pagespeedonline.v1.Data.Result>.InitParameters()