Class ProjectsResource.UndeleteRequest
Restores the project identified by the specified name
(for example, projects/415104041262
). 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 resourcemanager.projects.undelete
permission for this
project.
Inheritance
ProjectsResource.UndeleteRequest
Inherited Members
Namespace: Google.Apis.CloudResourceManager.v3
Assembly: Google.Apis.CloudResourceManager.v3.dll
Syntax
public class ProjectsResource.UndeleteRequest : CloudResourceManagerBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
UndeleteRequest(IClientService, UndeleteProjectRequest, string)
Constructs a new Undelete request.
Declaration
public UndeleteRequest(IClientService service, UndeleteProjectRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
UndeleteProjectRequest | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudResourceManager.v3.Data.Operation>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudResourceManager.v3.Data.Operation>.MethodName
Name
Required. The name of the project (for example, projects/415104041262
). Required.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudResourceManager.v3.Data.Operation>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudResourceManager.v3.Data.Operation>.GetBody()
InitParameters()
Initializes Undelete parameter list.
Declaration
protected override void InitParameters()