class Google::Apis::CloudresourcemanagerV1::ResourceId

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.

Attributes

id[RW]

The type-specific id. This should correspond to the id used in the type- specific API's. Corresponds to the JSON property `id` @return [String]

type[RW]

The resource type this id is for. At present, the valid types are: “ organization”, “folder”, and “project”. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudresourcemanager_v1/classes.rb, line 1716
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudresourcemanager_v1/classes.rb, line 1721
def update!(**args)
  @id = args[:id] if args.key?(:id)
  @type = args[:type] if args.key?(:type)
end