Class: Google::Apis::AppsactivityV1::Parent
- Inherits:
-
Object
- Object
- Google::Apis::AppsactivityV1::Parent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/appsactivity_v1/classes.rb,
generated/google/apis/appsactivity_v1/representations.rb,
generated/google/apis/appsactivity_v1/representations.rb
Overview
Contains information about a parent object. For example, a folder in Drive is a parent for all files within it.
Instance Attribute Summary collapse
-
#id ⇒ String
The parent's ID.
-
#is_root ⇒ Boolean
(also: #is_root?)
Whether this is the root folder.
-
#title ⇒ String
The parent's title.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Parent
constructor
A new instance of Parent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Parent
Returns a new instance of Parent.
197 198 199 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 197 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
The parent's ID.
Corresponds to the JSON property id
184 185 186 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 184 def id @id end |
#is_root ⇒ Boolean Also known as: is_root?
Whether this is the root folder.
Corresponds to the JSON property isRoot
189 190 191 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 189 def is_root @is_root end |
#title ⇒ String
The parent's title.
Corresponds to the JSON property title
195 196 197 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 195 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
202 203 204 205 206 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 202 def update!(**args) @id = args[:id] if args.key?(:id) @is_root = args[:is_root] if args.key?(:is_root) @title = args[:title] if args.key?(:title) end |