1.57.0 (latest) 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.51.0 1.50.0 1.49.0 1.48.0 1.41.0 1.40.0 1.39.0 1.38.0 1.37.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 1.24.0 1.23.0 1.22.0 1.21.0 1.20.1 1.19.2 1.18.0 1.17.0 1.16.1 1.15.0 1.14.1 1.13.0 1.12.1 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.1 1.5.2 1.4.0 1.3.2 1.2.0 1.1.0 1.0.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.2 0.3.0 0.2.1 0.1.0

```python
NodeGroup(mapping=None, *, ignore_unknown_fields=False, **kwargs)
```
Represents a sole-tenant Node Group resource.

A sole-tenant node is a physical server that is dedicated to
hosting VM instances only for your specific project. Use
sole-tenant nodes to keep your instances physically separated
from instances in other projects, or to group your instances
together on the same host hardware. For more information,
readSole-tenant nodes.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `autoscaling_policy` | `google.cloud.compute_v1.types.NodeGroupAutoscalingPolicy` Specifies how autoscaling should behave. This field is a member of `oneof`_ `_autoscaling_policy`. |
| `creation_timestamp` | `str` Output only. \[Output Only\] Creation timestamp inRFC3339 text format. This field is a member of `oneof`_ `_creation_timestamp`. |
| `description` | `str` An optional description of this resource. Provide this property when you create the resource. This field is a member of `oneof`_ `_description`. |
| `fingerprint` | `str` This field is a member of `oneof`_ `_fingerprint`. |
| `id` | `int` Output only. \[Output Only\] The unique identifier for the resource. This identifier is defined by the server. This field is a member of `oneof`_ `_id`. |
| `kind` | `str` Output only. \[Output Only\] The type of the resource. Alwayscompute#nodeGroup for node group. This field is a member of `oneof`_ `_kind`. |
| `location_hint` | `str` An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate. This field is a member of `oneof`_ `_location_hint`. |
| `maintenance_interval` | `str` Specifies the frequency of planned maintenance events. The accepted values are: `AS_NEEDED` and `RECURRENT`. Check the MaintenanceInterval enum for the list of possible values. This field is a member of `oneof`_ `_maintenance_interval`. |
| `maintenance_policy` | `str` Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies. Check the MaintenancePolicy enum for the list of possible values. This field is a member of `oneof`_ `_maintenance_policy`. |
| `maintenance_window` | `google.cloud.compute_v1.types.NodeGroupMaintenanceWindow` This field is a member of `oneof`_ `_maintenance_window`. |
| `name` | `str` The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. This field is a member of `oneof`_ `_name`. |
| `node_template` | `str` URL of the node template to create the node group from. This field is a member of `oneof`_ `_node_template`. |
| `self_link` | `str` Output only. \[Output Only\] Server-defined URL for the resource. This field is a member of `oneof`_ `_self_link`. |
| `share_settings` | `google.cloud.compute_v1.types.ShareSettings` Share-settings for the node group This field is a member of `oneof`_ `_share_settings`. |
| `size` | `int` Output only. \[Output Only\] The total number of nodes in the node group. This field is a member of `oneof`_ `_size`. |
| `status` | `str` Check the Status enum for the list of possible values. This field is a member of `oneof`_ `_status`. |
| `zone` | `str` Output only. \[Output Only\] The name of the zone where the node group resides, such as us-central1-a. This field is a member of `oneof`_ `_zone`. |

## Classes

### MaintenanceInterval

```python
MaintenanceInterval(value)
```
Specifies the frequency of planned maintenance events. The accepted
values are: `AS_NEEDED` and `RECURRENT`.

### MaintenancePolicy

```python
MaintenancePolicy(value)
```
Specifies how to handle instances when a node in the group undergoes
maintenance. Set to one of: DEFAULT,RESTART_IN_PLACE, or
MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more
information, see Maintenance policies.

### Status

```python
Status(value)
```