specs_contents
Creates, updates, deletes, gets or lists a specs_contents
resource.
Overview
Name | specs_contents |
Type | Resource |
Id | google.apigeeregistry.specs_contents |
Fields
The following fields are returned by SELECT
queries:
- projects_locations_apis_versions_specs_get_contents
Successful response
Name | Datatype | Description |
---|---|---|
contentType | string | The HTTP Content-Type header value specifying the content type of the body. |
data | string (byte) | The HTTP request/response body as raw binary. |
extensions | array | Application specific response metadata. Must be set in the first response for streaming APIs. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
projects_locations_apis_versions_specs_get_contents | select | projectsId , locationsId , apisId , versionsId , specsId | Returns the contents of a specified spec. If specs are stored with GZip compression, the default behavior is to return the spec uncompressed (the mime_type response field indicates the exact format returned). |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
apisId | string | |
locationsId | string | |
projectsId | string | |
specsId | string | |
versionsId | string |
SELECT
examples
- projects_locations_apis_versions_specs_get_contents
Returns the contents of a specified spec. If specs are stored with GZip compression, the default behavior is to return the spec uncompressed (the mime_type response field indicates the exact format returned).
SELECT
contentType,
data,
extensions
FROM google.apigeeregistry.specs_contents
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND apisId = '{{ apisId }}' -- required
AND versionsId = '{{ versionsId }}' -- required
AND specsId = '{{ specsId }}' -- required;