Class AnnouncementClient
Service client instance for Announcement.
Implements
Inherited Members
Namespace: Oci.AnnouncementsService
Assembly: OCI.DotNetSDK.Announcementsservice.dll
Syntax
public class AnnouncementClient : RegionalClientBase, IDisposable
Constructors
AnnouncementClient(IBasicAuthenticationDetailsProvider, ClientConfiguration, string)
Creates a new service instance using the given authentication provider and/or client configuration and/or endpoint. A client configuration can also be provided optionally to adjust REST client behaviors.
Declaration
public AnnouncementClient(IBasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration clientConfiguration = null, string endpoint = null)
Parameters
Type | Name | Description |
---|---|---|
IBasicAuthenticationDetailsProvider | authenticationDetailsProvider | The authentication details provider. Required. |
ClientConfiguration | clientConfiguration | The client configuration that contains settings to adjust REST client behaviors. Optional. |
string | endpoint | The endpoint of the service. If not provided and the client is a regional client, the endpoint will be constructed based on region information. Optional. |
Properties
Paginators
Declaration
public AnnouncementPaginators Paginators { get; }
Property Value
Type | Description |
---|---|
AnnouncementPaginators |
Waiters
Declaration
public AnnouncementWaiters Waiters { get; }
Property Value
Type | Description |
---|---|
AnnouncementWaiters |
Methods
GetAnnouncement(GetAnnouncementRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Gets the details of a specific announcement. <br/> This call is subject to an Announcements limit that applies to the total number of requests across all read or write operations. Announcements might throttle this call to reject an otherwise valid request when the total rate of operations exceeds 20 requests per second for a given user. The service might also throttle this call to reject an otherwise valid request when the total rate of operations exceeds 100 requests per second for a given tenancy.
Declaration
public Task<GetAnnouncementResponse> GetAnnouncement(GetAnnouncementRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
GetAnnouncementRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<GetAnnouncementResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use GetAnnouncement API.
GetAnnouncementCompartment(GetAnnouncementCompartmentRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Gets the compartment details of an announcement.
Declaration
public Task<GetAnnouncementCompartmentResponse> GetAnnouncementCompartment(GetAnnouncementCompartmentRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
GetAnnouncementCompartmentRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<GetAnnouncementCompartmentResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use GetAnnouncementCompartment API.
GetAnnouncementUserStatus(GetAnnouncementUserStatusRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Gets information about whether a specific announcement was acknowledged by a user. <br/> This call is subject to an Announcements limit that applies to the total number of requests across all read or write operations. Announcements might throttle this call to reject an otherwise valid request when the total rate of operations exceeds 20 requests per second for a given user. The service might also throttle this call to reject an otherwise valid request when the total rate of operations exceeds 100 requests per second for a given tenancy.
Declaration
public Task<GetAnnouncementUserStatusResponse> GetAnnouncementUserStatus(GetAnnouncementUserStatusRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
GetAnnouncementUserStatusRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<GetAnnouncementUserStatusResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use GetAnnouncementUserStatus API.
ListAnnouncements(ListAnnouncementsRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Gets a list of announcements for the current tenancy. <br/> This call is subject to an Announcements limit that applies to the total number of requests across all read or write operations. Announcements might throttle this call to reject an otherwise valid request when the total rate of operations exceeds 20 requests per second for a given user. The service might also throttle this call to reject an otherwise valid request when the total rate of operations exceeds 100 requests per second for a given tenancy.
Declaration
public Task<ListAnnouncementsResponse> ListAnnouncements(ListAnnouncementsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ListAnnouncementsRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<ListAnnouncementsResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ListAnnouncements API.
UpdateAnnouncementUserStatus(UpdateAnnouncementUserStatusRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Updates the status of the specified announcement with regard to whether it has been marked as read. <br/> This call is subject to an Announcements limit that applies to the total number of requests across all read or write operations. Announcements might throttle this call to reject an otherwise valid request when the total rate of operations exceeds 20 requests per second for a given user. The service might also throttle this call to reject an otherwise valid request when the total rate of operations exceeds 100 requests per second for a given tenancy.
Declaration
public Task<UpdateAnnouncementUserStatusResponse> UpdateAnnouncementUserStatus(UpdateAnnouncementUserStatusRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
UpdateAnnouncementUserStatusRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<UpdateAnnouncementUserStatusResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use UpdateAnnouncementUserStatus API.