Class: Google::Apis::ChatV1::SectionItem
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::SectionItem
- 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
-
#name ⇒ String
Identifier.
-
#space ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SectionItem
constructor
A new instance of SectionItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#name ⇒ String
Identifier. The resource name of the section item. Format: users/user/
sections/section/items/item`
Corresponds to the JSON propertyname`
6130 6131 6132 |
# File 'lib/google/apis/chat_v1/classes.rb', line 6130 def name @name end |
#space ⇒ String
Optional. The space resource name. Format: spaces/space`
Corresponds to the JSON propertyspace`
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 |