Skip to content

Commit

Permalink
feat(pagespeedonline): update the API
Browse files Browse the repository at this point in the history
#### pagespeedonline:v5

The following keys were added:
- resources.pagespeedapi.methods.runpagespeed.parameters.locale.pattern
- resources.pagespeedapi.methods.runpagespeed.parameters.url.pattern
- resources.pagespeedapi.methods.runpagespeed.parameters.url.required

The following keys were changed:
- resources.pagespeedapi.methods.runpagespeed.parameterOrder
  • Loading branch information
yoshi-automation authored and sofisl committed Dec 5, 2020
1 parent 5823a4c commit 650fa4b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions discovery/pagespeedonline-v5.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@
"flatPath": "pagespeedonline/v5/runPagespeed",
"httpMethod": "GET",
"id": "pagespeedonline.pagespeedapi.runpagespeed",
"parameterOrder": [],
"parameterOrder": [
"url"
],
"parameters": {
"captchaToken": {
"description": "The captcha token passed when filling out a captcha.",
Expand Down Expand Up @@ -144,6 +146,7 @@
"locale": {
"description": "The locale used to localize formatted results",
"location": "query",
"pattern": "[a-zA-Z]+((_|-)[a-zA-Z]+)?",
"type": "string"
},
"strategy": {
Expand All @@ -164,6 +167,8 @@
"url": {
"description": "Required. The URL to fetch and analyze",
"location": "query",
"pattern": "(?i)(url:|origin:)?http(s)?://.*",
"required": true,
"type": "string"
},
"utm_campaign": {
Expand All @@ -188,7 +193,7 @@
}
}
},
"revision": "20200813",
"revision": "20201130",
"rootUrl": "https://pagespeedonline.googleapis.com/",
"schemas": {
"AuditRefs": {
Expand Down
6 changes: 3 additions & 3 deletions src/apis/pagespeedonline/v5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -640,11 +640,11 @@ export namespace pagespeedonline_v5 {
* // A Lighthouse category to run; if none are given, only Performance category will be run
* category: 'placeholder-value',
* // The locale used to localize formatted results
* locale: 'placeholder-value',
* locale: '[a-zA-Z]+((_|-)[a-zA-Z]+)?',
* // The analysis strategy (desktop or mobile) to use, and desktop is the default
* strategy: 'placeholder-value',
* // Required. The URL to fetch and analyze
* url: 'placeholder-value',
* url: '(?i)(url:|origin:)?http(s)?://.*',
* // Campaign name for analytics.
* utm_campaign: 'placeholder-value',
* // Campaign source for analytics.
Expand Down Expand Up @@ -750,7 +750,7 @@ export namespace pagespeedonline_v5 {
options
),
params,
requiredParams: [],
requiredParams: ['url'],
pathParams: [],
context: this.context,
};
Expand Down

0 comments on commit 650fa4b

Please sign in to comment.