Class SpacesServiceClient
SpacesService client wrapper, for convenient use.
Namespace: Google.Apps.Meet.V2
Assembly: Google.Apps.Meet.V2.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:
- https://www.googleapis.com/auth/meetings.space.created
- https://www.googleapis.com/auth/meetings.space.readonly
- https://www.googleapis.com/auth/meetings.space.settings
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)
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)
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)
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)
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)
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)
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)
Ends an active conference (if there's one).
For an example, see End active conference.
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)
Ends an active conference (if there's one).
For an example, see End active conference.
Declaration
public virtual void EndActiveConference(SpaceName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| SpaceName | name | Required. Resource name of the space. Format:
For more information, see How Meet identifies a meeting 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)
Ends an active conference (if there's one).
For an example, see End active conference.
Declaration
public virtual void EndActiveConference(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. Resource name of the space. Format:
For more information, see How Meet identifies a meeting 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)
Ends an active conference (if there's one).
For an example, see End active conference.
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)
Ends an active conference (if there's one).
For an example, see End active conference.
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)
Ends an active conference (if there's one).
For an example, see End active conference.
Declaration
public virtual Task EndActiveConferenceAsync(SpaceName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| SpaceName | name | Required. Resource name of the space. Format:
For more information, see How Meet identifies a meeting 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)
Ends an active conference (if there's one).
For an example, see End active conference.
Declaration
public virtual Task EndActiveConferenceAsync(SpaceName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| SpaceName | name | Required. Resource name of the space. Format:
For more information, see How Meet identifies a meeting 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)
Ends an active conference (if there's one).
For an example, see End active conference.
Declaration
public virtual Task EndActiveConferenceAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. Resource name of the space. Format:
For more information, see How Meet identifies a meeting 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)
Ends an active conference (if there's one).
For an example, see End active conference.
Declaration
public virtual Task EndActiveConferenceAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. Resource name of the space. Format:
For more information, see How Meet identifies a meeting 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)
Gets details about a meeting space.
For an example, see Get a meeting space.
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)
Gets details about a meeting space.
For an example, see Get a meeting space.
Declaration
public virtual Space GetSpace(SpaceName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| SpaceName | name | Required. Resource name of the space. Format:
A For more information, see How Meet identifies a meeting 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)
Gets details about a meeting space.
For an example, see Get a meeting space.
Declaration
public virtual Space GetSpace(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. Resource name of the space. Format:
A For more information, see How Meet identifies a meeting 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)
Gets details about a meeting space.
For an example, see Get a meeting space.
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)
Gets details about a meeting space.
For an example, see Get a meeting space.
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)
Gets details about a meeting space.
For an example, see Get a meeting space.
Declaration
public virtual Task<Space> GetSpaceAsync(SpaceName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| SpaceName | name | Required. Resource name of the space. Format:
A For more information, see How Meet identifies a meeting 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)
Gets details about a meeting space.
For an example, see Get a meeting space.
Declaration
public virtual Task<Space> GetSpaceAsync(SpaceName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| SpaceName | name | Required. Resource name of the space. Format:
A For more information, see How Meet identifies a meeting 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)
Gets details about a meeting space.
For an example, see Get a meeting space.
Declaration
public virtual Task<Space> GetSpaceAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. Resource name of the space. Format:
A For more information, see How Meet identifies a meeting 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)
Gets details about a meeting space.
For an example, see Get a meeting space.
Declaration
public virtual Task<Space> GetSpaceAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. Resource name of the space. Format:
A For more information, see How Meet identifies a meeting 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)
Updates details about a meeting space.
For an example, see Update a meeting 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(not set, set with empty paths, or only has "" as paths), it defaults to update all fields provided with values in the request. Using "*" as update_mask will update all fields, 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)
Updates details about a meeting space.
For an example, see Update a meeting 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)
Updates details about a meeting space.
For an example, see Update a meeting 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(not set, set with empty paths, or only has "" as paths), it defaults to update all fields provided with values in the request. Using "*" as update_mask will update all fields, 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)
Updates details about a meeting space.
For an example, see Update a meeting 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(not set, set with empty paths, or only has "" as paths), it defaults to update all fields provided with values in the request. Using "*" as update_mask will update all fields, 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)
Updates details about a meeting space.
For an example, see Update a meeting 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)
Updates details about a meeting space.
For an example, see Update a meeting 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);