# Class HostGroup (0.10.1)

0.10.1 (latest) 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.24 0.2.0 0.1.0

    HostGroup(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Host group is a collection of hosts that can be used for
accessing a Block Volume.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Identifier. The resource name of the host group. Format: `projects/{project_number}/locations/{location_id}/hostGroups/{host_group_id}`. |
| `type_` | `https://docs.cloud.google.com/python/docs/reference/netapp/latest/google.cloud.netapp_v1.types.HostGroup.Type` Required. Type of the host group. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/netapp/latest/google.cloud.netapp_v1.types.HostGroup.State` Output only. State of the host group. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Create time of the host group. |
| `hosts` | `MutableSequence[str]` Required. The list of hosts associated with the host group. |
| `os_type` | `https://docs.cloud.google.com/python/docs/reference/netapp/latest/google.cloud.netapp_v1.types.OsType` 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` | `str` Optional. Description of the host group. |
| `labels` | `MutableMapping[str, str]` Optional. Labels of the host group. |

## Classes

### LabelsEntry

    LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |

### State

    State(value)

Host group states.

### Type

    Type(value)

Types of host group.