GoogleCloudApihubV1Spec
import type { GoogleCloudApihubV1Spec } from "https://googleapis.deno.dev/v1/apihub:v1.ts";
Represents a spec associated with an API version in the API Hub. Note that specs of various types can be uploaded, however parsing of details is supported for OpenAPI spec currently.
§Properties
Optional. The list of user defined attributes associated with the spec.
The key is the attribute name. It will be of the format:
projects/{project}/locations/{location}/attributes/{attribute}
. The value
is the attribute values associated with the resource.
Optional. Input only. The contents of the uploaded spec.
Output only. Details parsed from the spec.
Required. The display name of the spec. This can contain the file name of the spec.
Optional. The documentation of the spec. For OpenAPI spec, this will be
populated from externalDocs
in OpenAPI spec.
Optional. The lint response for the spec.
Identifier. The name of the spec. Format:
projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}
Optional. Input only. Enum specifying the parsing mode for OpenAPI Specification (OAS) parsing.
Output only. The list of sources and metadata from the sources of the spec.
Optional. The URI of the spec source in case file is uploaded from an external version control system.
Required. The type of spec. The value should be one of the allowed values
defined for
projects/{project}/locations/{location}/attributes/system-spec-type
attribute. The number of values for this attribute will be based on the
cardinality of the attribute. The same can be retrieved via GetAttribute
API. Note, this field is mandatory if content is provided.