Class: Google::Apis::ChatV1::SectionItem

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb

Overview

A user's defined section item. This is used to represent section items, such as spaces, grouped under a section.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SectionItem

Returns a new instance of SectionItem.



6424
6425
6426
# File 'lib/google/apis/chat_v1/classes.rb', line 6424

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Identifier. The resource name of the section item. Format: users/user/ sections/section/items/item` Corresponds to the JSON propertyname`

Returns:

  • (String)


6417
6418
6419
# File 'lib/google/apis/chat_v1/classes.rb', line 6417

def name
  @name
end

#spaceString

Optional. The space resource name. Format: spaces/space` Corresponds to the JSON propertyspace`

Returns:

  • (String)


6422
6423
6424
# File 'lib/google/apis/chat_v1/classes.rb', line 6422

def space
  @space
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6429
6430
6431
6432
# File 'lib/google/apis/chat_v1/classes.rb', line 6429

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @space = args[:space] if args.key?(:space)
end