Show / Hide Table of Contents

Class UsersResource.SectionsResource

The "sections" collection of methods.

Inheritance
object
UsersResource.SectionsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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)

Developer Preview: 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: users/{user}

Returns
Type Description
UsersResource.SectionsResource.CreateRequest

Delete(string)

Developer Preview: 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: users/{user}/sections/{section}

Returns
Type Description
UsersResource.SectionsResource.DeleteRequest

List(string)

Developer Preview: 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:

  • The me alias. For example, users/me. - Their Workspace email address. For example, users/user@example.com. - Their user id. For example, users/123456789. Format: users/{user}
Returns
Type Description
UsersResource.SectionsResource.ListRequest

Patch(GoogleChatV1Section, string)

Developer Preview: 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: users/{user}/sections/default-direct-messages - DEFAULT_SPACES: users/{user}/sections/default-spaces - DEFAULT_APPS: users/{user}/sections/default-apps Format: users/{user}/sections/{section}

Returns
Type Description
UsersResource.SectionsResource.PatchRequest

Position(PositionSectionRequest, string)

Developer Preview: 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: users/{user}/sections/{section}

Returns
Type Description
UsersResource.SectionsResource.PositionRequest
In this article
Back to top Generated by DocFX