Policy Troubleshooter V3 API - Class Google::Cloud::PolicyTroubleshooter::Iam::V3::ConditionContext::Resource (v0.3.0)

Reference documentation and code samples for the Policy Troubleshooter V3 API class Google::Cloud::PolicyTroubleshooter::Iam::V3::ConditionContext::Resource.

Core attributes for a resource. A resource is an addressable (named) entity provided by the destination service. For example, a Compute Engine instance.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#name

def name() -> ::String
Returns
  • (::String) — The stable identifier (name) of a resource on the service. A resource can be logically identified as //{resource.service}/{resource.name}. Unlike the resource URI, the resource name doesn't contain any protocol and version information.

    For a list of full resource name formats, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — The stable identifier (name) of a resource on the service. A resource can be logically identified as //{resource.service}/{resource.name}. Unlike the resource URI, the resource name doesn't contain any protocol and version information.

    For a list of full resource name formats, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names

Returns
  • (::String) — The stable identifier (name) of a resource on the service. A resource can be logically identified as //{resource.service}/{resource.name}. Unlike the resource URI, the resource name doesn't contain any protocol and version information.

    For a list of full resource name formats, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names

#service

def service() -> ::String
Returns
  • (::String) — The name of the service that this resource belongs to, such as compute.googleapis.com. The service name might not match the DNS hostname that actually serves the request.

    For a full list of resource service values, see https://cloud.google.com/iam/help/conditions/resource-services

#service=

def service=(value) -> ::String
Parameter
  • value (::String) — The name of the service that this resource belongs to, such as compute.googleapis.com. The service name might not match the DNS hostname that actually serves the request.

    For a full list of resource service values, see https://cloud.google.com/iam/help/conditions/resource-services

Returns
  • (::String) — The name of the service that this resource belongs to, such as compute.googleapis.com. The service name might not match the DNS hostname that actually serves the request.

    For a full list of resource service values, see https://cloud.google.com/iam/help/conditions/resource-services

#type

def type() -> ::String
Returns
  • (::String) — The type of the resource, in the format {service}/{kind}.

    For a full list of resource type values, see https://cloud.google.com/iam/help/conditions/resource-types

#type=

def type=(value) -> ::String
Parameter
  • value (::String) — The type of the resource, in the format {service}/{kind}.

    For a full list of resource type values, see https://cloud.google.com/iam/help/conditions/resource-types

Returns
  • (::String) — The type of the resource, in the format {service}/{kind}.

    For a full list of resource type values, see https://cloud.google.com/iam/help/conditions/resource-types