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.
6424 6425 6426 |
# File 'lib/google/apis/chat_v1/classes.rb', line 6424 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`
6417 6418 6419 |
# File 'lib/google/apis/chat_v1/classes.rb', line 6417 def name @name end |
#space ⇒ String
Optional. The space resource name. Format: spaces/space`
Corresponds to the JSON propertyspace`
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 |