Compute V1 Client - Class XpnResourceId (1.21.0)

Reference documentation and code samples for the Compute V1 Client class XpnResourceId.

Service resource (a.k.a service project) ID.

Generated from protobuf message google.cloud.compute.v1.XpnResourceId

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ idstring

The ID of the service resource. In the case of projects, this field supports project id (e.g., my-project-123) and project number (e.g. 12345678).

↳ typestring

The type of the service resource. Check the Type enum for the list of possible values.

getId

The ID of the service resource. In the case of projects, this field supports project id (e.g., my-project-123) and project number (e.g. 12345678).

Returns
TypeDescription
string

hasId

clearId

setId

The ID of the service resource. In the case of projects, this field supports project id (e.g., my-project-123) and project number (e.g. 12345678).

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getType

The type of the service resource.

Check the Type enum for the list of possible values.

Returns
TypeDescription
string

hasType

clearType

setType

The type of the service resource.

Check the Type enum for the list of possible values.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this