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

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
Name Description
data array

Optional. Data for populating the Message object.

↳ display_name string

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

↳ raw_value string

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
Type Description
string

setDisplayName

Output only. The display name of the schema.

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

Parameter
Name Description
var string
Returns
Type Description
$this

getRawValue

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

Returns
Type Description
string

setRawValue

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

Parameter
Name Description
var string
Returns
Type Description
$this