Class: Google::Apis::StorageV1::ManagedFolder
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1::ManagedFolder
- 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 managed folder.
Instance Attribute Summary collapse
-
#bucket ⇒ String
The name of the bucket containing this managed folder.
-
#create_time ⇒ DateTime
The creation time of the managed folder in RFC 3339 format.
-
#id ⇒ String
The ID of the managed folder, including the bucket name and managed folder name.
-
#kind ⇒ String
The kind of item this is.
-
#metageneration ⇒ Fixnum
The version of the metadata for this managed folder.
-
#name ⇒ String
The name of the managed folder.
-
#self_link ⇒ String
The link to this managed folder.
-
#update_time ⇒ DateTime
The last update time of the managed folder metadata in RFC 3339 format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ManagedFolder
constructor
A new instance of ManagedFolder.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ManagedFolder
Returns a new instance of ManagedFolder.
2103 2104 2105 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2103 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bucket ⇒ String
The name of the bucket containing this managed folder.
Corresponds to the JSON property bucket
2063 2064 2065 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2063 def bucket @bucket end |
#create_time ⇒ DateTime
The creation time of the managed folder in RFC 3339 format.
Corresponds to the JSON property createTime
2068 2069 2070 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2068 def create_time @create_time end |
#id ⇒ String
The ID of the managed folder, including the bucket name and managed folder
name.
Corresponds to the JSON property id
2074 2075 2076 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2074 def id @id end |
#kind ⇒ String
The kind of item this is. For managed folders, this is always storage#
managedFolder.
Corresponds to the JSON property kind
2080 2081 2082 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2080 def kind @kind end |
#metageneration ⇒ Fixnum
The version of the metadata for this managed folder. Used for preconditions
and for detecting changes in metadata.
Corresponds to the JSON property metageneration
2086 2087 2088 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2086 def @metageneration end |
#name ⇒ String
The name of the managed folder. Required if not specified by URL parameter.
Corresponds to the JSON property name
2091 2092 2093 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2091 def name @name end |
#self_link ⇒ String
The link to this managed folder.
Corresponds to the JSON property selfLink
2096 2097 2098 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2096 def self_link @self_link end |
#update_time ⇒ DateTime
The last update time of the managed folder metadata in RFC 3339 format.
Corresponds to the JSON property updateTime
2101 2102 2103 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2101 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2108 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) @self_link = args[:self_link] if args.key?(:self_link) @update_time = args[:update_time] if args.key?(:update_time) end |