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

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
Enum of type Format .

setFormat

Output only. The format of the spec.

Parameter
Name
Description
var
int

Enum of type Format .

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
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: