Class AlertsResource.UndeleteRequest
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.
Inheritance
AlertsResource.UndeleteRequest
Inherited Members
Namespace: Google.Apis.AlertCenter.v1beta1
Assembly: Google.Apis.AlertCenter.v1beta1.dll
Syntax
public class AlertsResource.UndeleteRequest : AlertCenterBaseServiceRequest<Alert>, IClientServiceRequest<Alert>, IClientServiceRequest
Constructors
UndeleteRequest(IClientService, UndeleteAlertRequest, string)
Constructs a new Undelete request.
Declaration
public UndeleteRequest(IClientService service, UndeleteAlertRequest body, string alertId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
UndeleteAlertRequest | body | |
string | alertId |
Properties
AlertId
Required. The identifier of the alert to undelete.
Declaration
[RequestParameter("alertId", RequestParameterType.Path)]
public virtual string AlertId { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Undelete parameter list.
Declaration
protected override void InitParameters()