Google Cloud Migration Center V1 Client - Class GetAssetRequest (0.3.1)

Reference documentation and code samples for the Google Cloud Migration Center V1 Client class GetAssetRequest.

Message for getting a Asset.

Generated from protobuf message google.cloud.migrationcenter.v1.GetAssetRequest

Namespace

Google \ Cloud \ MigrationCenter \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. Name of the resource.

↳ view int

View of the assets. Defaults to BASIC.

getName

Required. Name of the resource.

Returns
TypeDescription
string

setName

Required. Name of the resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getView

View of the assets. Defaults to BASIC.

Returns
TypeDescription
int

setView

View of the assets. Defaults to BASIC.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
name string

Required. Name of the resource. Please see Google\Cloud\MigrationCenter\V1\MigrationCenterClient::assetName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\MigrationCenter\V1\GetAssetRequest