Google Cloud Api Hub V1 Client - Class OpenApiSpecDetails (0.1.2)

Reference documentation and code samples for the Google Cloud Api Hub V1 Client class OpenApiSpecDetails.

OpenApiSpecDetails contains the details parsed from an OpenAPI spec in addition to the fields mentioned in SpecDetails.

Generated from protobuf message google.cloud.apihub.v1.OpenApiSpecDetails

Namespace

Google \ Cloud \ ApiHub \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ format int

Output only. The format of the spec.

↳ version string

Output only. The version in the spec. This maps to info.version in OpenAPI spec.

↳ owner Owner

Output only. Owner details for the spec. This maps to info.contact in OpenAPI spec.

getFormat

Output only. The format of the spec.

Returns
Type Description
int

setFormat

Output only. The format of the spec.

Parameter
Name Description
var int
Returns
Type Description
$this

getVersion

Output only. The version in the spec.

This maps to info.version in OpenAPI spec.

Returns
Type Description
string

setVersion

Output only. The version in the spec.

This maps to info.version in OpenAPI spec.

Parameter
Name Description
var string
Returns
Type Description
$this

getOwner

Output only. Owner details for the spec.

This maps to info.contact in OpenAPI spec.

Returns
Type Description
Owner|null

hasOwner

clearOwner

setOwner

Output only. Owner details for the spec.

This maps to info.contact in OpenAPI spec.

Parameter
Name Description
var Owner
Returns
Type Description
$this