Class: Google::Apis::AppsactivityV1::Parent

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#idString

The parent's ID. Corresponds to the JSON property id

Returns:

  • (String)


184
185
186
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 184

def id
  @id
end

#is_rootBoolean Also known as: is_root?

Whether this is the root folder. Corresponds to the JSON property isRoot

Returns:

  • (Boolean)


189
190
191
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 189

def is_root
  @is_root
end

#titleString

The parent's title. Corresponds to the JSON property title

Returns:

  • (String)


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