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.



6137
6138
6139
# File 'lib/google/apis/chat_v1/classes.rb', line 6137

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)


6130
6131
6132
# File 'lib/google/apis/chat_v1/classes.rb', line 6130

def name
  @name
end

#spaceString

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

Returns:

  • (String)


6135
6136
6137
# File 'lib/google/apis/chat_v1/classes.rb', line 6135

def space
  @space
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6142
6143
6144
6145
# File 'lib/google/apis/chat_v1/classes.rb', line 6142

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