Class v1.ReachabilityServiceClient (1.0.2)

The Reachability service in the Google Cloud Network Management API provides services that analyze the reachability within a single Google Virtual Private Cloud (VPC) network, between peered VPC networks, between VPC and on-premises networks, or between VPC networks and internet hosts. A reachability analysis is based on Google Cloud network configurations.

You can use the analysis results to verify these configurations and to troubleshoot connectivity issues. v1

Package

@google-cloud/network-management!

Constructors

(constructor)(opts)

constructor(opts?: ClientOptions);

Construct an instance of ReachabilityServiceClient.

Parameter
NameDescription
opts ClientOptions

Properties

apiEndpoint

static get apiEndpoint(): string;

The DNS address for this API service - same as servicePath(), exists for compatibility reasons.

Property Value
TypeDescription
string

auth

auth: gax.GoogleAuth;
Property Value
TypeDescription
gax.GoogleAuth

descriptors

descriptors: Descriptors;
Property Value
TypeDescription
Descriptors

innerApiCalls

innerApiCalls: {
        [name: string]: Function;
    };
Property Value
TypeDescription
{ [name: string]: Function; }

operationsClient

operationsClient: gax.OperationsClient;
Property Value
TypeDescription
gax.OperationsClient

pathTemplates

pathTemplates: {
        [name: string]: gax.PathTemplate;
    };
Property Value
TypeDescription
{ [name: string]: gax.PathTemplate; }

port

static get port(): number;

The port for this API service.

Property Value
TypeDescription
number

reachabilityServiceStub

reachabilityServiceStub?: Promise<{
        [name: string]: Function;
    }>;
Property Value
TypeDescription
Promise<{ [name: string]: Function; }>

scopes

static get scopes(): string[];

The scopes needed to make gRPC calls for every method defined in this service.

Property Value
TypeDescription
string[]

servicePath

static get servicePath(): string;

The DNS address for this API service.

Property Value
TypeDescription
string

warn

warn: (code: string, message: string, warnType?: string) => void;
Property Value
TypeDescription
(code: string, message: string, warnType?: string) => void

Methods

checkCreateConnectivityTestProgress(name)

checkCreateConnectivityTestProgress(name: string): Promise<LROperation<protos.google.cloud.networkmanagement.v1.ConnectivityTest, protos.google.cloud.networkmanagement.v1.OperationMetadata>>;

Check the status of the long running operation returned by createConnectivityTest().

Parameter
NameDescription
name string

The operation name that will be passed.

Returns
TypeDescription
Promise<LROperation<protos.google.cloud.networkmanagement.v1.ConnectivityTest, protos.google.cloud.networkmanagement.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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples.

checkDeleteConnectivityTestProgress(name)

checkDeleteConnectivityTestProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkmanagement.v1.OperationMetadata>>;

Check the status of the long running operation returned by deleteConnectivityTest().

Parameter
NameDescription
name string

The operation name that will be passed.

Returns
TypeDescription
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networkmanagement.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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples.

checkRerunConnectivityTestProgress(name)

checkRerunConnectivityTestProgress(name: string): Promise<LROperation<protos.google.cloud.networkmanagement.v1.ConnectivityTest, protos.google.cloud.networkmanagement.v1.OperationMetadata>>;

Check the status of the long running operation returned by rerunConnectivityTest().

Parameter
NameDescription
name string

The operation name that will be passed.

Returns
TypeDescription
Promise<LROperation<protos.google.cloud.networkmanagement.v1.ConnectivityTest, protos.google.cloud.networkmanagement.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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples.

checkUpdateConnectivityTestProgress(name)

checkUpdateConnectivityTestProgress(name: string): Promise<LROperation<protos.google.cloud.networkmanagement.v1.ConnectivityTest, protos.google.cloud.networkmanagement.v1.OperationMetadata>>;

Check the status of the long running operation returned by updateConnectivityTest().

Parameter
NameDescription
name string

The operation name that will be passed.

Returns
TypeDescription
Promise<LROperation<protos.google.cloud.networkmanagement.v1.ConnectivityTest, protos.google.cloud.networkmanagement.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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples.

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
TypeDescription
Promise<void>

{Promise} A promise that resolves when the client is closed.

connectivityTestPath(project, test)

connectivityTestPath(project: string, test: string): string;

Return a fully-qualified connectivityTest resource name string.

Parameters
NameDescription
project string
test string
Returns
TypeDescription
string

{string} Resource name string.

createConnectivityTest(request, options)

createConnectivityTest(request?: protos.google.cloud.networkmanagement.v1.ICreateConnectivityTestRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;
Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.ICreateConnectivityTestRequest
options CallOptions
Returns
TypeDescription
Promise<[ LROperation<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

createConnectivityTest(request, options, callback)

createConnectivityTest(request: protos.google.cloud.networkmanagement.v1.ICreateConnectivityTestRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.ICreateConnectivityTestRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

createConnectivityTest(request, callback)

createConnectivityTest(request: protos.google.cloud.networkmanagement.v1.ICreateConnectivityTestRequest, callback: Callback<LROperation<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.ICreateConnectivityTestRequest
callback Callback<LROperation<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteConnectivityTest(request, options)

deleteConnectivityTest(request?: protos.google.cloud.networkmanagement.v1.IDeleteConnectivityTestRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkmanagement.v1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;
Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.IDeleteConnectivityTestRequest
options CallOptions
Returns
TypeDescription
Promise<[ LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

deleteConnectivityTest(request, options, callback)

deleteConnectivityTest(request: protos.google.cloud.networkmanagement.v1.IDeleteConnectivityTestRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.IDeleteConnectivityTestRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteConnectivityTest(request, callback)

deleteConnectivityTest(request: protos.google.cloud.networkmanagement.v1.IDeleteConnectivityTestRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.IDeleteConnectivityTestRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getConnectivityTest(request, options)

getConnectivityTest(request?: protos.google.cloud.networkmanagement.v1.IGetConnectivityTestRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networkmanagement.v1.IConnectivityTest,
        (protos.google.cloud.networkmanagement.v1.IGetConnectivityTestRequest | undefined),
        {} | undefined
    ]>;
Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.IGetConnectivityTestRequest
options CallOptions
Returns
TypeDescription
Promise<[ protos.google.cloud.networkmanagement.v1.IConnectivityTest, (protos.google.cloud.networkmanagement.v1.IGetConnectivityTestRequest | undefined), {} | undefined ]>

getConnectivityTest(request, options, callback)

getConnectivityTest(request: protos.google.cloud.networkmanagement.v1.IGetConnectivityTestRequest, options: CallOptions, callback: Callback<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IGetConnectivityTestRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.IGetConnectivityTestRequest
options CallOptions
callback Callback<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IGetConnectivityTestRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getConnectivityTest(request, callback)

getConnectivityTest(request: protos.google.cloud.networkmanagement.v1.IGetConnectivityTestRequest, callback: Callback<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IGetConnectivityTestRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.IGetConnectivityTestRequest
callback Callback<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IGetConnectivityTestRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getProjectId()

getProjectId(): Promise<string>;
Returns
TypeDescription
Promise<string>

getProjectId(callback)

getProjectId(callback: Callback<string, undefined, undefined>): void;
Parameter
NameDescription
callback Callback<string, undefined, undefined>
Returns
TypeDescription
void

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
TypeDescription
Promise<{ [name: string]: Function; }>

{Promise} A promise that resolves to an authenticated service stub.

listConnectivityTests(request, options)

listConnectivityTests(request?: protos.google.cloud.networkmanagement.v1.IListConnectivityTestsRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networkmanagement.v1.IConnectivityTest[],
        protos.google.cloud.networkmanagement.v1.IListConnectivityTestsRequest | null,
        protos.google.cloud.networkmanagement.v1.IListConnectivityTestsResponse
    ]>;
Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.IListConnectivityTestsRequest
options CallOptions
Returns
TypeDescription
Promise<[ protos.google.cloud.networkmanagement.v1.IConnectivityTest[], protos.google.cloud.networkmanagement.v1.IListConnectivityTestsRequest | null, protos.google.cloud.networkmanagement.v1.IListConnectivityTestsResponse ]>

listConnectivityTests(request, options, callback)

listConnectivityTests(request: protos.google.cloud.networkmanagement.v1.IListConnectivityTestsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networkmanagement.v1.IListConnectivityTestsRequest, protos.google.cloud.networkmanagement.v1.IListConnectivityTestsResponse | null | undefined, protos.google.cloud.networkmanagement.v1.IConnectivityTest>): void;
Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.IListConnectivityTestsRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.networkmanagement.v1.IListConnectivityTestsRequest, protos.google.cloud.networkmanagement.v1.IListConnectivityTestsResponse | null | undefined, protos.google.cloud.networkmanagement.v1.IConnectivityTest>
Returns
TypeDescription
void

listConnectivityTests(request, callback)

listConnectivityTests(request: protos.google.cloud.networkmanagement.v1.IListConnectivityTestsRequest, callback: PaginationCallback<protos.google.cloud.networkmanagement.v1.IListConnectivityTestsRequest, protos.google.cloud.networkmanagement.v1.IListConnectivityTestsResponse | null | undefined, protos.google.cloud.networkmanagement.v1.IConnectivityTest>): void;
Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.IListConnectivityTestsRequest
callback PaginationCallback<protos.google.cloud.networkmanagement.v1.IListConnectivityTestsRequest, protos.google.cloud.networkmanagement.v1.IListConnectivityTestsResponse | null | undefined, protos.google.cloud.networkmanagement.v1.IConnectivityTest>
Returns
TypeDescription
void

listConnectivityTestsAsync(request, options)

listConnectivityTestsAsync(request?: protos.google.cloud.networkmanagement.v1.IListConnectivityTestsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networkmanagement.v1.IConnectivityTest>;

Equivalent to listConnectivityTests, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.IListConnectivityTestsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.cloud.networkmanagement.v1.IConnectivityTest>

{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). When you iterate the returned iterable, each element will be an object representing [ConnectivityTest]. 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](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.

listConnectivityTestsStream(request, options)

listConnectivityTestsStream(request?: protos.google.cloud.networkmanagement.v1.IListConnectivityTestsRequest, options?: CallOptions): Transform;

Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.

Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.IListConnectivityTestsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Transform

{Stream} An object stream which emits an object representing [ConnectivityTest] 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 listConnectivityTestsAsync() method described below for async iteration which you can stop as needed. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.

matchProjectFromConnectivityTestName(connectivityTestName)

matchProjectFromConnectivityTestName(connectivityTestName: string): string | number;

Parse the project from ConnectivityTest resource.

Parameter
NameDescription
connectivityTestName string

A fully-qualified path representing ConnectivityTest resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchTestFromConnectivityTestName(connectivityTestName)

matchTestFromConnectivityTestName(connectivityTestName: string): string | number;

Parse the test from ConnectivityTest resource.

Parameter
NameDescription
connectivityTestName string

A fully-qualified path representing ConnectivityTest resource.

Returns
TypeDescription
string | number

{string} A string representing the test.

rerunConnectivityTest(request, options)

rerunConnectivityTest(request?: protos.google.cloud.networkmanagement.v1.IRerunConnectivityTestRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;
Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.IRerunConnectivityTestRequest
options CallOptions
Returns
TypeDescription
Promise<[ LROperation<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

rerunConnectivityTest(request, options, callback)

rerunConnectivityTest(request: protos.google.cloud.networkmanagement.v1.IRerunConnectivityTestRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.IRerunConnectivityTestRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

rerunConnectivityTest(request, callback)

rerunConnectivityTest(request: protos.google.cloud.networkmanagement.v1.IRerunConnectivityTestRequest, callback: Callback<LROperation<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.IRerunConnectivityTestRequest
callback Callback<LROperation<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

updateConnectivityTest(request, options)

updateConnectivityTest(request?: protos.google.cloud.networkmanagement.v1.IUpdateConnectivityTestRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;
Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.IUpdateConnectivityTestRequest
options CallOptions
Returns
TypeDescription
Promise<[ LROperation<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

updateConnectivityTest(request, options, callback)

updateConnectivityTest(request: protos.google.cloud.networkmanagement.v1.IUpdateConnectivityTestRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.IUpdateConnectivityTestRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

updateConnectivityTest(request, callback)

updateConnectivityTest(request: protos.google.cloud.networkmanagement.v1.IUpdateConnectivityTestRequest, callback: Callback<LROperation<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.networkmanagement.v1.IUpdateConnectivityTestRequest
callback Callback<LROperation<protos.google.cloud.networkmanagement.v1.IConnectivityTest, protos.google.cloud.networkmanagement.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void