# NetApp V1 API - Class Google::Cloud::NetApp::V1::HostGroup (v2.11.0)

2.11.0 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.1 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.2 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.6.0 0.5.2 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the NetApp V1 API class Google::Cloud::NetApp::V1::HostGroup.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Create time of the host group.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Optional. Description of the host group.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Description of the host group.
**Returns**

- (::String) --- Optional. Description of the host group.

### #hosts

    def hosts() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Required. The list of hosts associated with the host group.

### #hosts=

    def hosts=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Required. The list of hosts associated with the host group.
**Returns**

- (::Array\<::String\>) --- Required. The list of hosts associated with the host group.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Labels of the host group.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Labels of the host group.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Labels of the host group.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. The resource name of the host group. Format: `projects/{project_number}/locations/{location_id}/hostGroups/{host_group_id}`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. The resource name of the host group. Format: `projects/{project_number}/locations/{location_id}/hostGroups/{host_group_id}`.
**Returns**

- (::String) --- Identifier. The resource name of the host group. Format: `projects/{project_number}/locations/{location_id}/hostGroups/{host_group_id}`.

### #os_type

    def os_type() -> ::Google::Cloud::NetApp::V1::OsType

**Returns**

- ([::Google::Cloud::NetApp::V1::OsType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-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.

### #os_type=

    def os_type=(value) -> ::Google::Cloud::NetApp::V1::OsType

**Parameter**

- **value** ([::Google::Cloud::NetApp::V1::OsType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-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.
**Returns**

- ([::Google::Cloud::NetApp::V1::OsType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-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.

### #state

    def state() -> ::Google::Cloud::NetApp::V1::HostGroup::State

**Returns**

- ([::Google::Cloud::NetApp::V1::HostGroup::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-HostGroup-State)) --- Output only. State of the host group.

### #type

    def type() -> ::Google::Cloud::NetApp::V1::HostGroup::Type

**Returns**

- ([::Google::Cloud::NetApp::V1::HostGroup::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-HostGroup-Type)) --- Required. Type of the host group.

### #type=

    def type=(value) -> ::Google::Cloud::NetApp::V1::HostGroup::Type

**Parameter**

- **value** ([::Google::Cloud::NetApp::V1::HostGroup::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-HostGroup-Type)) --- Required. Type of the host group.
**Returns**

- ([::Google::Cloud::NetApp::V1::HostGroup::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-HostGroup-Type)) --- Required. Type of the host group.