Google Cloud Migration Center V1 Client - Class Group (0.1.0)

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 \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
string

setName

Output only. The name of the group.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The timestamp when the group was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The timestamp when the group was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. The timestamp when the group was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The timestamp when the group was last updated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getLabels

Labels as key value pairs.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Labels as key value pairs.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getDisplayName

User-friendly display name.

Returns
TypeDescription
string

setDisplayName

User-friendly display name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

The description of the resource.

Returns
TypeDescription
string

setDescription

The description of the resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this