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 AppEngine 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 only valid type is “organization”. Corresponds to the JSON property `type` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/cloudresourcemanager_v1beta1/classes.rb, line 114 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File generated/google/apis/cloudresourcemanager_v1beta1/classes.rb, line 119 def update!(**args) @type = args[:type] if args.key?(:type) @id = args[:id] if args.key?(:id) end