Class protos.google.cloud.compute.v1.NodeTemplates

Represents a NodeTemplates

Inheritance

$protobuf.rpc.Service > protos.google.cloud.compute.v1.NodeTemplates

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new NodeTemplates service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

aggregatedList(request, callback)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest, callback: google.cloud.compute.v1.NodeTemplates.AggregatedListCallback): void;

Calls AggregatedList.

Parameters
NameDescription
request IAggregatedListNodeTemplatesRequest

AggregatedListNodeTemplatesRequest message or plain object

callback google.cloud.compute.v1.NodeTemplates.AggregatedListCallback

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

Returns
TypeDescription
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest): Promise<google.cloud.compute.v1.NodeTemplateAggregatedList>;

Calls AggregatedList.

Parameter
NameDescription
request IAggregatedListNodeTemplatesRequest

AggregatedListNodeTemplatesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.NodeTemplateAggregatedList>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

Creates new NodeTemplates 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
NodeTemplates

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

delete(request, callback)

public delete(request: google.cloud.compute.v1.IDeleteNodeTemplateRequest, callback: google.cloud.compute.v1.NodeTemplates.DeleteCallback): void;

Calls Delete.

Parameters
NameDescription
request IDeleteNodeTemplateRequest

DeleteNodeTemplateRequest message or plain object

callback google.cloud.compute.v1.NodeTemplates.DeleteCallback

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

Returns
TypeDescription
void

delete(request)

public delete(request: google.cloud.compute.v1.IDeleteNodeTemplateRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Delete.

Parameter
NameDescription
request IDeleteNodeTemplateRequest

DeleteNodeTemplateRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

get(request, callback)

public get(request: google.cloud.compute.v1.IGetNodeTemplateRequest, callback: google.cloud.compute.v1.NodeTemplates.GetCallback): void;

Calls Get.

Parameters
NameDescription
request IGetNodeTemplateRequest

GetNodeTemplateRequest message or plain object

callback google.cloud.compute.v1.NodeTemplates.GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetNodeTemplateRequest): Promise<google.cloud.compute.v1.NodeTemplate>;

Calls Get.

Parameter
NameDescription
request IGetNodeTemplateRequest

GetNodeTemplateRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.NodeTemplate>

Promise

getIamPolicy(request, callback)

public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyNodeTemplateRequest, callback: google.cloud.compute.v1.NodeTemplates.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
NameDescription
request IGetIamPolicyNodeTemplateRequest

GetIamPolicyNodeTemplateRequest message or plain object

callback google.cloud.compute.v1.NodeTemplates.GetIamPolicyCallback

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

Returns
TypeDescription
void

getIamPolicy(request)

public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyNodeTemplateRequest): Promise<google.cloud.compute.v1.Policy>;

Calls GetIamPolicy.

Parameter
NameDescription
request IGetIamPolicyNodeTemplateRequest

GetIamPolicyNodeTemplateRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Policy>

Promise

insert(request, callback)

public insert(request: google.cloud.compute.v1.IInsertNodeTemplateRequest, callback: google.cloud.compute.v1.NodeTemplates.InsertCallback): void;

Calls Insert.

Parameters
NameDescription
request IInsertNodeTemplateRequest

InsertNodeTemplateRequest message or plain object

callback google.cloud.compute.v1.NodeTemplates.InsertCallback

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

Returns
TypeDescription
void

insert(request)

public insert(request: google.cloud.compute.v1.IInsertNodeTemplateRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Insert.

Parameter
NameDescription
request IInsertNodeTemplateRequest

InsertNodeTemplateRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

list(request, callback)

public list(request: google.cloud.compute.v1.IListNodeTemplatesRequest, callback: google.cloud.compute.v1.NodeTemplates.ListCallback): void;

Calls List.

Parameters
NameDescription
request IListNodeTemplatesRequest

ListNodeTemplatesRequest message or plain object

callback google.cloud.compute.v1.NodeTemplates.ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListNodeTemplatesRequest): Promise<google.cloud.compute.v1.NodeTemplateList>;

Calls List.

Parameter
NameDescription
request IListNodeTemplatesRequest

ListNodeTemplatesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.NodeTemplateList>

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyNodeTemplateRequest, callback: google.cloud.compute.v1.NodeTemplates.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
NameDescription
request ISetIamPolicyNodeTemplateRequest

SetIamPolicyNodeTemplateRequest message or plain object

callback google.cloud.compute.v1.NodeTemplates.SetIamPolicyCallback

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

Returns
TypeDescription
void

setIamPolicy(request)

public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyNodeTemplateRequest): Promise<google.cloud.compute.v1.Policy>;

Calls SetIamPolicy.

Parameter
NameDescription
request ISetIamPolicyNodeTemplateRequest

SetIamPolicyNodeTemplateRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Policy>

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsNodeTemplateRequest, callback: google.cloud.compute.v1.NodeTemplates.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
NameDescription
request ITestIamPermissionsNodeTemplateRequest

TestIamPermissionsNodeTemplateRequest message or plain object

callback google.cloud.compute.v1.NodeTemplates.TestIamPermissionsCallback

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

Returns
TypeDescription
void

testIamPermissions(request)

public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsNodeTemplateRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;

Calls TestIamPermissions.

Parameter
NameDescription
request ITestIamPermissionsNodeTemplateRequest

TestIamPermissionsNodeTemplateRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.TestPermissionsResponse>

Promise