Class SpacesResource.MembersResource.PatchRequest
Updates a membership. For an example, see Update a user's membership in a
space. Supports the following types of
authentication: - App
authentication with
administrator approval in Developer
Preview and the authorization scope: -
https://www.googleapis.com/auth/chat.app.memberships (only in spaces the app created) - User
authentication with one
of the following authorization scopes: - https://www.googleapis.com/auth/chat.memberships -
https://www.googleapis.com/auth/chat.import (import mode spaces only) - User authentication grants
administrator privileges when an administrator account authenticates, use_admin_access is true, and
the following authorization scope is used: - https://www.googleapis.com/auth/chat.admin.memberships
Inheritance
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class SpacesResource.MembersResource.PatchRequest : HangoutsChatBaseServiceRequest<Membership>, IClientServiceRequest<Membership>, IClientServiceRequest
Constructors
PatchRequest(IClientService, Membership, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, Membership body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| Membership | 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 membership, assigned by the server. Format:
spaces/{space}/members/{member}
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 field paths to update. Separate multiple values with commas or use * to update all
field paths. Currently supported field paths: - role
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
UseAdminAccess
Optional. When true, the method runs using the user's Google Workspace administrator privileges.
The calling user must be a Google Workspace administrator with the manage chat and spaces
conversations privilege. Requires the
chat.admin.memberships OAuth 2.0
scope.
Declaration
[RequestParameter("useAdminAccess", RequestParameterType.Query)]
public virtual bool? UseAdminAccess { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
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()