Class TagGroupClient
- Namespace
- Crews.PlanningCenter.Api.Calendar.V2018_08_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the TagGroup resource.
public class TagGroupClient : SingletonResourceClient<TagGroup, TagGroupResource, TagGroupResponse>
- Inheritance
-
TagGroupClient
- Inherited Members
Constructors
TagGroupClient(HttpClient, Uri)
Client for interacting with the TagGroup resource.
public TagGroupClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Events
Associated Events.
public PaginatedEventClient Events { get; }
Property Value
Tags
Associated Tags.
public PaginatedTagClient Tags { get; }
Property Value
Methods
DeleteAsync(CancellationToken)
Deletes the TagGroup resource asynchronously.
public Task DeleteAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task
A task representing the asynchronous delete operation.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
GetAsync(CancellationToken)
Fetches the TagGroup resource asynchronously.
public Task<TagGroupResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<TagGroupResponse>
A task representing the asynchronous operation, containing the TagGroup resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeEvents()
Include related Events resources in the response.
public TagGroupClient IncludeEvents()
Returns
IncludeTags()
Include related Tags resources in the response.
public TagGroupClient IncludeTags()
Returns
PatchAsync(TagGroup, CancellationToken)
Updates an existing TagGroup resource asynchronously.
public Task<TagGroupResponse> PatchAsync(TagGroup resource, CancellationToken cancellationToken = default)
Parameters
resourceTagGroupThe resource data to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<TagGroupResponse>
A task representing the asynchronous operation, containing the updated TagGroup resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PatchAsync(JsonApiDocument<TagGroupResource>, CancellationToken)
Updates an existing TagGroup resource asynchronously.
public Task<TagGroupResponse> PatchAsync(JsonApiDocument<TagGroupResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<TagGroupResource>The JSON:API document to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<TagGroupResponse>
A task representing the asynchronous operation, containing the updated TagGroup resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.