Class UsersResource.SectionsResource
The "sections" collection of methods.
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class UsersResource.SectionsResource
Constructors
SectionsResource(IClientService)
Constructs a new resource.
Declaration
public SectionsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
Items
Gets the Items resource.
Declaration
public virtual UsersResource.SectionsResource.ItemsResource Items { get; }
Property Value
| Type | Description |
|---|---|
| UsersResource.SectionsResource.ItemsResource |
Methods
Create(GoogleChatV1Section, string)
Creates a section in Google Chat. Sections help users group conversations and customize the list of
spaces displayed in Chat navigation panel. Only sections of type CUSTOM_SECTION can be created. For
details, see Create and organize sections in Google
Chat. Requires user
authentication with the
authorization
scope: -
https://www.googleapis.com/auth/chat.users.sections
Declaration
public virtual UsersResource.SectionsResource.CreateRequest Create(GoogleChatV1Section body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleChatV1Section | body | The body of the request. |
| string | parent | Required. The parent resource name where the section is created. Format: |
Returns
| Type | Description |
|---|---|
| UsersResource.SectionsResource.CreateRequest |
Delete(string)
Deletes a section of type CUSTOM_SECTION. If the section contains items, such as spaces, the items are
moved to Google Chat's default sections and are not deleted. For details, see Create and organize
sections in Google Chat. Requires user
authentication with the
authorization
scope: -
https://www.googleapis.com/auth/chat.users.sections
Declaration
public virtual UsersResource.SectionsResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the section to delete. Format: |
Returns
| Type | Description |
|---|---|
| UsersResource.SectionsResource.DeleteRequest |
List(string)
Lists sections available to the Chat user. Sections help users group their conversations and customize
the list of spaces displayed in Chat navigation panel. For details, see Create and organize sections in
Google Chat. Requires user
authentication with the
authorization
scope: -
https://www.googleapis.com/auth/chat.users.sections -
https://www.googleapis.com/auth/chat.users.sections.readonly
Declaration
public virtual UsersResource.SectionsResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent, which is the user resource name that owns this collection of sections. Only supports listing sections for the calling user. To refer to the calling user, set one of the following:
|
Returns
| Type | Description |
|---|---|
| UsersResource.SectionsResource.ListRequest |
Patch(GoogleChatV1Section, string)
Updates a section. Only sections of type CUSTOM_SECTION can be updated. For details, see Create and
organize sections in Google Chat. Requires user
authentication with the
authorization
scope: -
https://www.googleapis.com/auth/chat.users.sections
Declaration
public virtual UsersResource.SectionsResource.PatchRequest Patch(GoogleChatV1Section body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleChatV1Section | body | The body of the request. |
| string | name | Identifier. Resource name of the section. For system sections, the section ID is a constant string: -
DEFAULT_DIRECT_MESSAGES: |
Returns
| Type | Description |
|---|---|
| UsersResource.SectionsResource.PatchRequest |
Position(PositionSectionRequest, string)
Changes the sort order of a section. For details, see Create and organize sections in Google
Chat. Requires user
authentication with the
authorization
scope: -
https://www.googleapis.com/auth/chat.users.sections
Declaration
public virtual UsersResource.SectionsResource.PositionRequest Position(PositionSectionRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| PositionSectionRequest | body | The body of the request. |
| string | name | Required. The resource name of the section to position. Format: |
Returns
| Type | Description |
|---|---|
| UsersResource.SectionsResource.PositionRequest |