Reference documentation and code samples for the Google Cloud Api Hub V1 Client class SourceMetadata.
SourceMetadata represents the metadata for a resource at the source.
Generated from protobuf message google.cloud.apihub.v1.SourceMetadata
Namespace
Google \ Cloud \ ApiHub \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ plugin_instance_action_source |
SourceMetadata\PluginInstanceActionSource
Output only. The source of the resource is a plugin instance action. |
↳ source_type |
int
Output only. The type of the source. |
↳ original_resource_id |
string
Output only. The unique identifier of the resource at the source. |
↳ original_resource_create_time |
Google\Protobuf\Timestamp
Output only. The time at which the resource was created at the source. |
↳ original_resource_update_time |
Google\Protobuf\Timestamp
Output only. The time at which the resource was last updated at the source. |
getPluginInstanceActionSource
Output only. The source of the resource is a plugin instance action.
Returns | |
---|---|
Type | Description |
SourceMetadata\PluginInstanceActionSource|null |
hasPluginInstanceActionSource
setPluginInstanceActionSource
Output only. The source of the resource is a plugin instance action.
Parameter | |
---|---|
Name | Description |
var |
SourceMetadata\PluginInstanceActionSource
|
Returns | |
---|---|
Type | Description |
$this |
getSourceType
Output only. The type of the source.
Returns | |
---|---|
Type | Description |
int |
Enum of type SourceType. |
setSourceType
Output only. The type of the source.
Parameter | |
---|---|
Name | Description |
var |
int
Enum of type SourceType. |
Returns | |
---|---|
Type | Description |
$this |
getOriginalResourceId
Output only. The unique identifier of the resource at the source.
Returns | |
---|---|
Type | Description |
string |
setOriginalResourceId
Output only. The unique identifier of the resource at the source.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getOriginalResourceCreateTime
Output only. The time at which the resource was created at the source.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasOriginalResourceCreateTime
clearOriginalResourceCreateTime
setOriginalResourceCreateTime
Output only. The time at which the resource was created at the source.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getOriginalResourceUpdateTime
Output only. The time at which the resource was last updated at the source.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasOriginalResourceUpdateTime
clearOriginalResourceUpdateTime
setOriginalResourceUpdateTime
Output only. The time at which the resource was last updated at the source.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getSource
Returns | |
---|---|
Type | Description |
string |