Skip to content

Commit d059ad8

Browse files
authored
docs: update generated docs (#981)
1 parent c72efbc commit d059ad8

File tree

1,544 files changed

+773599
-859364
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,544 files changed

+773599
-859364
lines changed

describe.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,12 +379,13 @@ def document_collection_recursive(resource, path, root_discovery, discovery):
379379
)
380380

381381

382-
def document_api(name, version):
382+
def document_api(name, version, uri):
383383
"""Document the given API.
384384
385385
Args:
386386
name: string, Name of the API.
387387
version: string, Version of the API.
388+
uri: string, URI of the API's discovery document
388389
"""
389390
try:
390391
service = build(name, version)
@@ -397,7 +398,7 @@ def document_api(name, version):
397398

398399
http = build_http()
399400
response, content = http.request(
400-
uritemplate.expand(
401+
uri or uritemplate.expand(
401402
FLAGS.discovery_uri_template, {"api": name, "apiVersion": version}
402403
)
403404
)
@@ -443,7 +444,7 @@ def document_api_from_discovery_document(uri):
443444
if resp.status == 200:
444445
directory = json.loads(content)["items"]
445446
for api in directory:
446-
document_api(api["name"], api["version"])
447+
document_api(api["name"], api["version"], api["discoveryRestUrl"])
447448
api_directory[api["name"]].append(api["version"])
448449

449450
# sort by api name and version number

docs/dyn/abusiveexperiencereport_v1.sites.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@ <h3>Method Details</h3>
9696
An object of the form:
9797

9898
{ # Response message for GetSiteSummary.
99-
&quot;filterStatus&quot;: &quot;A String&quot;, # The site&#x27;s [enforcement
100-
# status](https://support.google.com/webtools/answer/7538608).
101-
&quot;underReview&quot;: True or False, # Whether the site is currently under review.
10299
&quot;reportUrl&quot;: &quot;A String&quot;, # A link to the full Abusive Experience Report for the site.
103100
#
104101
# Not set in
@@ -108,15 +105,18 @@ <h3>Method Details</h3>
108105
# process](https://support.google.com/webmasters/answer/9008080) for the site
109106
# before you can access the full report.
110107
&quot;lastChangeTime&quot;: &quot;A String&quot;, # The time at which the site&#x27;s status last changed.
111-
&quot;reviewedSite&quot;: &quot;A String&quot;, # The name of the reviewed site, e.g. `google.com`.
112-
&quot;abusiveStatus&quot;: &quot;A String&quot;, # The site&#x27;s Abusive Experience Report status.
108+
&quot;filterStatus&quot;: &quot;A String&quot;, # The site&#x27;s [enforcement
109+
# status](https://support.google.com/webtools/answer/7538608).
113110
&quot;enforcementTime&quot;: &quot;A String&quot;, # The time at which
114111
# [enforcement](https://support.google.com/webtools/answer/7538608) against
115112
# the site began or will begin.
116113
#
117114
# Not set when the
118115
# filter_status
119116
# is OFF.
117+
&quot;underReview&quot;: True or False, # Whether the site is currently under review.
118+
&quot;reviewedSite&quot;: &quot;A String&quot;, # The name of the reviewed site, e.g. `google.com`.
119+
&quot;abusiveStatus&quot;: &quot;A String&quot;, # The site&#x27;s Abusive Experience Report status.
120120
}</pre>
121121
</div>
122122

docs/dyn/abusiveexperiencereport_v1.violatingSites.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ <h3>Method Details</h3>
9494
{ # Response message for ListViolatingSites.
9595
&quot;violatingSites&quot;: [ # The list of violating sites.
9696
{ # Response message for GetSiteSummary.
97-
&quot;filterStatus&quot;: &quot;A String&quot;, # The site&#x27;s [enforcement
98-
# status](https://support.google.com/webtools/answer/7538608).
99-
&quot;underReview&quot;: True or False, # Whether the site is currently under review.
10097
&quot;reportUrl&quot;: &quot;A String&quot;, # A link to the full Abusive Experience Report for the site.
10198
#
10299
# Not set in
@@ -106,15 +103,18 @@ <h3>Method Details</h3>
106103
# process](https://support.google.com/webmasters/answer/9008080) for the site
107104
# before you can access the full report.
108105
&quot;lastChangeTime&quot;: &quot;A String&quot;, # The time at which the site&#x27;s status last changed.
109-
&quot;reviewedSite&quot;: &quot;A String&quot;, # The name of the reviewed site, e.g. `google.com`.
110-
&quot;abusiveStatus&quot;: &quot;A String&quot;, # The site&#x27;s Abusive Experience Report status.
106+
&quot;filterStatus&quot;: &quot;A String&quot;, # The site&#x27;s [enforcement
107+
# status](https://support.google.com/webtools/answer/7538608).
111108
&quot;enforcementTime&quot;: &quot;A String&quot;, # The time at which
112109
# [enforcement](https://support.google.com/webtools/answer/7538608) against
113110
# the site began or will begin.
114111
#
115112
# Not set when the
116113
# filter_status
117114
# is OFF.
115+
&quot;underReview&quot;: True or False, # Whether the site is currently under review.
116+
&quot;reviewedSite&quot;: &quot;A String&quot;, # The name of the reviewed site, e.g. `google.com`.
117+
&quot;abusiveStatus&quot;: &quot;A String&quot;, # The site&#x27;s Abusive Experience Report status.
118118
},
119119
],
120120
}</pre>

docs/dyn/acceleratedmobilepageurl_v1.ampUrls.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ <h3>Method Details</h3>
8888
The object takes the form of:
8989

9090
{ # AMP URL request for a batch of URLs.
91+
&quot;lookupStrategy&quot;: &quot;A String&quot;, # The lookup_strategy being requested.
9192
&quot;urls&quot;: [ # List of URLs to look up for the paired AMP URLs.
9293
# The URLs are case-sensitive. Up to 50 URLs per lookup
9394
# (see [Usage Limits](/amp/cache/reference/limits)).
9495
&quot;A String&quot;,
9596
],
96-
&quot;lookupStrategy&quot;: &quot;A String&quot;, # The lookup_strategy being requested.
9797
}
9898

9999
x__xgafv: string, V1 error format.
@@ -112,15 +112,15 @@ <h3>Method Details</h3>
112112
{ # AMP URL response for a requested URL.
113113
&quot;cdnAmpUrl&quot;: &quot;A String&quot;, # The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to
114114
# the cached document in the Google AMP Cache.
115-
&quot;originalUrl&quot;: &quot;A String&quot;, # The original non-AMP URL.
116115
&quot;ampUrl&quot;: &quot;A String&quot;, # The AMP URL pointing to the publisher&#x27;s web server.
116+
&quot;originalUrl&quot;: &quot;A String&quot;, # The original non-AMP URL.
117117
},
118118
],
119119
&quot;urlErrors&quot;: [ # The errors for requested URLs that have no AMP URL.
120120
{ # AMP URL Error resource for a requested URL that couldn&#x27;t be found.
121+
&quot;originalUrl&quot;: &quot;A String&quot;, # The original non-AMP URL.
121122
&quot;errorMessage&quot;: &quot;A String&quot;, # An optional descriptive error message.
122123
&quot;errorCode&quot;: &quot;A String&quot;, # The error code of an API call.
123-
&quot;originalUrl&quot;: &quot;A String&quot;, # The original non-AMP URL.
124124
},
125125
],
126126
}</pre>

0 commit comments

Comments
 (0)