Reference documentation and code samples for the Google Cloud Net App V1 Client class HostGroup.
Host group is a collection of hosts that can be used for accessing a Block Volume.
Generated from protobuf message google.cloud.netapp.v1.HostGroup
Namespace
Google \ Cloud \ NetApp \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Identifier. The resource name of the host group. Format: |
↳ type |
int
Required. Type of the host group. |
↳ state |
int
Output only. State of the host group. |
↳ create_time |
Google\Protobuf\Timestamp
Output only. Create time of the host group. |
↳ hosts |
array
Required. The list of hosts associated with the host group. |
↳ os_type |
int
Required. The OS type of the host group. It indicates the type of operating system used by all of the hosts in the HostGroup. All hosts in a HostGroup must be of the same OS type. This can be set only when creating a HostGroup. |
↳ description |
string
Optional. Description of the host group. |
↳ labels |
array|Google\Protobuf\Internal\MapField
Optional. Labels of the host group. |
getName
Identifier. The resource name of the host group.
Format:
projects/{project_number}/locations/{location_id}/hostGroups/{host_group_id}.
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Identifier. The resource name of the host group.
Format:
projects/{project_number}/locations/{location_id}/hostGroups/{host_group_id}.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getType
Required. Type of the host group.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Type. |
setType
Required. Type of the host group.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type Type. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getState
Output only. State of the host group.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type State. |
setState
Output only. State of the host group.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type State. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCreateTime
Output only. Create time of the host group.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasCreateTime
clearCreateTime
setCreateTime
Output only. Create time of the host group.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getHosts
Required. The list of hosts associated with the host group.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setHosts
Required. The list of hosts associated with the host group.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOsType
Required. The OS type of the host group. It indicates the type of operating system used by all of the hosts in the HostGroup. All hosts in a HostGroup must be of the same OS type. This can be set only when creating a HostGroup.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type OsType. |
setOsType
Required. The OS type of the host group. It indicates the type of operating system used by all of the hosts in the HostGroup. All hosts in a HostGroup must be of the same OS type. This can be set only when creating a HostGroup.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type OsType. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDescription
Optional. Description of the host group.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDescription
Optional. Description of the host group.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLabels
Optional. Labels of the host group.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField |
|
setLabels
Optional. Labels of the host group.
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|