Skip to main content

specs_contents

Creates, updates, deletes, gets or lists a specs_contents resource.

Overview

Namespecs_contents
TypeResource
Idgoogle.apihub.specs_contents

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
contentsstring (byte)Required. The contents of the spec.
mimeTypestringRequired. The mime type of the content for example application/json, application/yaml, application/wsdl etc.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_contentsselectprojectsId, locationsId, apisId, versionsId, specsIdGet 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.

NameDatatypeDescription
apisIdstring
locationsIdstring
projectsIdstring
specsIdstring
versionsIdstring

SELECT examples

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;