Skip to content

Commit c6a49d6

Browse files
feat(discovery): update the api
#### discovery:v1 The following keys were added: - schemas.JsonSchema.properties.deprecated.type (Total Keys: 1) - schemas.RestMethod.properties.apiVersion.type (Total Keys: 1) - schemas.RestMethod.properties.deprecated.type (Total Keys: 1) - schemas.RestResource.properties.deprecated.type (Total Keys: 1)
1 parent 7c8c3eb commit c6a49d6

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

docs/dyn/discovery_v1.apis.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ <h3>Method Details</h3>
117117
&quot;description&quot;: &quot;A String&quot;, # The description of this API.
118118
&quot;discoveryVersion&quot;: &quot;v1&quot;, # Indicate the version of the Discovery API used to generate this doc.
119119
&quot;documentationLink&quot;: &quot;A String&quot;, # A link to human readable documentation for the API.
120+
&quot;endpoints&quot;: [ # A list of location-based endpoint objects for this API. Each object contains the endpoint URL, location, description and deprecation status.
121+
{ # A single endpoint object
122+
&quot;deprecated&quot;: True or False, # Whether this endpoint is deprecated
123+
&quot;description&quot;: &quot;A String&quot;, # A string describing the host designated by the URL
124+
&quot;endpointUrl&quot;: &quot;A String&quot;, # The URL of the endpoint target host
125+
&quot;location&quot;: &quot;A String&quot;, # The location of the endpoint
126+
},
127+
],
120128
&quot;etag&quot;: &quot;A String&quot;, # The ETag for this response.
121129
&quot;exponentialBackoffDefault&quot;: True or False, # Enable exponential backoff for suitable methods in the generated clients.
122130
&quot;features&quot;: [ # A list of supported features for this API.
@@ -133,6 +141,8 @@ <h3>Method Details</h3>
133141
],
134142
&quot;methods&quot;: { # API-level methods for this API.
135143
&quot;a_key&quot;: { # An individual method description.
144+
&quot;apiVersion&quot;: &quot;A String&quot;, # The API Version of this method, as passed in via the `X-Goog-Api-Version` header or `$apiVersion` query parameter.
145+
&quot;deprecated&quot;: True or False, # Whether this method is deprecated.
136146
&quot;description&quot;: &quot;A String&quot;, # Description of this method.
137147
&quot;etagRequired&quot;: True or False, # Whether this method requires an ETag to be specified. The ETag is sent as an HTTP If-Match or If-None-Match header.
138148
&quot;flatPath&quot;: &quot;A String&quot;, # The URI path of this REST method in (RFC 6570) format without level 2 features ({+var}). Supplementary to the path property.
@@ -167,10 +177,14 @@ <h3>Method Details</h3>
167177
],
168178
},
169179
&quot;default&quot;: &quot;A String&quot;, # The default value of this property (if one exists).
180+
&quot;deprecated&quot;: True or False, # Whether the parameter is deprecated.
170181
&quot;description&quot;: &quot;A String&quot;, # A description of this object.
171182
&quot;enum&quot;: [ # Values this parameter may take (if it is an enum).
172183
&quot;A String&quot;,
173184
],
185+
&quot;enumDeprecated&quot;: [ # The deprecation status for the enums. Each position maps to the corresponding value in the &quot;enum&quot; array.
186+
True or False,
187+
],
174188
&quot;enumDescriptions&quot;: [ # The descriptions for the enums. Each position maps to the corresponding value in the &quot;enum&quot; array.
175189
&quot;A String&quot;,
176190
],
@@ -230,10 +244,14 @@ <h3>Method Details</h3>
230244
],
231245
},
232246
&quot;default&quot;: &quot;A String&quot;, # The default value of this property (if one exists).
247+
&quot;deprecated&quot;: True or False, # Whether the parameter is deprecated.
233248
&quot;description&quot;: &quot;A String&quot;, # A description of this object.
234249
&quot;enum&quot;: [ # Values this parameter may take (if it is an enum).
235250
&quot;A String&quot;,
236251
],
252+
&quot;enumDeprecated&quot;: [ # The deprecation status for the enums. Each position maps to the corresponding value in the &quot;enum&quot; array.
253+
True or False,
254+
],
237255
&quot;enumDescriptions&quot;: [ # The descriptions for the enums. Each position maps to the corresponding value in the &quot;enum&quot; array.
238256
&quot;A String&quot;,
239257
],
@@ -265,8 +283,11 @@ <h3>Method Details</h3>
265283
&quot;protocol&quot;: &quot;rest&quot;, # The protocol described by this document.
266284
&quot;resources&quot;: { # The resources in this API.
267285
&quot;a_key&quot;: { # An individual resource description. Contains methods and sub-resources related to this resource.
286+
&quot;deprecated&quot;: True or False, # Whether this resource is deprecated.
268287
&quot;methods&quot;: { # Methods on this resource.
269288
&quot;a_key&quot;: { # Description for any methods on this resource.
289+
&quot;apiVersion&quot;: &quot;A String&quot;, # The API Version of this method, as passed in via the `X-Goog-Api-Version` header or `$apiVersion` query parameter.
290+
&quot;deprecated&quot;: True or False, # Whether this method is deprecated.
270291
&quot;description&quot;: &quot;A String&quot;, # Description of this method.
271292
&quot;etagRequired&quot;: True or False, # Whether this method requires an ETag to be specified. The ETag is sent as an HTTP If-Match or If-None-Match header.
272293
&quot;flatPath&quot;: &quot;A String&quot;, # The URI path of this REST method in (RFC 6570) format without level 2 features ({+var}). Supplementary to the path property.
@@ -301,10 +322,14 @@ <h3>Method Details</h3>
301322
],
302323
},
303324
&quot;default&quot;: &quot;A String&quot;, # The default value of this property (if one exists).
325+
&quot;deprecated&quot;: True or False, # Whether the parameter is deprecated.
304326
&quot;description&quot;: &quot;A String&quot;, # A description of this object.
305327
&quot;enum&quot;: [ # Values this parameter may take (if it is an enum).
306328
&quot;A String&quot;,
307329
],
330+
&quot;enumDeprecated&quot;: [ # The deprecation status for the enums. Each position maps to the corresponding value in the &quot;enum&quot; array.
331+
True or False,
332+
],
308333
&quot;enumDescriptions&quot;: [ # The descriptions for the enums. Each position maps to the corresponding value in the &quot;enum&quot; array.
309334
&quot;A String&quot;,
310335
],
@@ -367,10 +392,14 @@ <h3>Method Details</h3>
367392
],
368393
},
369394
&quot;default&quot;: &quot;A String&quot;, # The default value of this property (if one exists).
395+
&quot;deprecated&quot;: True or False, # Whether the parameter is deprecated.
370396
&quot;description&quot;: &quot;A String&quot;, # A description of this object.
371397
&quot;enum&quot;: [ # Values this parameter may take (if it is an enum).
372398
&quot;A String&quot;,
373399
],
400+
&quot;enumDeprecated&quot;: [ # The deprecation status for the enums. Each position maps to the corresponding value in the &quot;enum&quot; array.
401+
True or False,
402+
],
374403
&quot;enumDescriptions&quot;: [ # The descriptions for the enums. Each position maps to the corresponding value in the &quot;enum&quot; array.
375404
&quot;A String&quot;,
376405
],

googleapiclient/discovery_cache/documents/discovery.v1.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@
234234
"description": "The default value of this property (if one exists).",
235235
"type": "string"
236236
},
237+
"deprecated": {
238+
"description": "Whether the parameter is deprecated.",
239+
"type": "boolean"
240+
},
237241
"description": {
238242
"description": "A description of this object.",
239243
"type": "string"
@@ -245,6 +249,13 @@
245249
},
246250
"type": "array"
247251
},
252+
"enumDeprecated": {
253+
"description": "The deprecation status for the enums. Each position maps to the corresponding value in the \"enum\" array.",
254+
"items": {
255+
"type": "boolean"
256+
},
257+
"type": "array"
258+
},
248259
"enumDescriptions": {
249260
"description": "The descriptions for the enums. Each position maps to the corresponding value in the \"enum\" array.",
250261
"items": {
@@ -390,6 +401,32 @@
390401
"description": "A link to human readable documentation for the API.",
391402
"type": "string"
392403
},
404+
"endpoints": {
405+
"description": "A list of location-based endpoint objects for this API. Each object contains the endpoint URL, location, description and deprecation status.",
406+
"items": {
407+
"description": "A single endpoint object",
408+
"properties": {
409+
"deprecated": {
410+
"description": "Whether this endpoint is deprecated",
411+
"type": "boolean"
412+
},
413+
"description": {
414+
"description": "A string describing the host designated by the URL",
415+
"type": "string"
416+
},
417+
"endpointUrl": {
418+
"description": "The URL of the endpoint target host",
419+
"type": "string"
420+
},
421+
"location": {
422+
"description": "The location of the endpoint",
423+
"type": "string"
424+
}
425+
},
426+
"type": "object"
427+
},
428+
"type": "array"
429+
},
393430
"etag": {
394431
"description": "The ETag for this response.",
395432
"readOnly": true,
@@ -518,6 +555,14 @@
518555
"RestMethod": {
519556
"id": "RestMethod",
520557
"properties": {
558+
"apiVersion": {
559+
"description": "The API Version of this method, as passed in via the `X-Goog-Api-Version` header or `$apiVersion` query parameter.",
560+
"type": "string"
561+
},
562+
"deprecated": {
563+
"description": "Whether this method is deprecated.",
564+
"type": "boolean"
565+
},
521566
"description": {
522567
"description": "Description of this method.",
523568
"type": "string"
@@ -663,6 +708,10 @@
663708
"RestResource": {
664709
"id": "RestResource",
665710
"properties": {
711+
"deprecated": {
712+
"description": "Whether this resource is deprecated.",
713+
"type": "boolean"
714+
},
666715
"methods": {
667716
"additionalProperties": {
668717
"$ref": "RestMethod",

0 commit comments

Comments
 (0)