Class protos.google.cloud.compute.v1.Networks (3.8.1)

Represents a Networks

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new Networks service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

addPeering(request, callback)

public addPeering(request: google.cloud.compute.v1.IAddPeeringNetworkRequest, callback: google.cloud.compute.v1.Networks.AddPeeringCallback): void;

Calls AddPeering.

Parameters
NameDescription
request IAddPeeringNetworkRequest

AddPeeringNetworkRequest message or plain object

callback google.cloud.compute.v1.Networks.AddPeeringCallback

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

Returns
TypeDescription
void

addPeering(request)

public addPeering(request: google.cloud.compute.v1.IAddPeeringNetworkRequest): Promise<google.cloud.compute.v1.Operation>;

Calls AddPeering.

Parameter
NameDescription
request IAddPeeringNetworkRequest

AddPeeringNetworkRequest message or plain object

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

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

delete(request, callback)

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

Calls Delete.

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

DeleteNetworkRequest message or plain object

callback google.cloud.compute.v1.Networks.DeleteCallback

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

Returns
TypeDescription
void

delete(request)

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

Calls Delete.

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

DeleteNetworkRequest message or plain object

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

Promise

get(request, callback)

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

Calls Get.

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

GetNetworkRequest message or plain object

callback google.cloud.compute.v1.Networks.GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetNetworkRequest): Promise<google.cloud.compute.v1.Network>;

Calls Get.

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

GetNetworkRequest message or plain object

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

Promise

getEffectiveFirewalls(request, callback)

public getEffectiveFirewalls(request: google.cloud.compute.v1.IGetEffectiveFirewallsNetworkRequest, callback: google.cloud.compute.v1.Networks.GetEffectiveFirewallsCallback): void;

Calls GetEffectiveFirewalls.

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

GetEffectiveFirewallsNetworkRequest message or plain object

callback google.cloud.compute.v1.Networks.GetEffectiveFirewallsCallback

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

Returns
TypeDescription
void

getEffectiveFirewalls(request)

public getEffectiveFirewalls(request: google.cloud.compute.v1.IGetEffectiveFirewallsNetworkRequest): Promise<google.cloud.compute.v1.NetworksGetEffectiveFirewallsResponse>;

Calls GetEffectiveFirewalls.

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

GetEffectiveFirewallsNetworkRequest message or plain object

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

Promise

insert(request, callback)

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

Calls Insert.

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

InsertNetworkRequest message or plain object

callback google.cloud.compute.v1.Networks.InsertCallback

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

Returns
TypeDescription
void

insert(request)

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

Calls Insert.

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

InsertNetworkRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request IListNetworksRequest

ListNetworksRequest message or plain object

callback google.cloud.compute.v1.Networks.ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListNetworksRequest): Promise<google.cloud.compute.v1.NetworkList>;

Calls List.

Parameter
NameDescription
request IListNetworksRequest

ListNetworksRequest message or plain object

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

Promise

listPeeringRoutes(request, callback)

public listPeeringRoutes(request: google.cloud.compute.v1.IListPeeringRoutesNetworksRequest, callback: google.cloud.compute.v1.Networks.ListPeeringRoutesCallback): void;

Calls ListPeeringRoutes.

Parameters
NameDescription
request IListPeeringRoutesNetworksRequest

ListPeeringRoutesNetworksRequest message or plain object

callback google.cloud.compute.v1.Networks.ListPeeringRoutesCallback

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

Returns
TypeDescription
void

listPeeringRoutes(request)

public listPeeringRoutes(request: google.cloud.compute.v1.IListPeeringRoutesNetworksRequest): Promise<google.cloud.compute.v1.ExchangedPeeringRoutesList>;

Calls ListPeeringRoutes.

Parameter
NameDescription
request IListPeeringRoutesNetworksRequest

ListPeeringRoutesNetworksRequest message or plain object

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

Promise

patch(request, callback)

public patch(request: google.cloud.compute.v1.IPatchNetworkRequest, callback: google.cloud.compute.v1.Networks.PatchCallback): void;

Calls Patch.

Parameters
NameDescription
request IPatchNetworkRequest

PatchNetworkRequest message or plain object

callback google.cloud.compute.v1.Networks.PatchCallback

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

Returns
TypeDescription
void

patch(request)

public patch(request: google.cloud.compute.v1.IPatchNetworkRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Patch.

Parameter
NameDescription
request IPatchNetworkRequest

PatchNetworkRequest message or plain object

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

Promise

removePeering(request, callback)

public removePeering(request: google.cloud.compute.v1.IRemovePeeringNetworkRequest, callback: google.cloud.compute.v1.Networks.RemovePeeringCallback): void;

Calls RemovePeering.

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

RemovePeeringNetworkRequest message or plain object

callback google.cloud.compute.v1.Networks.RemovePeeringCallback

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

Returns
TypeDescription
void

removePeering(request)

public removePeering(request: google.cloud.compute.v1.IRemovePeeringNetworkRequest): Promise<google.cloud.compute.v1.Operation>;

Calls RemovePeering.

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

RemovePeeringNetworkRequest message or plain object

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

Promise

switchToCustomMode(request, callback)

public switchToCustomMode(request: google.cloud.compute.v1.ISwitchToCustomModeNetworkRequest, callback: google.cloud.compute.v1.Networks.SwitchToCustomModeCallback): void;

Calls SwitchToCustomMode.

Parameters
NameDescription
request ISwitchToCustomModeNetworkRequest

SwitchToCustomModeNetworkRequest message or plain object

callback google.cloud.compute.v1.Networks.SwitchToCustomModeCallback

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

Returns
TypeDescription
void

switchToCustomMode(request)

public switchToCustomMode(request: google.cloud.compute.v1.ISwitchToCustomModeNetworkRequest): Promise<google.cloud.compute.v1.Operation>;

Calls SwitchToCustomMode.

Parameter
NameDescription
request ISwitchToCustomModeNetworkRequest

SwitchToCustomModeNetworkRequest message or plain object

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

Promise

updatePeering(request, callback)

public updatePeering(request: google.cloud.compute.v1.IUpdatePeeringNetworkRequest, callback: google.cloud.compute.v1.Networks.UpdatePeeringCallback): void;

Calls UpdatePeering.

Parameters
NameDescription
request IUpdatePeeringNetworkRequest

UpdatePeeringNetworkRequest message or plain object

callback google.cloud.compute.v1.Networks.UpdatePeeringCallback

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

Returns
TypeDescription
void

updatePeering(request)

public updatePeering(request: google.cloud.compute.v1.IUpdatePeeringNetworkRequest): Promise<google.cloud.compute.v1.Operation>;

Calls UpdatePeering.

Parameter
NameDescription
request IUpdatePeeringNetworkRequest

UpdatePeeringNetworkRequest message or plain object

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

Promise