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) — Required. Id of the resource.
#resource_id=
def resource_id=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::ResourceIdentifier
Parameter
- value (::Google::Cloud::CapacityPlanner::V1beta::ResourceIdentifier) — Required. Id of the resource.
Returns
- (::Google::Cloud::CapacityPlanner::V1beta::ResourceIdentifier) — Required. Id of the resource.