Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::ResourceMetadata (v4.0.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::ResourceMetadata.

Standardized resource metadata common to all compute resources.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#api_version

def api_version() -> ::String
Returns
  • (::String) — The version of the API interface that this resource was retrieved through. For example, "2025-01-01" or "2025-01-01-preview".

#api_version=

def api_version=(value) -> ::String
Parameter
  • value (::String) — The version of the API interface that this resource was retrieved through. For example, "2025-01-01" or "2025-01-01-preview".
Returns
  • (::String) — The version of the API interface that this resource was retrieved through. For example, "2025-01-01" or "2025-01-01-preview".

#resource_type

def resource_type() -> ::String
Returns
  • (::String) — The canonical resource type name in the format of a resource type as defined by AIP-123. For example, "compute.googleapis.com/Instance".

#resource_type=

def resource_type=(value) -> ::String
Parameter
  • value (::String) — The canonical resource type name in the format of a resource type as defined by AIP-123. For example, "compute.googleapis.com/Instance".
Returns
  • (::String) — The canonical resource type name in the format of a resource type as defined by AIP-123. For example, "compute.googleapis.com/Instance".