Reference documentation and code samples for the Compute V1 Client class GetHostRequest.
A request message for Hosts.Get. See the method description for details.
Generated from protobuf message google.cloud.compute.v1.GetHostRequest
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ association |
string
The parent resource association for the Host. This field specifies the hierarchical context (e.g., reservation, block, sub-block) when accessing the host. For example, reservations/reservation_name, reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/reservation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name. |
↳ host |
string
The name of the host, formatted as RFC1035 or a resource ID number. |
↳ project |
string
The project ID for this request. |
↳ zone |
string
The name of the zone for this request, formatted as RFC1035. |
getAssociation
The parent resource association for the Host. This field specifies the hierarchical context (e.g., reservation, block, sub-block) when accessing the host. For example, reservations/reservation_name, reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/reservation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name.
| Returns | |
|---|---|
| Type | Description |
string |
|
setAssociation
The parent resource association for the Host. This field specifies the hierarchical context (e.g., reservation, block, sub-block) when accessing the host. For example, reservations/reservation_name, reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/reservation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getHost
The name of the host, formatted as RFC1035 or a resource ID number.
| Returns | |
|---|---|
| Type | Description |
string |
|
setHost
The name of the host, formatted as RFC1035 or a resource ID number.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getProject
The project ID for this request.
| Returns | |
|---|---|
| Type | Description |
string |
|
setProject
The project ID for this request.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getZone
The name of the zone for this request, formatted as RFC1035.
| Returns | |
|---|---|
| Type | Description |
string |
|
setZone
The name of the zone for this request, formatted as RFC1035.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameters | |
|---|---|
| Name | Description |
project |
string
The project ID for this request. |
zone |
string
The name of the zone for this request, formatted as RFC1035. |
association |
string
The parent resource association for the Host. This field specifies the hierarchical context (e.g., reservation, block, sub-block) when accessing the host. For example, reservations/reservation_name, reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/reservation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name. |
host |
string
The name of the host, formatted as RFC1035 or a resource ID number. |
| Returns | |
|---|---|
| Type | Description |
GetHostRequest |
|