Google Cloud Api Gateway V1 Client - Class OpenApiDocument (2.1.1)

Reference documentation and code samples for the Google Cloud Api Gateway V1 Client class OpenApiDocument.

An OpenAPI Specification Document describing an API.

Generated from protobuf message google.cloud.apigateway.v1.ApiConfig.OpenApiDocument

Namespace

Google \ Cloud \ ApiGateway \ V1 \ ApiConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ document File

The OpenAPI Specification document file.

getDocument

The OpenAPI Specification document file.

Returns
Type Description
File|null

hasDocument

clearDocument

setDocument

The OpenAPI Specification document file.

Parameter
Name Description
var File
Returns
Type Description
$this

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.