Class: Google::Apis::ServicecontrolV1::Resource
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ServicecontrolV1::Resource
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/servicecontrol_v1/classes.rb,
generated/google/apis/servicecontrol_v1/representations.rb,
generated/google/apis/servicecontrol_v1/representations.rb 
Overview
This message defines core attributes for a resource. A resource is an addressable (named) entity provided by the destination service. For example, a file stored on a network storage service.
Instance Attribute Summary collapse
- 
  
    
      #labels  ⇒ Hash<String,String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The stable identifier (name) of a resource on the
service. - 
  
    
      #service  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The name of the service that this resource belongs to, such as
pubsub.googleapis.com. - 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The type of the resource.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Resource 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Resource.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Resource
Returns a new instance of Resource
      2137 2138 2139  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 2137 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#labels ⇒ Hash<String,String>
The labels or tags on the resource, such as AWS resource tags and
Kubernetes resource labels.
Corresponds to the JSON property labels
      2108 2109 2110  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 2108 def labels @labels end  | 
  
#name ⇒ String
The stable identifier (name) of a resource on the service. A resource
can be logically identified as "//resource.service/resource.name".
The differences between a resource name and a URI are:
-   Resource name is a logical identifier, independent of network
protocol and API version. For example,
//pubsub.googleapis.com/projects/123/topics/news-feed. -   URI often includes protocol and version information, so it can
be used directly by applications. For example,
https://pubsub.googleapis.com/v1/projects/123/topics/news-feed. See https://cloud.google.com/apis/design/resource_names for details. Corresponds to the JSON propertyname 
      2122 2123 2124  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 2122 def name @name end  | 
  
#service ⇒ String
The name of the service that this resource belongs to, such as
pubsub.googleapis.com. The service may be different from the DNS
hostname that actually serves the request.
Corresponds to the JSON property service
      2129 2130 2131  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 2129 def service @service end  | 
  
#type ⇒ String
The type of the resource. The scheme is platform-specific because
different platforms define their resources differently.
Corresponds to the JSON property type
      2135 2136 2137  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 2135 def type @type end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      2142 2143 2144 2145 2146 2147  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 2142 def update!(**args) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @service = args[:service] if args.key?(:service) @type = args[:type] if args.key?(:type) end  |