class Google::Apis::CloudresourcemanagerV1beta1::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]

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` @return [String]

type[RW]

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

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudresourcemanager_v1beta1/classes.rb, line 1058
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_v1beta1/classes.rb, line 1063
def update!(**args)
  @id = args[:id] if args.key?(:id)
  @type = args[:type] if args.key?(:type)
end