Reference documentation and code samples for the Google Cloud Api Hub V1 Client class VersionMetadata.
The metadata associated with a version of the API resource.
Generated from protobuf message google.cloud.apihub.v1.VersionMetadata
Namespace
Google \ Cloud \ ApiHub \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ version |
Version
Required. Represents a version of the API resource in API hub. The ID of the version will be generated by Hub. |
↳ specs |
array<SpecMetadata>
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs. |
↳ deployments |
array<DeploymentMetadata>
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.) |
↳ original_id |
string
Optional. The unique identifier of the version in the system where it was originally created. |
↳ original_create_time |
Google\Protobuf\Timestamp
Optional. Timestamp indicating when the version was created at the source. |
↳ original_update_time |
Google\Protobuf\Timestamp
Required. Timestamp indicating when the version was last updated at the source. |
getVersion
Required. Represents a version of the API resource in API hub. The ID of the version will be generated by Hub.
| Returns | |
|---|---|
| Type | Description |
Version|null |
|
hasVersion
clearVersion
setVersion
Required. Represents a version of the API resource in API hub. The ID of the version will be generated by Hub.
| Parameter | |
|---|---|
| Name | Description |
var |
Version
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSpecs
Optional. The specs associated with this version.
Note that an API version can be associated with multiple specs.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setSpecs
Optional. The specs associated with this version.
Note that an API version can be associated with multiple specs.
| Parameter | |
|---|---|
| Name | Description |
var |
array<SpecMetadata>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDeployments
Optional. The deployments linked to this API version.
Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setDeployments
Optional. The deployments linked to this API version.
Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
| Parameter | |
|---|---|
| Name | Description |
var |
array<DeploymentMetadata>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOriginalId
Optional. The unique identifier of the version in the system where it was originally created.
| Returns | |
|---|---|
| Type | Description |
string |
|
setOriginalId
Optional. The unique identifier of the version in the system where it was originally created.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOriginalCreateTime
Optional. Timestamp indicating when the version was created at the source.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasOriginalCreateTime
clearOriginalCreateTime
setOriginalCreateTime
Optional. Timestamp indicating when the version was created at the source.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOriginalUpdateTime
Required. Timestamp indicating when the version was last updated at the source.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasOriginalUpdateTime
clearOriginalUpdateTime
setOriginalUpdateTime
Required. Timestamp indicating when the version was last updated at the source.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|