Reference documentation and code samples for the Google Cloud Api Hub V1 Client class APIMetadata.
The API metadata.
Generated from protobuf message google.cloud.apihub.v1.APIMetadata
Namespace
Google \ Cloud \ ApiHub \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ api |
Api
Required. The API resource to be pushed to Hub's collect layer. The ID of the API resource will be generated by Hub to ensure uniqueness across all APIs across systems. |
↳ versions |
array<VersionMetadata>
Optional. The list of versions present in an API resource. |
↳ original_id |
string
Optional. The unique identifier of the API in the system where it was originally created. |
↳ original_create_time |
Google\Protobuf\Timestamp
Optional. Timestamp indicating when the API was created at the source. |
↳ original_update_time |
Google\Protobuf\Timestamp
Required. Timestamp indicating when the API was last updated at the source. |
getApi
Required. The API resource to be pushed to Hub's collect layer. The ID of the API resource will be generated by Hub to ensure uniqueness across all APIs across systems.
Returns | |
---|---|
Type | Description |
Api|null |
hasApi
clearApi
setApi
Required. The API resource to be pushed to Hub's collect layer. The ID of the API resource will be generated by Hub to ensure uniqueness across all APIs across systems.
Parameter | |
---|---|
Name | Description |
var |
Api
|
Returns | |
---|---|
Type | Description |
$this |
getVersions
Optional. The list of versions present in an API resource.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setVersions
Optional. The list of versions present in an API resource.
Parameter | |
---|---|
Name | Description |
var |
array<VersionMetadata>
|
Returns | |
---|---|
Type | Description |
$this |
getOriginalId
Optional. The unique identifier of the API in the system where it was originally created.
Returns | |
---|---|
Type | Description |
string |
setOriginalId
Optional. The unique identifier of the API in the system where it was originally created.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getOriginalCreateTime
Optional. Timestamp indicating when the API was created at the source.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasOriginalCreateTime
clearOriginalCreateTime
setOriginalCreateTime
Optional. Timestamp indicating when the API was created at the source.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getOriginalUpdateTime
Required. Timestamp indicating when the API was last updated at the source.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasOriginalUpdateTime
clearOriginalUpdateTime
setOriginalUpdateTime
Required. Timestamp indicating when the API was last updated at the source.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |