Class: Google::Apis::CloudresourcemanagerV3::Folder
- Inherits:
-
Object
- Object
- Google::Apis::CloudresourcemanagerV3::Folder
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudresourcemanager_v3/classes.rb,
lib/google/apis/cloudresourcemanager_v3/representations.rb,
lib/google/apis/cloudresourcemanager_v3/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.
-
#delete_time ⇒ String
Output only.
-
#display_name ⇒ String
The folder's display name.
-
#etag ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#parent ⇒ String
Required.
-
#state ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
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.
552 553 554 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 552 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Timestamp when the folder was created.
Corresponds to the JSON property createTime
505 506 507 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 505 def create_time @create_time end |
#delete_time ⇒ String
Output only. Timestamp when the folder was requested to be deleted.
Corresponds to the JSON property deleteTime
510 511 512 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 510 def delete_time @delete_time end |
#display_name ⇒ String
The folder's display name. A folder's display name must be unique amongst its
siblings. For example, 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\pN_- ]0,28[\pL\pN])?.
Corresponds to the JSON property displayName
520 521 522 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 520 def display_name @display_name end |
#etag ⇒ String
Output only. A checksum computed by the server based on the current value of
the folder resource. This may be sent on update and delete requests to ensure
the client has an up-to-date value before proceeding.
Corresponds to the JSON property etag
527 528 529 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 527 def etag @etag 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 propertyname`
533 534 535 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 533 def name @name end |
#parent ⇒ String
Required. The folder's parent's resource name. Updates to the folder's parent
must be performed using MoveFolder.
Corresponds to the JSON property parent
539 540 541 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 539 def parent @parent end |
#state ⇒ String
Output only. The lifecycle state of the folder. Updates to the state must be
performed using DeleteFolder and UndeleteFolder.
Corresponds to the JSON property state
545 546 547 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 545 def state @state end |
#update_time ⇒ String
Output only. Timestamp when the folder was last modified.
Corresponds to the JSON property updateTime
550 551 552 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 550 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
557 558 559 560 561 562 563 564 565 566 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 557 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @delete_time = args[:delete_time] if args.key?(:delete_time) @display_name = args[:display_name] if args.key?(:display_name) @etag = args[:etag] if args.key?(:etag) @name = args[:name] if args.key?(:name) @parent = args[:parent] if args.key?(:parent) @state = args[:state] if args.key?(:state) @update_time = args[:update_time] if args.key?(:update_time) end |