Class: Google::Apis::CloudresourcemanagerV1::ResourceId
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::CloudresourcemanagerV1::ResourceId
 
 
- Defined in:
 - generated/google/apis/cloudresourcemanager_v1/classes.rb,
generated/google/apis/cloudresourcemanager_v1/representations.rb,
generated/google/apis/cloudresourcemanager_v1/representations.rb 
Overview
A container to reference an id for any resource type. A resource in Google
Cloud Platform is a generic term for something you (a developer) may want to
interact with through one of our API's. Some examples are an App Engine app,
a Compute Engine instance, a Cloud SQL database, and so on.
Instance Attribute Summary collapse
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required field for the type-specific id.
 - 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required field representing the resource type this id is for.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ResourceId 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ResourceId.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ResourceId
Returns a new instance of ResourceId
      1519 1520 1521  | 
    
      # File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1519 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#id ⇒ String
Required field for the type-specific id. This should correspond to the id
used in the type-specific API's.
Corresponds to the JSON property id
      1511 1512 1513  | 
    
      # File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1511 def id @id end  | 
  
#type ⇒ String
Required field representing the resource type this id is for.
At present, the valid types are: "organization" and "folder".
Corresponds to the JSON property type
      1517 1518 1519  | 
    
      # File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1517 def type @type end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      1524 1525 1526 1527  | 
    
      # File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1524 def update!(**args) @id = args[:id] if args.key?(:id) @type = args[:type] if args.key?(:type) end  |