Class: Google::Apis::CloudresourcemanagerV2beta1::Folder

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudresourcemanager_v2beta1/classes.rb,
lib/google/apis/cloudresourcemanager_v2beta1/representations.rb,
lib/google/apis/cloudresourcemanager_v2beta1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Folder

Returns a new instance of Folder.



557
558
559
# File 'lib/google/apis/cloudresourcemanager_v2beta1/classes.rb', line 557

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. Timestamp when the Folder was created. Assigned by the server. Corresponds to the JSON property createTime

Returns:

  • (String)


519
520
521
# File 'lib/google/apis/cloudresourcemanager_v2beta1/classes.rb', line 519

def create_time
  @create_time
end

#display_nameString

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: [\pL\pN]([\pL\p N_- ]0,28[\pL\pN])?. Corresponds to the JSON property displayName

Returns:

  • (String)


529
530
531
# File 'lib/google/apis/cloudresourcemanager_v2beta1/classes.rb', line 529

def display_name
  @display_name
end

#lifecycle_stateString

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

Returns:

  • (String)


535
536
537
# File 'lib/google/apis/cloudresourcemanager_v2beta1/classes.rb', line 535

def lifecycle_state
  @lifecycle_state
end

#nameString

Output only. The resource name of the Folder. Its format is folders/ folder_id`, for example: "folders/1234". Corresponds to the JSON propertyname`

Returns:

  • (String)


541
542
543
# File 'lib/google/apis/cloudresourcemanager_v2beta1/classes.rb', line 541

def name
  @name
end

#parentString

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

Returns:

  • (String)


547
548
549
# File 'lib/google/apis/cloudresourcemanager_v2beta1/classes.rb', line 547

def parent
  @parent
end

#tagsHash<String,String>

Optional. Input only. Immutable. Tag keys/values directly bound to this folder. Each item in the map must be expressed as " : ". For example: "123/ environment" : "production", "123/costCenter" : "marketing" Note: Currently this field is in Preview. Corresponds to the JSON property tags

Returns:

  • (Hash<String,String>)


555
556
557
# File 'lib/google/apis/cloudresourcemanager_v2beta1/classes.rb', line 555

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



562
563
564
565
566
567
568
569
# File 'lib/google/apis/cloudresourcemanager_v2beta1/classes.rb', line 562

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)
  @tags = args[:tags] if args.key?(:tags)
end