Class AlertsResource
The "alerts" collection of methods.
Inherited Members
Namespace: Google.Apis.AlertCenter.v1beta1
Assembly: Google.Apis.AlertCenter.v1beta1.dll
Syntax
public class AlertsResource
Constructors
AlertsResource(IClientService)
Constructs a new resource.
Declaration
public AlertsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Feedback
Gets the Feedback resource.
Declaration
public virtual AlertsResource.FeedbackResource Feedback { get; }
Property Value
Type | Description |
---|---|
AlertsResource.FeedbackResource |
Methods
BatchDelete(BatchDeleteAlertsRequest)
Performs batch delete operation on alerts.
Declaration
public virtual AlertsResource.BatchDeleteRequest BatchDelete(BatchDeleteAlertsRequest body)
Parameters
Type | Name | Description |
---|---|---|
BatchDeleteAlertsRequest | body | The body of the request. |
Returns
Type | Description |
---|---|
AlertsResource.BatchDeleteRequest |
BatchUndelete(BatchUndeleteAlertsRequest)
Performs batch undelete operation on alerts.
Declaration
public virtual AlertsResource.BatchUndeleteRequest BatchUndelete(BatchUndeleteAlertsRequest body)
Parameters
Type | Name | Description |
---|---|---|
BatchUndeleteAlertsRequest | body | The body of the request. |
Returns
Type | Description |
---|---|
AlertsResource.BatchUndeleteRequest |
Delete(string)
Marks the specified alert for deletion. An alert that has been marked for deletion is removed from Alert
Center after 30 days. Marking an alert for deletion has no effect on an alert which has already been marked
for deletion. Attempting to mark a nonexistent alert for deletion results in a NOT_FOUND
error.
Declaration
public virtual AlertsResource.DeleteRequest Delete(string alertId)
Parameters
Type | Name | Description |
---|---|---|
string | alertId | Required. The identifier of the alert to delete. |
Returns
Type | Description |
---|---|
AlertsResource.DeleteRequest |
Get(string)
Gets the specified alert. Attempting to get a nonexistent alert returns NOT_FOUND
error.
Declaration
public virtual AlertsResource.GetRequest Get(string alertId)
Parameters
Type | Name | Description |
---|---|---|
string | alertId | Required. The identifier of the alert to retrieve. |
Returns
Type | Description |
---|---|
AlertsResource.GetRequest |
GetMetadata(string)
Returns the metadata of an alert. Attempting to get metadata for a non-existent alert returns NOT_FOUND
error.
Declaration
public virtual AlertsResource.GetMetadataRequest GetMetadata(string alertId)
Parameters
Type | Name | Description |
---|---|---|
string | alertId | Required. The identifier of the alert this metadata belongs to. |
Returns
Type | Description |
---|---|
AlertsResource.GetMetadataRequest |
List()
Lists the alerts.
Declaration
public virtual AlertsResource.ListRequest List()
Returns
Type | Description |
---|---|
AlertsResource.ListRequest |
Undelete(UndeleteAlertRequest, string)
Restores, or "undeletes", an alert that was marked for deletion within the past 30 days. Attempting to
undelete an alert which was marked for deletion over 30 days ago (which has been removed from the Alert
Center database) or a nonexistent alert returns a NOT_FOUND
error. Attempting to undelete an alert which
has not been marked for deletion has no effect.
Declaration
public virtual AlertsResource.UndeleteRequest Undelete(UndeleteAlertRequest body, string alertId)
Parameters
Type | Name | Description |
---|---|---|
UndeleteAlertRequest | body | The body of the request. |
string | alertId | Required. The identifier of the alert to undelete. |
Returns
Type | Description |
---|---|
AlertsResource.UndeleteRequest |