# Class ResourceIdKey (0.5.0)

0.5.0 (latest) 0.4.0 0.3.0 0.2.0 0.1.0

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

The id for a Google Cloud Platform resource key.

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `resource_code` | `str` Required. resource_code for the resource. eg: gce-ram, gce-vcpus, gce-gpu, gce-tpu, gce-vm, gce-persistent-disk, gce-local-ssd. This field is a member of `oneof`_ `demand_fields`. |
| `resource_id` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-capacityplanner/latest/google.cloud.capacityplanner_v1beta.types.ResourceIdentifier` Required. Id of the resource. |