Class protos.google.cloud.resourcemanager.v3.Projects (4.3.0)

Represents a Projects

Inheritance

$protobuf.rpc.Service > protos.google.cloud.resourcemanager.v3.Projects

Package

@google-cloud/resource-manager

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new Projects service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Projects;

Creates new Projects service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
Projects

RPC service. Useful where requests and/or responses are streamed.

createProject(request, callback)

public createProject(request: google.cloud.resourcemanager.v3.ICreateProjectRequest, callback: google.cloud.resourcemanager.v3.Projects.CreateProjectCallback): void;

Calls CreateProject.

Parameters
NameDescription
request ICreateProjectRequest

CreateProjectRequest message or plain object

callback google.cloud.resourcemanager.v3.Projects.CreateProjectCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

createProject(request)

public createProject(request: google.cloud.resourcemanager.v3.ICreateProjectRequest): Promise<google.longrunning.Operation>;

Calls CreateProject.

Parameter
NameDescription
request ICreateProjectRequest

CreateProjectRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteProject(request, callback)

public deleteProject(request: google.cloud.resourcemanager.v3.IDeleteProjectRequest, callback: google.cloud.resourcemanager.v3.Projects.DeleteProjectCallback): void;

Calls DeleteProject.

Parameters
NameDescription
request IDeleteProjectRequest

DeleteProjectRequest message or plain object

callback google.cloud.resourcemanager.v3.Projects.DeleteProjectCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

deleteProject(request)

public deleteProject(request: google.cloud.resourcemanager.v3.IDeleteProjectRequest): Promise<google.longrunning.Operation>;

Calls DeleteProject.

Parameter
NameDescription
request IDeleteProjectRequest

DeleteProjectRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getIamPolicy(request, callback)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.cloud.resourcemanager.v3.Projects.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
NameDescription
request IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

callback google.cloud.resourcemanager.v3.Projects.GetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns
TypeDescription
void

getIamPolicy(request)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls GetIamPolicy.

Parameter
NameDescription
request IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.Policy>

Promise

getProject(request, callback)

public getProject(request: google.cloud.resourcemanager.v3.IGetProjectRequest, callback: google.cloud.resourcemanager.v3.Projects.GetProjectCallback): void;

Calls GetProject.

Parameters
NameDescription
request IGetProjectRequest

GetProjectRequest message or plain object

callback google.cloud.resourcemanager.v3.Projects.GetProjectCallback

Node-style callback called with the error, if any, and Project

Returns
TypeDescription
void

getProject(request)

public getProject(request: google.cloud.resourcemanager.v3.IGetProjectRequest): Promise<google.cloud.resourcemanager.v3.Project>;

Calls GetProject.

Parameter
NameDescription
request IGetProjectRequest

GetProjectRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.resourcemanager.v3.Project>

Promise

listProjects(request, callback)

public listProjects(request: google.cloud.resourcemanager.v3.IListProjectsRequest, callback: google.cloud.resourcemanager.v3.Projects.ListProjectsCallback): void;

Calls ListProjects.

Parameters
NameDescription
request IListProjectsRequest

ListProjectsRequest message or plain object

callback google.cloud.resourcemanager.v3.Projects.ListProjectsCallback

Node-style callback called with the error, if any, and ListProjectsResponse

Returns
TypeDescription
void

listProjects(request)

public listProjects(request: google.cloud.resourcemanager.v3.IListProjectsRequest): Promise<google.cloud.resourcemanager.v3.ListProjectsResponse>;

Calls ListProjects.

Parameter
NameDescription
request IListProjectsRequest

ListProjectsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.resourcemanager.v3.ListProjectsResponse>

Promise

moveProject(request, callback)

public moveProject(request: google.cloud.resourcemanager.v3.IMoveProjectRequest, callback: google.cloud.resourcemanager.v3.Projects.MoveProjectCallback): void;

Calls MoveProject.

Parameters
NameDescription
request IMoveProjectRequest

MoveProjectRequest message or plain object

callback google.cloud.resourcemanager.v3.Projects.MoveProjectCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

moveProject(request)

public moveProject(request: google.cloud.resourcemanager.v3.IMoveProjectRequest): Promise<google.longrunning.Operation>;

Calls MoveProject.

Parameter
NameDescription
request IMoveProjectRequest

MoveProjectRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

searchProjects(request, callback)

public searchProjects(request: google.cloud.resourcemanager.v3.ISearchProjectsRequest, callback: google.cloud.resourcemanager.v3.Projects.SearchProjectsCallback): void;

Calls SearchProjects.

Parameters
NameDescription
request ISearchProjectsRequest

SearchProjectsRequest message or plain object

callback google.cloud.resourcemanager.v3.Projects.SearchProjectsCallback

Node-style callback called with the error, if any, and SearchProjectsResponse

Returns
TypeDescription
void

searchProjects(request)

public searchProjects(request: google.cloud.resourcemanager.v3.ISearchProjectsRequest): Promise<google.cloud.resourcemanager.v3.SearchProjectsResponse>;

Calls SearchProjects.

Parameter
NameDescription
request ISearchProjectsRequest

SearchProjectsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.resourcemanager.v3.SearchProjectsResponse>

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.cloud.resourcemanager.v3.Projects.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
NameDescription
request ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

callback google.cloud.resourcemanager.v3.Projects.SetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns
TypeDescription
void

setIamPolicy(request)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls SetIamPolicy.

Parameter
NameDescription
request ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.Policy>

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.cloud.resourcemanager.v3.Projects.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
NameDescription
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

callback google.cloud.resourcemanager.v3.Projects.TestIamPermissionsCallback

Node-style callback called with the error, if any, and TestIamPermissionsResponse

Returns
TypeDescription
void

testIamPermissions(request)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>;

Calls TestIamPermissions.

Parameter
NameDescription
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.TestIamPermissionsResponse>

Promise

undeleteProject(request, callback)

public undeleteProject(request: google.cloud.resourcemanager.v3.IUndeleteProjectRequest, callback: google.cloud.resourcemanager.v3.Projects.UndeleteProjectCallback): void;

Calls UndeleteProject.

Parameters
NameDescription
request IUndeleteProjectRequest

UndeleteProjectRequest message or plain object

callback google.cloud.resourcemanager.v3.Projects.UndeleteProjectCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

undeleteProject(request)

public undeleteProject(request: google.cloud.resourcemanager.v3.IUndeleteProjectRequest): Promise<google.longrunning.Operation>;

Calls UndeleteProject.

Parameter
NameDescription
request IUndeleteProjectRequest

UndeleteProjectRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

updateProject(request, callback)

public updateProject(request: google.cloud.resourcemanager.v3.IUpdateProjectRequest, callback: google.cloud.resourcemanager.v3.Projects.UpdateProjectCallback): void;

Calls UpdateProject.

Parameters
NameDescription
request IUpdateProjectRequest

UpdateProjectRequest message or plain object

callback google.cloud.resourcemanager.v3.Projects.UpdateProjectCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

updateProject(request)

public updateProject(request: google.cloud.resourcemanager.v3.IUpdateProjectRequest): Promise<google.longrunning.Operation>;

Calls UpdateProject.

Parameter
NameDescription
request IUpdateProjectRequest

UpdateProjectRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise