class Google::Apis::CloudresourcemanagerV2::Folder

A Folder in an Organization's resource hierarchy, used to organize that Organization's resources.

Attributes

create_time[RW]

Output only. Timestamp when the Folder was created. Assigned by the server. Corresponds to the JSON property `createTime` @return [String]

display_name[RW]

The folder's display name. A folder's display name must be unique amongst its siblings, e.g. no two folders with the same parent can share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular expression: `[p`L`p`N`]([p`L`p` N`_- ]`0,28`)?`. Corresponds to the JSON property `displayName` @return [String]

lifecycle_state[RW]

Output only. The lifecycle state of the folder. Updates to the lifecycle_state must be performed via DeleteFolder and UndeleteFolder. Corresponds to the JSON property `lifecycleState` @return [String]

name[RW]

Output only. The resource name of the Folder. Its format is `folders/` folder_id“, for example: “folders/1234”. Corresponds to the JSON property `name` @return [String]

parent[RW]

Required. The Folder's parent's resource name. Updates to the folder's parent must be performed via MoveFolder. Corresponds to the JSON property `parent` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudresourcemanager_v2/classes.rb, line 519
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_v2/classes.rb, line 524
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
  @name = args[:name] if args.key?(:name)
  @parent = args[:parent] if args.key?(:parent)
end