Reference documentation and code samples for the Google Cloud Migration Center V1 Client class Group.
A resource that represents an asset group.
The purpose of an asset group is to bundle a set of assets that have something in common, while allowing users to add annotations to the group. An asset can belong to multiple groups.
Generated from protobuf message google.cloud.migrationcenter.v1.Group
Namespace
Google \ Cloud \ MigrationCenter \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Output only. The name of the group. |
↳ create_time |
Google\Protobuf\Timestamp
Output only. The timestamp when the group was created. |
↳ update_time |
Google\Protobuf\Timestamp
Output only. The timestamp when the group was last updated. |
↳ labels |
array|Google\Protobuf\Internal\MapField
Labels as key value pairs. |
↳ display_name |
string
User-friendly display name. |
↳ description |
string
The description of the resource. |
getName
Output only. The name of the group.
Returns | |
---|---|
Type | Description |
string |
setName
Output only. The name of the group.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getCreateTime
Output only. The timestamp when the group was created.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp when the group was created.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getUpdateTime
Output only. The timestamp when the group was last updated.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The timestamp when the group was last updated.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getLabels
Labels as key value pairs.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\MapField |
setLabels
Labels as key value pairs.
Parameter | |
---|---|
Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
Returns | |
---|---|
Type | Description |
$this |
getDisplayName
User-friendly display name.
Returns | |
---|---|
Type | Description |
string |
setDisplayName
User-friendly display name.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDescription
The description of the resource.
Returns | |
---|---|
Type | Description |
string |
setDescription
The description of the resource.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |