Service describing handlers for resources. v1
Package
@google-cloud/networkservicesConstructors
(constructor)(opts, gaxInstance)
constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);Construct an instance of NetworkServicesClient.
| Parameters | |
|---|---|
| Name | Description |
opts |
ClientOptions
|
gaxInstance |
typeof gax | typeof fallback
: loaded instance of |
Properties
apiEndpoint
get apiEndpoint(): string;The DNS address for this API service.
apiEndpoint
static get apiEndpoint(): string;The DNS address for this API service - same as servicePath.
auth
auth: gax.GoogleAuth;descriptors
descriptors: Descriptors;iamClient
iamClient: IamClient;innerApiCalls
innerApiCalls: {
[name: string]: Function;
};locationsClient
locationsClient: LocationsClient;networkServicesStub
networkServicesStub?: Promise<{
[name: string]: Function;
}>;operationsClient
operationsClient: gax.OperationsClient;pathTemplates
pathTemplates: {
[name: string]: gax.PathTemplate;
};port
static get port(): number;The port for this API service.
scopes
static get scopes(): string[];The scopes needed to make gRPC calls for every method defined in this service.
servicePath
static get servicePath(): string;The DNS address for this API service.
universeDomain
get universeDomain(): string;warn
warn: (code: string, message: string, warnType?: string) => void;Methods
authzExtensionPath(project, location, authzExtension)
authzExtensionPath(project: string, location: string, authzExtension: string): string;Return a fully-qualified authzExtension resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
location |
string
|
authzExtension |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
cancelOperation(request, optionsOrCallback, callback)
cancelOperation(request: protos.google.longrunning.CancelOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>;Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an value with a of 1, corresponding to Code.CANCELLED.
| Parameters | |
|---|---|
| Name | Description |
request |
CancelOperationRequest
The request object that will be sent. |
optionsOrCallback |
CallOptions | Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>
|
callback |
Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>
The function which will be called with the result of the API call. {Promise} - The promise which resolves when API call finishes. The promise has a method named "cancel" which cancels the ongoing API call. |
| Returns | |
|---|---|
| Type | Description |
Promise<protos.google.protobuf.Empty> |
|
const client = longrunning.operationsClient();
await client.cancelOperation({name: ''});
checkCreateEndpointPolicyProgress(name)
checkCreateEndpointPolicyProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.EndpointPolicy, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by createEndpointPolicy().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.EndpointPolicy, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the EndpointPolicy. Must be in the
* format `projects/* /locations/global`.
*/
// const parent = 'abc123'
/**
* Required. Short name of the EndpointPolicy resource to be created.
* E.g. "CustomECS".
*/
// const endpointPolicyId = 'abc123'
/**
* Required. EndpointPolicy resource to be created.
*/
// const endpointPolicy = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateEndpointPolicy() {
// Construct request
const request = {
parent,
endpointPolicyId,
endpointPolicy,
};
// Run request
const [operation] = await networkservicesClient.createEndpointPolicy(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateEndpointPolicy();
checkCreateGatewayProgress(name)
checkCreateGatewayProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.Gateway, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by createGateway().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.Gateway, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the Gateway. Must be in the
* format `projects/* /locations/*`.
*/
// const parent = 'abc123'
/**
* Required. Short name of the Gateway resource to be created.
*/
// const gatewayId = 'abc123'
/**
* Required. Gateway resource to be created.
*/
// const gateway = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateGateway() {
// Construct request
const request = {
parent,
gatewayId,
gateway,
};
// Run request
const [operation] = await networkservicesClient.createGateway(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateGateway();
checkCreateGrpcRouteProgress(name)
checkCreateGrpcRouteProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.GrpcRoute, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by createGrpcRoute().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.GrpcRoute, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the GrpcRoute. Must be in the
* format `projects/* /locations/global`.
*/
// const parent = 'abc123'
/**
* Required. Short name of the GrpcRoute resource to be created.
*/
// const grpcRouteId = 'abc123'
/**
* Required. GrpcRoute resource to be created.
*/
// const grpcRoute = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateGrpcRoute() {
// Construct request
const request = {
parent,
grpcRouteId,
grpcRoute,
};
// Run request
const [operation] = await networkservicesClient.createGrpcRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateGrpcRoute();
checkCreateHttpRouteProgress(name)
checkCreateHttpRouteProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.HttpRoute, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by createHttpRoute().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.HttpRoute, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the HttpRoute. Must be in the
* format `projects/* /locations/global`.
*/
// const parent = 'abc123'
/**
* Required. Short name of the HttpRoute resource to be created.
*/
// const httpRouteId = 'abc123'
/**
* Required. HttpRoute resource to be created.
*/
// const httpRoute = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateHttpRoute() {
// Construct request
const request = {
parent,
httpRouteId,
httpRoute,
};
// Run request
const [operation] = await networkservicesClient.createHttpRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateHttpRoute();
checkCreateMeshProgress(name)
checkCreateMeshProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.Mesh, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by createMesh().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.Mesh, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the Mesh. Must be in the
* format `projects/* /locations/global`.
*/
// const parent = 'abc123'
/**
* Required. Short name of the Mesh resource to be created.
*/
// const meshId = 'abc123'
/**
* Required. Mesh resource to be created.
*/
// const mesh = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateMesh() {
// Construct request
const request = {
parent,
meshId,
mesh,
};
// Run request
const [operation] = await networkservicesClient.createMesh(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateMesh();
checkCreateServiceBindingProgress(name)
checkCreateServiceBindingProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.ServiceBinding, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by createServiceBinding().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.ServiceBinding, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the ServiceBinding. Must be in the
* format `projects/* /locations/*`.
*/
// const parent = 'abc123'
/**
* Required. Short name of the ServiceBinding resource to be created.
*/
// const serviceBindingId = 'abc123'
/**
* Required. ServiceBinding resource to be created.
*/
// const serviceBinding = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateServiceBinding() {
// Construct request
const request = {
parent,
serviceBindingId,
serviceBinding,
};
// Run request
const [operation] = await networkservicesClient.createServiceBinding(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateServiceBinding();
checkCreateServiceLbPolicyProgress(name)
checkCreateServiceLbPolicyProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.ServiceLbPolicy, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by createServiceLbPolicy().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.ServiceLbPolicy, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the ServiceLbPolicy. Must be in the
* format `projects/{project}/locations/{location}`.
*/
// const parent = 'abc123'
/**
* Required. Short name of the ServiceLbPolicy resource to be created.
* E.g. for resource name
* `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`.
* the id is value of {service_lb_policy_name}
*/
// const serviceLbPolicyId = 'abc123'
/**
* Required. ServiceLbPolicy resource to be created.
*/
// const serviceLbPolicy = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateServiceLbPolicy() {
// Construct request
const request = {
parent,
serviceLbPolicyId,
serviceLbPolicy,
};
// Run request
const [operation] = await networkservicesClient.createServiceLbPolicy(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateServiceLbPolicy();
checkCreateTcpRouteProgress(name)
checkCreateTcpRouteProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.TcpRoute, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by createTcpRoute().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.TcpRoute, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the TcpRoute. Must be in the
* format `projects/* /locations/global`.
*/
// const parent = 'abc123'
/**
* Required. Short name of the TcpRoute resource to be created.
*/
// const tcpRouteId = 'abc123'
/**
* Required. TcpRoute resource to be created.
*/
// const tcpRoute = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateTcpRoute() {
// Construct request
const request = {
parent,
tcpRouteId,
tcpRoute,
};
// Run request
const [operation] = await networkservicesClient.createTcpRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateTcpRoute();
checkCreateTlsRouteProgress(name)
checkCreateTlsRouteProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.TlsRoute, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by createTlsRoute().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.TlsRoute, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the TlsRoute. Must be in the
* format `projects/* /locations/global`.
*/
// const parent = 'abc123'
/**
* Required. Short name of the TlsRoute resource to be created.
*/
// const tlsRouteId = 'abc123'
/**
* Required. TlsRoute resource to be created.
*/
// const tlsRoute = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateTlsRoute() {
// Construct request
const request = {
parent,
tlsRouteId,
tlsRoute,
};
// Run request
const [operation] = await networkservicesClient.createTlsRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateTlsRoute();
checkCreateWasmPluginProgress(name)
checkCreateWasmPluginProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.WasmPlugin, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by createWasmPlugin().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.WasmPlugin, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the `WasmPlugin` resource. Must be in the
* format `projects/{project}/locations/global`.
*/
// const parent = 'abc123'
/**
* Required. User-provided ID of the `WasmPlugin` resource to be created.
*/
// const wasmPluginId = 'abc123'
/**
* Required. `WasmPlugin` resource to be created.
*/
// const wasmPlugin = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateWasmPlugin() {
// Construct request
const request = {
parent,
wasmPluginId,
wasmPlugin,
};
// Run request
const [operation] = await networkservicesClient.createWasmPlugin(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateWasmPlugin();
checkCreateWasmPluginVersionProgress(name)
checkCreateWasmPluginVersionProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.WasmPluginVersion, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by createWasmPluginVersion().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.WasmPluginVersion, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the `WasmPluginVersion` resource. Must be
* in the format
* `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
*/
// const parent = 'abc123'
/**
* Required. User-provided ID of the `WasmPluginVersion` resource to be
* created.
*/
// const wasmPluginVersionId = 'abc123'
/**
* Required. `WasmPluginVersion` resource to be created.
*/
// const wasmPluginVersion = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateWasmPluginVersion() {
// Construct request
const request = {
parent,
wasmPluginVersionId,
wasmPluginVersion,
};
// Run request
const [operation] = await networkservicesClient.createWasmPluginVersion(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateWasmPluginVersion();
checkDeleteEndpointPolicyProgress(name)
checkDeleteEndpointPolicyProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by deleteEndpointPolicy().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the EndpointPolicy to delete. Must be in the format
* `projects/* /locations/global/endpointPolicies/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteEndpointPolicy() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteEndpointPolicy(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteEndpointPolicy();
checkDeleteGatewayProgress(name)
checkDeleteGatewayProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by deleteGateway().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the Gateway to delete. Must be in the format
* `projects/* /locations/* /gateways/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteGateway() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteGateway(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteGateway();
checkDeleteGrpcRouteProgress(name)
checkDeleteGrpcRouteProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by deleteGrpcRoute().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the GrpcRoute to delete. Must be in the format
* `projects/* /locations/global/grpcRoutes/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteGrpcRoute() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteGrpcRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteGrpcRoute();
checkDeleteHttpRouteProgress(name)
checkDeleteHttpRouteProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by deleteHttpRoute().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the HttpRoute to delete. Must be in the format
* `projects/* /locations/global/httpRoutes/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteHttpRoute() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteHttpRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteHttpRoute();
checkDeleteMeshProgress(name)
checkDeleteMeshProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by deleteMesh().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the Mesh to delete. Must be in the format
* `projects/* /locations/global/meshes/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteMesh() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteMesh(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteMesh();
checkDeleteServiceBindingProgress(name)
checkDeleteServiceBindingProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by deleteServiceBinding().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the ServiceBinding to delete. Must be in the format
* `projects/* /locations/* /serviceBindings/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteServiceBinding() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteServiceBinding(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteServiceBinding();
checkDeleteServiceLbPolicyProgress(name)
checkDeleteServiceLbPolicyProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by deleteServiceLbPolicy().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the ServiceLbPolicy to delete. Must be in the format
* `projects/{project}/locations/{location}/serviceLbPolicies/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteServiceLbPolicy() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteServiceLbPolicy(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteServiceLbPolicy();
checkDeleteTcpRouteProgress(name)
checkDeleteTcpRouteProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by deleteTcpRoute().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the TcpRoute to delete. Must be in the format
* `projects/* /locations/global/tcpRoutes/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteTcpRoute() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteTcpRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteTcpRoute();
checkDeleteTlsRouteProgress(name)
checkDeleteTlsRouteProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by deleteTlsRoute().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the TlsRoute to delete. Must be in the format
* `projects/* /locations/global/tlsRoutes/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteTlsRoute() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteTlsRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteTlsRoute();
checkDeleteWasmPluginProgress(name)
checkDeleteWasmPluginProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by deleteWasmPlugin().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the `WasmPlugin` resource to delete. Must be in the
* format `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteWasmPlugin() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteWasmPlugin(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteWasmPlugin();
checkDeleteWasmPluginVersionProgress(name)
checkDeleteWasmPluginVersionProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by deleteWasmPluginVersion().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the `WasmPluginVersion` resource to delete. Must be in
* the format
* `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}/versions/{wasm_plugin_version}`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteWasmPluginVersion() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteWasmPluginVersion(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteWasmPluginVersion();
checkUpdateEndpointPolicyProgress(name)
checkUpdateEndpointPolicyProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.EndpointPolicy, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by updateEndpointPolicy().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.EndpointPolicy, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Field mask is used to specify the fields to be overwritten in the
* EndpointPolicy resource by the update.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*/
// const updateMask = {}
/**
* Required. Updated EndpointPolicy resource.
*/
// const endpointPolicy = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateEndpointPolicy() {
// Construct request
const request = {
endpointPolicy,
};
// Run request
const [operation] = await networkservicesClient.updateEndpointPolicy(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateEndpointPolicy();
checkUpdateGatewayProgress(name)
checkUpdateGatewayProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.Gateway, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by updateGateway().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.Gateway, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Field mask is used to specify the fields to be overwritten in the
* Gateway resource by the update.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*/
// const updateMask = {}
/**
* Required. Updated Gateway resource.
*/
// const gateway = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateGateway() {
// Construct request
const request = {
gateway,
};
// Run request
const [operation] = await networkservicesClient.updateGateway(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateGateway();
checkUpdateGrpcRouteProgress(name)
checkUpdateGrpcRouteProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.GrpcRoute, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by updateGrpcRoute().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.GrpcRoute, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Field mask is used to specify the fields to be overwritten in the
* GrpcRoute resource by the update.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*/
// const updateMask = {}
/**
* Required. Updated GrpcRoute resource.
*/
// const grpcRoute = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateGrpcRoute() {
// Construct request
const request = {
grpcRoute,
};
// Run request
const [operation] = await networkservicesClient.updateGrpcRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateGrpcRoute();
checkUpdateHttpRouteProgress(name)
checkUpdateHttpRouteProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.HttpRoute, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by updateHttpRoute().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.HttpRoute, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Field mask is used to specify the fields to be overwritten in the
* HttpRoute resource by the update.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*/
// const updateMask = {}
/**
* Required. Updated HttpRoute resource.
*/
// const httpRoute = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateHttpRoute() {
// Construct request
const request = {
httpRoute,
};
// Run request
const [operation] = await networkservicesClient.updateHttpRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateHttpRoute();
checkUpdateMeshProgress(name)
checkUpdateMeshProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.Mesh, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by updateMesh().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.Mesh, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Field mask is used to specify the fields to be overwritten in the
* Mesh resource by the update.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*/
// const updateMask = {}
/**
* Required. Updated Mesh resource.
*/
// const mesh = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateMesh() {
// Construct request
const request = {
mesh,
};
// Run request
const [operation] = await networkservicesClient.updateMesh(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateMesh();
checkUpdateServiceBindingProgress(name)
checkUpdateServiceBindingProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.ServiceBinding, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by updateServiceBinding().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.ServiceBinding, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Field mask is used to specify the fields to be overwritten in the
* ServiceBinding resource by the update.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*/
// const updateMask = {}
/**
* Required. Updated ServiceBinding resource.
*/
// const serviceBinding = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateServiceBinding() {
// Construct request
const request = {
serviceBinding,
};
// Run request
const [operation] = await networkservicesClient.updateServiceBinding(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateServiceBinding();
checkUpdateServiceLbPolicyProgress(name)
checkUpdateServiceLbPolicyProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.ServiceLbPolicy, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by updateServiceLbPolicy().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.ServiceLbPolicy, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Field mask is used to specify the fields to be overwritten in the
* ServiceLbPolicy resource by the update.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*/
// const updateMask = {}
/**
* Required. Updated ServiceLbPolicy resource.
*/
// const serviceLbPolicy = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateServiceLbPolicy() {
// Construct request
const request = {
serviceLbPolicy,
};
// Run request
const [operation] = await networkservicesClient.updateServiceLbPolicy(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateServiceLbPolicy();
checkUpdateTcpRouteProgress(name)
checkUpdateTcpRouteProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.TcpRoute, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by updateTcpRoute().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.TcpRoute, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Field mask is used to specify the fields to be overwritten in the
* TcpRoute resource by the update.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*/
// const updateMask = {}
/**
* Required. Updated TcpRoute resource.
*/
// const tcpRoute = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateTcpRoute() {
// Construct request
const request = {
tcpRoute,
};
// Run request
const [operation] = await networkservicesClient.updateTcpRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateTcpRoute();
checkUpdateTlsRouteProgress(name)
checkUpdateTlsRouteProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.TlsRoute, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by updateTlsRoute().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.TlsRoute, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Field mask is used to specify the fields to be overwritten in the
* TlsRoute resource by the update.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*/
// const updateMask = {}
/**
* Required. Updated TlsRoute resource.
*/
// const tlsRoute = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateTlsRoute() {
// Construct request
const request = {
tlsRoute,
};
// Run request
const [operation] = await networkservicesClient.updateTlsRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateTlsRoute();
checkUpdateWasmPluginProgress(name)
checkUpdateWasmPluginProgress(name: string): Promise<LROperation<protos.google.cloud.networkservices.v1.WasmPlugin, protos.google.cloud.networkservices.v1.OperationMetadata>>;Check the status of the long running operation returned by updateWasmPlugin().
| Parameter | |
|---|---|
| Name | Description |
name |
string
The operation name that will be passed. |
| Returns | |
|---|---|
| Type | Description |
Promise<LROperation<protos.google.cloud.networkservices.v1.WasmPlugin, protos.google.cloud.networkservices.v1.OperationMetadata>> |
{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Used to specify the fields to be overwritten in the
* `WasmPlugin` resource by the update.
* The fields specified in the `update_mask` field are relative to the
* resource, not the full request.
* An omitted `update_mask` field is treated as an implied `update_mask`
* field equivalent to all fields that are populated (that have a non-empty
* value).
* The `update_mask` field supports a special value `*`, which means that
* each field in the given `WasmPlugin` resource (including the empty ones)
* replaces the current value.
*/
// const updateMask = {}
/**
* Required. Updated `WasmPlugin` resource.
*/
// const wasmPlugin = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateWasmPlugin() {
// Construct request
const request = {
wasmPlugin,
};
// Run request
const [operation] = await networkservicesClient.updateWasmPlugin(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateWasmPlugin();
close()
close(): Promise<void>;Terminate the gRPC channel and close the client.
The client will no longer be usable and all future behavior is undefined.
| Returns | |
|---|---|
| Type | Description |
Promise<void> |
{Promise} A promise that resolves when the client is closed. |
createEndpointPolicy(request, options)
createEndpointPolicy(request?: protos.google.cloud.networkservices.v1.ICreateEndpointPolicyRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.IEndpointPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Creates a new EndpointPolicy in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateEndpointPolicyRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.IEndpointPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the EndpointPolicy. Must be in the
* format `projects/* /locations/global`.
*/
// const parent = 'abc123'
/**
* Required. Short name of the EndpointPolicy resource to be created.
* E.g. "CustomECS".
*/
// const endpointPolicyId = 'abc123'
/**
* Required. EndpointPolicy resource to be created.
*/
// const endpointPolicy = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateEndpointPolicy() {
// Construct request
const request = {
parent,
endpointPolicyId,
endpointPolicy,
};
// Run request
const [operation] = await networkservicesClient.createEndpointPolicy(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateEndpointPolicy();
createEndpointPolicy(request, options, callback)
createEndpointPolicy(request: protos.google.cloud.networkservices.v1.ICreateEndpointPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IEndpointPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateEndpointPolicyRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IEndpointPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createEndpointPolicy(request, callback)
createEndpointPolicy(request: protos.google.cloud.networkservices.v1.ICreateEndpointPolicyRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IEndpointPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateEndpointPolicyRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IEndpointPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createGateway(request, options)
createGateway(request?: protos.google.cloud.networkservices.v1.ICreateGatewayRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.IGateway, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Creates a new Gateway in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateGatewayRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.IGateway, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the Gateway. Must be in the
* format `projects/* /locations/*`.
*/
// const parent = 'abc123'
/**
* Required. Short name of the Gateway resource to be created.
*/
// const gatewayId = 'abc123'
/**
* Required. Gateway resource to be created.
*/
// const gateway = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateGateway() {
// Construct request
const request = {
parent,
gatewayId,
gateway,
};
// Run request
const [operation] = await networkservicesClient.createGateway(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateGateway();
createGateway(request, options, callback)
createGateway(request: protos.google.cloud.networkservices.v1.ICreateGatewayRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IGateway, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateGatewayRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IGateway, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createGateway(request, callback)
createGateway(request: protos.google.cloud.networkservices.v1.ICreateGatewayRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IGateway, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateGatewayRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IGateway, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createGrpcRoute(request, options)
createGrpcRoute(request?: protos.google.cloud.networkservices.v1.ICreateGrpcRouteRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.IGrpcRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Creates a new GrpcRoute in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateGrpcRouteRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.IGrpcRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the GrpcRoute. Must be in the
* format `projects/* /locations/global`.
*/
// const parent = 'abc123'
/**
* Required. Short name of the GrpcRoute resource to be created.
*/
// const grpcRouteId = 'abc123'
/**
* Required. GrpcRoute resource to be created.
*/
// const grpcRoute = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateGrpcRoute() {
// Construct request
const request = {
parent,
grpcRouteId,
grpcRoute,
};
// Run request
const [operation] = await networkservicesClient.createGrpcRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateGrpcRoute();
createGrpcRoute(request, options, callback)
createGrpcRoute(request: protos.google.cloud.networkservices.v1.ICreateGrpcRouteRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IGrpcRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateGrpcRouteRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IGrpcRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createGrpcRoute(request, callback)
createGrpcRoute(request: protos.google.cloud.networkservices.v1.ICreateGrpcRouteRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IGrpcRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateGrpcRouteRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IGrpcRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createHttpRoute(request, options)
createHttpRoute(request?: protos.google.cloud.networkservices.v1.ICreateHttpRouteRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.IHttpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Creates a new HttpRoute in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateHttpRouteRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.IHttpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the HttpRoute. Must be in the
* format `projects/* /locations/global`.
*/
// const parent = 'abc123'
/**
* Required. Short name of the HttpRoute resource to be created.
*/
// const httpRouteId = 'abc123'
/**
* Required. HttpRoute resource to be created.
*/
// const httpRoute = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateHttpRoute() {
// Construct request
const request = {
parent,
httpRouteId,
httpRoute,
};
// Run request
const [operation] = await networkservicesClient.createHttpRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateHttpRoute();
createHttpRoute(request, options, callback)
createHttpRoute(request: protos.google.cloud.networkservices.v1.ICreateHttpRouteRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IHttpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateHttpRouteRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IHttpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createHttpRoute(request, callback)
createHttpRoute(request: protos.google.cloud.networkservices.v1.ICreateHttpRouteRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IHttpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateHttpRouteRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IHttpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createMesh(request, options)
createMesh(request?: protos.google.cloud.networkservices.v1.ICreateMeshRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.IMesh, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Creates a new Mesh in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateMeshRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.IMesh, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the Mesh. Must be in the
* format `projects/* /locations/global`.
*/
// const parent = 'abc123'
/**
* Required. Short name of the Mesh resource to be created.
*/
// const meshId = 'abc123'
/**
* Required. Mesh resource to be created.
*/
// const mesh = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateMesh() {
// Construct request
const request = {
parent,
meshId,
mesh,
};
// Run request
const [operation] = await networkservicesClient.createMesh(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateMesh();
createMesh(request, options, callback)
createMesh(request: protos.google.cloud.networkservices.v1.ICreateMeshRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IMesh, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateMeshRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IMesh, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createMesh(request, callback)
createMesh(request: protos.google.cloud.networkservices.v1.ICreateMeshRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IMesh, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateMeshRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IMesh, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createServiceBinding(request, options)
createServiceBinding(request?: protos.google.cloud.networkservices.v1.ICreateServiceBindingRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.IServiceBinding, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Creates a new ServiceBinding in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateServiceBindingRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.IServiceBinding, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the ServiceBinding. Must be in the
* format `projects/* /locations/*`.
*/
// const parent = 'abc123'
/**
* Required. Short name of the ServiceBinding resource to be created.
*/
// const serviceBindingId = 'abc123'
/**
* Required. ServiceBinding resource to be created.
*/
// const serviceBinding = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateServiceBinding() {
// Construct request
const request = {
parent,
serviceBindingId,
serviceBinding,
};
// Run request
const [operation] = await networkservicesClient.createServiceBinding(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateServiceBinding();
createServiceBinding(request, options, callback)
createServiceBinding(request: protos.google.cloud.networkservices.v1.ICreateServiceBindingRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IServiceBinding, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateServiceBindingRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IServiceBinding, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createServiceBinding(request, callback)
createServiceBinding(request: protos.google.cloud.networkservices.v1.ICreateServiceBindingRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IServiceBinding, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateServiceBindingRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IServiceBinding, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createServiceLbPolicy(request, options)
createServiceLbPolicy(request?: protos.google.cloud.networkservices.v1.ICreateServiceLbPolicyRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.IServiceLbPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Creates a new ServiceLbPolicy in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateServiceLbPolicyRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.IServiceLbPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the ServiceLbPolicy. Must be in the
* format `projects/{project}/locations/{location}`.
*/
// const parent = 'abc123'
/**
* Required. Short name of the ServiceLbPolicy resource to be created.
* E.g. for resource name
* `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`.
* the id is value of {service_lb_policy_name}
*/
// const serviceLbPolicyId = 'abc123'
/**
* Required. ServiceLbPolicy resource to be created.
*/
// const serviceLbPolicy = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateServiceLbPolicy() {
// Construct request
const request = {
parent,
serviceLbPolicyId,
serviceLbPolicy,
};
// Run request
const [operation] = await networkservicesClient.createServiceLbPolicy(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateServiceLbPolicy();
createServiceLbPolicy(request, options, callback)
createServiceLbPolicy(request: protos.google.cloud.networkservices.v1.ICreateServiceLbPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IServiceLbPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateServiceLbPolicyRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IServiceLbPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createServiceLbPolicy(request, callback)
createServiceLbPolicy(request: protos.google.cloud.networkservices.v1.ICreateServiceLbPolicyRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IServiceLbPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateServiceLbPolicyRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IServiceLbPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createTcpRoute(request, options)
createTcpRoute(request?: protos.google.cloud.networkservices.v1.ICreateTcpRouteRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.ITcpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Creates a new TcpRoute in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateTcpRouteRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.ITcpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the TcpRoute. Must be in the
* format `projects/* /locations/global`.
*/
// const parent = 'abc123'
/**
* Required. Short name of the TcpRoute resource to be created.
*/
// const tcpRouteId = 'abc123'
/**
* Required. TcpRoute resource to be created.
*/
// const tcpRoute = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateTcpRoute() {
// Construct request
const request = {
parent,
tcpRouteId,
tcpRoute,
};
// Run request
const [operation] = await networkservicesClient.createTcpRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateTcpRoute();
createTcpRoute(request, options, callback)
createTcpRoute(request: protos.google.cloud.networkservices.v1.ICreateTcpRouteRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.ITcpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateTcpRouteRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.ITcpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createTcpRoute(request, callback)
createTcpRoute(request: protos.google.cloud.networkservices.v1.ICreateTcpRouteRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.ITcpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateTcpRouteRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.ITcpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createTlsRoute(request, options)
createTlsRoute(request?: protos.google.cloud.networkservices.v1.ICreateTlsRouteRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.ITlsRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Creates a new TlsRoute in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateTlsRouteRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.ITlsRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the TlsRoute. Must be in the
* format `projects/* /locations/global`.
*/
// const parent = 'abc123'
/**
* Required. Short name of the TlsRoute resource to be created.
*/
// const tlsRouteId = 'abc123'
/**
* Required. TlsRoute resource to be created.
*/
// const tlsRoute = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateTlsRoute() {
// Construct request
const request = {
parent,
tlsRouteId,
tlsRoute,
};
// Run request
const [operation] = await networkservicesClient.createTlsRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateTlsRoute();
createTlsRoute(request, options, callback)
createTlsRoute(request: protos.google.cloud.networkservices.v1.ICreateTlsRouteRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.ITlsRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateTlsRouteRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.ITlsRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createTlsRoute(request, callback)
createTlsRoute(request: protos.google.cloud.networkservices.v1.ICreateTlsRouteRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.ITlsRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateTlsRouteRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.ITlsRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createWasmPlugin(request, options)
createWasmPlugin(request?: protos.google.cloud.networkservices.v1.ICreateWasmPluginRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.IWasmPlugin, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Creates a new WasmPlugin resource in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateWasmPluginRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.IWasmPlugin, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the `WasmPlugin` resource. Must be in the
* format `projects/{project}/locations/global`.
*/
// const parent = 'abc123'
/**
* Required. User-provided ID of the `WasmPlugin` resource to be created.
*/
// const wasmPluginId = 'abc123'
/**
* Required. `WasmPlugin` resource to be created.
*/
// const wasmPlugin = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateWasmPlugin() {
// Construct request
const request = {
parent,
wasmPluginId,
wasmPlugin,
};
// Run request
const [operation] = await networkservicesClient.createWasmPlugin(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateWasmPlugin();
createWasmPlugin(request, options, callback)
createWasmPlugin(request: protos.google.cloud.networkservices.v1.ICreateWasmPluginRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IWasmPlugin, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateWasmPluginRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IWasmPlugin, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createWasmPlugin(request, callback)
createWasmPlugin(request: protos.google.cloud.networkservices.v1.ICreateWasmPluginRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IWasmPlugin, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateWasmPluginRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IWasmPlugin, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createWasmPluginVersion(request, options)
createWasmPluginVersion(request?: protos.google.cloud.networkservices.v1.ICreateWasmPluginVersionRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.IWasmPluginVersion, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Creates a new WasmPluginVersion resource in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateWasmPluginVersionRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.IWasmPluginVersion, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource of the `WasmPluginVersion` resource. Must be
* in the format
* `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
*/
// const parent = 'abc123'
/**
* Required. User-provided ID of the `WasmPluginVersion` resource to be
* created.
*/
// const wasmPluginVersionId = 'abc123'
/**
* Required. `WasmPluginVersion` resource to be created.
*/
// const wasmPluginVersion = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callCreateWasmPluginVersion() {
// Construct request
const request = {
parent,
wasmPluginVersionId,
wasmPluginVersion,
};
// Run request
const [operation] = await networkservicesClient.createWasmPluginVersion(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateWasmPluginVersion();
createWasmPluginVersion(request, options, callback)
createWasmPluginVersion(request: protos.google.cloud.networkservices.v1.ICreateWasmPluginVersionRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IWasmPluginVersion, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateWasmPluginVersionRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IWasmPluginVersion, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
createWasmPluginVersion(request, callback)
createWasmPluginVersion(request: protos.google.cloud.networkservices.v1.ICreateWasmPluginVersionRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IWasmPluginVersion, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
ICreateWasmPluginVersionRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IWasmPluginVersion, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteEndpointPolicy(request, options)
deleteEndpointPolicy(request?: protos.google.cloud.networkservices.v1.IDeleteEndpointPolicyRequest, options?: CallOptions): Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Deletes a single EndpointPolicy.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteEndpointPolicyRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the EndpointPolicy to delete. Must be in the format
* `projects/* /locations/global/endpointPolicies/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteEndpointPolicy() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteEndpointPolicy(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteEndpointPolicy();
deleteEndpointPolicy(request, options, callback)
deleteEndpointPolicy(request: protos.google.cloud.networkservices.v1.IDeleteEndpointPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteEndpointPolicyRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteEndpointPolicy(request, callback)
deleteEndpointPolicy(request: protos.google.cloud.networkservices.v1.IDeleteEndpointPolicyRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteEndpointPolicyRequest
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteGateway(request, options)
deleteGateway(request?: protos.google.cloud.networkservices.v1.IDeleteGatewayRequest, options?: CallOptions): Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Deletes a single Gateway.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteGatewayRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the Gateway to delete. Must be in the format
* `projects/* /locations/* /gateways/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteGateway() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteGateway(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteGateway();
deleteGateway(request, options, callback)
deleteGateway(request: protos.google.cloud.networkservices.v1.IDeleteGatewayRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteGatewayRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteGateway(request, callback)
deleteGateway(request: protos.google.cloud.networkservices.v1.IDeleteGatewayRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteGatewayRequest
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteGrpcRoute(request, options)
deleteGrpcRoute(request?: protos.google.cloud.networkservices.v1.IDeleteGrpcRouteRequest, options?: CallOptions): Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Deletes a single GrpcRoute.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteGrpcRouteRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the GrpcRoute to delete. Must be in the format
* `projects/* /locations/global/grpcRoutes/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteGrpcRoute() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteGrpcRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteGrpcRoute();
deleteGrpcRoute(request, options, callback)
deleteGrpcRoute(request: protos.google.cloud.networkservices.v1.IDeleteGrpcRouteRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteGrpcRouteRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteGrpcRoute(request, callback)
deleteGrpcRoute(request: protos.google.cloud.networkservices.v1.IDeleteGrpcRouteRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteGrpcRouteRequest
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteHttpRoute(request, options)
deleteHttpRoute(request?: protos.google.cloud.networkservices.v1.IDeleteHttpRouteRequest, options?: CallOptions): Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Deletes a single HttpRoute.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteHttpRouteRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the HttpRoute to delete. Must be in the format
* `projects/* /locations/global/httpRoutes/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteHttpRoute() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteHttpRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteHttpRoute();
deleteHttpRoute(request, options, callback)
deleteHttpRoute(request: protos.google.cloud.networkservices.v1.IDeleteHttpRouteRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteHttpRouteRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteHttpRoute(request, callback)
deleteHttpRoute(request: protos.google.cloud.networkservices.v1.IDeleteHttpRouteRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteHttpRouteRequest
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteMesh(request, options)
deleteMesh(request?: protos.google.cloud.networkservices.v1.IDeleteMeshRequest, options?: CallOptions): Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Deletes a single Mesh.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteMeshRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the Mesh to delete. Must be in the format
* `projects/* /locations/global/meshes/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteMesh() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteMesh(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteMesh();
deleteMesh(request, options, callback)
deleteMesh(request: protos.google.cloud.networkservices.v1.IDeleteMeshRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteMeshRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteMesh(request, callback)
deleteMesh(request: protos.google.cloud.networkservices.v1.IDeleteMeshRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteMeshRequest
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteOperation(request, optionsOrCallback, callback)
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>;Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteOperationRequest
The request object that will be sent. |
optionsOrCallback |
CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>
|
callback |
Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>
The function which will be called with the result of the API call. {Promise} - The promise which resolves when API call finishes. The promise has a method named "cancel" which cancels the ongoing API call. |
| Returns | |
|---|---|
| Type | Description |
Promise<protos.google.protobuf.Empty> |
|
const client = longrunning.operationsClient();
await client.deleteOperation({name: ''});
deleteServiceBinding(request, options)
deleteServiceBinding(request?: protos.google.cloud.networkservices.v1.IDeleteServiceBindingRequest, options?: CallOptions): Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Deletes a single ServiceBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteServiceBindingRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the ServiceBinding to delete. Must be in the format
* `projects/* /locations/* /serviceBindings/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteServiceBinding() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteServiceBinding(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteServiceBinding();
deleteServiceBinding(request, options, callback)
deleteServiceBinding(request: protos.google.cloud.networkservices.v1.IDeleteServiceBindingRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteServiceBindingRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteServiceBinding(request, callback)
deleteServiceBinding(request: protos.google.cloud.networkservices.v1.IDeleteServiceBindingRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteServiceBindingRequest
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteServiceLbPolicy(request, options)
deleteServiceLbPolicy(request?: protos.google.cloud.networkservices.v1.IDeleteServiceLbPolicyRequest, options?: CallOptions): Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Deletes a single ServiceLbPolicy.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteServiceLbPolicyRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the ServiceLbPolicy to delete. Must be in the format
* `projects/{project}/locations/{location}/serviceLbPolicies/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteServiceLbPolicy() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteServiceLbPolicy(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteServiceLbPolicy();
deleteServiceLbPolicy(request, options, callback)
deleteServiceLbPolicy(request: protos.google.cloud.networkservices.v1.IDeleteServiceLbPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteServiceLbPolicyRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteServiceLbPolicy(request, callback)
deleteServiceLbPolicy(request: protos.google.cloud.networkservices.v1.IDeleteServiceLbPolicyRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteServiceLbPolicyRequest
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteTcpRoute(request, options)
deleteTcpRoute(request?: protos.google.cloud.networkservices.v1.IDeleteTcpRouteRequest, options?: CallOptions): Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Deletes a single TcpRoute.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteTcpRouteRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the TcpRoute to delete. Must be in the format
* `projects/* /locations/global/tcpRoutes/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteTcpRoute() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteTcpRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteTcpRoute();
deleteTcpRoute(request, options, callback)
deleteTcpRoute(request: protos.google.cloud.networkservices.v1.IDeleteTcpRouteRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteTcpRouteRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteTcpRoute(request, callback)
deleteTcpRoute(request: protos.google.cloud.networkservices.v1.IDeleteTcpRouteRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteTcpRouteRequest
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteTlsRoute(request, options)
deleteTlsRoute(request?: protos.google.cloud.networkservices.v1.IDeleteTlsRouteRequest, options?: CallOptions): Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Deletes a single TlsRoute.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteTlsRouteRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the TlsRoute to delete. Must be in the format
* `projects/* /locations/global/tlsRoutes/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteTlsRoute() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteTlsRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteTlsRoute();
deleteTlsRoute(request, options, callback)
deleteTlsRoute(request: protos.google.cloud.networkservices.v1.IDeleteTlsRouteRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteTlsRouteRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteTlsRoute(request, callback)
deleteTlsRoute(request: protos.google.cloud.networkservices.v1.IDeleteTlsRouteRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteTlsRouteRequest
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteWasmPlugin(request, options)
deleteWasmPlugin(request?: protos.google.cloud.networkservices.v1.IDeleteWasmPluginRequest, options?: CallOptions): Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Deletes the specified WasmPlugin resource.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteWasmPluginRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the `WasmPlugin` resource to delete. Must be in the
* format `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteWasmPlugin() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteWasmPlugin(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteWasmPlugin();
deleteWasmPlugin(request, options, callback)
deleteWasmPlugin(request: protos.google.cloud.networkservices.v1.IDeleteWasmPluginRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteWasmPluginRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteWasmPlugin(request, callback)
deleteWasmPlugin(request: protos.google.cloud.networkservices.v1.IDeleteWasmPluginRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteWasmPluginRequest
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteWasmPluginVersion(request, options)
deleteWasmPluginVersion(request?: protos.google.cloud.networkservices.v1.IDeleteWasmPluginVersionRequest, options?: CallOptions): Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Deletes the specified WasmPluginVersion resource.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteWasmPluginVersionRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the `WasmPluginVersion` resource to delete. Must be in
* the format
* `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}/versions/{wasm_plugin_version}`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callDeleteWasmPluginVersion() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await networkservicesClient.deleteWasmPluginVersion(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteWasmPluginVersion();
deleteWasmPluginVersion(request, options, callback)
deleteWasmPluginVersion(request: protos.google.cloud.networkservices.v1.IDeleteWasmPluginVersionRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteWasmPluginVersionRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteWasmPluginVersion(request, callback)
deleteWasmPluginVersion(request: protos.google.cloud.networkservices.v1.IDeleteWasmPluginVersionRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteWasmPluginVersionRequest
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
endpointPolicyPath(project, location, endpointPolicy)
endpointPolicyPath(project: string, location: string, endpointPolicy: string): string;Return a fully-qualified endpointPolicy resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
location |
string
|
endpointPolicy |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
gatewayPath(project, location, gateway)
gatewayPath(project: string, location: string, gateway: string): string;Return a fully-qualified gateway resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
location |
string
|
gateway |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
gatewayRouteViewPath(project, location, gateway, routeView)
gatewayRouteViewPath(project: string, location: string, gateway: string, routeView: string): string;Return a fully-qualified gatewayRouteView resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
location |
string
|
gateway |
string
|
routeView |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
getEndpointPolicy(request, options)
getEndpointPolicy(request?: protos.google.cloud.networkservices.v1.IGetEndpointPolicyRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IEndpointPolicy,
protos.google.cloud.networkservices.v1.IGetEndpointPolicyRequest | undefined,
{} | undefined
]>;Gets details of a single EndpointPolicy.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetEndpointPolicyRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IEndpointPolicy,
protos.google.cloud.networkservices.v1.IGetEndpointPolicyRequest | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the EndpointPolicy to get. Must be in the format
* `projects/* /locations/global/endpointPolicies/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callGetEndpointPolicy() {
// Construct request
const request = {
name,
};
// Run request
const response = await networkservicesClient.getEndpointPolicy(request);
console.log(response);
}
callGetEndpointPolicy();
getEndpointPolicy(request, options, callback)
getEndpointPolicy(request: protos.google.cloud.networkservices.v1.IGetEndpointPolicyRequest, options: CallOptions, callback: Callback<protos.google.cloud.networkservices.v1.IEndpointPolicy, protos.google.cloud.networkservices.v1.IGetEndpointPolicyRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetEndpointPolicyRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.networkservices.v1.IEndpointPolicy, protos.google.cloud.networkservices.v1.IGetEndpointPolicyRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getEndpointPolicy(request, callback)
getEndpointPolicy(request: protos.google.cloud.networkservices.v1.IGetEndpointPolicyRequest, callback: Callback<protos.google.cloud.networkservices.v1.IEndpointPolicy, protos.google.cloud.networkservices.v1.IGetEndpointPolicyRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetEndpointPolicyRequest
|
callback |
Callback<protos.google.cloud.networkservices.v1.IEndpointPolicy, protos.google.cloud.networkservices.v1.IGetEndpointPolicyRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getGateway(request, options)
getGateway(request?: protos.google.cloud.networkservices.v1.IGetGatewayRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IGateway,
protos.google.cloud.networkservices.v1.IGetGatewayRequest | undefined,
{} | undefined
]>;Gets details of a single Gateway.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetGatewayRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IGateway,
protos.google.cloud.networkservices.v1.IGetGatewayRequest | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the Gateway to get. Must be in the format
* `projects/* /locations/* /gateways/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callGetGateway() {
// Construct request
const request = {
name,
};
// Run request
const response = await networkservicesClient.getGateway(request);
console.log(response);
}
callGetGateway();
getGateway(request, options, callback)
getGateway(request: protos.google.cloud.networkservices.v1.IGetGatewayRequest, options: CallOptions, callback: Callback<protos.google.cloud.networkservices.v1.IGateway, protos.google.cloud.networkservices.v1.IGetGatewayRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetGatewayRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.networkservices.v1.IGateway, protos.google.cloud.networkservices.v1.IGetGatewayRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getGateway(request, callback)
getGateway(request: protos.google.cloud.networkservices.v1.IGetGatewayRequest, callback: Callback<protos.google.cloud.networkservices.v1.IGateway, protos.google.cloud.networkservices.v1.IGetGatewayRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetGatewayRequest
|
callback |
Callback<protos.google.cloud.networkservices.v1.IGateway, protos.google.cloud.networkservices.v1.IGetGatewayRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getGatewayRouteView(request, options)
getGatewayRouteView(request?: protos.google.cloud.networkservices.v1.IGetGatewayRouteViewRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IGatewayRouteView,
protos.google.cloud.networkservices.v1.IGetGatewayRouteViewRequest | undefined,
{} | undefined
]>;Get a single RouteView of a Gateway.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetGatewayRouteViewRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IGatewayRouteView,
protos.google.cloud.networkservices.v1.IGetGatewayRouteViewRequest | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing GatewayRouteView. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. Name of the GatewayRouteView resource.
* Formats:
* projects/{project}/locations/{location}/gateways/{gateway}/routeViews/{route_view}
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callGetGatewayRouteView() {
// Construct request
const request = {
name,
};
// Run request
const response = await networkservicesClient.getGatewayRouteView(request);
console.log(response);
}
callGetGatewayRouteView();
getGatewayRouteView(request, options, callback)
getGatewayRouteView(request: protos.google.cloud.networkservices.v1.IGetGatewayRouteViewRequest, options: CallOptions, callback: Callback<protos.google.cloud.networkservices.v1.IGatewayRouteView, protos.google.cloud.networkservices.v1.IGetGatewayRouteViewRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetGatewayRouteViewRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.networkservices.v1.IGatewayRouteView, protos.google.cloud.networkservices.v1.IGetGatewayRouteViewRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getGatewayRouteView(request, callback)
getGatewayRouteView(request: protos.google.cloud.networkservices.v1.IGetGatewayRouteViewRequest, callback: Callback<protos.google.cloud.networkservices.v1.IGatewayRouteView, protos.google.cloud.networkservices.v1.IGetGatewayRouteViewRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetGatewayRouteViewRequest
|
callback |
Callback<protos.google.cloud.networkservices.v1.IGatewayRouteView, protos.google.cloud.networkservices.v1.IGetGatewayRouteViewRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getGrpcRoute(request, options)
getGrpcRoute(request?: protos.google.cloud.networkservices.v1.IGetGrpcRouteRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IGrpcRoute,
protos.google.cloud.networkservices.v1.IGetGrpcRouteRequest | undefined,
{} | undefined
]>;Gets details of a single GrpcRoute.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetGrpcRouteRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IGrpcRoute,
protos.google.cloud.networkservices.v1.IGetGrpcRouteRequest | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the GrpcRoute to get. Must be in the format
* `projects/* /locations/global/grpcRoutes/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callGetGrpcRoute() {
// Construct request
const request = {
name,
};
// Run request
const response = await networkservicesClient.getGrpcRoute(request);
console.log(response);
}
callGetGrpcRoute();
getGrpcRoute(request, options, callback)
getGrpcRoute(request: protos.google.cloud.networkservices.v1.IGetGrpcRouteRequest, options: CallOptions, callback: Callback<protos.google.cloud.networkservices.v1.IGrpcRoute, protos.google.cloud.networkservices.v1.IGetGrpcRouteRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetGrpcRouteRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.networkservices.v1.IGrpcRoute, protos.google.cloud.networkservices.v1.IGetGrpcRouteRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getGrpcRoute(request, callback)
getGrpcRoute(request: protos.google.cloud.networkservices.v1.IGetGrpcRouteRequest, callback: Callback<protos.google.cloud.networkservices.v1.IGrpcRoute, protos.google.cloud.networkservices.v1.IGetGrpcRouteRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetGrpcRouteRequest
|
callback |
Callback<protos.google.cloud.networkservices.v1.IGrpcRoute, protos.google.cloud.networkservices.v1.IGetGrpcRouteRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getHttpRoute(request, options)
getHttpRoute(request?: protos.google.cloud.networkservices.v1.IGetHttpRouteRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IHttpRoute,
protos.google.cloud.networkservices.v1.IGetHttpRouteRequest | undefined,
{} | undefined
]>;Gets details of a single HttpRoute.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetHttpRouteRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IHttpRoute,
protos.google.cloud.networkservices.v1.IGetHttpRouteRequest | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the HttpRoute to get. Must be in the format
* `projects/* /locations/global/httpRoutes/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callGetHttpRoute() {
// Construct request
const request = {
name,
};
// Run request
const response = await networkservicesClient.getHttpRoute(request);
console.log(response);
}
callGetHttpRoute();
getHttpRoute(request, options, callback)
getHttpRoute(request: protos.google.cloud.networkservices.v1.IGetHttpRouteRequest, options: CallOptions, callback: Callback<protos.google.cloud.networkservices.v1.IHttpRoute, protos.google.cloud.networkservices.v1.IGetHttpRouteRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetHttpRouteRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.networkservices.v1.IHttpRoute, protos.google.cloud.networkservices.v1.IGetHttpRouteRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getHttpRoute(request, callback)
getHttpRoute(request: protos.google.cloud.networkservices.v1.IGetHttpRouteRequest, callback: Callback<protos.google.cloud.networkservices.v1.IHttpRoute, protos.google.cloud.networkservices.v1.IGetHttpRouteRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetHttpRouteRequest
|
callback |
Callback<protos.google.cloud.networkservices.v1.IHttpRoute, protos.google.cloud.networkservices.v1.IGetHttpRouteRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getIamPolicy(request, options, callback)
getIamPolicy(request: IamProtos.google.iam.v1.GetIamPolicyRequest, options?: gax.CallOptions | Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, {} | null | undefined>, callback?: Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, {} | null | undefined>): Promise<[IamProtos.google.iam.v1.Policy]>;Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
| Parameters | |
|---|---|
| Name | Description |
request |
IamProtos.google.iam.v1.GetIamPolicyRequest
The request object that will be sent. |
options |
CallOptions | Callback<google.iam.v1.Policy, google.iam.v1.GetIamPolicyRequest | null | undefined, {} | null | undefined>
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
callback |
Callback<google.iam.v1.Policy, google.iam.v1.GetIamPolicyRequest | null | undefined, {} | null | undefined>
The function which will be called with the result of the API call. The second parameter to the callback is an object representing . |
| Returns | |
|---|---|
| Type | Description |
Promise<[google.iam.v1.Policy]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing . The promise has a method named "cancel" which cancels the ongoing API call. |
getLocation(request, options, callback)
getLocation(request: LocationProtos.google.cloud.location.IGetLocationRequest, options?: gax.CallOptions | Callback<LocationProtos.google.cloud.location.ILocation, LocationProtos.google.cloud.location.IGetLocationRequest | null | undefined, {} | null | undefined>, callback?: Callback<LocationProtos.google.cloud.location.ILocation, LocationProtos.google.cloud.location.IGetLocationRequest | null | undefined, {} | null | undefined>): Promise<LocationProtos.google.cloud.location.ILocation>;Gets information about a location.
| Parameters | |
|---|---|
| Name | Description |
request |
LocationProtos.google.cloud.location.IGetLocationRequest
The request object that will be sent. |
options |
CallOptions | Callback<google.cloud.location.ILocation, google.cloud.location.IGetLocationRequest | null | undefined, {} | null | undefined>
Call options. See CallOptions for more details. |
callback |
Callback<google.cloud.location.ILocation, google.cloud.location.IGetLocationRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.location.ILocation> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples. |
const [response] = await client.getLocation(request);
getMesh(request, options)
getMesh(request?: protos.google.cloud.networkservices.v1.IGetMeshRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IMesh,
protos.google.cloud.networkservices.v1.IGetMeshRequest | undefined,
{} | undefined
]>;Gets details of a single Mesh.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetMeshRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IMesh,
protos.google.cloud.networkservices.v1.IGetMeshRequest | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing Mesh. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the Mesh to get. Must be in the format
* `projects/* /locations/global/meshes/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callGetMesh() {
// Construct request
const request = {
name,
};
// Run request
const response = await networkservicesClient.getMesh(request);
console.log(response);
}
callGetMesh();
getMesh(request, options, callback)
getMesh(request: protos.google.cloud.networkservices.v1.IGetMeshRequest, options: CallOptions, callback: Callback<protos.google.cloud.networkservices.v1.IMesh, protos.google.cloud.networkservices.v1.IGetMeshRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetMeshRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.networkservices.v1.IMesh, protos.google.cloud.networkservices.v1.IGetMeshRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getMesh(request, callback)
getMesh(request: protos.google.cloud.networkservices.v1.IGetMeshRequest, callback: Callback<protos.google.cloud.networkservices.v1.IMesh, protos.google.cloud.networkservices.v1.IGetMeshRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetMeshRequest
|
callback |
Callback<protos.google.cloud.networkservices.v1.IMesh, protos.google.cloud.networkservices.v1.IGetMeshRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getMeshRouteView(request, options)
getMeshRouteView(request?: protos.google.cloud.networkservices.v1.IGetMeshRouteViewRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IMeshRouteView,
protos.google.cloud.networkservices.v1.IGetMeshRouteViewRequest | undefined,
{} | undefined
]>;Get a single RouteView of a Mesh.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetMeshRouteViewRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IMeshRouteView,
protos.google.cloud.networkservices.v1.IGetMeshRouteViewRequest | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing MeshRouteView. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. Name of the MeshRouteView resource.
* Format:
* projects/{project}/locations/{location}/meshes/{mesh}/routeViews/{route_view}
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callGetMeshRouteView() {
// Construct request
const request = {
name,
};
// Run request
const response = await networkservicesClient.getMeshRouteView(request);
console.log(response);
}
callGetMeshRouteView();
getMeshRouteView(request, options, callback)
getMeshRouteView(request: protos.google.cloud.networkservices.v1.IGetMeshRouteViewRequest, options: CallOptions, callback: Callback<protos.google.cloud.networkservices.v1.IMeshRouteView, protos.google.cloud.networkservices.v1.IGetMeshRouteViewRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetMeshRouteViewRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.networkservices.v1.IMeshRouteView, protos.google.cloud.networkservices.v1.IGetMeshRouteViewRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getMeshRouteView(request, callback)
getMeshRouteView(request: protos.google.cloud.networkservices.v1.IGetMeshRouteViewRequest, callback: Callback<protos.google.cloud.networkservices.v1.IMeshRouteView, protos.google.cloud.networkservices.v1.IGetMeshRouteViewRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetMeshRouteViewRequest
|
callback |
Callback<protos.google.cloud.networkservices.v1.IMeshRouteView, protos.google.cloud.networkservices.v1.IGetMeshRouteViewRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getOperation(request, optionsOrCallback, callback)
getOperation(request: protos.google.longrunning.GetOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>;Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
| Parameters | |
|---|---|
| Name | Description |
request |
GetOperationRequest
The request object that will be sent. |
optionsOrCallback |
CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>
|
callback |
Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>
The function which will be called with the result of the API call. The second parameter to the callback is an object representing . {Promise} - The promise which resolves to an array. The first element of the array is an object representing . The promise has a method named "cancel" which cancels the ongoing API call. |
| Returns | |
|---|---|
| Type | Description |
Promise<[protos.google.longrunning.Operation]> |
|
const client = longrunning.operationsClient();
const name = '';
const [response] = await client.getOperation({name});
// doThingsWith(response)
getProjectId()
getProjectId(): Promise<string>;| Returns | |
|---|---|
| Type | Description |
Promise<string> |
|
getProjectId(callback)
getProjectId(callback: Callback<string, undefined, undefined>): void;| Parameter | |
|---|---|
| Name | Description |
callback |
Callback<string, undefined, undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getServiceBinding(request, options)
getServiceBinding(request?: protos.google.cloud.networkservices.v1.IGetServiceBindingRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IServiceBinding,
protos.google.cloud.networkservices.v1.IGetServiceBindingRequest | undefined,
{} | undefined
]>;Gets details of a single ServiceBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetServiceBindingRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IServiceBinding,
protos.google.cloud.networkservices.v1.IGetServiceBindingRequest | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing ServiceBinding. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the ServiceBinding to get. Must be in the format
* `projects/* /locations/* /serviceBindings/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callGetServiceBinding() {
// Construct request
const request = {
name,
};
// Run request
const response = await networkservicesClient.getServiceBinding(request);
console.log(response);
}
callGetServiceBinding();
getServiceBinding(request, options, callback)
getServiceBinding(request: protos.google.cloud.networkservices.v1.IGetServiceBindingRequest, options: CallOptions, callback: Callback<protos.google.cloud.networkservices.v1.IServiceBinding, protos.google.cloud.networkservices.v1.IGetServiceBindingRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetServiceBindingRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.networkservices.v1.IServiceBinding, protos.google.cloud.networkservices.v1.IGetServiceBindingRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getServiceBinding(request, callback)
getServiceBinding(request: protos.google.cloud.networkservices.v1.IGetServiceBindingRequest, callback: Callback<protos.google.cloud.networkservices.v1.IServiceBinding, protos.google.cloud.networkservices.v1.IGetServiceBindingRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetServiceBindingRequest
|
callback |
Callback<protos.google.cloud.networkservices.v1.IServiceBinding, protos.google.cloud.networkservices.v1.IGetServiceBindingRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getServiceLbPolicy(request, options)
getServiceLbPolicy(request?: protos.google.cloud.networkservices.v1.IGetServiceLbPolicyRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IServiceLbPolicy,
protos.google.cloud.networkservices.v1.IGetServiceLbPolicyRequest | undefined,
{} | undefined
]>;Gets details of a single ServiceLbPolicy.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetServiceLbPolicyRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IServiceLbPolicy,
protos.google.cloud.networkservices.v1.IGetServiceLbPolicyRequest | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the ServiceLbPolicy to get. Must be in the format
* `projects/{project}/locations/{location}/serviceLbPolicies/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callGetServiceLbPolicy() {
// Construct request
const request = {
name,
};
// Run request
const response = await networkservicesClient.getServiceLbPolicy(request);
console.log(response);
}
callGetServiceLbPolicy();
getServiceLbPolicy(request, options, callback)
getServiceLbPolicy(request: protos.google.cloud.networkservices.v1.IGetServiceLbPolicyRequest, options: CallOptions, callback: Callback<protos.google.cloud.networkservices.v1.IServiceLbPolicy, protos.google.cloud.networkservices.v1.IGetServiceLbPolicyRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetServiceLbPolicyRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.networkservices.v1.IServiceLbPolicy, protos.google.cloud.networkservices.v1.IGetServiceLbPolicyRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getServiceLbPolicy(request, callback)
getServiceLbPolicy(request: protos.google.cloud.networkservices.v1.IGetServiceLbPolicyRequest, callback: Callback<protos.google.cloud.networkservices.v1.IServiceLbPolicy, protos.google.cloud.networkservices.v1.IGetServiceLbPolicyRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetServiceLbPolicyRequest
|
callback |
Callback<protos.google.cloud.networkservices.v1.IServiceLbPolicy, protos.google.cloud.networkservices.v1.IGetServiceLbPolicyRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getTcpRoute(request, options)
getTcpRoute(request?: protos.google.cloud.networkservices.v1.IGetTcpRouteRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.ITcpRoute,
protos.google.cloud.networkservices.v1.IGetTcpRouteRequest | undefined,
{} | undefined
]>;Gets details of a single TcpRoute.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetTcpRouteRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.ITcpRoute,
protos.google.cloud.networkservices.v1.IGetTcpRouteRequest | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the TcpRoute to get. Must be in the format
* `projects/* /locations/global/tcpRoutes/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callGetTcpRoute() {
// Construct request
const request = {
name,
};
// Run request
const response = await networkservicesClient.getTcpRoute(request);
console.log(response);
}
callGetTcpRoute();
getTcpRoute(request, options, callback)
getTcpRoute(request: protos.google.cloud.networkservices.v1.IGetTcpRouteRequest, options: CallOptions, callback: Callback<protos.google.cloud.networkservices.v1.ITcpRoute, protos.google.cloud.networkservices.v1.IGetTcpRouteRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetTcpRouteRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.networkservices.v1.ITcpRoute, protos.google.cloud.networkservices.v1.IGetTcpRouteRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getTcpRoute(request, callback)
getTcpRoute(request: protos.google.cloud.networkservices.v1.IGetTcpRouteRequest, callback: Callback<protos.google.cloud.networkservices.v1.ITcpRoute, protos.google.cloud.networkservices.v1.IGetTcpRouteRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetTcpRouteRequest
|
callback |
Callback<protos.google.cloud.networkservices.v1.ITcpRoute, protos.google.cloud.networkservices.v1.IGetTcpRouteRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getTlsRoute(request, options)
getTlsRoute(request?: protos.google.cloud.networkservices.v1.IGetTlsRouteRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.ITlsRoute,
protos.google.cloud.networkservices.v1.IGetTlsRouteRequest | undefined,
{} | undefined
]>;Gets details of a single TlsRoute.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetTlsRouteRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.ITlsRoute,
protos.google.cloud.networkservices.v1.IGetTlsRouteRequest | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the TlsRoute to get. Must be in the format
* `projects/* /locations/global/tlsRoutes/*`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callGetTlsRoute() {
// Construct request
const request = {
name,
};
// Run request
const response = await networkservicesClient.getTlsRoute(request);
console.log(response);
}
callGetTlsRoute();
getTlsRoute(request, options, callback)
getTlsRoute(request: protos.google.cloud.networkservices.v1.IGetTlsRouteRequest, options: CallOptions, callback: Callback<protos.google.cloud.networkservices.v1.ITlsRoute, protos.google.cloud.networkservices.v1.IGetTlsRouteRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetTlsRouteRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.networkservices.v1.ITlsRoute, protos.google.cloud.networkservices.v1.IGetTlsRouteRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getTlsRoute(request, callback)
getTlsRoute(request: protos.google.cloud.networkservices.v1.IGetTlsRouteRequest, callback: Callback<protos.google.cloud.networkservices.v1.ITlsRoute, protos.google.cloud.networkservices.v1.IGetTlsRouteRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetTlsRouteRequest
|
callback |
Callback<protos.google.cloud.networkservices.v1.ITlsRoute, protos.google.cloud.networkservices.v1.IGetTlsRouteRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getWasmPlugin(request, options)
getWasmPlugin(request?: protos.google.cloud.networkservices.v1.IGetWasmPluginRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IWasmPlugin,
protos.google.cloud.networkservices.v1.IGetWasmPluginRequest | undefined,
{} | undefined
]>;Gets details of the specified WasmPlugin resource.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetWasmPluginRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IWasmPlugin,
protos.google.cloud.networkservices.v1.IGetWasmPluginRequest | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing . Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the `WasmPlugin` resource to get. Must be in the
* format `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
*/
// const name = 'abc123'
/**
* Determines how much data must be returned in the response. See
* AIP-157 (https://google.aip.dev/157).
*/
// const view = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callGetWasmPlugin() {
// Construct request
const request = {
name,
};
// Run request
const response = await networkservicesClient.getWasmPlugin(request);
console.log(response);
}
callGetWasmPlugin();
getWasmPlugin(request, options, callback)
getWasmPlugin(request: protos.google.cloud.networkservices.v1.IGetWasmPluginRequest, options: CallOptions, callback: Callback<protos.google.cloud.networkservices.v1.IWasmPlugin, protos.google.cloud.networkservices.v1.IGetWasmPluginRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetWasmPluginRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.networkservices.v1.IWasmPlugin, protos.google.cloud.networkservices.v1.IGetWasmPluginRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getWasmPlugin(request, callback)
getWasmPlugin(request: protos.google.cloud.networkservices.v1.IGetWasmPluginRequest, callback: Callback<protos.google.cloud.networkservices.v1.IWasmPlugin, protos.google.cloud.networkservices.v1.IGetWasmPluginRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetWasmPluginRequest
|
callback |
Callback<protos.google.cloud.networkservices.v1.IWasmPlugin, protos.google.cloud.networkservices.v1.IGetWasmPluginRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getWasmPluginVersion(request, options)
getWasmPluginVersion(request?: protos.google.cloud.networkservices.v1.IGetWasmPluginVersionRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IWasmPluginVersion,
protos.google.cloud.networkservices.v1.IGetWasmPluginVersionRequest | undefined,
{} | undefined
]>;Gets details of the specified WasmPluginVersion resource.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetWasmPluginVersionRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IWasmPluginVersion,
protos.google.cloud.networkservices.v1.IGetWasmPluginVersionRequest | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing WasmPluginVersion. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. A name of the `WasmPluginVersion` resource to get. Must be in
* the format
* `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}/versions/{wasm_plugin_version}`.
*/
// const name = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callGetWasmPluginVersion() {
// Construct request
const request = {
name,
};
// Run request
const response = await networkservicesClient.getWasmPluginVersion(request);
console.log(response);
}
callGetWasmPluginVersion();
getWasmPluginVersion(request, options, callback)
getWasmPluginVersion(request: protos.google.cloud.networkservices.v1.IGetWasmPluginVersionRequest, options: CallOptions, callback: Callback<protos.google.cloud.networkservices.v1.IWasmPluginVersion, protos.google.cloud.networkservices.v1.IGetWasmPluginVersionRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetWasmPluginVersionRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.networkservices.v1.IWasmPluginVersion, protos.google.cloud.networkservices.v1.IGetWasmPluginVersionRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
getWasmPluginVersion(request, callback)
getWasmPluginVersion(request: protos.google.cloud.networkservices.v1.IGetWasmPluginVersionRequest, callback: Callback<protos.google.cloud.networkservices.v1.IWasmPluginVersion, protos.google.cloud.networkservices.v1.IGetWasmPluginVersionRequest | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IGetWasmPluginVersionRequest
|
callback |
Callback<protos.google.cloud.networkservices.v1.IWasmPluginVersion, protos.google.cloud.networkservices.v1.IGetWasmPluginVersionRequest | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
grpcRoutePath(project, location, grpcRoute)
grpcRoutePath(project: string, location: string, grpcRoute: string): string;Return a fully-qualified grpcRoute resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
location |
string
|
grpcRoute |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
httpRoutePath(project, location, httpRoute)
httpRoutePath(project: string, location: string, httpRoute: string): string;Return a fully-qualified httpRoute resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
location |
string
|
httpRoute |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
initialize()
initialize(): Promise<{
[name: string]: Function;
}>;Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.
You can await on this method if you want to make sure the client is initialized.
| Returns | |
|---|---|
| Type | Description |
Promise<{
[name: string]: Function;
}> |
{Promise} A promise that resolves to an authenticated service stub. |
lbEdgeExtensionPath(project, location, lbEdgeExtension)
lbEdgeExtensionPath(project: string, location: string, lbEdgeExtension: string): string;Return a fully-qualified lbEdgeExtension resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
location |
string
|
lbEdgeExtension |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
lbRouteExtensionPath(project, location, lbRouteExtension)
lbRouteExtensionPath(project: string, location: string, lbRouteExtension: string): string;Return a fully-qualified lbRouteExtension resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
location |
string
|
lbRouteExtension |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
lbTrafficExtensionPath(project, location, lbTrafficExtension)
lbTrafficExtensionPath(project: string, location: string, lbTrafficExtension: string): string;Return a fully-qualified lbTrafficExtension resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
location |
string
|
lbTrafficExtension |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
listEndpointPolicies(request, options)
listEndpointPolicies(request?: protos.google.cloud.networkservices.v1.IListEndpointPoliciesRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IEndpointPolicy[],
protos.google.cloud.networkservices.v1.IListEndpointPoliciesRequest | null,
protos.google.cloud.networkservices.v1.IListEndpointPoliciesResponse
]>;Lists EndpointPolicies in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
IListEndpointPoliciesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IEndpointPolicy[],
protos.google.cloud.networkservices.v1.IListEndpointPoliciesRequest | null,
protos.google.cloud.networkservices.v1.IListEndpointPoliciesResponse
]> |
{Promise} - The promise which resolves to an array. The first element of the array is Array of . The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using |
listEndpointPolicies(request, options, callback)
listEndpointPolicies(request: protos.google.cloud.networkservices.v1.IListEndpointPoliciesRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListEndpointPoliciesRequest, protos.google.cloud.networkservices.v1.IListEndpointPoliciesResponse | null | undefined, protos.google.cloud.networkservices.v1.IEndpointPolicy>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListEndpointPoliciesRequest
|
options |
CallOptions
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListEndpointPoliciesRequest, protos.google.cloud.networkservices.v1.IListEndpointPoliciesResponse | null | undefined, protos.google.cloud.networkservices.v1.IEndpointPolicy>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listEndpointPolicies(request, callback)
listEndpointPolicies(request: protos.google.cloud.networkservices.v1.IListEndpointPoliciesRequest, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListEndpointPoliciesRequest, protos.google.cloud.networkservices.v1.IListEndpointPoliciesResponse | null | undefined, protos.google.cloud.networkservices.v1.IEndpointPolicy>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListEndpointPoliciesRequest
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListEndpointPoliciesRequest, protos.google.cloud.networkservices.v1.IListEndpointPoliciesResponse | null | undefined, protos.google.cloud.networkservices.v1.IEndpointPolicy>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listEndpointPoliciesAsync(request, options)
listEndpointPoliciesAsync(request?: protos.google.cloud.networkservices.v1.IListEndpointPoliciesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networkservices.v1.IEndpointPolicy>;Equivalent to listEndpointPolicies, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
| Parameters | |
|---|---|
| Name | Description |
request |
IListEndpointPoliciesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
AsyncIterable<protos.google.cloud.networkservices.v1.IEndpointPolicy> |
{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing . The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The project and location from which the EndpointPolicies should
* be listed, specified in the format `projects/* /locations/global`.
*/
// const parent = 'abc123'
/**
* Maximum number of EndpointPolicies to return per call.
*/
// const pageSize = 1234
/**
* The value returned by the last `ListEndpointPoliciesResponse`
* Indicates that this is a continuation of a prior
* `ListEndpointPolicies` call, and that the system should return the
* next page of data.
*/
// const pageToken = 'abc123'
/**
* Optional. If true, allow partial responses for multi-regional Aggregated
* List requests. Otherwise if one of the locations is down or unreachable,
* the Aggregated List request will fail.
*/
// const returnPartialSuccess = true
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callListEndpointPolicies() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = networkservicesClient.listEndpointPoliciesAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListEndpointPolicies();
listEndpointPoliciesStream(request, options)
listEndpointPoliciesStream(request?: protos.google.cloud.networkservices.v1.IListEndpointPoliciesRequest, options?: CallOptions): Transform;Equivalent to listEndpointPolicies, but returns a NodeJS Stream object.
| Parameters | |
|---|---|
| Name | Description |
request |
IListEndpointPoliciesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Transform |
{Stream} An object stream which emits an object representing on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using |
listGatewayRouteViews(request, options)
listGatewayRouteViews(request?: protos.google.cloud.networkservices.v1.IListGatewayRouteViewsRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IGatewayRouteView[],
protos.google.cloud.networkservices.v1.IListGatewayRouteViewsRequest | null,
protos.google.cloud.networkservices.v1.IListGatewayRouteViewsResponse
]>;Lists RouteViews
| Parameters | |
|---|---|
| Name | Description |
request |
IListGatewayRouteViewsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IGatewayRouteView[],
protos.google.cloud.networkservices.v1.IListGatewayRouteViewsRequest | null,
protos.google.cloud.networkservices.v1.IListGatewayRouteViewsResponse
]> |
{Promise} - The promise which resolves to an array. The first element of the array is Array of GatewayRouteView. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using |
listGatewayRouteViews(request, options, callback)
listGatewayRouteViews(request: protos.google.cloud.networkservices.v1.IListGatewayRouteViewsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListGatewayRouteViewsRequest, protos.google.cloud.networkservices.v1.IListGatewayRouteViewsResponse | null | undefined, protos.google.cloud.networkservices.v1.IGatewayRouteView>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListGatewayRouteViewsRequest
|
options |
CallOptions
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListGatewayRouteViewsRequest, protos.google.cloud.networkservices.v1.IListGatewayRouteViewsResponse | null | undefined, protos.google.cloud.networkservices.v1.IGatewayRouteView>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listGatewayRouteViews(request, callback)
listGatewayRouteViews(request: protos.google.cloud.networkservices.v1.IListGatewayRouteViewsRequest, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListGatewayRouteViewsRequest, protos.google.cloud.networkservices.v1.IListGatewayRouteViewsResponse | null | undefined, protos.google.cloud.networkservices.v1.IGatewayRouteView>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListGatewayRouteViewsRequest
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListGatewayRouteViewsRequest, protos.google.cloud.networkservices.v1.IListGatewayRouteViewsResponse | null | undefined, protos.google.cloud.networkservices.v1.IGatewayRouteView>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listGatewayRouteViewsAsync(request, options)
listGatewayRouteViewsAsync(request?: protos.google.cloud.networkservices.v1.IListGatewayRouteViewsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networkservices.v1.IGatewayRouteView>;Equivalent to listGatewayRouteViews, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
| Parameters | |
|---|---|
| Name | Description |
request |
IListGatewayRouteViewsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
AsyncIterable<protos.google.cloud.networkservices.v1.IGatewayRouteView> |
{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing GatewayRouteView. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The Gateway to which a Route is associated.
* Formats:
* projects/{project}/locations/{location}/gateways/{gateway}
*/
// const parent = 'abc123'
/**
* Maximum number of GatewayRouteViews to return per call.
*/
// const pageSize = 1234
/**
* The value returned by the last `ListGatewayRouteViewsResponse`
* Indicates that this is a continuation of a prior `ListGatewayRouteViews`
* call, and that the system should return the next page of data.
*/
// const pageToken = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callListGatewayRouteViews() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = networkservicesClient.listGatewayRouteViewsAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListGatewayRouteViews();
listGatewayRouteViewsStream(request, options)
listGatewayRouteViewsStream(request?: protos.google.cloud.networkservices.v1.IListGatewayRouteViewsRequest, options?: CallOptions): Transform;Equivalent to listGatewayRouteViews, but returns a NodeJS Stream object.
| Parameters | |
|---|---|
| Name | Description |
request |
IListGatewayRouteViewsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Transform |
{Stream} An object stream which emits an object representing GatewayRouteView on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using |
listGateways(request, options)
listGateways(request?: protos.google.cloud.networkservices.v1.IListGatewaysRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IGateway[],
protos.google.cloud.networkservices.v1.IListGatewaysRequest | null,
protos.google.cloud.networkservices.v1.IListGatewaysResponse
]>;Lists Gateways in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
IListGatewaysRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IGateway[],
protos.google.cloud.networkservices.v1.IListGatewaysRequest | null,
protos.google.cloud.networkservices.v1.IListGatewaysResponse
]> |
{Promise} - The promise which resolves to an array. The first element of the array is Array of . The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using |
listGateways(request, options, callback)
listGateways(request: protos.google.cloud.networkservices.v1.IListGatewaysRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListGatewaysRequest, protos.google.cloud.networkservices.v1.IListGatewaysResponse | null | undefined, protos.google.cloud.networkservices.v1.IGateway>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListGatewaysRequest
|
options |
CallOptions
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListGatewaysRequest, protos.google.cloud.networkservices.v1.IListGatewaysResponse | null | undefined, protos.google.cloud.networkservices.v1.IGateway>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listGateways(request, callback)
listGateways(request: protos.google.cloud.networkservices.v1.IListGatewaysRequest, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListGatewaysRequest, protos.google.cloud.networkservices.v1.IListGatewaysResponse | null | undefined, protos.google.cloud.networkservices.v1.IGateway>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListGatewaysRequest
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListGatewaysRequest, protos.google.cloud.networkservices.v1.IListGatewaysResponse | null | undefined, protos.google.cloud.networkservices.v1.IGateway>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listGatewaysAsync(request, options)
listGatewaysAsync(request?: protos.google.cloud.networkservices.v1.IListGatewaysRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networkservices.v1.IGateway>;Equivalent to listGateways, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
| Parameters | |
|---|---|
| Name | Description |
request |
IListGatewaysRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
AsyncIterable<protos.google.cloud.networkservices.v1.IGateway> |
{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing . The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The project and location from which the Gateways should be
* listed, specified in the format `projects/* /locations/*`.
*/
// const parent = 'abc123'
/**
* Maximum number of Gateways to return per call.
*/
// const pageSize = 1234
/**
* The value returned by the last `ListGatewaysResponse`
* Indicates that this is a continuation of a prior `ListGateways` call,
* and that the system should return the next page of data.
*/
// const pageToken = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callListGateways() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = networkservicesClient.listGatewaysAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListGateways();
listGatewaysStream(request, options)
listGatewaysStream(request?: protos.google.cloud.networkservices.v1.IListGatewaysRequest, options?: CallOptions): Transform;Equivalent to listGateways, but returns a NodeJS Stream object.
| Parameters | |
|---|---|
| Name | Description |
request |
IListGatewaysRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Transform |
{Stream} An object stream which emits an object representing on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using |
listGrpcRoutes(request, options)
listGrpcRoutes(request?: protos.google.cloud.networkservices.v1.IListGrpcRoutesRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IGrpcRoute[],
protos.google.cloud.networkservices.v1.IListGrpcRoutesRequest | null,
protos.google.cloud.networkservices.v1.IListGrpcRoutesResponse
]>;Lists GrpcRoutes in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
IListGrpcRoutesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IGrpcRoute[],
protos.google.cloud.networkservices.v1.IListGrpcRoutesRequest | null,
protos.google.cloud.networkservices.v1.IListGrpcRoutesResponse
]> |
{Promise} - The promise which resolves to an array. The first element of the array is Array of . The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using |
listGrpcRoutes(request, options, callback)
listGrpcRoutes(request: protos.google.cloud.networkservices.v1.IListGrpcRoutesRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListGrpcRoutesRequest, protos.google.cloud.networkservices.v1.IListGrpcRoutesResponse | null | undefined, protos.google.cloud.networkservices.v1.IGrpcRoute>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListGrpcRoutesRequest
|
options |
CallOptions
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListGrpcRoutesRequest, protos.google.cloud.networkservices.v1.IListGrpcRoutesResponse | null | undefined, protos.google.cloud.networkservices.v1.IGrpcRoute>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listGrpcRoutes(request, callback)
listGrpcRoutes(request: protos.google.cloud.networkservices.v1.IListGrpcRoutesRequest, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListGrpcRoutesRequest, protos.google.cloud.networkservices.v1.IListGrpcRoutesResponse | null | undefined, protos.google.cloud.networkservices.v1.IGrpcRoute>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListGrpcRoutesRequest
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListGrpcRoutesRequest, protos.google.cloud.networkservices.v1.IListGrpcRoutesResponse | null | undefined, protos.google.cloud.networkservices.v1.IGrpcRoute>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listGrpcRoutesAsync(request, options)
listGrpcRoutesAsync(request?: protos.google.cloud.networkservices.v1.IListGrpcRoutesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networkservices.v1.IGrpcRoute>;Equivalent to listGrpcRoutes, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
| Parameters | |
|---|---|
| Name | Description |
request |
IListGrpcRoutesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
AsyncIterable<protos.google.cloud.networkservices.v1.IGrpcRoute> |
{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing . The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The project and location from which the GrpcRoutes should be
* listed, specified in the format `projects/* /locations/global`.
*/
// const parent = 'abc123'
/**
* Maximum number of GrpcRoutes to return per call.
*/
// const pageSize = 1234
/**
* The value returned by the last `ListGrpcRoutesResponse`
* Indicates that this is a continuation of a prior `ListGrpcRoutes` call,
* and that the system should return the next page of data.
*/
// const pageToken = 'abc123'
/**
* Optional. If true, allow partial responses for multi-regional Aggregated
* List requests. Otherwise if one of the locations is down or unreachable,
* the Aggregated List request will fail.
*/
// const returnPartialSuccess = true
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callListGrpcRoutes() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = networkservicesClient.listGrpcRoutesAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListGrpcRoutes();
listGrpcRoutesStream(request, options)
listGrpcRoutesStream(request?: protos.google.cloud.networkservices.v1.IListGrpcRoutesRequest, options?: CallOptions): Transform;Equivalent to listGrpcRoutes, but returns a NodeJS Stream object.
| Parameters | |
|---|---|
| Name | Description |
request |
IListGrpcRoutesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Transform |
{Stream} An object stream which emits an object representing on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using |
listHttpRoutes(request, options)
listHttpRoutes(request?: protos.google.cloud.networkservices.v1.IListHttpRoutesRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IHttpRoute[],
protos.google.cloud.networkservices.v1.IListHttpRoutesRequest | null,
protos.google.cloud.networkservices.v1.IListHttpRoutesResponse
]>;Lists HttpRoute in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
IListHttpRoutesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IHttpRoute[],
protos.google.cloud.networkservices.v1.IListHttpRoutesRequest | null,
protos.google.cloud.networkservices.v1.IListHttpRoutesResponse
]> |
{Promise} - The promise which resolves to an array. The first element of the array is Array of . The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using |
listHttpRoutes(request, options, callback)
listHttpRoutes(request: protos.google.cloud.networkservices.v1.IListHttpRoutesRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListHttpRoutesRequest, protos.google.cloud.networkservices.v1.IListHttpRoutesResponse | null | undefined, protos.google.cloud.networkservices.v1.IHttpRoute>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListHttpRoutesRequest
|
options |
CallOptions
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListHttpRoutesRequest, protos.google.cloud.networkservices.v1.IListHttpRoutesResponse | null | undefined, protos.google.cloud.networkservices.v1.IHttpRoute>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listHttpRoutes(request, callback)
listHttpRoutes(request: protos.google.cloud.networkservices.v1.IListHttpRoutesRequest, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListHttpRoutesRequest, protos.google.cloud.networkservices.v1.IListHttpRoutesResponse | null | undefined, protos.google.cloud.networkservices.v1.IHttpRoute>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListHttpRoutesRequest
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListHttpRoutesRequest, protos.google.cloud.networkservices.v1.IListHttpRoutesResponse | null | undefined, protos.google.cloud.networkservices.v1.IHttpRoute>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listHttpRoutesAsync(request, options)
listHttpRoutesAsync(request?: protos.google.cloud.networkservices.v1.IListHttpRoutesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networkservices.v1.IHttpRoute>;Equivalent to listHttpRoutes, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
| Parameters | |
|---|---|
| Name | Description |
request |
IListHttpRoutesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
AsyncIterable<protos.google.cloud.networkservices.v1.IHttpRoute> |
{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing . The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The project and location from which the HttpRoutes should be
* listed, specified in the format `projects/* /locations/global`.
*/
// const parent = 'abc123'
/**
* Maximum number of HttpRoutes to return per call.
*/
// const pageSize = 1234
/**
* The value returned by the last `ListHttpRoutesResponse`
* Indicates that this is a continuation of a prior `ListHttpRoutes` call,
* and that the system should return the next page of data.
*/
// const pageToken = 'abc123'
/**
* Optional. If true, allow partial responses for multi-regional Aggregated
* List requests. Otherwise if one of the locations is down or unreachable,
* the Aggregated List request will fail.
*/
// const returnPartialSuccess = true
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callListHttpRoutes() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = networkservicesClient.listHttpRoutesAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListHttpRoutes();
listHttpRoutesStream(request, options)
listHttpRoutesStream(request?: protos.google.cloud.networkservices.v1.IListHttpRoutesRequest, options?: CallOptions): Transform;Equivalent to listHttpRoutes, but returns a NodeJS Stream object.
| Parameters | |
|---|---|
| Name | Description |
request |
IListHttpRoutesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Transform |
{Stream} An object stream which emits an object representing on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using |
listLocationsAsync(request, options)
listLocationsAsync(request: LocationProtos.google.cloud.location.IListLocationsRequest, options?: CallOptions): AsyncIterable<LocationProtos.google.cloud.location.ILocation>;Lists information about the supported locations for this service. Returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
| Parameters | |
|---|---|
| Name | Description |
request |
LocationProtos.google.cloud.location.IListLocationsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
AsyncIterable<google.cloud.location.ILocation> |
{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing . The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
const iterable = client.listLocationsAsync(request);
for await (const response of iterable) {
// process response
}
listMeshes(request, options)
listMeshes(request?: protos.google.cloud.networkservices.v1.IListMeshesRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IMesh[],
protos.google.cloud.networkservices.v1.IListMeshesRequest | null,
protos.google.cloud.networkservices.v1.IListMeshesResponse
]>;Lists Meshes in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
IListMeshesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IMesh[],
protos.google.cloud.networkservices.v1.IListMeshesRequest | null,
protos.google.cloud.networkservices.v1.IListMeshesResponse
]> |
{Promise} - The promise which resolves to an array. The first element of the array is Array of Mesh. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using |
listMeshes(request, options, callback)
listMeshes(request: protos.google.cloud.networkservices.v1.IListMeshesRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListMeshesRequest, protos.google.cloud.networkservices.v1.IListMeshesResponse | null | undefined, protos.google.cloud.networkservices.v1.IMesh>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListMeshesRequest
|
options |
CallOptions
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListMeshesRequest, protos.google.cloud.networkservices.v1.IListMeshesResponse | null | undefined, protos.google.cloud.networkservices.v1.IMesh>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listMeshes(request, callback)
listMeshes(request: protos.google.cloud.networkservices.v1.IListMeshesRequest, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListMeshesRequest, protos.google.cloud.networkservices.v1.IListMeshesResponse | null | undefined, protos.google.cloud.networkservices.v1.IMesh>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListMeshesRequest
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListMeshesRequest, protos.google.cloud.networkservices.v1.IListMeshesResponse | null | undefined, protos.google.cloud.networkservices.v1.IMesh>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listMeshesAsync(request, options)
listMeshesAsync(request?: protos.google.cloud.networkservices.v1.IListMeshesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networkservices.v1.IMesh>;Equivalent to listMeshes, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
| Parameters | |
|---|---|
| Name | Description |
request |
IListMeshesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
AsyncIterable<protos.google.cloud.networkservices.v1.IMesh> |
{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing Mesh. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The project and location from which the Meshes should be
* listed, specified in the format `projects/* /locations/global`.
*/
// const parent = 'abc123'
/**
* Maximum number of Meshes to return per call.
*/
// const pageSize = 1234
/**
* The value returned by the last `ListMeshesResponse`
* Indicates that this is a continuation of a prior `ListMeshes` call,
* and that the system should return the next page of data.
*/
// const pageToken = 'abc123'
/**
* Optional. If true, allow partial responses for multi-regional Aggregated
* List requests. Otherwise if one of the locations is down or unreachable,
* the Aggregated List request will fail.
*/
// const returnPartialSuccess = true
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callListMeshes() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = networkservicesClient.listMeshesAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListMeshes();
listMeshesStream(request, options)
listMeshesStream(request?: protos.google.cloud.networkservices.v1.IListMeshesRequest, options?: CallOptions): Transform;Equivalent to listMeshes, but returns a NodeJS Stream object.
| Parameters | |
|---|---|
| Name | Description |
request |
IListMeshesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Transform |
{Stream} An object stream which emits an object representing Mesh on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using |
listMeshRouteViews(request, options)
listMeshRouteViews(request?: protos.google.cloud.networkservices.v1.IListMeshRouteViewsRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IMeshRouteView[],
protos.google.cloud.networkservices.v1.IListMeshRouteViewsRequest | null,
protos.google.cloud.networkservices.v1.IListMeshRouteViewsResponse
]>;Lists RouteViews
| Parameters | |
|---|---|
| Name | Description |
request |
IListMeshRouteViewsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IMeshRouteView[],
protos.google.cloud.networkservices.v1.IListMeshRouteViewsRequest | null,
protos.google.cloud.networkservices.v1.IListMeshRouteViewsResponse
]> |
{Promise} - The promise which resolves to an array. The first element of the array is Array of MeshRouteView. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using |
listMeshRouteViews(request, options, callback)
listMeshRouteViews(request: protos.google.cloud.networkservices.v1.IListMeshRouteViewsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListMeshRouteViewsRequest, protos.google.cloud.networkservices.v1.IListMeshRouteViewsResponse | null | undefined, protos.google.cloud.networkservices.v1.IMeshRouteView>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListMeshRouteViewsRequest
|
options |
CallOptions
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListMeshRouteViewsRequest, protos.google.cloud.networkservices.v1.IListMeshRouteViewsResponse | null | undefined, protos.google.cloud.networkservices.v1.IMeshRouteView>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listMeshRouteViews(request, callback)
listMeshRouteViews(request: protos.google.cloud.networkservices.v1.IListMeshRouteViewsRequest, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListMeshRouteViewsRequest, protos.google.cloud.networkservices.v1.IListMeshRouteViewsResponse | null | undefined, protos.google.cloud.networkservices.v1.IMeshRouteView>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListMeshRouteViewsRequest
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListMeshRouteViewsRequest, protos.google.cloud.networkservices.v1.IListMeshRouteViewsResponse | null | undefined, protos.google.cloud.networkservices.v1.IMeshRouteView>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listMeshRouteViewsAsync(request, options)
listMeshRouteViewsAsync(request?: protos.google.cloud.networkservices.v1.IListMeshRouteViewsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networkservices.v1.IMeshRouteView>;Equivalent to listMeshRouteViews, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
| Parameters | |
|---|---|
| Name | Description |
request |
IListMeshRouteViewsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
AsyncIterable<protos.google.cloud.networkservices.v1.IMeshRouteView> |
{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing MeshRouteView. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The Mesh to which a Route is associated.
* Format:
* projects/{project}/locations/{location}/meshes/{mesh}
*/
// const parent = 'abc123'
/**
* Maximum number of MeshRouteViews to return per call.
*/
// const pageSize = 1234
/**
* The value returned by the last `ListMeshRouteViewsResponse`
* Indicates that this is a continuation of a prior `ListMeshRouteViews` call,
* and that the system should return the next page of data.
*/
// const pageToken = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callListMeshRouteViews() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = networkservicesClient.listMeshRouteViewsAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListMeshRouteViews();
listMeshRouteViewsStream(request, options)
listMeshRouteViewsStream(request?: protos.google.cloud.networkservices.v1.IListMeshRouteViewsRequest, options?: CallOptions): Transform;Equivalent to listMeshRouteViews, but returns a NodeJS Stream object.
| Parameters | |
|---|---|
| Name | Description |
request |
IListMeshRouteViewsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Transform |
{Stream} An object stream which emits an object representing MeshRouteView on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using |
listOperationsAsync(request, options)
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED. Returns an iterable object.
For-await-of syntax is used with the iterable to recursively get response element on-demand.
| Parameters | |
|---|---|
| Name | Description |
request |
ListOperationsRequest
The request object that will be sent. |
options |
CallOptions
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
| Returns | |
|---|---|
| Type | Description |
AsyncIterable<protos.google.longrunning.IOperation> |
{Object} An iterable Object that conforms to iteration protocols. |
const client = longrunning.operationsClient();
for await (const response of client.listOperationsAsync(request));
// doThingsWith(response)
listServiceBindings(request, options)
listServiceBindings(request?: protos.google.cloud.networkservices.v1.IListServiceBindingsRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IServiceBinding[],
protos.google.cloud.networkservices.v1.IListServiceBindingsRequest | null,
protos.google.cloud.networkservices.v1.IListServiceBindingsResponse
]>;Lists ServiceBinding in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
IListServiceBindingsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IServiceBinding[],
protos.google.cloud.networkservices.v1.IListServiceBindingsRequest | null,
protos.google.cloud.networkservices.v1.IListServiceBindingsResponse
]> |
{Promise} - The promise which resolves to an array. The first element of the array is Array of ServiceBinding. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using |
listServiceBindings(request, options, callback)
listServiceBindings(request: protos.google.cloud.networkservices.v1.IListServiceBindingsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListServiceBindingsRequest, protos.google.cloud.networkservices.v1.IListServiceBindingsResponse | null | undefined, protos.google.cloud.networkservices.v1.IServiceBinding>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListServiceBindingsRequest
|
options |
CallOptions
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListServiceBindingsRequest, protos.google.cloud.networkservices.v1.IListServiceBindingsResponse | null | undefined, protos.google.cloud.networkservices.v1.IServiceBinding>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listServiceBindings(request, callback)
listServiceBindings(request: protos.google.cloud.networkservices.v1.IListServiceBindingsRequest, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListServiceBindingsRequest, protos.google.cloud.networkservices.v1.IListServiceBindingsResponse | null | undefined, protos.google.cloud.networkservices.v1.IServiceBinding>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListServiceBindingsRequest
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListServiceBindingsRequest, protos.google.cloud.networkservices.v1.IListServiceBindingsResponse | null | undefined, protos.google.cloud.networkservices.v1.IServiceBinding>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listServiceBindingsAsync(request, options)
listServiceBindingsAsync(request?: protos.google.cloud.networkservices.v1.IListServiceBindingsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networkservices.v1.IServiceBinding>;Equivalent to listServiceBindings, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
| Parameters | |
|---|---|
| Name | Description |
request |
IListServiceBindingsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
AsyncIterable<protos.google.cloud.networkservices.v1.IServiceBinding> |
{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing ServiceBinding. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The project and location from which the ServiceBindings should be
* listed, specified in the format `projects/* /locations/*`.
*/
// const parent = 'abc123'
/**
* Maximum number of ServiceBindings to return per call.
*/
// const pageSize = 1234
/**
* The value returned by the last `ListServiceBindingsResponse`
* Indicates that this is a continuation of a prior `ListRouters` call,
* and that the system should return the next page of data.
*/
// const pageToken = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callListServiceBindings() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = networkservicesClient.listServiceBindingsAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListServiceBindings();
listServiceBindingsStream(request, options)
listServiceBindingsStream(request?: protos.google.cloud.networkservices.v1.IListServiceBindingsRequest, options?: CallOptions): Transform;Equivalent to listServiceBindings, but returns a NodeJS Stream object.
| Parameters | |
|---|---|
| Name | Description |
request |
IListServiceBindingsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Transform |
{Stream} An object stream which emits an object representing ServiceBinding on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using |
listServiceLbPolicies(request, options)
listServiceLbPolicies(request?: protos.google.cloud.networkservices.v1.IListServiceLbPoliciesRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IServiceLbPolicy[],
protos.google.cloud.networkservices.v1.IListServiceLbPoliciesRequest | null,
protos.google.cloud.networkservices.v1.IListServiceLbPoliciesResponse
]>;Lists ServiceLbPolicies in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
IListServiceLbPoliciesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IServiceLbPolicy[],
protos.google.cloud.networkservices.v1.IListServiceLbPoliciesRequest | null,
protos.google.cloud.networkservices.v1.IListServiceLbPoliciesResponse
]> |
{Promise} - The promise which resolves to an array. The first element of the array is Array of . The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using |
listServiceLbPolicies(request, options, callback)
listServiceLbPolicies(request: protos.google.cloud.networkservices.v1.IListServiceLbPoliciesRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListServiceLbPoliciesRequest, protos.google.cloud.networkservices.v1.IListServiceLbPoliciesResponse | null | undefined, protos.google.cloud.networkservices.v1.IServiceLbPolicy>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListServiceLbPoliciesRequest
|
options |
CallOptions
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListServiceLbPoliciesRequest, protos.google.cloud.networkservices.v1.IListServiceLbPoliciesResponse | null | undefined, protos.google.cloud.networkservices.v1.IServiceLbPolicy>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listServiceLbPolicies(request, callback)
listServiceLbPolicies(request: protos.google.cloud.networkservices.v1.IListServiceLbPoliciesRequest, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListServiceLbPoliciesRequest, protos.google.cloud.networkservices.v1.IListServiceLbPoliciesResponse | null | undefined, protos.google.cloud.networkservices.v1.IServiceLbPolicy>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListServiceLbPoliciesRequest
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListServiceLbPoliciesRequest, protos.google.cloud.networkservices.v1.IListServiceLbPoliciesResponse | null | undefined, protos.google.cloud.networkservices.v1.IServiceLbPolicy>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listServiceLbPoliciesAsync(request, options)
listServiceLbPoliciesAsync(request?: protos.google.cloud.networkservices.v1.IListServiceLbPoliciesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networkservices.v1.IServiceLbPolicy>;Equivalent to listServiceLbPolicies, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
| Parameters | |
|---|---|
| Name | Description |
request |
IListServiceLbPoliciesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
AsyncIterable<protos.google.cloud.networkservices.v1.IServiceLbPolicy> |
{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing . The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The project and location from which the ServiceLbPolicies should
* be listed, specified in the format
* `projects/{project}/locations/{location}`.
*/
// const parent = 'abc123'
/**
* Maximum number of ServiceLbPolicies to return per call.
*/
// const pageSize = 1234
/**
* The value returned by the last `ListServiceLbPoliciesResponse`
* Indicates that this is a continuation of a prior `ListRouters` call,
* and that the system should return the next page of data.
*/
// const pageToken = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callListServiceLbPolicies() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = networkservicesClient.listServiceLbPoliciesAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListServiceLbPolicies();
listServiceLbPoliciesStream(request, options)
listServiceLbPoliciesStream(request?: protos.google.cloud.networkservices.v1.IListServiceLbPoliciesRequest, options?: CallOptions): Transform;Equivalent to listServiceLbPolicies, but returns a NodeJS Stream object.
| Parameters | |
|---|---|
| Name | Description |
request |
IListServiceLbPoliciesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Transform |
{Stream} An object stream which emits an object representing on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using |
listTcpRoutes(request, options)
listTcpRoutes(request?: protos.google.cloud.networkservices.v1.IListTcpRoutesRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.ITcpRoute[],
protos.google.cloud.networkservices.v1.IListTcpRoutesRequest | null,
protos.google.cloud.networkservices.v1.IListTcpRoutesResponse
]>;Lists TcpRoute in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
IListTcpRoutesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.ITcpRoute[],
protos.google.cloud.networkservices.v1.IListTcpRoutesRequest | null,
protos.google.cloud.networkservices.v1.IListTcpRoutesResponse
]> |
{Promise} - The promise which resolves to an array. The first element of the array is Array of . The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using |
listTcpRoutes(request, options, callback)
listTcpRoutes(request: protos.google.cloud.networkservices.v1.IListTcpRoutesRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListTcpRoutesRequest, protos.google.cloud.networkservices.v1.IListTcpRoutesResponse | null | undefined, protos.google.cloud.networkservices.v1.ITcpRoute>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListTcpRoutesRequest
|
options |
CallOptions
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListTcpRoutesRequest, protos.google.cloud.networkservices.v1.IListTcpRoutesResponse | null | undefined, protos.google.cloud.networkservices.v1.ITcpRoute>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listTcpRoutes(request, callback)
listTcpRoutes(request: protos.google.cloud.networkservices.v1.IListTcpRoutesRequest, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListTcpRoutesRequest, protos.google.cloud.networkservices.v1.IListTcpRoutesResponse | null | undefined, protos.google.cloud.networkservices.v1.ITcpRoute>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListTcpRoutesRequest
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListTcpRoutesRequest, protos.google.cloud.networkservices.v1.IListTcpRoutesResponse | null | undefined, protos.google.cloud.networkservices.v1.ITcpRoute>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listTcpRoutesAsync(request, options)
listTcpRoutesAsync(request?: protos.google.cloud.networkservices.v1.IListTcpRoutesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networkservices.v1.ITcpRoute>;Equivalent to listTcpRoutes, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
| Parameters | |
|---|---|
| Name | Description |
request |
IListTcpRoutesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
AsyncIterable<protos.google.cloud.networkservices.v1.ITcpRoute> |
{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing . The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The project and location from which the TcpRoutes should be
* listed, specified in the format `projects/* /locations/global`.
*/
// const parent = 'abc123'
/**
* Maximum number of TcpRoutes to return per call.
*/
// const pageSize = 1234
/**
* The value returned by the last `ListTcpRoutesResponse`
* Indicates that this is a continuation of a prior `ListTcpRoutes` call,
* and that the system should return the next page of data.
*/
// const pageToken = 'abc123'
/**
* Optional. If true, allow partial responses for multi-regional Aggregated
* List requests. Otherwise if one of the locations is down or unreachable,
* the Aggregated List request will fail.
*/
// const returnPartialSuccess = true
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callListTcpRoutes() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = networkservicesClient.listTcpRoutesAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListTcpRoutes();
listTcpRoutesStream(request, options)
listTcpRoutesStream(request?: protos.google.cloud.networkservices.v1.IListTcpRoutesRequest, options?: CallOptions): Transform;Equivalent to listTcpRoutes, but returns a NodeJS Stream object.
| Parameters | |
|---|---|
| Name | Description |
request |
IListTcpRoutesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Transform |
{Stream} An object stream which emits an object representing on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using |
listTlsRoutes(request, options)
listTlsRoutes(request?: protos.google.cloud.networkservices.v1.IListTlsRoutesRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.ITlsRoute[],
protos.google.cloud.networkservices.v1.IListTlsRoutesRequest | null,
protos.google.cloud.networkservices.v1.IListTlsRoutesResponse
]>;Lists TlsRoute in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
IListTlsRoutesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.ITlsRoute[],
protos.google.cloud.networkservices.v1.IListTlsRoutesRequest | null,
protos.google.cloud.networkservices.v1.IListTlsRoutesResponse
]> |
{Promise} - The promise which resolves to an array. The first element of the array is Array of . The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using |
listTlsRoutes(request, options, callback)
listTlsRoutes(request: protos.google.cloud.networkservices.v1.IListTlsRoutesRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListTlsRoutesRequest, protos.google.cloud.networkservices.v1.IListTlsRoutesResponse | null | undefined, protos.google.cloud.networkservices.v1.ITlsRoute>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListTlsRoutesRequest
|
options |
CallOptions
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListTlsRoutesRequest, protos.google.cloud.networkservices.v1.IListTlsRoutesResponse | null | undefined, protos.google.cloud.networkservices.v1.ITlsRoute>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listTlsRoutes(request, callback)
listTlsRoutes(request: protos.google.cloud.networkservices.v1.IListTlsRoutesRequest, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListTlsRoutesRequest, protos.google.cloud.networkservices.v1.IListTlsRoutesResponse | null | undefined, protos.google.cloud.networkservices.v1.ITlsRoute>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListTlsRoutesRequest
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListTlsRoutesRequest, protos.google.cloud.networkservices.v1.IListTlsRoutesResponse | null | undefined, protos.google.cloud.networkservices.v1.ITlsRoute>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listTlsRoutesAsync(request, options)
listTlsRoutesAsync(request?: protos.google.cloud.networkservices.v1.IListTlsRoutesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networkservices.v1.ITlsRoute>;Equivalent to listTlsRoutes, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
| Parameters | |
|---|---|
| Name | Description |
request |
IListTlsRoutesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
AsyncIterable<protos.google.cloud.networkservices.v1.ITlsRoute> |
{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing . The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The project and location from which the TlsRoutes should be
* listed, specified in the format `projects/* /locations/global`.
*/
// const parent = 'abc123'
/**
* Maximum number of TlsRoutes to return per call.
*/
// const pageSize = 1234
/**
* The value returned by the last `ListTlsRoutesResponse`
* Indicates that this is a continuation of a prior `ListTlsRoutes` call,
* and that the system should return the next page of data.
*/
// const pageToken = 'abc123'
/**
* Optional. If true, allow partial responses for multi-regional Aggregated
* List requests. Otherwise if one of the locations is down or unreachable,
* the Aggregated List request will fail.
*/
// const returnPartialSuccess = true
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callListTlsRoutes() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = networkservicesClient.listTlsRoutesAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListTlsRoutes();
listTlsRoutesStream(request, options)
listTlsRoutesStream(request?: protos.google.cloud.networkservices.v1.IListTlsRoutesRequest, options?: CallOptions): Transform;Equivalent to listTlsRoutes, but returns a NodeJS Stream object.
| Parameters | |
|---|---|
| Name | Description |
request |
IListTlsRoutesRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Transform |
{Stream} An object stream which emits an object representing on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using |
listWasmPlugins(request, options)
listWasmPlugins(request?: protos.google.cloud.networkservices.v1.IListWasmPluginsRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IWasmPlugin[],
protos.google.cloud.networkservices.v1.IListWasmPluginsRequest | null,
protos.google.cloud.networkservices.v1.IListWasmPluginsResponse
]>;Lists WasmPlugin resources in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
IListWasmPluginsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IWasmPlugin[],
protos.google.cloud.networkservices.v1.IListWasmPluginsRequest | null,
protos.google.cloud.networkservices.v1.IListWasmPluginsResponse
]> |
{Promise} - The promise which resolves to an array. The first element of the array is Array of . The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using |
listWasmPlugins(request, options, callback)
listWasmPlugins(request: protos.google.cloud.networkservices.v1.IListWasmPluginsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListWasmPluginsRequest, protos.google.cloud.networkservices.v1.IListWasmPluginsResponse | null | undefined, protos.google.cloud.networkservices.v1.IWasmPlugin>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListWasmPluginsRequest
|
options |
CallOptions
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListWasmPluginsRequest, protos.google.cloud.networkservices.v1.IListWasmPluginsResponse | null | undefined, protos.google.cloud.networkservices.v1.IWasmPlugin>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listWasmPlugins(request, callback)
listWasmPlugins(request: protos.google.cloud.networkservices.v1.IListWasmPluginsRequest, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListWasmPluginsRequest, protos.google.cloud.networkservices.v1.IListWasmPluginsResponse | null | undefined, protos.google.cloud.networkservices.v1.IWasmPlugin>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListWasmPluginsRequest
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListWasmPluginsRequest, protos.google.cloud.networkservices.v1.IListWasmPluginsResponse | null | undefined, protos.google.cloud.networkservices.v1.IWasmPlugin>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listWasmPluginsAsync(request, options)
listWasmPluginsAsync(request?: protos.google.cloud.networkservices.v1.IListWasmPluginsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networkservices.v1.IWasmPlugin>;Equivalent to listWasmPlugins, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
| Parameters | |
|---|---|
| Name | Description |
request |
IListWasmPluginsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
AsyncIterable<protos.google.cloud.networkservices.v1.IWasmPlugin> |
{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing . The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The project and location from which the `WasmPlugin` resources
* are listed, specified in the following format:
* `projects/{project}/locations/global`.
*/
// const parent = 'abc123'
/**
* Maximum number of `WasmPlugin` resources to return per call.
* If not specified, at most 50 `WasmPlugin` resources are returned.
* The maximum value is 1000; values above 1000 are coerced to 1000.
*/
// const pageSize = 1234
/**
* The value returned by the last `ListWasmPluginsResponse` call.
* Indicates that this is a continuation of a prior
* `ListWasmPlugins` call, and that the
* next page of data is to be returned.
*/
// const pageToken = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callListWasmPlugins() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = networkservicesClient.listWasmPluginsAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListWasmPlugins();
listWasmPluginsStream(request, options)
listWasmPluginsStream(request?: protos.google.cloud.networkservices.v1.IListWasmPluginsRequest, options?: CallOptions): Transform;Equivalent to listWasmPlugins, but returns a NodeJS Stream object.
| Parameters | |
|---|---|
| Name | Description |
request |
IListWasmPluginsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Transform |
{Stream} An object stream which emits an object representing on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using |
listWasmPluginVersions(request, options)
listWasmPluginVersions(request?: protos.google.cloud.networkservices.v1.IListWasmPluginVersionsRequest, options?: CallOptions): Promise<[
protos.google.cloud.networkservices.v1.IWasmPluginVersion[],
protos.google.cloud.networkservices.v1.IListWasmPluginVersionsRequest | null,
protos.google.cloud.networkservices.v1.IListWasmPluginVersionsResponse
]>;Lists WasmPluginVersion resources in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
IListWasmPluginVersionsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
protos.google.cloud.networkservices.v1.IWasmPluginVersion[],
protos.google.cloud.networkservices.v1.IListWasmPluginVersionsRequest | null,
protos.google.cloud.networkservices.v1.IListWasmPluginVersionsResponse
]> |
{Promise} - The promise which resolves to an array. The first element of the array is Array of WasmPluginVersion. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using |
listWasmPluginVersions(request, options, callback)
listWasmPluginVersions(request: protos.google.cloud.networkservices.v1.IListWasmPluginVersionsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListWasmPluginVersionsRequest, protos.google.cloud.networkservices.v1.IListWasmPluginVersionsResponse | null | undefined, protos.google.cloud.networkservices.v1.IWasmPluginVersion>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListWasmPluginVersionsRequest
|
options |
CallOptions
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListWasmPluginVersionsRequest, protos.google.cloud.networkservices.v1.IListWasmPluginVersionsResponse | null | undefined, protos.google.cloud.networkservices.v1.IWasmPluginVersion>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listWasmPluginVersions(request, callback)
listWasmPluginVersions(request: protos.google.cloud.networkservices.v1.IListWasmPluginVersionsRequest, callback: PaginationCallback<protos.google.cloud.networkservices.v1.IListWasmPluginVersionsRequest, protos.google.cloud.networkservices.v1.IListWasmPluginVersionsResponse | null | undefined, protos.google.cloud.networkservices.v1.IWasmPluginVersion>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IListWasmPluginVersionsRequest
|
callback |
PaginationCallback<protos.google.cloud.networkservices.v1.IListWasmPluginVersionsRequest, protos.google.cloud.networkservices.v1.IListWasmPluginVersionsResponse | null | undefined, protos.google.cloud.networkservices.v1.IWasmPluginVersion>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
listWasmPluginVersionsAsync(request, options)
listWasmPluginVersionsAsync(request?: protos.google.cloud.networkservices.v1.IListWasmPluginVersionsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networkservices.v1.IWasmPluginVersion>;Equivalent to listWasmPluginVersions, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
| Parameters | |
|---|---|
| Name | Description |
request |
IListWasmPluginVersionsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
AsyncIterable<protos.google.cloud.networkservices.v1.IWasmPluginVersion> |
{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing WasmPluginVersion. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The `WasmPlugin` resource whose `WasmPluginVersion`s
* are listed, specified in the following format:
* `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
*/
// const parent = 'abc123'
/**
* Maximum number of `WasmPluginVersion` resources to return per
* call. If not specified, at most 50 `WasmPluginVersion` resources are
* returned. The maximum value is 1000; values above 1000 are coerced to
* 1000.
*/
// const pageSize = 1234
/**
* The value returned by the last `ListWasmPluginVersionsResponse` call.
* Indicates that this is a continuation of a prior
* `ListWasmPluginVersions` call, and that the
* next page of data is to be returned.
*/
// const pageToken = 'abc123'
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callListWasmPluginVersions() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = networkservicesClient.listWasmPluginVersionsAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListWasmPluginVersions();
listWasmPluginVersionsStream(request, options)
listWasmPluginVersionsStream(request?: protos.google.cloud.networkservices.v1.IListWasmPluginVersionsRequest, options?: CallOptions): Transform;Equivalent to listWasmPluginVersions, but returns a NodeJS Stream object.
| Parameters | |
|---|---|
| Name | Description |
request |
IListWasmPluginVersionsRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Transform |
{Stream} An object stream which emits an object representing WasmPluginVersion on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using |
matchAuthzExtensionFromAuthzExtensionName(authzExtensionName)
matchAuthzExtensionFromAuthzExtensionName(authzExtensionName: string): string | number;Parse the authz_extension from AuthzExtension resource.
| Parameter | |
|---|---|
| Name | Description |
authzExtensionName |
string
A fully-qualified path representing AuthzExtension resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the authz_extension. |
matchEndpointPolicyFromEndpointPolicyName(endpointPolicyName)
matchEndpointPolicyFromEndpointPolicyName(endpointPolicyName: string): string | number;Parse the endpoint_policy from EndpointPolicy resource.
| Parameter | |
|---|---|
| Name | Description |
endpointPolicyName |
string
A fully-qualified path representing EndpointPolicy resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the endpoint_policy. |
matchGatewayFromGatewayName(gatewayName)
matchGatewayFromGatewayName(gatewayName: string): string | number;Parse the gateway from Gateway resource.
| Parameter | |
|---|---|
| Name | Description |
gatewayName |
string
A fully-qualified path representing Gateway resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the gateway. |
matchGatewayFromGatewayRouteViewName(gatewayRouteViewName)
matchGatewayFromGatewayRouteViewName(gatewayRouteViewName: string): string | number;Parse the gateway from GatewayRouteView resource.
| Parameter | |
|---|---|
| Name | Description |
gatewayRouteViewName |
string
A fully-qualified path representing GatewayRouteView resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the gateway. |
matchGrpcRouteFromGrpcRouteName(grpcRouteName)
matchGrpcRouteFromGrpcRouteName(grpcRouteName: string): string | number;Parse the grpc_route from GrpcRoute resource.
| Parameter | |
|---|---|
| Name | Description |
grpcRouteName |
string
A fully-qualified path representing GrpcRoute resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the grpc_route. |
matchHttpRouteFromHttpRouteName(httpRouteName)
matchHttpRouteFromHttpRouteName(httpRouteName: string): string | number;Parse the http_route from HttpRoute resource.
| Parameter | |
|---|---|
| Name | Description |
httpRouteName |
string
A fully-qualified path representing HttpRoute resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the http_route. |
matchLbEdgeExtensionFromLbEdgeExtensionName(lbEdgeExtensionName)
matchLbEdgeExtensionFromLbEdgeExtensionName(lbEdgeExtensionName: string): string | number;Parse the lb_edge_extension from LbEdgeExtension resource.
| Parameter | |
|---|---|
| Name | Description |
lbEdgeExtensionName |
string
A fully-qualified path representing LbEdgeExtension resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the lb_edge_extension. |
matchLbRouteExtensionFromLbRouteExtensionName(lbRouteExtensionName)
matchLbRouteExtensionFromLbRouteExtensionName(lbRouteExtensionName: string): string | number;Parse the lb_route_extension from LbRouteExtension resource.
| Parameter | |
|---|---|
| Name | Description |
lbRouteExtensionName |
string
A fully-qualified path representing LbRouteExtension resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the lb_route_extension. |
matchLbTrafficExtensionFromLbTrafficExtensionName(lbTrafficExtensionName)
matchLbTrafficExtensionFromLbTrafficExtensionName(lbTrafficExtensionName: string): string | number;Parse the lb_traffic_extension from LbTrafficExtension resource.
| Parameter | |
|---|---|
| Name | Description |
lbTrafficExtensionName |
string
A fully-qualified path representing LbTrafficExtension resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the lb_traffic_extension. |
matchLocationFromAuthzExtensionName(authzExtensionName)
matchLocationFromAuthzExtensionName(authzExtensionName: string): string | number;Parse the location from AuthzExtension resource.
| Parameter | |
|---|---|
| Name | Description |
authzExtensionName |
string
A fully-qualified path representing AuthzExtension resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the location. |
matchLocationFromEndpointPolicyName(endpointPolicyName)
matchLocationFromEndpointPolicyName(endpointPolicyName: string): string | number;Parse the location from EndpointPolicy resource.
| Parameter | |
|---|---|
| Name | Description |
endpointPolicyName |
string
A fully-qualified path representing EndpointPolicy resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the location. |
matchLocationFromGatewayName(gatewayName)
matchLocationFromGatewayName(gatewayName: string): string | number;Parse the location from Gateway resource.
| Parameter | |
|---|---|
| Name | Description |
gatewayName |
string
A fully-qualified path representing Gateway resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the location. |
matchLocationFromGatewayRouteViewName(gatewayRouteViewName)
matchLocationFromGatewayRouteViewName(gatewayRouteViewName: string): string | number;Parse the location from GatewayRouteView resource.
| Parameter | |
|---|---|
| Name | Description |
gatewayRouteViewName |
string
A fully-qualified path representing GatewayRouteView resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the location. |
matchLocationFromGrpcRouteName(grpcRouteName)
matchLocationFromGrpcRouteName(grpcRouteName: string): string | number;Parse the location from GrpcRoute resource.
| Parameter | |
|---|---|
| Name | Description |
grpcRouteName |
string
A fully-qualified path representing GrpcRoute resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the location. |
matchLocationFromHttpRouteName(httpRouteName)
matchLocationFromHttpRouteName(httpRouteName: string): string | number;Parse the location from HttpRoute resource.
| Parameter | |
|---|---|
| Name | Description |
httpRouteName |
string
A fully-qualified path representing HttpRoute resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the location. |
matchLocationFromLbEdgeExtensionName(lbEdgeExtensionName)
matchLocationFromLbEdgeExtensionName(lbEdgeExtensionName: string): string | number;Parse the location from LbEdgeExtension resource.
| Parameter | |
|---|---|
| Name | Description |
lbEdgeExtensionName |
string
A fully-qualified path representing LbEdgeExtension resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the location. |
matchLocationFromLbRouteExtensionName(lbRouteExtensionName)
matchLocationFromLbRouteExtensionName(lbRouteExtensionName: string): string | number;Parse the location from LbRouteExtension resource.
| Parameter | |
|---|---|
| Name | Description |
lbRouteExtensionName |
string
A fully-qualified path representing LbRouteExtension resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the location. |
matchLocationFromLbTrafficExtensionName(lbTrafficExtensionName)
matchLocationFromLbTrafficExtensionName(lbTrafficExtensionName: string): string | number;Parse the location from LbTrafficExtension resource.
| Parameter | |
|---|---|
| Name | Description |
lbTrafficExtensionName |
string
A fully-qualified path representing LbTrafficExtension resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the location. |
matchLocationFromMeshName(meshName)
matchLocationFromMeshName(meshName: string): string | number;Parse the location from Mesh resource.
| Parameter | |
|---|---|
| Name | Description |
meshName |
string
A fully-qualified path representing Mesh resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the location. |
matchLocationFromMeshRouteViewName(meshRouteViewName)
matchLocationFromMeshRouteViewName(meshRouteViewName: string): string | number;Parse the location from MeshRouteView resource.
| Parameter | |
|---|---|
| Name | Description |
meshRouteViewName |
string
A fully-qualified path representing MeshRouteView resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the location. |
matchLocationFromServiceBindingName(serviceBindingName)
matchLocationFromServiceBindingName(serviceBindingName: string): string | number;Parse the location from ServiceBinding resource.
| Parameter | |
|---|---|
| Name | Description |
serviceBindingName |
string
A fully-qualified path representing ServiceBinding resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the location. |
matchLocationFromServiceLbPolicyName(serviceLbPolicyName)
matchLocationFromServiceLbPolicyName(serviceLbPolicyName: string): string | number;Parse the location from ServiceLbPolicy resource.
| Parameter | |
|---|---|
| Name | Description |
serviceLbPolicyName |
string
A fully-qualified path representing ServiceLbPolicy resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the location. |
matchLocationFromTcpRouteName(tcpRouteName)
matchLocationFromTcpRouteName(tcpRouteName: string): string | number;Parse the location from TcpRoute resource.
| Parameter | |
|---|---|
| Name | Description |
tcpRouteName |
string
A fully-qualified path representing TcpRoute resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the location. |
matchLocationFromTlsRouteName(tlsRouteName)
matchLocationFromTlsRouteName(tlsRouteName: string): string | number;Parse the location from TlsRoute resource.
| Parameter | |
|---|---|
| Name | Description |
tlsRouteName |
string
A fully-qualified path representing TlsRoute resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the location. |
matchLocationFromWasmPluginName(wasmPluginName)
matchLocationFromWasmPluginName(wasmPluginName: string): string | number;Parse the location from WasmPlugin resource.
| Parameter | |
|---|---|
| Name | Description |
wasmPluginName |
string
A fully-qualified path representing WasmPlugin resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the location. |
matchLocationFromWasmPluginVersionName(wasmPluginVersionName)
matchLocationFromWasmPluginVersionName(wasmPluginVersionName: string): string | number;Parse the location from WasmPluginVersion resource.
| Parameter | |
|---|---|
| Name | Description |
wasmPluginVersionName |
string
A fully-qualified path representing WasmPluginVersion resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the location. |
matchMeshFromMeshName(meshName)
matchMeshFromMeshName(meshName: string): string | number;Parse the mesh from Mesh resource.
| Parameter | |
|---|---|
| Name | Description |
meshName |
string
A fully-qualified path representing Mesh resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the mesh. |
matchMeshFromMeshRouteViewName(meshRouteViewName)
matchMeshFromMeshRouteViewName(meshRouteViewName: string): string | number;Parse the mesh from MeshRouteView resource.
| Parameter | |
|---|---|
| Name | Description |
meshRouteViewName |
string
A fully-qualified path representing MeshRouteView resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the mesh. |
matchProjectFromAuthzExtensionName(authzExtensionName)
matchProjectFromAuthzExtensionName(authzExtensionName: string): string | number;Parse the project from AuthzExtension resource.
| Parameter | |
|---|---|
| Name | Description |
authzExtensionName |
string
A fully-qualified path representing AuthzExtension resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromEndpointPolicyName(endpointPolicyName)
matchProjectFromEndpointPolicyName(endpointPolicyName: string): string | number;Parse the project from EndpointPolicy resource.
| Parameter | |
|---|---|
| Name | Description |
endpointPolicyName |
string
A fully-qualified path representing EndpointPolicy resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromGatewayName(gatewayName)
matchProjectFromGatewayName(gatewayName: string): string | number;Parse the project from Gateway resource.
| Parameter | |
|---|---|
| Name | Description |
gatewayName |
string
A fully-qualified path representing Gateway resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromGatewayRouteViewName(gatewayRouteViewName)
matchProjectFromGatewayRouteViewName(gatewayRouteViewName: string): string | number;Parse the project from GatewayRouteView resource.
| Parameter | |
|---|---|
| Name | Description |
gatewayRouteViewName |
string
A fully-qualified path representing GatewayRouteView resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromGrpcRouteName(grpcRouteName)
matchProjectFromGrpcRouteName(grpcRouteName: string): string | number;Parse the project from GrpcRoute resource.
| Parameter | |
|---|---|
| Name | Description |
grpcRouteName |
string
A fully-qualified path representing GrpcRoute resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromHttpRouteName(httpRouteName)
matchProjectFromHttpRouteName(httpRouteName: string): string | number;Parse the project from HttpRoute resource.
| Parameter | |
|---|---|
| Name | Description |
httpRouteName |
string
A fully-qualified path representing HttpRoute resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromLbEdgeExtensionName(lbEdgeExtensionName)
matchProjectFromLbEdgeExtensionName(lbEdgeExtensionName: string): string | number;Parse the project from LbEdgeExtension resource.
| Parameter | |
|---|---|
| Name | Description |
lbEdgeExtensionName |
string
A fully-qualified path representing LbEdgeExtension resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromLbRouteExtensionName(lbRouteExtensionName)
matchProjectFromLbRouteExtensionName(lbRouteExtensionName: string): string | number;Parse the project from LbRouteExtension resource.
| Parameter | |
|---|---|
| Name | Description |
lbRouteExtensionName |
string
A fully-qualified path representing LbRouteExtension resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromLbTrafficExtensionName(lbTrafficExtensionName)
matchProjectFromLbTrafficExtensionName(lbTrafficExtensionName: string): string | number;Parse the project from LbTrafficExtension resource.
| Parameter | |
|---|---|
| Name | Description |
lbTrafficExtensionName |
string
A fully-qualified path representing LbTrafficExtension resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromMeshName(meshName)
matchProjectFromMeshName(meshName: string): string | number;Parse the project from Mesh resource.
| Parameter | |
|---|---|
| Name | Description |
meshName |
string
A fully-qualified path representing Mesh resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromMeshRouteViewName(meshRouteViewName)
matchProjectFromMeshRouteViewName(meshRouteViewName: string): string | number;Parse the project from MeshRouteView resource.
| Parameter | |
|---|---|
| Name | Description |
meshRouteViewName |
string
A fully-qualified path representing MeshRouteView resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromServiceBindingName(serviceBindingName)
matchProjectFromServiceBindingName(serviceBindingName: string): string | number;Parse the project from ServiceBinding resource.
| Parameter | |
|---|---|
| Name | Description |
serviceBindingName |
string
A fully-qualified path representing ServiceBinding resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromServiceLbPolicyName(serviceLbPolicyName)
matchProjectFromServiceLbPolicyName(serviceLbPolicyName: string): string | number;Parse the project from ServiceLbPolicy resource.
| Parameter | |
|---|---|
| Name | Description |
serviceLbPolicyName |
string
A fully-qualified path representing ServiceLbPolicy resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromTcpRouteName(tcpRouteName)
matchProjectFromTcpRouteName(tcpRouteName: string): string | number;Parse the project from TcpRoute resource.
| Parameter | |
|---|---|
| Name | Description |
tcpRouteName |
string
A fully-qualified path representing TcpRoute resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromTlsRouteName(tlsRouteName)
matchProjectFromTlsRouteName(tlsRouteName: string): string | number;Parse the project from TlsRoute resource.
| Parameter | |
|---|---|
| Name | Description |
tlsRouteName |
string
A fully-qualified path representing TlsRoute resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromWasmPluginName(wasmPluginName)
matchProjectFromWasmPluginName(wasmPluginName: string): string | number;Parse the project from WasmPlugin resource.
| Parameter | |
|---|---|
| Name | Description |
wasmPluginName |
string
A fully-qualified path representing WasmPlugin resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchProjectFromWasmPluginVersionName(wasmPluginVersionName)
matchProjectFromWasmPluginVersionName(wasmPluginVersionName: string): string | number;Parse the project from WasmPluginVersion resource.
| Parameter | |
|---|---|
| Name | Description |
wasmPluginVersionName |
string
A fully-qualified path representing WasmPluginVersion resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the project. |
matchRouteViewFromGatewayRouteViewName(gatewayRouteViewName)
matchRouteViewFromGatewayRouteViewName(gatewayRouteViewName: string): string | number;Parse the route_view from GatewayRouteView resource.
| Parameter | |
|---|---|
| Name | Description |
gatewayRouteViewName |
string
A fully-qualified path representing GatewayRouteView resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the route_view. |
matchRouteViewFromMeshRouteViewName(meshRouteViewName)
matchRouteViewFromMeshRouteViewName(meshRouteViewName: string): string | number;Parse the route_view from MeshRouteView resource.
| Parameter | |
|---|---|
| Name | Description |
meshRouteViewName |
string
A fully-qualified path representing MeshRouteView resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the route_view. |
matchServiceBindingFromServiceBindingName(serviceBindingName)
matchServiceBindingFromServiceBindingName(serviceBindingName: string): string | number;Parse the service_binding from ServiceBinding resource.
| Parameter | |
|---|---|
| Name | Description |
serviceBindingName |
string
A fully-qualified path representing ServiceBinding resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the service_binding. |
matchServiceLbPolicyFromServiceLbPolicyName(serviceLbPolicyName)
matchServiceLbPolicyFromServiceLbPolicyName(serviceLbPolicyName: string): string | number;Parse the service_lb_policy from ServiceLbPolicy resource.
| Parameter | |
|---|---|
| Name | Description |
serviceLbPolicyName |
string
A fully-qualified path representing ServiceLbPolicy resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the service_lb_policy. |
matchTcpRouteFromTcpRouteName(tcpRouteName)
matchTcpRouteFromTcpRouteName(tcpRouteName: string): string | number;Parse the tcp_route from TcpRoute resource.
| Parameter | |
|---|---|
| Name | Description |
tcpRouteName |
string
A fully-qualified path representing TcpRoute resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the tcp_route. |
matchTlsRouteFromTlsRouteName(tlsRouteName)
matchTlsRouteFromTlsRouteName(tlsRouteName: string): string | number;Parse the tls_route from TlsRoute resource.
| Parameter | |
|---|---|
| Name | Description |
tlsRouteName |
string
A fully-qualified path representing TlsRoute resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the tls_route. |
matchWasmPluginFromWasmPluginName(wasmPluginName)
matchWasmPluginFromWasmPluginName(wasmPluginName: string): string | number;Parse the wasm_plugin from WasmPlugin resource.
| Parameter | |
|---|---|
| Name | Description |
wasmPluginName |
string
A fully-qualified path representing WasmPlugin resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the wasm_plugin. |
matchWasmPluginFromWasmPluginVersionName(wasmPluginVersionName)
matchWasmPluginFromWasmPluginVersionName(wasmPluginVersionName: string): string | number;Parse the wasm_plugin from WasmPluginVersion resource.
| Parameter | |
|---|---|
| Name | Description |
wasmPluginVersionName |
string
A fully-qualified path representing WasmPluginVersion resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the wasm_plugin. |
matchWasmPluginVersionFromWasmPluginVersionName(wasmPluginVersionName)
matchWasmPluginVersionFromWasmPluginVersionName(wasmPluginVersionName: string): string | number;Parse the wasm_plugin_version from WasmPluginVersion resource.
| Parameter | |
|---|---|
| Name | Description |
wasmPluginVersionName |
string
A fully-qualified path representing WasmPluginVersion resource. |
| Returns | |
|---|---|
| Type | Description |
string | number |
{string} A string representing the wasm_plugin_version. |
meshPath(project, location, mesh)
meshPath(project: string, location: string, mesh: string): string;Return a fully-qualified mesh resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
location |
string
|
mesh |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
meshRouteViewPath(project, location, mesh, routeView)
meshRouteViewPath(project: string, location: string, mesh: string, routeView: string): string;Return a fully-qualified meshRouteView resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
location |
string
|
mesh |
string
|
routeView |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
serviceBindingPath(project, location, serviceBinding)
serviceBindingPath(project: string, location: string, serviceBinding: string): string;Return a fully-qualified serviceBinding resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
location |
string
|
serviceBinding |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
serviceLbPolicyPath(project, location, serviceLbPolicy)
serviceLbPolicyPath(project: string, location: string, serviceLbPolicy: string): string;Return a fully-qualified serviceLbPolicy resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
location |
string
|
serviceLbPolicy |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
setIamPolicy(request, options, callback)
setIamPolicy(request: IamProtos.google.iam.v1.SetIamPolicyRequest, options?: gax.CallOptions | Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, {} | null | undefined>, callback?: Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, {} | null | undefined>): Promise<[IamProtos.google.iam.v1.Policy]>;Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
| Parameters | |
|---|---|
| Name | Description |
request |
IamProtos.google.iam.v1.SetIamPolicyRequest
The request object that will be sent. |
options |
CallOptions | Callback<google.iam.v1.Policy, google.iam.v1.SetIamPolicyRequest | null | undefined, {} | null | undefined>
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
callback |
Callback<google.iam.v1.Policy, google.iam.v1.SetIamPolicyRequest | null | undefined, {} | null | undefined>
The function which will be called with the result of the API call. The second parameter to the callback is an object representing . |
| Returns | |
|---|---|
| Type | Description |
Promise<[google.iam.v1.Policy]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing . The promise has a method named "cancel" which cancels the ongoing API call. |
tcpRoutePath(project, location, tcpRoute)
tcpRoutePath(project: string, location: string, tcpRoute: string): string;Return a fully-qualified tcpRoute resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
location |
string
|
tcpRoute |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
testIamPermissions(request, options, callback)
testIamPermissions(request: IamProtos.google.iam.v1.TestIamPermissionsRequest, options?: gax.CallOptions | Callback<IamProtos.google.iam.v1.TestIamPermissionsResponse, IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, {} | null | undefined>, callback?: Callback<IamProtos.google.iam.v1.TestIamPermissionsResponse, IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, {} | null | undefined>): Promise<[IamProtos.google.iam.v1.TestIamPermissionsResponse]>;Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
| Parameters | |
|---|---|
| Name | Description |
request |
IamProtos.google.iam.v1.TestIamPermissionsRequest
The request object that will be sent. |
options |
CallOptions | Callback<google.iam.v1.TestIamPermissionsResponse, google.iam.v1.TestIamPermissionsRequest | null | undefined, {} | null | undefined>
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
callback |
Callback<google.iam.v1.TestIamPermissionsResponse, google.iam.v1.TestIamPermissionsRequest | null | undefined, {} | null | undefined>
The function which will be called with the result of the API call. The second parameter to the callback is an object representing . |
| Returns | |
|---|---|
| Type | Description |
Promise<[google.iam.v1.TestIamPermissionsResponse]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing . The promise has a method named "cancel" which cancels the ongoing API call. |
tlsRoutePath(project, location, tlsRoute)
tlsRoutePath(project: string, location: string, tlsRoute: string): string;Return a fully-qualified tlsRoute resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
location |
string
|
tlsRoute |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
updateEndpointPolicy(request, options)
updateEndpointPolicy(request?: protos.google.cloud.networkservices.v1.IUpdateEndpointPolicyRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.IEndpointPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Updates the parameters of a single EndpointPolicy.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateEndpointPolicyRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.IEndpointPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Field mask is used to specify the fields to be overwritten in the
* EndpointPolicy resource by the update.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*/
// const updateMask = {}
/**
* Required. Updated EndpointPolicy resource.
*/
// const endpointPolicy = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateEndpointPolicy() {
// Construct request
const request = {
endpointPolicy,
};
// Run request
const [operation] = await networkservicesClient.updateEndpointPolicy(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateEndpointPolicy();
updateEndpointPolicy(request, options, callback)
updateEndpointPolicy(request: protos.google.cloud.networkservices.v1.IUpdateEndpointPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IEndpointPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateEndpointPolicyRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IEndpointPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateEndpointPolicy(request, callback)
updateEndpointPolicy(request: protos.google.cloud.networkservices.v1.IUpdateEndpointPolicyRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IEndpointPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateEndpointPolicyRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IEndpointPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateGateway(request, options)
updateGateway(request?: protos.google.cloud.networkservices.v1.IUpdateGatewayRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.IGateway, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Updates the parameters of a single Gateway.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateGatewayRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.IGateway, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Field mask is used to specify the fields to be overwritten in the
* Gateway resource by the update.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*/
// const updateMask = {}
/**
* Required. Updated Gateway resource.
*/
// const gateway = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateGateway() {
// Construct request
const request = {
gateway,
};
// Run request
const [operation] = await networkservicesClient.updateGateway(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateGateway();
updateGateway(request, options, callback)
updateGateway(request: protos.google.cloud.networkservices.v1.IUpdateGatewayRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IGateway, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateGatewayRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IGateway, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateGateway(request, callback)
updateGateway(request: protos.google.cloud.networkservices.v1.IUpdateGatewayRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IGateway, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateGatewayRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IGateway, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateGrpcRoute(request, options)
updateGrpcRoute(request?: protos.google.cloud.networkservices.v1.IUpdateGrpcRouteRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.IGrpcRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Updates the parameters of a single GrpcRoute.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateGrpcRouteRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.IGrpcRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Field mask is used to specify the fields to be overwritten in the
* GrpcRoute resource by the update.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*/
// const updateMask = {}
/**
* Required. Updated GrpcRoute resource.
*/
// const grpcRoute = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateGrpcRoute() {
// Construct request
const request = {
grpcRoute,
};
// Run request
const [operation] = await networkservicesClient.updateGrpcRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateGrpcRoute();
updateGrpcRoute(request, options, callback)
updateGrpcRoute(request: protos.google.cloud.networkservices.v1.IUpdateGrpcRouteRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IGrpcRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateGrpcRouteRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IGrpcRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateGrpcRoute(request, callback)
updateGrpcRoute(request: protos.google.cloud.networkservices.v1.IUpdateGrpcRouteRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IGrpcRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateGrpcRouteRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IGrpcRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateHttpRoute(request, options)
updateHttpRoute(request?: protos.google.cloud.networkservices.v1.IUpdateHttpRouteRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.IHttpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Updates the parameters of a single HttpRoute.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateHttpRouteRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.IHttpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Field mask is used to specify the fields to be overwritten in the
* HttpRoute resource by the update.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*/
// const updateMask = {}
/**
* Required. Updated HttpRoute resource.
*/
// const httpRoute = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateHttpRoute() {
// Construct request
const request = {
httpRoute,
};
// Run request
const [operation] = await networkservicesClient.updateHttpRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateHttpRoute();
updateHttpRoute(request, options, callback)
updateHttpRoute(request: protos.google.cloud.networkservices.v1.IUpdateHttpRouteRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IHttpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateHttpRouteRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IHttpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateHttpRoute(request, callback)
updateHttpRoute(request: protos.google.cloud.networkservices.v1.IUpdateHttpRouteRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IHttpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateHttpRouteRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IHttpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateMesh(request, options)
updateMesh(request?: protos.google.cloud.networkservices.v1.IUpdateMeshRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.IMesh, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Updates the parameters of a single Mesh.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateMeshRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.IMesh, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Field mask is used to specify the fields to be overwritten in the
* Mesh resource by the update.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*/
// const updateMask = {}
/**
* Required. Updated Mesh resource.
*/
// const mesh = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateMesh() {
// Construct request
const request = {
mesh,
};
// Run request
const [operation] = await networkservicesClient.updateMesh(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateMesh();
updateMesh(request, options, callback)
updateMesh(request: protos.google.cloud.networkservices.v1.IUpdateMeshRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IMesh, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateMeshRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IMesh, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateMesh(request, callback)
updateMesh(request: protos.google.cloud.networkservices.v1.IUpdateMeshRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IMesh, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateMeshRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IMesh, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateServiceBinding(request, options)
updateServiceBinding(request?: protos.google.cloud.networkservices.v1.IUpdateServiceBindingRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.IServiceBinding, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Updates the parameters of a single ServiceBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateServiceBindingRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.IServiceBinding, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Field mask is used to specify the fields to be overwritten in the
* ServiceBinding resource by the update.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*/
// const updateMask = {}
/**
* Required. Updated ServiceBinding resource.
*/
// const serviceBinding = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateServiceBinding() {
// Construct request
const request = {
serviceBinding,
};
// Run request
const [operation] = await networkservicesClient.updateServiceBinding(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateServiceBinding();
updateServiceBinding(request, options, callback)
updateServiceBinding(request: protos.google.cloud.networkservices.v1.IUpdateServiceBindingRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IServiceBinding, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateServiceBindingRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IServiceBinding, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateServiceBinding(request, callback)
updateServiceBinding(request: protos.google.cloud.networkservices.v1.IUpdateServiceBindingRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IServiceBinding, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateServiceBindingRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IServiceBinding, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateServiceLbPolicy(request, options)
updateServiceLbPolicy(request?: protos.google.cloud.networkservices.v1.IUpdateServiceLbPolicyRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.IServiceLbPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Updates the parameters of a single ServiceLbPolicy.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateServiceLbPolicyRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.IServiceLbPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Field mask is used to specify the fields to be overwritten in the
* ServiceLbPolicy resource by the update.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*/
// const updateMask = {}
/**
* Required. Updated ServiceLbPolicy resource.
*/
// const serviceLbPolicy = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateServiceLbPolicy() {
// Construct request
const request = {
serviceLbPolicy,
};
// Run request
const [operation] = await networkservicesClient.updateServiceLbPolicy(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateServiceLbPolicy();
updateServiceLbPolicy(request, options, callback)
updateServiceLbPolicy(request: protos.google.cloud.networkservices.v1.IUpdateServiceLbPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IServiceLbPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateServiceLbPolicyRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IServiceLbPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateServiceLbPolicy(request, callback)
updateServiceLbPolicy(request: protos.google.cloud.networkservices.v1.IUpdateServiceLbPolicyRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IServiceLbPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateServiceLbPolicyRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IServiceLbPolicy, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateTcpRoute(request, options)
updateTcpRoute(request?: protos.google.cloud.networkservices.v1.IUpdateTcpRouteRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.ITcpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Updates the parameters of a single TcpRoute.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateTcpRouteRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.ITcpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Field mask is used to specify the fields to be overwritten in the
* TcpRoute resource by the update.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*/
// const updateMask = {}
/**
* Required. Updated TcpRoute resource.
*/
// const tcpRoute = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateTcpRoute() {
// Construct request
const request = {
tcpRoute,
};
// Run request
const [operation] = await networkservicesClient.updateTcpRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateTcpRoute();
updateTcpRoute(request, options, callback)
updateTcpRoute(request: protos.google.cloud.networkservices.v1.IUpdateTcpRouteRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.ITcpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateTcpRouteRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.ITcpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateTcpRoute(request, callback)
updateTcpRoute(request: protos.google.cloud.networkservices.v1.IUpdateTcpRouteRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.ITcpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateTcpRouteRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.ITcpRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateTlsRoute(request, options)
updateTlsRoute(request?: protos.google.cloud.networkservices.v1.IUpdateTlsRouteRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.ITlsRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Updates the parameters of a single TlsRoute.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateTlsRouteRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.ITlsRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Field mask is used to specify the fields to be overwritten in the
* TlsRoute resource by the update.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*/
// const updateMask = {}
/**
* Required. Updated TlsRoute resource.
*/
// const tlsRoute = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateTlsRoute() {
// Construct request
const request = {
tlsRoute,
};
// Run request
const [operation] = await networkservicesClient.updateTlsRoute(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateTlsRoute();
updateTlsRoute(request, options, callback)
updateTlsRoute(request: protos.google.cloud.networkservices.v1.IUpdateTlsRouteRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.ITlsRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateTlsRouteRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.ITlsRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateTlsRoute(request, callback)
updateTlsRoute(request: protos.google.cloud.networkservices.v1.IUpdateTlsRouteRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.ITlsRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateTlsRouteRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.ITlsRoute, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateWasmPlugin(request, options)
updateWasmPlugin(request?: protos.google.cloud.networkservices.v1.IUpdateWasmPluginRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.networkservices.v1.IWasmPlugin, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;Updates the parameters of the specified WasmPlugin resource.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateWasmPluginRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
| Returns | |
|---|---|
| Type | Description |
Promise<[
LROperation<protos.google.cloud.networkservices.v1.IWasmPlugin, protos.google.cloud.networkservices.v1.IOperationMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Optional. Used to specify the fields to be overwritten in the
* `WasmPlugin` resource by the update.
* The fields specified in the `update_mask` field are relative to the
* resource, not the full request.
* An omitted `update_mask` field is treated as an implied `update_mask`
* field equivalent to all fields that are populated (that have a non-empty
* value).
* The `update_mask` field supports a special value `*`, which means that
* each field in the given `WasmPlugin` resource (including the empty ones)
* replaces the current value.
*/
// const updateMask = {}
/**
* Required. Updated `WasmPlugin` resource.
*/
// const wasmPlugin = {}
// Imports the Networkservices library
const {NetworkServicesClient} = require('@google-cloud/networkservices').v1;
// Instantiates a client
const networkservicesClient = new NetworkServicesClient();
async function callUpdateWasmPlugin() {
// Construct request
const request = {
wasmPlugin,
};
// Run request
const [operation] = await networkservicesClient.updateWasmPlugin(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateWasmPlugin();
updateWasmPlugin(request, options, callback)
updateWasmPlugin(request: protos.google.cloud.networkservices.v1.IUpdateWasmPluginRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IWasmPlugin, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateWasmPluginRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IWasmPlugin, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
updateWasmPlugin(request, callback)
updateWasmPlugin(request: protos.google.cloud.networkservices.v1.IUpdateWasmPluginRequest, callback: Callback<LROperation<protos.google.cloud.networkservices.v1.IWasmPlugin, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateWasmPluginRequest
|
callback |
Callback<LROperation<protos.google.cloud.networkservices.v1.IWasmPlugin, protos.google.cloud.networkservices.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
| Returns | |
|---|---|
| Type | Description |
void |
|
wasmPluginPath(project, location, wasmPlugin)
wasmPluginPath(project: string, location: string, wasmPlugin: string): string;Return a fully-qualified wasmPlugin resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
location |
string
|
wasmPlugin |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |
wasmPluginVersionPath(project, location, wasmPlugin, wasmPluginVersion)
wasmPluginVersionPath(project: string, location: string, wasmPlugin: string, wasmPluginVersion: string): string;Return a fully-qualified wasmPluginVersion resource name string.
| Parameters | |
|---|---|
| Name | Description |
project |
string
|
location |
string
|
wasmPlugin |
string
|
wasmPluginVersion |
string
|
| Returns | |
|---|---|
| Type | Description |
string |
{string} Resource name string. |