Class ProjectsResource.MoveRequest
Move a project to another place in your resource hierarchy, under a new resource parent. Returns an
operation which can be used to track the process of the project move workflow. Upon success, the
Operation.response field will be populated with the moved project. The caller must have
resourcemanager.projects.move permission on the project, on the project's current and proposed new parent.
If project has no current parent, or it currently does not have an associated organization resource, you
will also need the resourcemanager.projects.setIamPolicy permission in the project.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudResourceManager.v3
Assembly: Google.Apis.CloudResourceManager.v3.dll
Syntax
public class ProjectsResource.MoveRequest : CloudResourceManagerBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
MoveRequest(IClientService, MoveProjectRequest, string)
Constructs a new Move request.
Declaration
public MoveRequest(IClientService service, MoveProjectRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| MoveProjectRequest | body | |
| string | name |
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
Name
Required. The name of the project to move.
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
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Move parameter list.
Declaration
protected override void InitParameters()