Represents a NetworkProfiles
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1beta.NetworkProfilesPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new NetworkProfiles service.
| Parameters | |
|---|---|
| Name | Description |
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): NetworkProfiles;Creates new NetworkProfiles 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 |
NetworkProfiles |
RPC service. Useful where requests and/or responses are streamed. |
get(request, callback)
public get(request: google.cloud.compute.v1beta.IGetNetworkProfileRequest, callback: google.cloud.compute.v1beta.NetworkProfiles.GetCallback): void;Calls Get.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetNetworkProfileRequest
GetNetworkProfileRequest message or plain object |
callback |
GetCallback
Node-style callback called with the error, if any, and NetworkProfile |
| Returns | |
|---|---|
| Type | Description |
void |
|
get(request)
public get(request: google.cloud.compute.v1beta.IGetNetworkProfileRequest): Promise<google.cloud.compute.v1beta.NetworkProfile>;Calls Get.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetNetworkProfileRequest
GetNetworkProfileRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.compute.v1beta.NetworkProfile> |
Promise |
list(request, callback)
public list(request: google.cloud.compute.v1beta.IListNetworkProfilesRequest, callback: google.cloud.compute.v1beta.NetworkProfiles.ListCallback): void;Calls List.
| Parameters | |
|---|---|
| Name | Description |
request |
IListNetworkProfilesRequest
ListNetworkProfilesRequest message or plain object |
callback |
ListCallback
Node-style callback called with the error, if any, and NetworkProfilesListResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
list(request)
public list(request: google.cloud.compute.v1beta.IListNetworkProfilesRequest): Promise<google.cloud.compute.v1beta.NetworkProfilesListResponse>;Calls List.
| Parameter | |
|---|---|
| Name | Description |
request |
IListNetworkProfilesRequest
ListNetworkProfilesRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.compute.v1beta.NetworkProfilesListResponse> |
Promise |