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

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

ApiHubResource is one of the resources such as Api, Operation, Deployment, Definition, Spec and Version resources stored in API-Hub.

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

Namespace

Google \ Cloud \ ApiHub \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ api Api

This represents Api resource in search results. Only name, display_name, description and owner fields are populated in search results.

↳ operation ApiOperation

This represents ApiOperation resource in search results. Only name, and description fields are populated in search results.

↳ deployment Deployment

This represents Deployment resource in search results. Only name, display_name and description fields are populated in search results.

↳ spec Spec

This represents Spec resource in search results. Only name, display_name and description fields are populated in search results.

↳ definition Definition

This represents Definition resource in search results. Only name field is populated in search results.

↳ version Version

This represents Version resource in search results. Only name, display_name and description fields are populated in search results.

getApi

This represents Api resource in search results. Only name, display_name, description and owner fields are populated in search results.

Returns
Type Description
Api|null

hasApi

setApi

This represents Api resource in search results. Only name, display_name, description and owner fields are populated in search results.

Parameter
Name Description
var Api
Returns
Type Description
$this

getOperation

This represents ApiOperation resource in search results. Only name, and description fields are populated in search results.

Returns
Type Description
ApiOperation|null

hasOperation

setOperation

This represents ApiOperation resource in search results. Only name, and description fields are populated in search results.

Parameter
Name Description
var ApiOperation
Returns
Type Description
$this

getDeployment

This represents Deployment resource in search results. Only name, display_name and description fields are populated in search results.

Returns
Type Description
Deployment|null

hasDeployment

setDeployment

This represents Deployment resource in search results. Only name, display_name and description fields are populated in search results.

Parameter
Name Description
var Deployment
Returns
Type Description
$this

getSpec

This represents Spec resource in search results. Only name, display_name and description fields are populated in search results.

Returns
Type Description
Spec|null

hasSpec

setSpec

This represents Spec resource in search results. Only name, display_name and description fields are populated in search results.

Parameter
Name Description
var Spec
Returns
Type Description
$this

getDefinition

This represents Definition resource in search results.

Only name field is populated in search results.

Returns
Type Description
Definition|null

hasDefinition

setDefinition

This represents Definition resource in search results.

Only name field is populated in search results.

Parameter
Name Description
var Definition
Returns
Type Description
$this

getVersion

This represents Version resource in search results. Only name, display_name and description fields are populated in search results.

Returns
Type Description
Version|null

hasVersion

setVersion

This represents Version resource in search results. Only name, display_name and description fields are populated in search results.

Parameter
Name Description
var Version
Returns
Type Description
$this

getResource

Returns
Type Description
string