Class UsersResource.SectionsResource.PatchRequest
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
Inheritance
UsersResource.SectionsResource.PatchRequest
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class UsersResource.SectionsResource.PatchRequest : HangoutsChatBaseServiceRequest<GoogleChatV1Section>, IClientServiceRequest<GoogleChatV1Section>, IClientServiceRequest
Constructors
PatchRequest(IClientService, GoogleChatV1Section, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, GoogleChatV1Section body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| GoogleChatV1Section | body | |
| string | name |
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
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-appsFormat:users/{user}/sections/{section}
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
UpdateMask
Required. The mask to specify which fields to update. Currently supported field paths: -
display_name
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()