Google Cloud Api Hub V1 Client - Class Schema (0.2.0)

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

The schema details derived from the spec. Currently, this entity is supported for OpenAPI spec only.

For OpenAPI spec, this maps to the schema defined in the definitions section for OpenAPI 2.0 version and in components.schemas section for OpenAPI 3.0 and 3.1 version.

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

Namespace

Google \ Cloud \ ApiHub \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ display_namestring

Output only. The display name of the schema. This will map to the name of the schema in the spec.

↳ raw_valuestring

Output only. The raw value of the schema definition corresponding to the schema name in the spec.

getDisplayName

Output only. The display name of the schema.

This will map to the name of the schema in the spec.

Returns
TypeDescription
string

setDisplayName

Output only. The display name of the schema.

This will map to the name of the schema in the spec.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getRawValue

Output only. The raw value of the schema definition corresponding to the schema name in the spec.

Returns
TypeDescription
string

setRawValue

Output only. The raw value of the schema definition corresponding to the schema name in the spec.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this