Show / Hide Table of Contents

Class SpacesResource.CreateRequest

Creates a space. Can be used to create a named space, or a group chat in Import mode. For an example, see Create a space. Supports the following types of authentication: - App authentication with administrator approval in Developer Preview and one of the following authorization scopes: - https://www.googleapis.com/auth/chat.app.spaces.create - https://www.googleapis.com/auth/chat.app.spaces

  • User authentication with one of the following authorization scopes: - https://www.googleapis.com/auth/chat.spaces.create - https://www.googleapis.com/auth/chat.spaces - https://www.googleapis.com/auth/chat.import (import mode spaces only) When authenticating as an app, the space.customer field must be set in the request. Space membership upon creation depends on whether the space is created in Import mode: * Import mode: No members are created. * All other modes: The calling user is added as a member. This is: * The app itself when using app authentication. * The human user when using user authentication. If you receive the error message ALREADY_EXISTS when creating a space, try a different displayName. An existing space within the Google Workspace organization might already use this display name.
Inheritance
object
ClientServiceRequest
ClientServiceRequest<Space>
HangoutsChatBaseServiceRequest<Space>
SpacesResource.CreateRequest
Implements
IClientServiceRequest<Space>
IClientServiceRequest
Inherited Members
HangoutsChatBaseServiceRequest<Space>.Xgafv
HangoutsChatBaseServiceRequest<Space>.AccessToken
HangoutsChatBaseServiceRequest<Space>.Alt
HangoutsChatBaseServiceRequest<Space>.Callback
HangoutsChatBaseServiceRequest<Space>.Fields
HangoutsChatBaseServiceRequest<Space>.Key
HangoutsChatBaseServiceRequest<Space>.OauthToken
HangoutsChatBaseServiceRequest<Space>.PrettyPrint
HangoutsChatBaseServiceRequest<Space>.QuotaUser
HangoutsChatBaseServiceRequest<Space>.UploadType
HangoutsChatBaseServiceRequest<Space>.UploadProtocol
ClientServiceRequest<Space>.Execute()
ClientServiceRequest<Space>.ExecuteAsStream()
ClientServiceRequest<Space>.ExecuteAsync()
ClientServiceRequest<Space>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Space>.ExecuteAsStreamAsync()
ClientServiceRequest<Space>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Space>.CreateRequest(bool?)
ClientServiceRequest<Space>.GenerateRequestUri()
ClientServiceRequest<Space>.GetDefaultETagAction(string)
ClientServiceRequest<Space>.ETagAction
ClientServiceRequest<Space>.ModifyRequest
ClientServiceRequest<Space>.ValidateParameters
ClientServiceRequest<Space>.ApiVersion
ClientServiceRequest<Space>.RequestParameters
ClientServiceRequest<Space>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
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 SpacesResource.CreateRequest : HangoutsChatBaseServiceRequest<Space>, IClientServiceRequest<Space>, IClientServiceRequest

Constructors

CreateRequest(IClientService, Space)

Constructs a new Create request.

Declaration
public CreateRequest(IClientService service, Space body)
Parameters
Type Name Description
IClientService service
Space body

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Space>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Space>.MethodName

RequestId

Optional. A unique identifier for this request. A random UUID is recommended. Specifying an existing request ID returns the space created with that ID instead of creating a new space. Specifying an existing request ID from the same Chat app with a different authenticated user returns an error.

Declaration
[RequestParameter("requestId", RequestParameterType.Query)]
public virtual string RequestId { get; set; }
Property Value
Type Description
string

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Space>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<Space>.GetBody()

InitParameters()

Initializes Create parameter list.

Declaration
protected override void InitParameters()
Overrides
HangoutsChatBaseServiceRequest<Space>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX