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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ id |
string
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). |
↳ type |
string
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).
Generated from protobuf field optional string id = 3355;
Returns | |
---|---|
Type | Description |
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).
Generated from protobuf field optional string id = 3355;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getType
The type of the service resource.
Check the Type enum for the list of possible values.
Generated from protobuf field optional string type = 3575610;
Returns | |
---|---|
Type | Description |
string |
hasType
clearType
setType
The type of the service resource.
Check the Type enum for the list of possible values.
Generated from protobuf field optional string type = 3575610;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |