Represents a VpnGateways
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.VpnGatewaysPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new VpnGateways 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.IAggregatedListVpnGatewaysRequest, callback: google.cloud.compute.v1.VpnGateways.AggregatedListCallback): void;
Calls AggregatedList.
Parameters | |
---|---|
Name | Description |
request |
IAggregatedListVpnGatewaysRequest
AggregatedListVpnGatewaysRequest message or plain object |
callback |
AggregatedListCallback
Node-style callback called with the error, if any, and VpnGatewayAggregatedList |
Returns | |
---|---|
Type | Description |
void |
aggregatedList(request)
public aggregatedList(request: google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest): Promise<google.cloud.compute.v1.VpnGatewayAggregatedList>;
Calls AggregatedList.
Parameter | |
---|---|
Name | Description |
request |
IAggregatedListVpnGatewaysRequest
AggregatedListVpnGatewaysRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.VpnGatewayAggregatedList> |
Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): VpnGateways;
Creates new VpnGateways 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 |
VpnGateways |
RPC service. Useful where requests and/or responses are streamed. |
delete(request, callback)
public delete(request: google.cloud.compute.v1.IDeleteVpnGatewayRequest, callback: google.cloud.compute.v1.VpnGateways.DeleteCallback): void;
Calls Delete.
Parameters | |
---|---|
Name | Description |
request |
IDeleteVpnGatewayRequest
DeleteVpnGatewayRequest 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.IDeleteVpnGatewayRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Delete.
Parameter | |
---|---|
Name | Description |
request |
IDeleteVpnGatewayRequest
DeleteVpnGatewayRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetVpnGatewayRequest, callback: google.cloud.compute.v1.VpnGateways.GetCallback): void;
Calls Get.
Parameters | |
---|---|
Name | Description |
request |
IGetVpnGatewayRequest
GetVpnGatewayRequest message or plain object |
callback |
GetCallback
Node-style callback called with the error, if any, and VpnGateway |
Returns | |
---|---|
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetVpnGatewayRequest): Promise<google.cloud.compute.v1.VpnGateway>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
IGetVpnGatewayRequest
GetVpnGatewayRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.VpnGateway> |
Promise |
getStatus(request, callback)
public getStatus(request: google.cloud.compute.v1.IGetStatusVpnGatewayRequest, callback: google.cloud.compute.v1.VpnGateways.GetStatusCallback): void;
Calls GetStatus.
Parameters | |
---|---|
Name | Description |
request |
IGetStatusVpnGatewayRequest
GetStatusVpnGatewayRequest message or plain object |
callback |
GetStatusCallback
Node-style callback called with the error, if any, and VpnGatewaysGetStatusResponse |
Returns | |
---|---|
Type | Description |
void |
getStatus(request)
public getStatus(request: google.cloud.compute.v1.IGetStatusVpnGatewayRequest): Promise<google.cloud.compute.v1.VpnGatewaysGetStatusResponse>;
Calls GetStatus.
Parameter | |
---|---|
Name | Description |
request |
IGetStatusVpnGatewayRequest
GetStatusVpnGatewayRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.VpnGatewaysGetStatusResponse> |
Promise |
insert(request, callback)
public insert(request: google.cloud.compute.v1.IInsertVpnGatewayRequest, callback: google.cloud.compute.v1.VpnGateways.InsertCallback): void;
Calls Insert.
Parameters | |
---|---|
Name | Description |
request |
IInsertVpnGatewayRequest
InsertVpnGatewayRequest 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.IInsertVpnGatewayRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Insert.
Parameter | |
---|---|
Name | Description |
request |
IInsertVpnGatewayRequest
InsertVpnGatewayRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
list(request, callback)
public list(request: google.cloud.compute.v1.IListVpnGatewaysRequest, callback: google.cloud.compute.v1.VpnGateways.ListCallback): void;
Calls List.
Parameters | |
---|---|
Name | Description |
request |
IListVpnGatewaysRequest
ListVpnGatewaysRequest message or plain object |
callback |
ListCallback
Node-style callback called with the error, if any, and VpnGatewayList |
Returns | |
---|---|
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListVpnGatewaysRequest): Promise<google.cloud.compute.v1.VpnGatewayList>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
IListVpnGatewaysRequest
ListVpnGatewaysRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.VpnGatewayList> |
Promise |
setLabels(request, callback)
public setLabels(request: google.cloud.compute.v1.ISetLabelsVpnGatewayRequest, callback: google.cloud.compute.v1.VpnGateways.SetLabelsCallback): void;
Calls SetLabels.
Parameters | |
---|---|
Name | Description |
request |
ISetLabelsVpnGatewayRequest
SetLabelsVpnGatewayRequest message or plain object |
callback |
SetLabelsCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
setLabels(request)
public setLabels(request: google.cloud.compute.v1.ISetLabelsVpnGatewayRequest): Promise<google.cloud.compute.v1.Operation>;
Calls SetLabels.
Parameter | |
---|---|
Name | Description |
request |
ISetLabelsVpnGatewayRequest
SetLabelsVpnGatewayRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
testIamPermissions(request, callback)
public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsVpnGatewayRequest, callback: google.cloud.compute.v1.VpnGateways.TestIamPermissionsCallback): void;
Calls TestIamPermissions.
Parameters | |
---|---|
Name | Description |
request |
ITestIamPermissionsVpnGatewayRequest
TestIamPermissionsVpnGatewayRequest message or plain object |
callback |
TestIamPermissionsCallback
Node-style callback called with the error, if any, and TestPermissionsResponse |
Returns | |
---|---|
Type | Description |
void |
testIamPermissions(request)
public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsVpnGatewayRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;
Calls TestIamPermissions.
Parameter | |
---|---|
Name | Description |
request |
ITestIamPermissionsVpnGatewayRequest
TestIamPermissionsVpnGatewayRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.TestPermissionsResponse> |
Promise |