specs_contents
Creates, updates, deletes, gets or lists a specs_contents
resource.
Overview
Name | specs_contents |
Type | Resource |
Id | google.apihub.specs_contents |
Fields
The following fields are returned by SELECT
queries:
- get_contents
Successful response
Name | Datatype | Description |
---|---|---|
contents | string (byte) | Required. The contents of the spec. |
mimeType | string | Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_contents | select | projectsId , locationsId , apisId , versionsId , specsId | Get spec contents. |
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
- get_contents
Get spec contents.
SELECT
contents,
mimeType
FROM google.apihub.specs_contents
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND apisId = '{{ apisId }}' -- required
AND versionsId = '{{ versionsId }}' -- required
AND specsId = '{{ specsId }}' -- required;