Class ProjectsResource.UndeleteRequest
Restores the Project identified by the specified project_id (for example, my-project-123). You can only
use this method for a Project that has a lifecycle state of DELETE_REQUESTED. After deletion starts, the
Project cannot be restored. The caller must have undelete permissions for this Project.
Inheritance
ProjectsResource.UndeleteRequest
Inherited Members
Namespace: Google.Apis.CloudResourceManager.v1beta1
Assembly: Google.Apis.CloudResourceManager.v1beta1.dll
Syntax
public class ProjectsResource.UndeleteRequest : CloudResourceManagerBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, IClientServiceRequest
Constructors
UndeleteRequest(IClientService, UndeleteProjectRequest, string)
Constructs a new Undelete request.
Declaration
public UndeleteRequest(IClientService service, UndeleteProjectRequest body, string projectId)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| UndeleteProjectRequest | body | |
| string | projectId |
Properties
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
ProjectId
Required. The project ID (for example, foo-bar-123).
Declaration
[RequestParameter("projectId", RequestParameterType.Path)]
public virtual string ProjectId { get; }
Property Value
| Type | Description |
|---|---|
| string |
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()