Class protos.google.cloud.compute.v1.GlobalVmExtensionPolicies (6.13.0)

Represents a GlobalVmExtensionPolicies

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new GlobalVmExtensionPolicies service.

Parameters
Name Description
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.IAggregatedListGlobalVmExtensionPoliciesRequest, callback: google.cloud.compute.v1.GlobalVmExtensionPolicies.AggregatedListCallback): void;

Calls AggregatedList.

Parameters
Name Description
request IAggregatedListGlobalVmExtensionPoliciesRequest

AggregatedListGlobalVmExtensionPoliciesRequest message or plain object

callback AggregatedListCallback

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

Returns
Type Description
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListGlobalVmExtensionPoliciesRequest): Promise<google.cloud.compute.v1.VmExtensionPolicyAggregatedListResponse>;

Calls AggregatedList.

Parameter
Name Description
request IAggregatedListGlobalVmExtensionPoliciesRequest

AggregatedListGlobalVmExtensionPoliciesRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.VmExtensionPolicyAggregatedListResponse>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

Creates new GlobalVmExtensionPolicies service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
GlobalVmExtensionPolicies

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

delete(request, callback)

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

Calls Delete.

Parameters
Name Description
request IDeleteGlobalVmExtensionPolicyRequest

DeleteGlobalVmExtensionPolicyRequest message or plain object

callback DeleteCallback

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

Returns
Type Description
void

delete(request)

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

Calls Delete.

Parameter
Name Description
request IDeleteGlobalVmExtensionPolicyRequest

DeleteGlobalVmExtensionPolicyRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

get(request, callback)

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

Calls Get.

Parameters
Name Description
request IGetGlobalVmExtensionPolicyRequest

GetGlobalVmExtensionPolicyRequest message or plain object

callback GetCallback

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

Returns
Type Description
void

get(request)

public get(request: google.cloud.compute.v1.IGetGlobalVmExtensionPolicyRequest): Promise<google.cloud.compute.v1.GlobalVmExtensionPolicy>;

Calls Get.

Parameter
Name Description
request IGetGlobalVmExtensionPolicyRequest

GetGlobalVmExtensionPolicyRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.GlobalVmExtensionPolicy>

Promise

insert(request, callback)

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

Calls Insert.

Parameters
Name Description
request IInsertGlobalVmExtensionPolicyRequest

InsertGlobalVmExtensionPolicyRequest message or plain object

callback InsertCallback

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

Returns
Type Description
void

insert(request)

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

Calls Insert.

Parameter
Name Description
request IInsertGlobalVmExtensionPolicyRequest

InsertGlobalVmExtensionPolicyRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

list(request, callback)

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

Calls List.

Parameters
Name Description
request IListGlobalVmExtensionPoliciesRequest

ListGlobalVmExtensionPoliciesRequest message or plain object

callback ListCallback

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

Returns
Type Description
void

list(request)

public list(request: google.cloud.compute.v1.IListGlobalVmExtensionPoliciesRequest): Promise<google.cloud.compute.v1.GlobalVmExtensionPolicyList>;

Calls List.

Parameter
Name Description
request IListGlobalVmExtensionPoliciesRequest

ListGlobalVmExtensionPoliciesRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.GlobalVmExtensionPolicyList>

Promise

update(request, callback)

public update(request: google.cloud.compute.v1.IUpdateGlobalVmExtensionPolicyRequest, callback: google.cloud.compute.v1.GlobalVmExtensionPolicies.UpdateCallback): void;

Calls Update.

Parameters
Name Description
request IUpdateGlobalVmExtensionPolicyRequest

UpdateGlobalVmExtensionPolicyRequest message or plain object

callback UpdateCallback

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

Returns
Type Description
void

update(request)

public update(request: google.cloud.compute.v1.IUpdateGlobalVmExtensionPolicyRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Update.

Parameter
Name Description
request IUpdateGlobalVmExtensionPolicyRequest

UpdateGlobalVmExtensionPolicyRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise