# Capacity Planner V1BETA API - Class Google::Cloud::CapacityPlanner::V1beta::ResourceIdKey (v0.5.0)

0.5.0 (latest) 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Capacity Planner V1BETA API class Google::Cloud::CapacityPlanner::V1beta::ResourceIdKey.

The id for a Google Cloud Platform resource key.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #resource_code

    def resource_code() -> ::String

**Returns**

- (::String) --- Required. resource_code for the resource. eg: gce-ram, gce-vcpus, gce-gpu, gce-tpu, gce-vm, gce-persistent-disk, gce-local-ssd.

### #resource_code=

    def resource_code=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. resource_code for the resource. eg: gce-ram, gce-vcpus, gce-gpu, gce-tpu, gce-vm, gce-persistent-disk, gce-local-ssd.
**Returns**

- (::String) --- Required. resource_code for the resource. eg: gce-ram, gce-vcpus, gce-gpu, gce-tpu, gce-vm, gce-persistent-disk, gce-local-ssd.

### #resource_id

    def resource_id() -> ::Google::Cloud::CapacityPlanner::V1beta::ResourceIdentifier

**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::ResourceIdentifier](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-ResourceIdentifier)) --- Required. Id of the resource.

### #resource_id=

    def resource_id=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::ResourceIdentifier

**Parameter**

- **value** ([::Google::Cloud::CapacityPlanner::V1beta::ResourceIdentifier](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-ResourceIdentifier)) --- Required. Id of the resource.
**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::ResourceIdentifier](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-ResourceIdentifier)) --- Required. Id of the resource.