Class UsersResource.SectionsResource.CreateRequest
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
Inheritance
UsersResource.SectionsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class UsersResource.SectionsResource.CreateRequest : HangoutsChatBaseServiceRequest<GoogleChatV1Section>, IClientServiceRequest<GoogleChatV1Section>, IClientServiceRequest
Constructors
CreateRequest(IClientService, GoogleChatV1Section, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, GoogleChatV1Section body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| GoogleChatV1Section | body | |
| string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Parent
Required. The parent resource name where the section is created. Format: users/{user}
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()