Class: Google::Apis::StorageV1::Folder
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1::Folder
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/storage_v1/classes.rb,
lib/google/apis/storage_v1/representations.rb,
lib/google/apis/storage_v1/representations.rb
Overview
A folder. Only available in buckets with hierarchical namespace enabled.
Defined Under Namespace
Classes: PendingRenameInfo
Instance Attribute Summary collapse
-
#bucket ⇒ String
The name of the bucket containing this folder.
-
#create_time ⇒ DateTime
The creation time of the folder in RFC 3339 format.
-
#id ⇒ String
The ID of the folder, including the bucket name, folder name.
-
#kind ⇒ String
The kind of item this is.
-
#metageneration ⇒ Fixnum
The version of the metadata for this folder.
-
#name ⇒ String
The name of the folder.
-
#pending_rename_info ⇒ Google::Apis::StorageV1::Folder::PendingRenameInfo
Only present if the folder is part of an ongoing rename folder operation.
-
#self_link ⇒ String
The link to this folder.
-
#update_time ⇒ DateTime
The modification time of the folder metadata in RFC 3339 format.
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.
1717 1718 1719 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1717 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bucket ⇒ String
The name of the bucket containing this folder.
Corresponds to the JSON property bucket
1673 1674 1675 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1673 def bucket @bucket end |
#create_time ⇒ DateTime
The creation time of the folder in RFC 3339 format.
Corresponds to the JSON property createTime
1678 1679 1680 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1678 def create_time @create_time end |
#id ⇒ String
The ID of the folder, including the bucket name, folder name.
Corresponds to the JSON property id
1683 1684 1685 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1683 def id @id end |
#kind ⇒ String
The kind of item this is. For folders, this is always storage#folder.
Corresponds to the JSON property kind
1688 1689 1690 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1688 def kind @kind end |
#metageneration ⇒ Fixnum
The version of the metadata for this folder. Used for preconditions and for
detecting changes in metadata.
Corresponds to the JSON property metageneration
1694 1695 1696 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1694 def @metageneration end |
#name ⇒ String
The name of the folder. Required if not specified by URL parameter.
Corresponds to the JSON property name
1699 1700 1701 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1699 def name @name end |
#pending_rename_info ⇒ Google::Apis::StorageV1::Folder::PendingRenameInfo
Only present if the folder is part of an ongoing rename folder operation.
Contains information which can be used to query the operation status.
Corresponds to the JSON property pendingRenameInfo
1705 1706 1707 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1705 def pending_rename_info @pending_rename_info end |
#self_link ⇒ String
The link to this folder.
Corresponds to the JSON property selfLink
1710 1711 1712 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1710 def self_link @self_link end |
#update_time ⇒ DateTime
The modification time of the folder metadata in RFC 3339 format.
Corresponds to the JSON property updateTime
1715 1716 1717 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1715 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1722 def update!(**args) @bucket = args[:bucket] if args.key?(:bucket) @create_time = args[:create_time] if args.key?(:create_time) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @metageneration = args[:metageneration] if args.key?(:metageneration) @name = args[:name] if args.key?(:name) @pending_rename_info = args[:pending_rename_info] if args.key?(:pending_rename_info) @self_link = args[:self_link] if args.key?(:self_link) @update_time = args[:update_time] if args.key?(:update_time) end |