# Class Feature (1.25.0)

1.25.0 (latest) 1.24.0 1.23.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.3 1.16.0 1.15.1 1.14.2 1.13.1 1.12.1 1.11.0 1.10.2 1.9.0 1.8.1 1.7.1 1.6.0 1.5.3 1.4.3 1.3.0 1.2.0 1.1.0 1.0.0 0.2.2 0.1.2

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

Feature represents the settings and status of any Fleet
Feature.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Output only. The full, unique name of this Feature resource in the format `projects/*/locations/*/features/*`. |
| `labels` | `MutableMapping[str, str]` Labels for this Feature. |
| `resource_state` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.FeatureResourceState` Output only. State of the Feature resource itself. |
| `spec` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.CommonFeatureSpec` Optional. Fleet-wide Feature configuration. If this Feature does not support any Fleet-wide configuration, this field may be unused. |
| `membership_specs` | `MutableMapping[str, https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.MembershipFeatureSpec]` Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused. The keys indicate which Membership the configuration is for, in the form: `projects/{p}/locations/{l}/memberships/{m}` Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature's project. {p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.CommonFeatureState` Output only. The Fleet-wide Feature state. |
| `membership_states` | `MutableMapping[str, https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.MembershipFeatureState]` Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: `projects/{p}/locations/{l}/memberships/{m}` Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature's project number. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. When the Feature resource was created. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. When the Feature resource was last updated. |
| `delete_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. When the Feature resource was deleted. |
| `scope_specs` | `MutableMapping[str, https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ScopeFeatureSpec]` Optional. Scope-specific configuration for this Feature. If this Feature does not support any per-Scope configuration, this field may be unused. The keys indicate which Scope the configuration is for, in the form: `projects/{p}/locations/global/scopes/{s}` Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project. {p} will always be returned as the project number, but the project ID is also accepted during input. If the same Scope is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature. |
| `scope_states` | `MutableMapping[str, https://docs.cloud.google.com/python/docs/reference/gkehub/latest/google.cloud.gkehub_v1.types.ScopeFeatureState]` Output only. Scope-specific Feature status. If this Feature does report any per-Scope status, this field may be unused. The keys indicate which Scope the state is for, in the form: `projects/{p}/locations/global/scopes/{s}` Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project. |
| `unreachable` | `MutableSequence[str]` Output only. List of locations that could not be reached while fetching this feature. |

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

### MembershipSpecsEntry

    MembershipSpecsEntry(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. |

### MembershipStatesEntry

    MembershipStatesEntry(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. |

### ScopeSpecsEntry

    ScopeSpecsEntry(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. |

### ScopeStatesEntry

    ScopeStatesEntry(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. |