Class SpacesServiceClient
SpacesService client wrapper, for convenient use.
Namespace: Google.Apps.Meet.V2Beta
Assembly: Google.Apps.Meet.V2Beta.dll
Syntax
public abstract class SpacesServiceClient
Remarks
REST API for services dealing with spaces.
Properties
DefaultEndpoint
The default endpoint for the SpacesService service, which is a host of "meet.googleapis.com" and a port of 443.
Declaration
public static string DefaultEndpoint { get; }
Property Value
Type | Description |
---|---|
string |
DefaultScopes
The default SpacesService scopes.
Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<string> |
Remarks
The default SpacesService scopes are:
GrpcClient
The underlying gRPC SpacesService client
Declaration
public virtual SpacesService.SpacesServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
SpacesService.SpacesServiceClient |
ServiceMetadata
The service metadata associated with this client type.
Declaration
public static ServiceMetadata ServiceMetadata { get; }
Property Value
Type | Description |
---|---|
ServiceMetadata |
Methods
Create()
Synchronously creates a SpacesServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use SpacesServiceClientBuilder.
Declaration
public static SpacesServiceClient Create()
Returns
Type | Description |
---|---|
SpacesServiceClient | The created SpacesServiceClient. |
CreateAsync(CancellationToken)
Asynchronously creates a SpacesServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use SpacesServiceClientBuilder.
Declaration
public static Task<SpacesServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | The CancellationToken to use while creating the client. |
Returns
Type | Description |
---|---|
Task<SpacesServiceClient> | The task representing the created SpacesServiceClient. |
CreateSpace(CreateSpaceRequest, CallSettings)
Developer Preview. Creates a space.
Declaration
public virtual Space CreateSpace(CreateSpaceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateSpaceRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Space | The RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = SpacesServiceClient.Create();
// Initialize request argument(s)
CreateSpaceRequest request = new CreateSpaceRequest { Space = new Space(), };
// Make the request
Space response = spacesServiceClient.CreateSpace(request);
CreateSpace(Space, CallSettings)
Developer Preview. Creates a space.
Declaration
public virtual Space CreateSpace(Space space, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Space | space | Space to be created. As of May 2023, the input space can be empty. Later on the input space can be non-empty when space configuration is introduced. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Space | The RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = SpacesServiceClient.Create();
// Initialize request argument(s)
Space space = new Space();
// Make the request
Space response = spacesServiceClient.CreateSpace(space);
CreateSpaceAsync(CreateSpaceRequest, CallSettings)
Developer Preview. Creates a space.
Declaration
public virtual Task<Space> CreateSpaceAsync(CreateSpaceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateSpaceRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Space> | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
CreateSpaceRequest request = new CreateSpaceRequest { Space = new Space(), };
// Make the request
Space response = await spacesServiceClient.CreateSpaceAsync(request);
CreateSpaceAsync(CreateSpaceRequest, CancellationToken)
Developer Preview. Creates a space.
Declaration
public virtual Task<Space> CreateSpaceAsync(CreateSpaceRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CreateSpaceRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<Space> | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
CreateSpaceRequest request = new CreateSpaceRequest { Space = new Space(), };
// Make the request
Space response = await spacesServiceClient.CreateSpaceAsync(request);
CreateSpaceAsync(Space, CallSettings)
Developer Preview. Creates a space.
Declaration
public virtual Task<Space> CreateSpaceAsync(Space space, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Space | space | Space to be created. As of May 2023, the input space can be empty. Later on the input space can be non-empty when space configuration is introduced. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Space> | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
Space space = new Space();
// Make the request
Space response = await spacesServiceClient.CreateSpaceAsync(space);
CreateSpaceAsync(Space, CancellationToken)
Developer Preview. Creates a space.
Declaration
public virtual Task<Space> CreateSpaceAsync(Space space, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Space | space | Space to be created. As of May 2023, the input space can be empty. Later on the input space can be non-empty when space configuration is introduced. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<Space> | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
Space space = new Space();
// Make the request
Space response = await spacesServiceClient.CreateSpaceAsync(space);
EndActiveConference(EndActiveConferenceRequest, CallSettings)
Developer Preview. Ends an active conference (if there is one).
Declaration
public virtual void EndActiveConference(EndActiveConferenceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
EndActiveConferenceRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = SpacesServiceClient.Create();
// Initialize request argument(s)
EndActiveConferenceRequest request = new EndActiveConferenceRequest
{
SpaceName = SpaceName.FromSpace("[SPACE]"),
};
// Make the request
spacesServiceClient.EndActiveConference(request);
EndActiveConference(SpaceName, CallSettings)
Developer Preview. Ends an active conference (if there is one).
Declaration
public virtual void EndActiveConference(SpaceName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
SpaceName | name | Required. Resource name of the space. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = SpacesServiceClient.Create();
// Initialize request argument(s)
SpaceName name = SpaceName.FromSpace("[SPACE]");
// Make the request
spacesServiceClient.EndActiveConference(name);
EndActiveConference(string, CallSettings)
Developer Preview. Ends an active conference (if there is one).
Declaration
public virtual void EndActiveConference(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Resource name of the space. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = SpacesServiceClient.Create();
// Initialize request argument(s)
string name = "spaces/[SPACE]";
// Make the request
spacesServiceClient.EndActiveConference(name);
EndActiveConferenceAsync(EndActiveConferenceRequest, CallSettings)
Developer Preview. Ends an active conference (if there is one).
Declaration
public virtual Task EndActiveConferenceAsync(EndActiveConferenceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
EndActiveConferenceRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
EndActiveConferenceRequest request = new EndActiveConferenceRequest
{
SpaceName = SpaceName.FromSpace("[SPACE]"),
};
// Make the request
await spacesServiceClient.EndActiveConferenceAsync(request);
EndActiveConferenceAsync(EndActiveConferenceRequest, CancellationToken)
Developer Preview. Ends an active conference (if there is one).
Declaration
public virtual Task EndActiveConferenceAsync(EndActiveConferenceRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
EndActiveConferenceRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
EndActiveConferenceRequest request = new EndActiveConferenceRequest
{
SpaceName = SpaceName.FromSpace("[SPACE]"),
};
// Make the request
await spacesServiceClient.EndActiveConferenceAsync(request);
EndActiveConferenceAsync(SpaceName, CallSettings)
Developer Preview. Ends an active conference (if there is one).
Declaration
public virtual Task EndActiveConferenceAsync(SpaceName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
SpaceName | name | Required. Resource name of the space. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
SpaceName name = SpaceName.FromSpace("[SPACE]");
// Make the request
await spacesServiceClient.EndActiveConferenceAsync(name);
EndActiveConferenceAsync(SpaceName, CancellationToken)
Developer Preview. Ends an active conference (if there is one).
Declaration
public virtual Task EndActiveConferenceAsync(SpaceName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
SpaceName | name | Required. Resource name of the space. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
SpaceName name = SpaceName.FromSpace("[SPACE]");
// Make the request
await spacesServiceClient.EndActiveConferenceAsync(name);
EndActiveConferenceAsync(string, CallSettings)
Developer Preview. Ends an active conference (if there is one).
Declaration
public virtual Task EndActiveConferenceAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Resource name of the space. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "spaces/[SPACE]";
// Make the request
await spacesServiceClient.EndActiveConferenceAsync(name);
EndActiveConferenceAsync(string, CancellationToken)
Developer Preview. Ends an active conference (if there is one).
Declaration
public virtual Task EndActiveConferenceAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Resource name of the space. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "spaces/[SPACE]";
// Make the request
await spacesServiceClient.EndActiveConferenceAsync(name);
GetSpace(GetSpaceRequest, CallSettings)
Developer Preview.
Gets a space by space_id
or meeting_code
.
Declaration
public virtual Space GetSpace(GetSpaceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetSpaceRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Space | The RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = SpacesServiceClient.Create();
// Initialize request argument(s)
GetSpaceRequest request = new GetSpaceRequest
{
SpaceName = SpaceName.FromSpace("[SPACE]"),
};
// Make the request
Space response = spacesServiceClient.GetSpace(request);
GetSpace(SpaceName, CallSettings)
Developer Preview.
Gets a space by space_id
or meeting_code
.
Declaration
public virtual Space GetSpace(SpaceName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
SpaceName | name | Required. Resource name of the space. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Space | The RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = SpacesServiceClient.Create();
// Initialize request argument(s)
SpaceName name = SpaceName.FromSpace("[SPACE]");
// Make the request
Space response = spacesServiceClient.GetSpace(name);
GetSpace(string, CallSettings)
Developer Preview.
Gets a space by space_id
or meeting_code
.
Declaration
public virtual Space GetSpace(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Resource name of the space. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Space | The RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = SpacesServiceClient.Create();
// Initialize request argument(s)
string name = "spaces/[SPACE]";
// Make the request
Space response = spacesServiceClient.GetSpace(name);
GetSpaceAsync(GetSpaceRequest, CallSettings)
Developer Preview.
Gets a space by space_id
or meeting_code
.
Declaration
public virtual Task<Space> GetSpaceAsync(GetSpaceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetSpaceRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Space> | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
GetSpaceRequest request = new GetSpaceRequest
{
SpaceName = SpaceName.FromSpace("[SPACE]"),
};
// Make the request
Space response = await spacesServiceClient.GetSpaceAsync(request);
GetSpaceAsync(GetSpaceRequest, CancellationToken)
Developer Preview.
Gets a space by space_id
or meeting_code
.
Declaration
public virtual Task<Space> GetSpaceAsync(GetSpaceRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
GetSpaceRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<Space> | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
GetSpaceRequest request = new GetSpaceRequest
{
SpaceName = SpaceName.FromSpace("[SPACE]"),
};
// Make the request
Space response = await spacesServiceClient.GetSpaceAsync(request);
GetSpaceAsync(SpaceName, CallSettings)
Developer Preview.
Gets a space by space_id
or meeting_code
.
Declaration
public virtual Task<Space> GetSpaceAsync(SpaceName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
SpaceName | name | Required. Resource name of the space. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Space> | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
SpaceName name = SpaceName.FromSpace("[SPACE]");
// Make the request
Space response = await spacesServiceClient.GetSpaceAsync(name);
GetSpaceAsync(SpaceName, CancellationToken)
Developer Preview.
Gets a space by space_id
or meeting_code
.
Declaration
public virtual Task<Space> GetSpaceAsync(SpaceName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
SpaceName | name | Required. Resource name of the space. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<Space> | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
SpaceName name = SpaceName.FromSpace("[SPACE]");
// Make the request
Space response = await spacesServiceClient.GetSpaceAsync(name);
GetSpaceAsync(string, CallSettings)
Developer Preview.
Gets a space by space_id
or meeting_code
.
Declaration
public virtual Task<Space> GetSpaceAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Resource name of the space. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Space> | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "spaces/[SPACE]";
// Make the request
Space response = await spacesServiceClient.GetSpaceAsync(name);
GetSpaceAsync(string, CancellationToken)
Developer Preview.
Gets a space by space_id
or meeting_code
.
Declaration
public virtual Task<Space> GetSpaceAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Resource name of the space. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<Space> | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "spaces/[SPACE]";
// Make the request
Space response = await spacesServiceClient.GetSpaceAsync(name);
ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Declaration
public static Task ShutdownDefaultChannelsAsync()
Returns
Type | Description |
---|---|
Task | A task representing the asynchronous shutdown operation. |
Remarks
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
UpdateSpace(Space, FieldMask, CallSettings)
Developer Preview. Updates a space.
Declaration
public virtual Space UpdateSpace(Space space, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Space | space | Required. Space to be updated. |
FieldMask | updateMask | Optional. Field mask used to specify the fields to be updated in the space. If update_mask isn't provided, it defaults to '*' and updates all fields provided in the request, including deleting fields not set in the request. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Space | The RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = SpacesServiceClient.Create();
// Initialize request argument(s)
Space space = new Space();
FieldMask updateMask = new FieldMask();
// Make the request
Space response = spacesServiceClient.UpdateSpace(space, updateMask);
UpdateSpace(UpdateSpaceRequest, CallSettings)
Developer Preview. Updates a space.
Declaration
public virtual Space UpdateSpace(UpdateSpaceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateSpaceRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Space | The RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = SpacesServiceClient.Create();
// Initialize request argument(s)
UpdateSpaceRequest request = new UpdateSpaceRequest
{
Space = new Space(),
UpdateMask = new FieldMask(),
};
// Make the request
Space response = spacesServiceClient.UpdateSpace(request);
UpdateSpaceAsync(Space, FieldMask, CallSettings)
Developer Preview. Updates a space.
Declaration
public virtual Task<Space> UpdateSpaceAsync(Space space, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Space | space | Required. Space to be updated. |
FieldMask | updateMask | Optional. Field mask used to specify the fields to be updated in the space. If update_mask isn't provided, it defaults to '*' and updates all fields provided in the request, including deleting fields not set in the request. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Space> | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
Space space = new Space();
FieldMask updateMask = new FieldMask();
// Make the request
Space response = await spacesServiceClient.UpdateSpaceAsync(space, updateMask);
UpdateSpaceAsync(Space, FieldMask, CancellationToken)
Developer Preview. Updates a space.
Declaration
public virtual Task<Space> UpdateSpaceAsync(Space space, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Space | space | Required. Space to be updated. |
FieldMask | updateMask | Optional. Field mask used to specify the fields to be updated in the space. If update_mask isn't provided, it defaults to '*' and updates all fields provided in the request, including deleting fields not set in the request. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<Space> | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
Space space = new Space();
FieldMask updateMask = new FieldMask();
// Make the request
Space response = await spacesServiceClient.UpdateSpaceAsync(space, updateMask);
UpdateSpaceAsync(UpdateSpaceRequest, CallSettings)
Developer Preview. Updates a space.
Declaration
public virtual Task<Space> UpdateSpaceAsync(UpdateSpaceRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateSpaceRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Space> | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSpaceRequest request = new UpdateSpaceRequest
{
Space = new Space(),
UpdateMask = new FieldMask(),
};
// Make the request
Space response = await spacesServiceClient.UpdateSpaceAsync(request);
UpdateSpaceAsync(UpdateSpaceRequest, CancellationToken)
Developer Preview. Updates a space.
Declaration
public virtual Task<Space> UpdateSpaceAsync(UpdateSpaceRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
UpdateSpaceRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<Space> | A Task containing the RPC response. |
Sample code
// Create client
SpacesServiceClient spacesServiceClient = await SpacesServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSpaceRequest request = new UpdateSpaceRequest
{
Space = new Space(),
UpdateMask = new FieldMask(),
};
// Make the request
Space response = await spacesServiceClient.UpdateSpaceAsync(request);