Represents a Networks
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.NetworksPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Networks service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
addPeering(request)
public addPeering(request: google.cloud.compute.v1.IAddPeeringNetworkRequest): Promise<google.cloud.compute.v1.Operation>;
Calls AddPeering.
Parameter | |
---|---|
Name | Description |
request |
IAddPeeringNetworkRequest
AddPeeringNetworkRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
delete(request)
public delete(request: google.cloud.compute.v1.IDeleteNetworkRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Delete.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.IDeleteNetworkRequest
DeleteNetworkRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetNetworkRequest): Promise<google.cloud.compute.v1.Network>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.IGetNetworkRequest
GetNetworkRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
getEffectiveFirewalls(request)
public getEffectiveFirewalls(request: google.cloud.compute.v1.IGetEffectiveFirewallsNetworkRequest): Promise<google.cloud.compute.v1.NetworksGetEffectiveFirewallsResponse>;
Calls GetEffectiveFirewalls.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.IGetEffectiveFirewallsNetworkRequest
GetEffectiveFirewallsNetworkRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
insert(request)
public insert(request: google.cloud.compute.v1.IInsertNetworkRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Insert.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.IInsertNetworkRequest
InsertNetworkRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListNetworksRequest): Promise<google.cloud.compute.v1.NetworkList>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
IListNetworksRequest
ListNetworksRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
listPeeringRoutes(request)
public listPeeringRoutes(request: google.cloud.compute.v1.IListPeeringRoutesNetworksRequest): Promise<google.cloud.compute.v1.ExchangedPeeringRoutesList>;
Calls ListPeeringRoutes.
Parameter | |
---|---|
Name | Description |
request |
IListPeeringRoutesNetworksRequest
ListPeeringRoutesNetworksRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
patch(request)
public patch(request: google.cloud.compute.v1.IPatchNetworkRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Patch.
Parameter | |
---|---|
Name | Description |
request |
IPatchNetworkRequest
PatchNetworkRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
removePeering(request)
public removePeering(request: google.cloud.compute.v1.IRemovePeeringNetworkRequest): Promise<google.cloud.compute.v1.Operation>;
Calls RemovePeering.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.IRemovePeeringNetworkRequest
RemovePeeringNetworkRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
switchToCustomMode(request)
public switchToCustomMode(request: google.cloud.compute.v1.ISwitchToCustomModeNetworkRequest): Promise<google.cloud.compute.v1.Operation>;
Calls SwitchToCustomMode.
Parameter | |
---|---|
Name | Description |
request |
ISwitchToCustomModeNetworkRequest
SwitchToCustomModeNetworkRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
updatePeering(request)
public updatePeering(request: google.cloud.compute.v1.IUpdatePeeringNetworkRequest): Promise<google.cloud.compute.v1.Operation>;
Calls UpdatePeering.
Parameter | |
---|---|
Name | Description |
request |
IUpdatePeeringNetworkRequest
UpdatePeeringNetworkRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> | Promise |