Class protos.google.cloud.compute.v1.InstanceTemplates

Represents an InstanceTemplates

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new InstanceTemplates 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): InstanceTemplates;

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

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

delete(request, callback)

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

Calls Delete.

Parameters
NameDescription
request google.cloud.compute.v1.IDeleteInstanceTemplateRequest

DeleteInstanceTemplateRequest message or plain object

callback google.cloud.compute.v1.InstanceTemplates.DeleteCallback

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

Returns
TypeDescription
void

delete(request)

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

Calls Delete.

Parameter
NameDescription
request google.cloud.compute.v1.IDeleteInstanceTemplateRequest

DeleteInstanceTemplateRequest message or plain object

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

Promise

get(request, callback)

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

Calls Get.

Parameters
NameDescription
request google.cloud.compute.v1.IGetInstanceTemplateRequest

GetInstanceTemplateRequest message or plain object

callback google.cloud.compute.v1.InstanceTemplates.GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetInstanceTemplateRequest): Promise<google.cloud.compute.v1.InstanceTemplate>;

Calls Get.

Parameter
NameDescription
request google.cloud.compute.v1.IGetInstanceTemplateRequest

GetInstanceTemplateRequest message or plain object

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

Promise

getIamPolicy(request, callback)

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

Calls GetIamPolicy.

Parameters
NameDescription
request google.cloud.compute.v1.IGetIamPolicyInstanceTemplateRequest

GetIamPolicyInstanceTemplateRequest message or plain object

callback google.cloud.compute.v1.InstanceTemplates.GetIamPolicyCallback

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

Returns
TypeDescription
void

getIamPolicy(request)

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

Calls GetIamPolicy.

Parameter
NameDescription
request google.cloud.compute.v1.IGetIamPolicyInstanceTemplateRequest

GetIamPolicyInstanceTemplateRequest message or plain object

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

Promise

insert(request, callback)

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

Calls Insert.

Parameters
NameDescription
request google.cloud.compute.v1.IInsertInstanceTemplateRequest

InsertInstanceTemplateRequest message or plain object

callback google.cloud.compute.v1.InstanceTemplates.InsertCallback

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

Returns
TypeDescription
void

insert(request)

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

Calls Insert.

Parameter
NameDescription
request google.cloud.compute.v1.IInsertInstanceTemplateRequest

InsertInstanceTemplateRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request google.cloud.compute.v1.IListInstanceTemplatesRequest

ListInstanceTemplatesRequest message or plain object

callback google.cloud.compute.v1.InstanceTemplates.ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListInstanceTemplatesRequest): Promise<google.cloud.compute.v1.InstanceTemplateList>;

Calls List.

Parameter
NameDescription
request google.cloud.compute.v1.IListInstanceTemplatesRequest

ListInstanceTemplatesRequest message or plain object

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

Promise

setIamPolicy(request, callback)

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

Calls SetIamPolicy.

Parameters
NameDescription
request google.cloud.compute.v1.ISetIamPolicyInstanceTemplateRequest

SetIamPolicyInstanceTemplateRequest message or plain object

callback google.cloud.compute.v1.InstanceTemplates.SetIamPolicyCallback

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

Returns
TypeDescription
void

setIamPolicy(request)

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

Calls SetIamPolicy.

Parameter
NameDescription
request google.cloud.compute.v1.ISetIamPolicyInstanceTemplateRequest

SetIamPolicyInstanceTemplateRequest message or plain object

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

Promise

testIamPermissions(request, callback)

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

Calls TestIamPermissions.

Parameters
NameDescription
request google.cloud.compute.v1.ITestIamPermissionsInstanceTemplateRequest

TestIamPermissionsInstanceTemplateRequest message or plain object

callback google.cloud.compute.v1.InstanceTemplates.TestIamPermissionsCallback

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

Returns
TypeDescription
void

testIamPermissions(request)

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

Calls TestIamPermissions.

Parameter
NameDescription
request google.cloud.compute.v1.ITestIamPermissionsInstanceTemplateRequest

TestIamPermissionsInstanceTemplateRequest message or plain object

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

Promise