Class: Google::Apis::CloudresourcemanagerV2beta1::Folder
- Inherits:
-
Object
- Object
- Google::Apis::CloudresourcemanagerV2beta1::Folder
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/cloudresourcemanager_v2beta1/classes.rb,
generated/google/apis/cloudresourcemanager_v2beta1/representations.rb,
generated/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
-
#create_time ⇒ String
Output only.
-
#display_name ⇒ String
The folder's display name.
-
#lifecycle_state ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#parent ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Folder
constructor
A new instance of Folder.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Folder
Returns a new instance of Folder.
493 494 495 |
# File 'generated/google/apis/cloudresourcemanager_v2beta1/classes.rb', line 493 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Timestamp when the Folder was created. Assigned by the server.
Corresponds to the JSON property createTime
463 464 465 |
# File 'generated/google/apis/cloudresourcemanager_v2beta1/classes.rb', line 463 def create_time @create_time end |
#display_name ⇒ String
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[\p
L\p
N])?
.
Corresponds to the JSON property displayName
473 474 475 |
# File 'generated/google/apis/cloudresourcemanager_v2beta1/classes.rb', line 473 def display_name @display_name end |
#lifecycle_state ⇒ String
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
479 480 481 |
# File 'generated/google/apis/cloudresourcemanager_v2beta1/classes.rb', line 479 def lifecycle_state @lifecycle_state end |
#name ⇒ String
Output only. The resource name of the Folder. Its format is folders/
folder_id`, for example: "folders/1234".
Corresponds to the JSON property
name`
485 486 487 |
# File 'generated/google/apis/cloudresourcemanager_v2beta1/classes.rb', line 485 def name @name end |
#parent ⇒ String
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
491 492 493 |
# File 'generated/google/apis/cloudresourcemanager_v2beta1/classes.rb', line 491 def parent @parent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
498 499 500 501 502 503 504 |
# File 'generated/google/apis/cloudresourcemanager_v2beta1/classes.rb', line 498 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 |