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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ api |
Google\Cloud\ApiHub\V1\Api
This represents Api resource in search results. Only name, display_name, description and owner fields are populated in search results. |
↳ operation |
Google\Cloud\ApiHub\V1\ApiOperation
This represents ApiOperation resource in search results. Only name, and description fields are populated in search results. |
↳ deployment |
Google\Cloud\ApiHub\V1\Deployment
This represents Deployment resource in search results. Only name, display_name and description fields are populated in search results. |
↳ spec |
Google\Cloud\ApiHub\V1\Spec
This represents Spec resource in search results. Only name, display_name and description fields are populated in search results. |
↳ definition |
Google\Cloud\ApiHub\V1\Definition
This represents Definition resource in search results. Only name field is populated in search results. |
↳ version |
Google\Cloud\ApiHub\V1\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 |
Google\Cloud\ApiHub\V1\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 |
Google\Cloud\ApiHub\V1\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 |
Google\Cloud\ApiHub\V1\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 |
Google\Cloud\ApiHub\V1\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 |
Google\Cloud\ApiHub\V1\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 |
Google\Cloud\ApiHub\V1\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 |
Google\Cloud\ApiHub\V1\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 |
Google\Cloud\ApiHub\V1\Spec
|
Returns | |
---|---|
Type | Description |
$this |
getDefinition
This represents Definition resource in search results.
Only name field is populated in search results.
Returns | |
---|---|
Type | Description |
Google\Cloud\ApiHub\V1\Definition|null |
hasDefinition
setDefinition
This represents Definition resource in search results.
Only name field is populated in search results.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\ApiHub\V1\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 |
Google\Cloud\ApiHub\V1\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 |
Google\Cloud\ApiHub\V1\Version
|
Returns | |
---|---|
Type | Description |
$this |
getResource
Returns | |
---|---|
Type | Description |
string |