Class SpacesResource.GetRequest
Returns details about a space. For an example, see Get details about a
space. Supports the following types of
authentication: - App
authentication with one of
the following authorization scopes: - https://www.googleapis.com/auth/chat.bot
-
https://www.googleapis.com/auth/chat.app.spaces
with administrator
approval - User
authentication with one of
the following authorization scopes: - https://www.googleapis.com/auth/chat.spaces.readonly
-
https://www.googleapis.com/auth/chat.spaces
- User authentication grants administrator privileges when an
administrator account authenticates, use_admin_access
is true
, and one of the following authorization
scopes is used: - https://www.googleapis.com/auth/chat.admin.spaces.readonly
-
https://www.googleapis.com/auth/chat.admin.spaces
Inheritance
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class SpacesResource.GetRequest : HangoutsChatBaseServiceRequest<Space>, IClientServiceRequest<Space>, IClientServiceRequest
Constructors
GetRequest(IClientService, string)
Constructs a new Get request.
Declaration
public GetRequest(IClientService service, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
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
Required. Resource name of the space, in the form spaces/{space}
. Format: spaces/{space}
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
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.spaces
or
chat.admin.spaces.readonly
OAuth 2.0
scopes.
Declaration
[RequestParameter("useAdminAccess", RequestParameterType.Query)]
public virtual bool? UseAdminAccess { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Methods
InitParameters()
Initializes Get parameter list.
Declaration
protected override void InitParameters()