# Class QuotaRule (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

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

QuotaRule specifies the maximum disk space a user or group
can use within a volume. They can be used for creating default
and individual quota rules.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Identifier. The resource name of the quota rule. Format: `projects/{project_number}/locations/{location_id}/volumes/volumes/{volume_id}/quotaRules/{quota_rule_id}`. |
| `target` | `str` Optional. The quota rule applies to the specified user or group, identified by a Unix UID/GID, Windows SID, or null for default. |
| `type_` | `https://docs.cloud.google.com/python/docs/reference/netapp/latest/google.cloud.netapp_v1.types.QuotaRule.Type` Required. The type of quota rule. |
| `disk_limit_mib` | `int` Required. The maximum allowed disk space in MiB. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/netapp/latest/google.cloud.netapp_v1.types.QuotaRule.State` Output only. State of the quota rule |
| `state_details` | `str` Output only. State details of the quota rule |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Create time of the quota rule |
| `description` | `str` Optional. Description of the quota rule |
| `labels` | `MutableMapping[str, str]` Optional. Labels of the quota rule |

## 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)

Quota Rule states

### Type

    Type(value)

Types of Quota Rule