Class v1alpha1.NetworkSecurityClient (4.1.1)

Network Security API provides resources to configure authentication and authorization policies. Refer to per API resource documentation for more information. v1alpha1

Package

@google-cloud/network-security

Constructors

(constructor)(opts, gaxInstance)

constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);

Construct an instance of NetworkSecurityClient.

Parameters
Name Description
opts ClientOptions
gaxInstance typeof gax | typeof fallback

: loaded instance of google-gax. Useful if you need to avoid loading the default gRPC version and want to use the fallback HTTP implementation. Load only fallback version and pass it to the constructor: ``` const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC const client = new NetworkSecurityClient({fallback: true}, gax); ```

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;

networkSecurityStub

networkSecurityStub?: 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

authorizationPolicyPath(project, location, authorizationPolicy)

authorizationPolicyPath(project: string, location: string, authorizationPolicy: string): string;

Return a fully-qualified authorizationPolicy resource name string.

Parameters
Name Description
project string
location string
authorizationPolicy string
Returns
Type Description
string

{string} Resource name string.

authzPolicyPath(project, location, authzPolicy)

authzPolicyPath(project: string, location: string, authzPolicy: string): string;

Return a fully-qualified authzPolicy resource name string.

Parameters
Name Description
project string
location string
authzPolicy string
Returns
Type Description
string

{string} Resource name string.

backendAuthenticationConfigPath(project, location, backendAuthenticationConfig)

backendAuthenticationConfigPath(project: string, location: string, backendAuthenticationConfig: string): string;

Return a fully-qualified backendAuthenticationConfig resource name string.

Parameters
Name Description
project string
location string
backendAuthenticationConfig 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>
Example

const client = longrunning.operationsClient();
await client.cancelOperation({name: ''});

checkCreateAuthorizationPolicyProgress(name)

checkCreateAuthorizationPolicyProgress(name: string): Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.AuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.AuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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 AuthorizationPolicy. Must be in the
   *  format `projects/{project}/locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Required. Short name of the AuthorizationPolicy resource to be created.
   *  This value should be 1-63 characters long, containing only
   *  letters, numbers, hyphens, and underscores, and should not start
   *  with a number. E.g. "authz_policy".
   */
  // const authorizationPolicyId = 'abc123'
  /**
   *  Required. AuthorizationPolicy resource to be created.
   */
  // const authorizationPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callCreateAuthorizationPolicy() {
    // Construct request
    const request = {
      parent,
      authorizationPolicyId,
      authorizationPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.createAuthorizationPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateAuthorizationPolicy();

checkCreateAuthzPolicyProgress(name)

checkCreateAuthzPolicyProgress(name: string): Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.AuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.AuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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 `AuthzPolicy` resource. Must be in
   *  the format `projects/{project}/locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Required. User-provided ID of the `AuthzPolicy` resource to be created.
   */
  // const authzPolicyId = 'abc123'
  /**
   *  Required. `AuthzPolicy` resource to be created.
   */
  // const authzPolicy = {}
  /**
   *  Optional. An optional request ID to identify requests. Specify a unique
   *  request ID so that if you must retry your request, the server can ignore
   *  the request if it has already been completed. The server guarantees
   *  that for at least 60 minutes since the first request.
   *  For example, consider a situation where you make an initial request and the
   *  request times out. If you make the request again with the same request
   *  ID, the server can check if original operation with the same request ID
   *  was received, and if so, ignores the second request. This prevents
   *  clients from accidentally creating duplicate commitments.
   *  The request ID must be a valid UUID with the exception that zero UUID is
   *  not supported (00000000-0000-0000-0000-000000000000).
   */
  // const requestId = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callCreateAuthzPolicy() {
    // Construct request
    const request = {
      parent,
      authzPolicyId,
      authzPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.createAuthzPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateAuthzPolicy();

checkCreateBackendAuthenticationConfigProgress(name)

checkCreateBackendAuthenticationConfigProgress(name: string): Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.BackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.BackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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 BackendAuthenticationConfig. Must be
   *  in the format `projects/* /locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Required. Short name of the BackendAuthenticationConfig resource to be
   *  created. This value should be 1-63 characters long, containing only
   *  letters, numbers, hyphens, and underscores, and should not start with a
   *  number. E.g. "backend-auth-config".
   */
  // const backendAuthenticationConfigId = 'abc123'
  /**
   *  Required. BackendAuthenticationConfig resource to be created.
   */
  // const backendAuthenticationConfig = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callCreateBackendAuthenticationConfig() {
    // Construct request
    const request = {
      parent,
      backendAuthenticationConfigId,
      backendAuthenticationConfig,
    };

    // Run request
    const [operation] = await networksecurityClient.createBackendAuthenticationConfig(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateBackendAuthenticationConfig();

checkCreateClientTlsPolicyProgress(name)

checkCreateClientTlsPolicyProgress(name: string): Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.ClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.ClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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 ClientTlsPolicy. Must be in
   *  the format `projects/* /locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Required. Short name of the ClientTlsPolicy resource to be created. This
   *  value should be 1-63 characters long, containing only letters, numbers,
   *  hyphens, and underscores, and should not start with a number. E.g.
   *  "client_mtls_policy".
   */
  // const clientTlsPolicyId = 'abc123'
  /**
   *  Required. ClientTlsPolicy resource to be created.
   */
  // const clientTlsPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callCreateClientTlsPolicy() {
    // Construct request
    const request = {
      parent,
      clientTlsPolicyId,
      clientTlsPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.createClientTlsPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateClientTlsPolicy();

checkCreateGatewaySecurityPolicyProgress(name)

checkCreateGatewaySecurityPolicyProgress(name: string): Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.GatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.GatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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 GatewaySecurityPolicy. Must be in the
   *  format `projects/{project}/locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Required. Short name of the GatewaySecurityPolicy resource to be created.
   *  This value should be 1-63 characters long, containing only
   *  letters, numbers, hyphens, and underscores, and should not start
   *  with a number. E.g. "gateway_security_policy1".
   */
  // const gatewaySecurityPolicyId = 'abc123'
  /**
   *  Required. GatewaySecurityPolicy resource to be created.
   */
  // const gatewaySecurityPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callCreateGatewaySecurityPolicy() {
    // Construct request
    const request = {
      parent,
      gatewaySecurityPolicyId,
      gatewaySecurityPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.createGatewaySecurityPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateGatewaySecurityPolicy();

checkCreateGatewaySecurityPolicyRuleProgress(name)

checkCreateGatewaySecurityPolicyRuleProgress(name: string): Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.GatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.GatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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 where this rule will be created.
   *  Format :
   *  projects/{project}/location/{location}/gatewaySecurityPolicies/*
   */
  // const parent = 'abc123'
  /**
   *  Required. The rule to be created.
   */
  // const gatewaySecurityPolicyRule = {}
  /**
   *  The ID to use for the rule, which will become the final component of
   *  the rule's resource name.
   *  This value should be 4-63 characters, and valid characters
   *  are /[a-z][0-9]-/.
   */
  // const gatewaySecurityPolicyRuleId = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callCreateGatewaySecurityPolicyRule() {
    // Construct request
    const request = {
      parent,
      gatewaySecurityPolicyRule,
    };

    // Run request
    const [operation] = await networksecurityClient.createGatewaySecurityPolicyRule(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateGatewaySecurityPolicyRule();

checkCreateServerTlsPolicyProgress(name)

checkCreateServerTlsPolicyProgress(name: string): Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.ServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.ServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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 ServerTlsPolicy. Must be in
   *  the format `projects/* /locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Required. Short name of the ServerTlsPolicy resource to be created. This
   *  value should be 1-63 characters long, containing only letters, numbers,
   *  hyphens, and underscores, and should not start with a number. E.g.
   *  "server_mtls_policy".
   */
  // const serverTlsPolicyId = 'abc123'
  /**
   *  Required. ServerTlsPolicy resource to be created.
   */
  // const serverTlsPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callCreateServerTlsPolicy() {
    // Construct request
    const request = {
      parent,
      serverTlsPolicyId,
      serverTlsPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.createServerTlsPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateServerTlsPolicy();

checkCreateTlsInspectionPolicyProgress(name)

checkCreateTlsInspectionPolicyProgress(name: string): Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.TlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.TlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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 TlsInspectionPolicy. Must be in the
   *  format `projects/{project}/locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Required. Short name of the TlsInspectionPolicy resource to be created.
   *  This value should be 1-63 characters long, containing only
   *  letters, numbers, hyphens, and underscores, and should not start
   *  with a number. E.g. "tls_inspection_policy1".
   */
  // const tlsInspectionPolicyId = 'abc123'
  /**
   *  Required. TlsInspectionPolicy resource to be created.
   */
  // const tlsInspectionPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callCreateTlsInspectionPolicy() {
    // Construct request
    const request = {
      parent,
      tlsInspectionPolicyId,
      tlsInspectionPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.createTlsInspectionPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateTlsInspectionPolicy();

checkCreateUrlListProgress(name)

checkCreateUrlListProgress(name: string): Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.UrlList, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.UrlList, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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 UrlList. Must be in
   *  the format `projects/* /locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Required. Short name of the UrlList resource to be created. This value
   *  should be 1-63 characters long, containing only letters, numbers, hyphens,
   *  and underscores, and should not start with a number. E.g. "url_list".
   */
  // const urlListId = 'abc123'
  /**
   *  Required. UrlList resource to be created.
   */
  // const urlList = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callCreateUrlList() {
    // Construct request
    const request = {
      parent,
      urlListId,
      urlList,
    };

    // Run request
    const [operation] = await networksecurityClient.createUrlList(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateUrlList();

checkDeleteAuthorizationPolicyProgress(name)

checkDeleteAuthorizationPolicyProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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 AuthorizationPolicy to delete. Must be in the
   *  format `projects/{project}/locations/{location}/authorizationPolicies/*`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callDeleteAuthorizationPolicy() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await networksecurityClient.deleteAuthorizationPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteAuthorizationPolicy();

checkDeleteAuthzPolicyProgress(name)

checkDeleteAuthzPolicyProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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 name of the `AuthzPolicy` resource to delete. Must be in
   *  the format
   *  `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
   */
  // const name = 'abc123'
  /**
   *  Optional. An optional request ID to identify requests. Specify a unique
   *  request ID so that if you must retry your request, the server can ignore
   *  the request if it has already been completed. The server guarantees
   *  that for at least 60 minutes after the first request.
   *  For example, consider a situation where you make an initial request and the
   *  request times out. If you make the request again with the same request
   *  ID, the server can check if original operation with the same request ID
   *  was received, and if so, ignores the second request. This prevents
   *  clients from accidentally creating duplicate commitments.
   *  The request ID must be a valid UUID with the exception that zero UUID is
   *  not supported (00000000-0000-0000-0000-000000000000).
   */
  // const requestId = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callDeleteAuthzPolicy() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await networksecurityClient.deleteAuthzPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteAuthzPolicy();

checkDeleteBackendAuthenticationConfigProgress(name)

checkDeleteBackendAuthenticationConfigProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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 BackendAuthenticationConfig to delete. Must be in
   *  the format
   *  `projects/* /locations/{location}/backendAuthenticationConfigs/*`.
   */
  // const name = 'abc123'
  /**
   *  Optional. Etag of the resource.
   *  If this is provided, it must match the server's etag.
   */
  // const etag = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callDeleteBackendAuthenticationConfig() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await networksecurityClient.deleteBackendAuthenticationConfig(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteBackendAuthenticationConfig();

checkDeleteClientTlsPolicyProgress(name)

checkDeleteClientTlsPolicyProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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 ClientTlsPolicy to delete. Must be in
   *  the format `projects/* /locations/{location}/clientTlsPolicies/*`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callDeleteClientTlsPolicy() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await networksecurityClient.deleteClientTlsPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteClientTlsPolicy();

checkDeleteGatewaySecurityPolicyProgress(name)

checkDeleteGatewaySecurityPolicyProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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 GatewaySecurityPolicy to delete. Must be in the
   *  format `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callDeleteGatewaySecurityPolicy() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await networksecurityClient.deleteGatewaySecurityPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteGatewaySecurityPolicy();

checkDeleteGatewaySecurityPolicyRuleProgress(name)

checkDeleteGatewaySecurityPolicyRuleProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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 GatewaySecurityPolicyRule to delete. Must be in the
   *  format
   *  `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callDeleteGatewaySecurityPolicyRule() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await networksecurityClient.deleteGatewaySecurityPolicyRule(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteGatewaySecurityPolicyRule();

checkDeleteServerTlsPolicyProgress(name)

checkDeleteServerTlsPolicyProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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 ServerTlsPolicy to delete. Must be in
   *  the format `projects/* /locations/{location}/serverTlsPolicies/*`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callDeleteServerTlsPolicy() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await networksecurityClient.deleteServerTlsPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteServerTlsPolicy();

checkDeleteTlsInspectionPolicyProgress(name)

checkDeleteTlsInspectionPolicyProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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 TlsInspectionPolicy to delete. Must be in the
   *  format
   *  `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
   */
  // const name = 'abc123'
  /**
   *  If set to true, any rules for this TlsInspectionPolicy will also be
   *  deleted. (Otherwise, the request will only work if the TlsInspectionPolicy
   *  has no rules.)
   */
  // const force = true

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callDeleteTlsInspectionPolicy() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await networksecurityClient.deleteTlsInspectionPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteTlsInspectionPolicy();

checkDeleteUrlListProgress(name)

checkDeleteUrlListProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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 UrlList to delete. Must be in
   *  the format `projects/* /locations/{location}/urlLists/*`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callDeleteUrlList() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await networksecurityClient.deleteUrlList(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteUrlList();

checkUpdateAuthorizationPolicyProgress(name)

checkUpdateAuthorizationPolicyProgress(name: string): Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.AuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.AuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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
   *  AuthorizationPolicy 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 AuthorizationPolicy resource.
   */
  // const authorizationPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callUpdateAuthorizationPolicy() {
    // Construct request
    const request = {
      authorizationPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.updateAuthorizationPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateAuthorizationPolicy();

checkUpdateAuthzPolicyProgress(name)

checkUpdateAuthzPolicyProgress(name: string): Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.AuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.AuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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. Used to specify the fields to be overwritten in the
   *  `AuthzPolicy` resource by the update.
   *  The fields specified in the `update_mask` are relative to the resource, not
   *  the full request. A field is overwritten if it is in the mask. If the
   *  user does not specify a mask, then all fields are overwritten.
   */
  // const updateMask = {}
  /**
   *  Required. `AuthzPolicy` resource being updated.
   */
  // const authzPolicy = {}
  /**
   *  Optional. An optional request ID to identify requests. Specify a unique
   *  request ID so that if you must retry your request, the server can ignore
   *  the request if it has already been completed. The server guarantees
   *  that for at least 60 minutes since the first request.
   *  For example, consider a situation where you make an initial request and the
   *  request times out. If you make the request again with the same request
   *  ID, the server can check if original operation with the same request ID
   *  was received, and if so, ignores the second request. This prevents
   *  clients from accidentally creating duplicate commitments.
   *  The request ID must be a valid UUID with the exception that zero UUID is
   *  not supported (00000000-0000-0000-0000-000000000000).
   */
  // const requestId = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callUpdateAuthzPolicy() {
    // Construct request
    const request = {
      updateMask,
      authzPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.updateAuthzPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateAuthzPolicy();

checkUpdateBackendAuthenticationConfigProgress(name)

checkUpdateBackendAuthenticationConfigProgress(name: string): Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.BackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.BackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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
   *  BackendAuthenticationConfig 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 BackendAuthenticationConfig resource.
   */
  // const backendAuthenticationConfig = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callUpdateBackendAuthenticationConfig() {
    // Construct request
    const request = {
      backendAuthenticationConfig,
    };

    // Run request
    const [operation] = await networksecurityClient.updateBackendAuthenticationConfig(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateBackendAuthenticationConfig();

checkUpdateClientTlsPolicyProgress(name)

checkUpdateClientTlsPolicyProgress(name: string): Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.ClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.ClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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
   *  ClientTlsPolicy 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 ClientTlsPolicy resource.
   */
  // const clientTlsPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callUpdateClientTlsPolicy() {
    // Construct request
    const request = {
      clientTlsPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.updateClientTlsPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateClientTlsPolicy();

checkUpdateGatewaySecurityPolicyProgress(name)

checkUpdateGatewaySecurityPolicyProgress(name: string): Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.GatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.GatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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
   *  GatewaySecurityPolicy 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 GatewaySecurityPolicy resource.
   */
  // const gatewaySecurityPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callUpdateGatewaySecurityPolicy() {
    // Construct request
    const request = {
      gatewaySecurityPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.updateGatewaySecurityPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateGatewaySecurityPolicy();

checkUpdateGatewaySecurityPolicyRuleProgress(name)

checkUpdateGatewaySecurityPolicyRuleProgress(name: string): Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.GatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.GatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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
   *  GatewaySecurityPolicy 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 GatewaySecurityPolicyRule resource.
   */
  // const gatewaySecurityPolicyRule = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callUpdateGatewaySecurityPolicyRule() {
    // Construct request
    const request = {
      gatewaySecurityPolicyRule,
    };

    // Run request
    const [operation] = await networksecurityClient.updateGatewaySecurityPolicyRule(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateGatewaySecurityPolicyRule();

checkUpdateServerTlsPolicyProgress(name)

checkUpdateServerTlsPolicyProgress(name: string): Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.ServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.ServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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
   *  ServerTlsPolicy 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 ServerTlsPolicy resource.
   */
  // const serverTlsPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callUpdateServerTlsPolicy() {
    // Construct request
    const request = {
      serverTlsPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.updateServerTlsPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateServerTlsPolicy();

checkUpdateTlsInspectionPolicyProgress(name)

checkUpdateTlsInspectionPolicyProgress(name: string): Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.TlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.TlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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
   *  TlsInspectionPolicy 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 TlsInspectionPolicy resource.
   */
  // const tlsInspectionPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callUpdateTlsInspectionPolicy() {
    // Construct request
    const request = {
      tlsInspectionPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.updateTlsInspectionPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateTlsInspectionPolicy();

checkUpdateUrlListProgress(name)

checkUpdateUrlListProgress(name: string): Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.UrlList, protos.google.cloud.networksecurity.v1alpha1.OperationMetadata>>;

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

Parameter
Name Description
name string

The operation name that will be passed.

Returns
Type Description
Promise<LROperation<protos.google.cloud.networksecurity.v1alpha1.UrlList, protos.google.cloud.networksecurity.v1alpha1.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.

Example

  /**
   * 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
   *  UrlList 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 UrlList resource.
   */
  // const urlList = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callUpdateUrlList() {
    // Construct request
    const request = {
      urlList,
    };

    // Run request
    const [operation] = await networksecurityClient.updateUrlList(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateUrlList();

clientTlsPolicyPath(project, location, clientTlsPolicy)

clientTlsPolicyPath(project: string, location: string, clientTlsPolicy: string): string;

Return a fully-qualified clientTlsPolicy resource name string.

Parameters
Name Description
project string
location string
clientTlsPolicy string
Returns
Type Description
string

{string} Resource name string.

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.

createAuthorizationPolicy(request, options)

createAuthorizationPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.ICreateAuthorizationPolicyRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Creates a new AuthorizationPolicy in a given project and location.

Parameters
Name Description
request ICreateAuthorizationPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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 AuthorizationPolicy. Must be in the
   *  format `projects/{project}/locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Required. Short name of the AuthorizationPolicy resource to be created.
   *  This value should be 1-63 characters long, containing only
   *  letters, numbers, hyphens, and underscores, and should not start
   *  with a number. E.g. "authz_policy".
   */
  // const authorizationPolicyId = 'abc123'
  /**
   *  Required. AuthorizationPolicy resource to be created.
   */
  // const authorizationPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callCreateAuthorizationPolicy() {
    // Construct request
    const request = {
      parent,
      authorizationPolicyId,
      authorizationPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.createAuthorizationPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateAuthorizationPolicy();

createAuthorizationPolicy(request, options, callback)

createAuthorizationPolicy(request: protos.google.cloud.networksecurity.v1alpha1.ICreateAuthorizationPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateAuthorizationPolicyRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createAuthorizationPolicy(request, callback)

createAuthorizationPolicy(request: protos.google.cloud.networksecurity.v1alpha1.ICreateAuthorizationPolicyRequest, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateAuthorizationPolicyRequest
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createAuthzPolicy(request, options)

createAuthzPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.ICreateAuthzPolicyRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Creates a new AuthzPolicy in a given project and location.

Parameters
Name Description
request ICreateAuthzPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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 `AuthzPolicy` resource. Must be in
   *  the format `projects/{project}/locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Required. User-provided ID of the `AuthzPolicy` resource to be created.
   */
  // const authzPolicyId = 'abc123'
  /**
   *  Required. `AuthzPolicy` resource to be created.
   */
  // const authzPolicy = {}
  /**
   *  Optional. An optional request ID to identify requests. Specify a unique
   *  request ID so that if you must retry your request, the server can ignore
   *  the request if it has already been completed. The server guarantees
   *  that for at least 60 minutes since the first request.
   *  For example, consider a situation where you make an initial request and the
   *  request times out. If you make the request again with the same request
   *  ID, the server can check if original operation with the same request ID
   *  was received, and if so, ignores the second request. This prevents
   *  clients from accidentally creating duplicate commitments.
   *  The request ID must be a valid UUID with the exception that zero UUID is
   *  not supported (00000000-0000-0000-0000-000000000000).
   */
  // const requestId = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callCreateAuthzPolicy() {
    // Construct request
    const request = {
      parent,
      authzPolicyId,
      authzPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.createAuthzPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateAuthzPolicy();

createAuthzPolicy(request, options, callback)

createAuthzPolicy(request: protos.google.cloud.networksecurity.v1alpha1.ICreateAuthzPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateAuthzPolicyRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createAuthzPolicy(request, callback)

createAuthzPolicy(request: protos.google.cloud.networksecurity.v1alpha1.ICreateAuthzPolicyRequest, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateAuthzPolicyRequest
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createBackendAuthenticationConfig(request, options)

createBackendAuthenticationConfig(request?: protos.google.cloud.networksecurity.v1alpha1.ICreateBackendAuthenticationConfigRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Creates a new BackendAuthenticationConfig in a given project and location.

Parameters
Name Description
request ICreateBackendAuthenticationConfigRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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 BackendAuthenticationConfig. Must be
   *  in the format `projects/* /locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Required. Short name of the BackendAuthenticationConfig resource to be
   *  created. This value should be 1-63 characters long, containing only
   *  letters, numbers, hyphens, and underscores, and should not start with a
   *  number. E.g. "backend-auth-config".
   */
  // const backendAuthenticationConfigId = 'abc123'
  /**
   *  Required. BackendAuthenticationConfig resource to be created.
   */
  // const backendAuthenticationConfig = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callCreateBackendAuthenticationConfig() {
    // Construct request
    const request = {
      parent,
      backendAuthenticationConfigId,
      backendAuthenticationConfig,
    };

    // Run request
    const [operation] = await networksecurityClient.createBackendAuthenticationConfig(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateBackendAuthenticationConfig();

createBackendAuthenticationConfig(request, options, callback)

createBackendAuthenticationConfig(request: protos.google.cloud.networksecurity.v1alpha1.ICreateBackendAuthenticationConfigRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateBackendAuthenticationConfigRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createBackendAuthenticationConfig(request, callback)

createBackendAuthenticationConfig(request: protos.google.cloud.networksecurity.v1alpha1.ICreateBackendAuthenticationConfigRequest, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateBackendAuthenticationConfigRequest
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createClientTlsPolicy(request, options)

createClientTlsPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.ICreateClientTlsPolicyRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Creates a new ClientTlsPolicy in a given project and location.

Parameters
Name Description
request ICreateClientTlsPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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 ClientTlsPolicy. Must be in
   *  the format `projects/* /locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Required. Short name of the ClientTlsPolicy resource to be created. This
   *  value should be 1-63 characters long, containing only letters, numbers,
   *  hyphens, and underscores, and should not start with a number. E.g.
   *  "client_mtls_policy".
   */
  // const clientTlsPolicyId = 'abc123'
  /**
   *  Required. ClientTlsPolicy resource to be created.
   */
  // const clientTlsPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callCreateClientTlsPolicy() {
    // Construct request
    const request = {
      parent,
      clientTlsPolicyId,
      clientTlsPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.createClientTlsPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateClientTlsPolicy();

createClientTlsPolicy(request, options, callback)

createClientTlsPolicy(request: protos.google.cloud.networksecurity.v1alpha1.ICreateClientTlsPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateClientTlsPolicyRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createClientTlsPolicy(request, callback)

createClientTlsPolicy(request: protos.google.cloud.networksecurity.v1alpha1.ICreateClientTlsPolicyRequest, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateClientTlsPolicyRequest
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createGatewaySecurityPolicy(request, options)

createGatewaySecurityPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.ICreateGatewaySecurityPolicyRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
request ICreateGatewaySecurityPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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 GatewaySecurityPolicy. Must be in the
   *  format `projects/{project}/locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Required. Short name of the GatewaySecurityPolicy resource to be created.
   *  This value should be 1-63 characters long, containing only
   *  letters, numbers, hyphens, and underscores, and should not start
   *  with a number. E.g. "gateway_security_policy1".
   */
  // const gatewaySecurityPolicyId = 'abc123'
  /**
   *  Required. GatewaySecurityPolicy resource to be created.
   */
  // const gatewaySecurityPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callCreateGatewaySecurityPolicy() {
    // Construct request
    const request = {
      parent,
      gatewaySecurityPolicyId,
      gatewaySecurityPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.createGatewaySecurityPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateGatewaySecurityPolicy();

createGatewaySecurityPolicy(request, options, callback)

createGatewaySecurityPolicy(request: protos.google.cloud.networksecurity.v1alpha1.ICreateGatewaySecurityPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateGatewaySecurityPolicyRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createGatewaySecurityPolicy(request, callback)

createGatewaySecurityPolicy(request: protos.google.cloud.networksecurity.v1alpha1.ICreateGatewaySecurityPolicyRequest, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateGatewaySecurityPolicyRequest
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createGatewaySecurityPolicyRule(request, options)

createGatewaySecurityPolicyRule(request?: protos.google.cloud.networksecurity.v1alpha1.ICreateGatewaySecurityPolicyRuleRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
request ICreateGatewaySecurityPolicyRuleRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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 where this rule will be created.
   *  Format :
   *  projects/{project}/location/{location}/gatewaySecurityPolicies/*
   */
  // const parent = 'abc123'
  /**
   *  Required. The rule to be created.
   */
  // const gatewaySecurityPolicyRule = {}
  /**
   *  The ID to use for the rule, which will become the final component of
   *  the rule's resource name.
   *  This value should be 4-63 characters, and valid characters
   *  are /[a-z][0-9]-/.
   */
  // const gatewaySecurityPolicyRuleId = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callCreateGatewaySecurityPolicyRule() {
    // Construct request
    const request = {
      parent,
      gatewaySecurityPolicyRule,
    };

    // Run request
    const [operation] = await networksecurityClient.createGatewaySecurityPolicyRule(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateGatewaySecurityPolicyRule();

createGatewaySecurityPolicyRule(request, options, callback)

createGatewaySecurityPolicyRule(request: protos.google.cloud.networksecurity.v1alpha1.ICreateGatewaySecurityPolicyRuleRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateGatewaySecurityPolicyRuleRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createGatewaySecurityPolicyRule(request, callback)

createGatewaySecurityPolicyRule(request: protos.google.cloud.networksecurity.v1alpha1.ICreateGatewaySecurityPolicyRuleRequest, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateGatewaySecurityPolicyRuleRequest
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createServerTlsPolicy(request, options)

createServerTlsPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.ICreateServerTlsPolicyRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Creates a new ServerTlsPolicy in a given project and location.

Parameters
Name Description
request ICreateServerTlsPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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 ServerTlsPolicy. Must be in
   *  the format `projects/* /locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Required. Short name of the ServerTlsPolicy resource to be created. This
   *  value should be 1-63 characters long, containing only letters, numbers,
   *  hyphens, and underscores, and should not start with a number. E.g.
   *  "server_mtls_policy".
   */
  // const serverTlsPolicyId = 'abc123'
  /**
   *  Required. ServerTlsPolicy resource to be created.
   */
  // const serverTlsPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callCreateServerTlsPolicy() {
    // Construct request
    const request = {
      parent,
      serverTlsPolicyId,
      serverTlsPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.createServerTlsPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateServerTlsPolicy();

createServerTlsPolicy(request, options, callback)

createServerTlsPolicy(request: protos.google.cloud.networksecurity.v1alpha1.ICreateServerTlsPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateServerTlsPolicyRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createServerTlsPolicy(request, callback)

createServerTlsPolicy(request: protos.google.cloud.networksecurity.v1alpha1.ICreateServerTlsPolicyRequest, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateServerTlsPolicyRequest
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createTlsInspectionPolicy(request, options)

createTlsInspectionPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.ICreateTlsInspectionPolicyRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Creates a new TlsInspectionPolicy in a given project and location.

Parameters
Name Description
request ICreateTlsInspectionPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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 TlsInspectionPolicy. Must be in the
   *  format `projects/{project}/locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Required. Short name of the TlsInspectionPolicy resource to be created.
   *  This value should be 1-63 characters long, containing only
   *  letters, numbers, hyphens, and underscores, and should not start
   *  with a number. E.g. "tls_inspection_policy1".
   */
  // const tlsInspectionPolicyId = 'abc123'
  /**
   *  Required. TlsInspectionPolicy resource to be created.
   */
  // const tlsInspectionPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callCreateTlsInspectionPolicy() {
    // Construct request
    const request = {
      parent,
      tlsInspectionPolicyId,
      tlsInspectionPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.createTlsInspectionPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateTlsInspectionPolicy();

createTlsInspectionPolicy(request, options, callback)

createTlsInspectionPolicy(request: protos.google.cloud.networksecurity.v1alpha1.ICreateTlsInspectionPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateTlsInspectionPolicyRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createTlsInspectionPolicy(request, callback)

createTlsInspectionPolicy(request: protos.google.cloud.networksecurity.v1alpha1.ICreateTlsInspectionPolicyRequest, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateTlsInspectionPolicyRequest
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createUrlList(request, options)

createUrlList(request?: protos.google.cloud.networksecurity.v1alpha1.ICreateUrlListRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networksecurity.v1alpha1.IUrlList, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Creates a new UrlList in a given project and location.

Parameters
Name Description
request ICreateUrlListRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.networksecurity.v1alpha1.IUrlList, protos.google.cloud.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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 UrlList. Must be in
   *  the format `projects/* /locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Required. Short name of the UrlList resource to be created. This value
   *  should be 1-63 characters long, containing only letters, numbers, hyphens,
   *  and underscores, and should not start with a number. E.g. "url_list".
   */
  // const urlListId = 'abc123'
  /**
   *  Required. UrlList resource to be created.
   */
  // const urlList = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callCreateUrlList() {
    // Construct request
    const request = {
      parent,
      urlListId,
      urlList,
    };

    // Run request
    const [operation] = await networksecurityClient.createUrlList(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callCreateUrlList();

createUrlList(request, options, callback)

createUrlList(request: protos.google.cloud.networksecurity.v1alpha1.ICreateUrlListRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IUrlList, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateUrlListRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IUrlList, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

createUrlList(request, callback)

createUrlList(request: protos.google.cloud.networksecurity.v1alpha1.ICreateUrlListRequest, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IUrlList, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request ICreateUrlListRequest
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IUrlList, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteAuthorizationPolicy(request, options)

deleteAuthorizationPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.IDeleteAuthorizationPolicyRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Deletes a single AuthorizationPolicy.

Parameters
Name Description
request IDeleteAuthorizationPolicyRequest

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.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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 AuthorizationPolicy to delete. Must be in the
   *  format `projects/{project}/locations/{location}/authorizationPolicies/*`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callDeleteAuthorizationPolicy() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await networksecurityClient.deleteAuthorizationPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteAuthorizationPolicy();

deleteAuthorizationPolicy(request, options, callback)

deleteAuthorizationPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IDeleteAuthorizationPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteAuthorizationPolicyRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteAuthorizationPolicy(request, callback)

deleteAuthorizationPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IDeleteAuthorizationPolicyRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteAuthorizationPolicyRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteAuthzPolicy(request, options)

deleteAuthzPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.IDeleteAuthzPolicyRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Deletes a single AuthzPolicy.

Parameters
Name Description
request IDeleteAuthzPolicyRequest

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.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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 name of the `AuthzPolicy` resource to delete. Must be in
   *  the format
   *  `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
   */
  // const name = 'abc123'
  /**
   *  Optional. An optional request ID to identify requests. Specify a unique
   *  request ID so that if you must retry your request, the server can ignore
   *  the request if it has already been completed. The server guarantees
   *  that for at least 60 minutes after the first request.
   *  For example, consider a situation where you make an initial request and the
   *  request times out. If you make the request again with the same request
   *  ID, the server can check if original operation with the same request ID
   *  was received, and if so, ignores the second request. This prevents
   *  clients from accidentally creating duplicate commitments.
   *  The request ID must be a valid UUID with the exception that zero UUID is
   *  not supported (00000000-0000-0000-0000-000000000000).
   */
  // const requestId = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callDeleteAuthzPolicy() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await networksecurityClient.deleteAuthzPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteAuthzPolicy();

deleteAuthzPolicy(request, options, callback)

deleteAuthzPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IDeleteAuthzPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteAuthzPolicyRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteAuthzPolicy(request, callback)

deleteAuthzPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IDeleteAuthzPolicyRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteAuthzPolicyRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteBackendAuthenticationConfig(request, options)

deleteBackendAuthenticationConfig(request?: protos.google.cloud.networksecurity.v1alpha1.IDeleteBackendAuthenticationConfigRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
request IDeleteBackendAuthenticationConfigRequest

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.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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 BackendAuthenticationConfig to delete. Must be in
   *  the format
   *  `projects/* /locations/{location}/backendAuthenticationConfigs/*`.
   */
  // const name = 'abc123'
  /**
   *  Optional. Etag of the resource.
   *  If this is provided, it must match the server's etag.
   */
  // const etag = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callDeleteBackendAuthenticationConfig() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await networksecurityClient.deleteBackendAuthenticationConfig(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteBackendAuthenticationConfig();

deleteBackendAuthenticationConfig(request, options, callback)

deleteBackendAuthenticationConfig(request: protos.google.cloud.networksecurity.v1alpha1.IDeleteBackendAuthenticationConfigRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteBackendAuthenticationConfigRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteBackendAuthenticationConfig(request, callback)

deleteBackendAuthenticationConfig(request: protos.google.cloud.networksecurity.v1alpha1.IDeleteBackendAuthenticationConfigRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteBackendAuthenticationConfigRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteClientTlsPolicy(request, options)

deleteClientTlsPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.IDeleteClientTlsPolicyRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Deletes a single ClientTlsPolicy.

Parameters
Name Description
request IDeleteClientTlsPolicyRequest

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.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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 ClientTlsPolicy to delete. Must be in
   *  the format `projects/* /locations/{location}/clientTlsPolicies/*`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callDeleteClientTlsPolicy() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await networksecurityClient.deleteClientTlsPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteClientTlsPolicy();

deleteClientTlsPolicy(request, options, callback)

deleteClientTlsPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IDeleteClientTlsPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteClientTlsPolicyRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteClientTlsPolicy(request, callback)

deleteClientTlsPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IDeleteClientTlsPolicyRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteClientTlsPolicyRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteGatewaySecurityPolicy(request, options)

deleteGatewaySecurityPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.IDeleteGatewaySecurityPolicyRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Deletes a single GatewaySecurityPolicy.

Parameters
Name Description
request IDeleteGatewaySecurityPolicyRequest

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.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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 GatewaySecurityPolicy to delete. Must be in the
   *  format `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callDeleteGatewaySecurityPolicy() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await networksecurityClient.deleteGatewaySecurityPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteGatewaySecurityPolicy();

deleteGatewaySecurityPolicy(request, options, callback)

deleteGatewaySecurityPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IDeleteGatewaySecurityPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteGatewaySecurityPolicyRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteGatewaySecurityPolicy(request, callback)

deleteGatewaySecurityPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IDeleteGatewaySecurityPolicyRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteGatewaySecurityPolicyRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteGatewaySecurityPolicyRule(request, options)

deleteGatewaySecurityPolicyRule(request?: protos.google.cloud.networksecurity.v1alpha1.IDeleteGatewaySecurityPolicyRuleRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Deletes a single GatewaySecurityPolicyRule.

Parameters
Name Description
request IDeleteGatewaySecurityPolicyRuleRequest

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.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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 GatewaySecurityPolicyRule to delete. Must be in the
   *  format
   *  `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callDeleteGatewaySecurityPolicyRule() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await networksecurityClient.deleteGatewaySecurityPolicyRule(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteGatewaySecurityPolicyRule();

deleteGatewaySecurityPolicyRule(request, options, callback)

deleteGatewaySecurityPolicyRule(request: protos.google.cloud.networksecurity.v1alpha1.IDeleteGatewaySecurityPolicyRuleRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteGatewaySecurityPolicyRuleRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteGatewaySecurityPolicyRule(request, callback)

deleteGatewaySecurityPolicyRule(request: protos.google.cloud.networksecurity.v1alpha1.IDeleteGatewaySecurityPolicyRuleRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteGatewaySecurityPolicyRuleRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.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>
Example

const client = longrunning.operationsClient();
await client.deleteOperation({name: ''});

deleteServerTlsPolicy(request, options)

deleteServerTlsPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.IDeleteServerTlsPolicyRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Deletes a single ServerTlsPolicy.

Parameters
Name Description
request IDeleteServerTlsPolicyRequest

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.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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 ServerTlsPolicy to delete. Must be in
   *  the format `projects/* /locations/{location}/serverTlsPolicies/*`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callDeleteServerTlsPolicy() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await networksecurityClient.deleteServerTlsPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteServerTlsPolicy();

deleteServerTlsPolicy(request, options, callback)

deleteServerTlsPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IDeleteServerTlsPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteServerTlsPolicyRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteServerTlsPolicy(request, callback)

deleteServerTlsPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IDeleteServerTlsPolicyRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteServerTlsPolicyRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteTlsInspectionPolicy(request, options)

deleteTlsInspectionPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.IDeleteTlsInspectionPolicyRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Deletes a single TlsInspectionPolicy.

Parameters
Name Description
request IDeleteTlsInspectionPolicyRequest

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.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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 TlsInspectionPolicy to delete. Must be in the
   *  format
   *  `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
   */
  // const name = 'abc123'
  /**
   *  If set to true, any rules for this TlsInspectionPolicy will also be
   *  deleted. (Otherwise, the request will only work if the TlsInspectionPolicy
   *  has no rules.)
   */
  // const force = true

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callDeleteTlsInspectionPolicy() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await networksecurityClient.deleteTlsInspectionPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteTlsInspectionPolicy();

deleteTlsInspectionPolicy(request, options, callback)

deleteTlsInspectionPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IDeleteTlsInspectionPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteTlsInspectionPolicyRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteTlsInspectionPolicy(request, callback)

deleteTlsInspectionPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IDeleteTlsInspectionPolicyRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteTlsInspectionPolicyRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteUrlList(request, options)

deleteUrlList(request?: protos.google.cloud.networksecurity.v1alpha1.IDeleteUrlListRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Deletes a single UrlList.

Parameters
Name Description
request IDeleteUrlListRequest

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.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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 UrlList to delete. Must be in
   *  the format `projects/* /locations/{location}/urlLists/*`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callDeleteUrlList() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const [operation] = await networksecurityClient.deleteUrlList(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callDeleteUrlList();

deleteUrlList(request, options, callback)

deleteUrlList(request: protos.google.cloud.networksecurity.v1alpha1.IDeleteUrlListRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteUrlListRequest
options CallOptions
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

deleteUrlList(request, callback)

deleteUrlList(request: protos.google.cloud.networksecurity.v1alpha1.IDeleteUrlListRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IDeleteUrlListRequest
callback Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

dnsThreatDetectorPath(project, location, dnsThreatDetector)

dnsThreatDetectorPath(project: string, location: string, dnsThreatDetector: string): string;

Return a fully-qualified dnsThreatDetector resource name string.

Parameters
Name Description
project string
location string
dnsThreatDetector string
Returns
Type Description
string

{string} Resource name string.

firewallEndpointAssociationPath(project, location, firewallEndpointAssociation)

firewallEndpointAssociationPath(project: string, location: string, firewallEndpointAssociation: string): string;

Return a fully-qualified firewallEndpointAssociation resource name string.

Parameters
Name Description
project string
location string
firewallEndpointAssociation string
Returns
Type Description
string

{string} Resource name string.

gatewaySecurityPolicyPath(project, location, gatewaySecurityPolicy)

gatewaySecurityPolicyPath(project: string, location: string, gatewaySecurityPolicy: string): string;

Return a fully-qualified gatewaySecurityPolicy resource name string.

Parameters
Name Description
project string
location string
gatewaySecurityPolicy string
Returns
Type Description
string

{string} Resource name string.

gatewaySecurityPolicyRulePath(project, location, gatewaySecurityPolicy, rule)

gatewaySecurityPolicyRulePath(project: string, location: string, gatewaySecurityPolicy: string, rule: string): string;

Return a fully-qualified gatewaySecurityPolicyRule resource name string.

Parameters
Name Description
project string
location string
gatewaySecurityPolicy string
rule string
Returns
Type Description
string

{string} Resource name string.

getAuthorizationPolicy(request, options)

getAuthorizationPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.IGetAuthorizationPolicyRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy,
        (protos.google.cloud.networksecurity.v1alpha1.IGetAuthorizationPolicyRequest | undefined),
        {} | undefined
    ]>;

Gets details of a single AuthorizationPolicy.

Parameters
Name Description
request IGetAuthorizationPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy, (protos.google.cloud.networksecurity.v1alpha1.IGetAuthorizationPolicyRequest | 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.

Example

  /**
   * 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 AuthorizationPolicy to get. Must be in the format
   *  `projects/{project}/locations/{location}/authorizationPolicies/*`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callGetAuthorizationPolicy() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await networksecurityClient.getAuthorizationPolicy(request);
    console.log(response);
  }

  callGetAuthorizationPolicy();

getAuthorizationPolicy(request, options, callback)

getAuthorizationPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IGetAuthorizationPolicyRequest, options: CallOptions, callback: Callback<protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetAuthorizationPolicyRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetAuthorizationPolicyRequest
options CallOptions
callback Callback<protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetAuthorizationPolicyRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getAuthorizationPolicy(request, callback)

getAuthorizationPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IGetAuthorizationPolicyRequest, callback: Callback<protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetAuthorizationPolicyRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetAuthorizationPolicyRequest
callback Callback<protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetAuthorizationPolicyRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getAuthzPolicy(request, options)

getAuthzPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.IGetAuthzPolicyRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy,
        (protos.google.cloud.networksecurity.v1alpha1.IGetAuthzPolicyRequest | undefined),
        {} | undefined
    ]>;

Gets details of a single AuthzPolicy.

Parameters
Name Description
request IGetAuthzPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy, (protos.google.cloud.networksecurity.v1alpha1.IGetAuthzPolicyRequest | 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.

Example

  /**
   * 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 `AuthzPolicy` resource to get. Must be in the
   *  format
   *  `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callGetAuthzPolicy() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await networksecurityClient.getAuthzPolicy(request);
    console.log(response);
  }

  callGetAuthzPolicy();

getAuthzPolicy(request, options, callback)

getAuthzPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IGetAuthzPolicyRequest, options: CallOptions, callback: Callback<protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetAuthzPolicyRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetAuthzPolicyRequest
options CallOptions
callback Callback<protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetAuthzPolicyRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getAuthzPolicy(request, callback)

getAuthzPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IGetAuthzPolicyRequest, callback: Callback<protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetAuthzPolicyRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetAuthzPolicyRequest
callback Callback<protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetAuthzPolicyRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getBackendAuthenticationConfig(request, options)

getBackendAuthenticationConfig(request?: protos.google.cloud.networksecurity.v1alpha1.IGetBackendAuthenticationConfigRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig,
        (protos.google.cloud.networksecurity.v1alpha1.IGetBackendAuthenticationConfigRequest | undefined),
        {} | undefined
    ]>;

Gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
request IGetBackendAuthenticationConfigRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig, (protos.google.cloud.networksecurity.v1alpha1.IGetBackendAuthenticationConfigRequest | 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.

Example

  /**
   * 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 BackendAuthenticationConfig to get. Must be in the
   *  format `projects/* /locations/{location}/backendAuthenticationConfigs/*`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callGetBackendAuthenticationConfig() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await networksecurityClient.getBackendAuthenticationConfig(request);
    console.log(response);
  }

  callGetBackendAuthenticationConfig();

getBackendAuthenticationConfig(request, options, callback)

getBackendAuthenticationConfig(request: protos.google.cloud.networksecurity.v1alpha1.IGetBackendAuthenticationConfigRequest, options: CallOptions, callback: Callback<protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.IGetBackendAuthenticationConfigRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetBackendAuthenticationConfigRequest
options CallOptions
callback Callback<protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.IGetBackendAuthenticationConfigRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getBackendAuthenticationConfig(request, callback)

getBackendAuthenticationConfig(request: protos.google.cloud.networksecurity.v1alpha1.IGetBackendAuthenticationConfigRequest, callback: Callback<protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.IGetBackendAuthenticationConfigRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetBackendAuthenticationConfigRequest
callback Callback<protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.IGetBackendAuthenticationConfigRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getClientTlsPolicy(request, options)

getClientTlsPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.IGetClientTlsPolicyRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy,
        (protos.google.cloud.networksecurity.v1alpha1.IGetClientTlsPolicyRequest | undefined),
        {} | undefined
    ]>;

Gets details of a single ClientTlsPolicy.

Parameters
Name Description
request IGetClientTlsPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy, (protos.google.cloud.networksecurity.v1alpha1.IGetClientTlsPolicyRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing ClientTlsPolicy. Please see the documentation for more details and examples.

Example

  /**
   * 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 ClientTlsPolicy to get. Must be in the format
   *  `projects/* /locations/{location}/clientTlsPolicies/*`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callGetClientTlsPolicy() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await networksecurityClient.getClientTlsPolicy(request);
    console.log(response);
  }

  callGetClientTlsPolicy();

getClientTlsPolicy(request, options, callback)

getClientTlsPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IGetClientTlsPolicyRequest, options: CallOptions, callback: Callback<protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetClientTlsPolicyRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetClientTlsPolicyRequest
options CallOptions
callback Callback<protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetClientTlsPolicyRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getClientTlsPolicy(request, callback)

getClientTlsPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IGetClientTlsPolicyRequest, callback: Callback<protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetClientTlsPolicyRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetClientTlsPolicyRequest
callback Callback<protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetClientTlsPolicyRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getGatewaySecurityPolicy(request, options)

getGatewaySecurityPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.IGetGatewaySecurityPolicyRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy,
        (protos.google.cloud.networksecurity.v1alpha1.IGetGatewaySecurityPolicyRequest | undefined),
        {} | undefined
    ]>;

Gets details of a single GatewaySecurityPolicy.

Parameters
Name Description
request IGetGatewaySecurityPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy, (protos.google.cloud.networksecurity.v1alpha1.IGetGatewaySecurityPolicyRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing GatewaySecurityPolicy. Please see the documentation for more details and examples.

Example

  /**
   * 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 GatewaySecurityPolicy to get. Must be in the format
   *  `projects/{project}/locations/{location}/gatewaySecurityPolicies/*`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callGetGatewaySecurityPolicy() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await networksecurityClient.getGatewaySecurityPolicy(request);
    console.log(response);
  }

  callGetGatewaySecurityPolicy();

getGatewaySecurityPolicy(request, options, callback)

getGatewaySecurityPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IGetGatewaySecurityPolicyRequest, options: CallOptions, callback: Callback<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetGatewaySecurityPolicyRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetGatewaySecurityPolicyRequest
options CallOptions
callback Callback<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetGatewaySecurityPolicyRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getGatewaySecurityPolicy(request, callback)

getGatewaySecurityPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IGetGatewaySecurityPolicyRequest, callback: Callback<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetGatewaySecurityPolicyRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetGatewaySecurityPolicyRequest
callback Callback<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetGatewaySecurityPolicyRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getGatewaySecurityPolicyRule(request, options)

getGatewaySecurityPolicyRule(request?: protos.google.cloud.networksecurity.v1alpha1.IGetGatewaySecurityPolicyRuleRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule,
        (protos.google.cloud.networksecurity.v1alpha1.IGetGatewaySecurityPolicyRuleRequest | undefined),
        {} | undefined
    ]>;

Gets details of a single GatewaySecurityPolicyRule.

Parameters
Name Description
request IGetGatewaySecurityPolicyRuleRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule, (protos.google.cloud.networksecurity.v1alpha1.IGetGatewaySecurityPolicyRuleRequest | 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.

Example

  /**
   * 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 name of the GatewaySecurityPolicyRule to retrieve.
   *  Format:
   *  projects/{project}/location/{location}/gatewaySecurityPolicies/* /rules/*
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callGetGatewaySecurityPolicyRule() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await networksecurityClient.getGatewaySecurityPolicyRule(request);
    console.log(response);
  }

  callGetGatewaySecurityPolicyRule();

getGatewaySecurityPolicyRule(request, options, callback)

getGatewaySecurityPolicyRule(request: protos.google.cloud.networksecurity.v1alpha1.IGetGatewaySecurityPolicyRuleRequest, options: CallOptions, callback: Callback<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.IGetGatewaySecurityPolicyRuleRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetGatewaySecurityPolicyRuleRequest
options CallOptions
callback Callback<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.IGetGatewaySecurityPolicyRuleRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getGatewaySecurityPolicyRule(request, callback)

getGatewaySecurityPolicyRule(request: protos.google.cloud.networksecurity.v1alpha1.IGetGatewaySecurityPolicyRuleRequest, callback: Callback<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.IGetGatewaySecurityPolicyRuleRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetGatewaySecurityPolicyRuleRequest
callback Callback<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.IGetGatewaySecurityPolicyRuleRequest | 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.

Example

const [response] = await client.getLocation(request);

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]>
Example

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

getServerTlsPolicy(request, options)

getServerTlsPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.IGetServerTlsPolicyRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy,
        (protos.google.cloud.networksecurity.v1alpha1.IGetServerTlsPolicyRequest | undefined),
        {} | undefined
    ]>;

Gets details of a single ServerTlsPolicy.

Parameters
Name Description
request IGetServerTlsPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy, (protos.google.cloud.networksecurity.v1alpha1.IGetServerTlsPolicyRequest | 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.

Example

  /**
   * 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 ServerTlsPolicy to get. Must be in the format
   *  `projects/* /locations/{location}/serverTlsPolicies/*`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callGetServerTlsPolicy() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await networksecurityClient.getServerTlsPolicy(request);
    console.log(response);
  }

  callGetServerTlsPolicy();

getServerTlsPolicy(request, options, callback)

getServerTlsPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IGetServerTlsPolicyRequest, options: CallOptions, callback: Callback<protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetServerTlsPolicyRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetServerTlsPolicyRequest
options CallOptions
callback Callback<protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetServerTlsPolicyRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getServerTlsPolicy(request, callback)

getServerTlsPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IGetServerTlsPolicyRequest, callback: Callback<protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetServerTlsPolicyRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetServerTlsPolicyRequest
callback Callback<protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetServerTlsPolicyRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getTlsInspectionPolicy(request, options)

getTlsInspectionPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.IGetTlsInspectionPolicyRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy,
        (protos.google.cloud.networksecurity.v1alpha1.IGetTlsInspectionPolicyRequest | undefined),
        {} | undefined
    ]>;

Gets details of a single TlsInspectionPolicy.

Parameters
Name Description
request IGetTlsInspectionPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy, (protos.google.cloud.networksecurity.v1alpha1.IGetTlsInspectionPolicyRequest | 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.

Example

  /**
   * 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 TlsInspectionPolicy to get. Must be in the format
   *  `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callGetTlsInspectionPolicy() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await networksecurityClient.getTlsInspectionPolicy(request);
    console.log(response);
  }

  callGetTlsInspectionPolicy();

getTlsInspectionPolicy(request, options, callback)

getTlsInspectionPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IGetTlsInspectionPolicyRequest, options: CallOptions, callback: Callback<protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetTlsInspectionPolicyRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetTlsInspectionPolicyRequest
options CallOptions
callback Callback<protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetTlsInspectionPolicyRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getTlsInspectionPolicy(request, callback)

getTlsInspectionPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IGetTlsInspectionPolicyRequest, callback: Callback<protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetTlsInspectionPolicyRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetTlsInspectionPolicyRequest
callback Callback<protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.IGetTlsInspectionPolicyRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getUrlList(request, options)

getUrlList(request?: protos.google.cloud.networksecurity.v1alpha1.IGetUrlListRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networksecurity.v1alpha1.IUrlList,
        (protos.google.cloud.networksecurity.v1alpha1.IGetUrlListRequest | undefined),
        {} | undefined
    ]>;

Gets details of a single UrlList.

Parameters
Name Description
request IGetUrlListRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.networksecurity.v1alpha1.IUrlList, (protos.google.cloud.networksecurity.v1alpha1.IGetUrlListRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing UrlList. Please see the documentation for more details and examples.

Example

  /**
   * 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 UrlList to get. Must be in the format
   *  `projects/* /locations/{location}/urlLists/*`.
   */
  // const name = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callGetUrlList() {
    // Construct request
    const request = {
      name,
    };

    // Run request
    const response = await networksecurityClient.getUrlList(request);
    console.log(response);
  }

  callGetUrlList();

getUrlList(request, options, callback)

getUrlList(request: protos.google.cloud.networksecurity.v1alpha1.IGetUrlListRequest, options: CallOptions, callback: Callback<protos.google.cloud.networksecurity.v1alpha1.IUrlList, protos.google.cloud.networksecurity.v1alpha1.IGetUrlListRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetUrlListRequest
options CallOptions
callback Callback<protos.google.cloud.networksecurity.v1alpha1.IUrlList, protos.google.cloud.networksecurity.v1alpha1.IGetUrlListRequest | null | undefined, {} | null | undefined>
Returns
Type Description
void

getUrlList(request, callback)

getUrlList(request: protos.google.cloud.networksecurity.v1alpha1.IGetUrlListRequest, callback: Callback<protos.google.cloud.networksecurity.v1alpha1.IUrlList, protos.google.cloud.networksecurity.v1alpha1.IGetUrlListRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IGetUrlListRequest
callback Callback<protos.google.cloud.networksecurity.v1alpha1.IUrlList, protos.google.cloud.networksecurity.v1alpha1.IGetUrlListRequest | null | undefined, {} | null | undefined>
Returns
Type Description
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
Type Description
Promise<{ [name: string]: Function; }>

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

interceptDeploymentGroupPath(project, location, interceptDeploymentGroup)

interceptDeploymentGroupPath(project: string, location: string, interceptDeploymentGroup: string): string;

Return a fully-qualified interceptDeploymentGroup resource name string.

Parameters
Name Description
project string
location string
interceptDeploymentGroup string
Returns
Type Description
string

{string} Resource name string.

interceptDeploymentPath(project, location, interceptDeployment)

interceptDeploymentPath(project: string, location: string, interceptDeployment: string): string;

Return a fully-qualified interceptDeployment resource name string.

Parameters
Name Description
project string
location string
interceptDeployment string
Returns
Type Description
string

{string} Resource name string.

interceptEndpointGroupAssociationPath(project, location, interceptEndpointGroupAssociation)

interceptEndpointGroupAssociationPath(project: string, location: string, interceptEndpointGroupAssociation: string): string;

Return a fully-qualified interceptEndpointGroupAssociation resource name string.

Parameters
Name Description
project string
location string
interceptEndpointGroupAssociation string
Returns
Type Description
string

{string} Resource name string.

interceptEndpointGroupPath(project, location, interceptEndpointGroup)

interceptEndpointGroupPath(project: string, location: string, interceptEndpointGroup: string): string;

Return a fully-qualified interceptEndpointGroup resource name string.

Parameters
Name Description
project string
location string
interceptEndpointGroup string
Returns
Type Description
string

{string} Resource name string.

listAuthorizationPolicies(request, options)

listAuthorizationPolicies(request?: protos.google.cloud.networksecurity.v1alpha1.IListAuthorizationPoliciesRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy[],
        protos.google.cloud.networksecurity.v1alpha1.IListAuthorizationPoliciesRequest | null,
        protos.google.cloud.networksecurity.v1alpha1.IListAuthorizationPoliciesResponse
    ]>;

Lists AuthorizationPolicies in a given project and location.

Parameters
Name Description
request IListAuthorizationPoliciesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy[], protos.google.cloud.networksecurity.v1alpha1.IListAuthorizationPoliciesRequest | null, protos.google.cloud.networksecurity.v1alpha1.IListAuthorizationPoliciesResponse ]>

{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 listAuthorizationPoliciesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listAuthorizationPolicies(request, options, callback)

listAuthorizationPolicies(request: protos.google.cloud.networksecurity.v1alpha1.IListAuthorizationPoliciesRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListAuthorizationPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListAuthorizationPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy>): void;
Parameters
Name Description
request IListAuthorizationPoliciesRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListAuthorizationPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListAuthorizationPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy>
Returns
Type Description
void

listAuthorizationPolicies(request, callback)

listAuthorizationPolicies(request: protos.google.cloud.networksecurity.v1alpha1.IListAuthorizationPoliciesRequest, callback: PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListAuthorizationPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListAuthorizationPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy>): void;
Parameters
Name Description
request IListAuthorizationPoliciesRequest
callback PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListAuthorizationPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListAuthorizationPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy>
Returns
Type Description
void

listAuthorizationPoliciesAsync(request, options)

listAuthorizationPoliciesAsync(request?: protos.google.cloud.networksecurity.v1alpha1.IListAuthorizationPoliciesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy>;

Equivalent to listAuthorizationPolicies, but returns an iterable object.

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

Parameters
Name Description
request IListAuthorizationPoliciesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
AsyncIterable<protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy>

{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.

Example

  /**
   * 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 AuthorizationPolicies
   *  should be listed, specified in the format
   *  `projects/{project}/locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Maximum number of AuthorizationPolicies to return per call.
   */
  // const pageSize = 1234
  /**
   *  The value returned by the last
   *  `ListAuthorizationPoliciesResponse` Indicates that this is a
   *  continuation of a prior `ListAuthorizationPolicies` call, and
   *  that the system should return the next page of data.
   */
  // const pageToken = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callListAuthorizationPolicies() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = networksecurityClient.listAuthorizationPoliciesAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListAuthorizationPolicies();

listAuthorizationPoliciesStream(request, options)

listAuthorizationPoliciesStream(request?: protos.google.cloud.networksecurity.v1alpha1.IListAuthorizationPoliciesRequest, options?: CallOptions): Transform;

Equivalent to listAuthorizationPolicies, but returns a NodeJS Stream object.

Parameters
Name Description
request IListAuthorizationPoliciesRequest

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 listAuthorizationPoliciesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listAuthzPolicies(request, options)

listAuthzPolicies(request?: protos.google.cloud.networksecurity.v1alpha1.IListAuthzPoliciesRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy[],
        protos.google.cloud.networksecurity.v1alpha1.IListAuthzPoliciesRequest | null,
        protos.google.cloud.networksecurity.v1alpha1.IListAuthzPoliciesResponse
    ]>;

Lists AuthzPolicies in a given project and location.

Parameters
Name Description
request IListAuthzPoliciesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy[], protos.google.cloud.networksecurity.v1alpha1.IListAuthzPoliciesRequest | null, protos.google.cloud.networksecurity.v1alpha1.IListAuthzPoliciesResponse ]>

{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 listAuthzPoliciesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listAuthzPolicies(request, options, callback)

listAuthzPolicies(request: protos.google.cloud.networksecurity.v1alpha1.IListAuthzPoliciesRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListAuthzPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListAuthzPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy>): void;
Parameters
Name Description
request IListAuthzPoliciesRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListAuthzPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListAuthzPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy>
Returns
Type Description
void

listAuthzPolicies(request, callback)

listAuthzPolicies(request: protos.google.cloud.networksecurity.v1alpha1.IListAuthzPoliciesRequest, callback: PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListAuthzPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListAuthzPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy>): void;
Parameters
Name Description
request IListAuthzPoliciesRequest
callback PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListAuthzPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListAuthzPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy>
Returns
Type Description
void

listAuthzPoliciesAsync(request, options)

listAuthzPoliciesAsync(request?: protos.google.cloud.networksecurity.v1alpha1.IListAuthzPoliciesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy>;

Equivalent to listAuthzPolicies, but returns an iterable object.

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

Parameters
Name Description
request IListAuthzPoliciesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
AsyncIterable<protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy>

{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.

Example

  /**
   * 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 `AuthzPolicy` resources
   *  are listed, specified in the following format:
   *  `projects/{project}/locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Optional. Requested page size. The server might return fewer items than
   *  requested. If unspecified, the server picks an appropriate default.
   */
  // const pageSize = 1234
  /**
   *  Optional. A token identifying a page of results that the server returns.
   */
  // const pageToken = 'abc123'
  /**
   *  Optional. Filtering results.
   */
  // const filter = 'abc123'
  /**
   *  Optional. Hint for how to order the results.
   */
  // const orderBy = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callListAuthzPolicies() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = networksecurityClient.listAuthzPoliciesAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListAuthzPolicies();

listAuthzPoliciesStream(request, options)

listAuthzPoliciesStream(request?: protos.google.cloud.networksecurity.v1alpha1.IListAuthzPoliciesRequest, options?: CallOptions): Transform;

Equivalent to listAuthzPolicies, but returns a NodeJS Stream object.

Parameters
Name Description
request IListAuthzPoliciesRequest

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 listAuthzPoliciesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listBackendAuthenticationConfigs(request, options)

listBackendAuthenticationConfigs(request?: protos.google.cloud.networksecurity.v1alpha1.IListBackendAuthenticationConfigsRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig[],
        protos.google.cloud.networksecurity.v1alpha1.IListBackendAuthenticationConfigsRequest | null,
        protos.google.cloud.networksecurity.v1alpha1.IListBackendAuthenticationConfigsResponse
    ]>;

Lists BackendAuthenticationConfigs in a given project and location.

Parameters
Name Description
request IListBackendAuthenticationConfigsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig[], protos.google.cloud.networksecurity.v1alpha1.IListBackendAuthenticationConfigsRequest | null, protos.google.cloud.networksecurity.v1alpha1.IListBackendAuthenticationConfigsResponse ]>

{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 listBackendAuthenticationConfigsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listBackendAuthenticationConfigs(request, options, callback)

listBackendAuthenticationConfigs(request: protos.google.cloud.networksecurity.v1alpha1.IListBackendAuthenticationConfigsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListBackendAuthenticationConfigsRequest, protos.google.cloud.networksecurity.v1alpha1.IListBackendAuthenticationConfigsResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig>): void;
Parameters
Name Description
request IListBackendAuthenticationConfigsRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListBackendAuthenticationConfigsRequest, protos.google.cloud.networksecurity.v1alpha1.IListBackendAuthenticationConfigsResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig>
Returns
Type Description
void

listBackendAuthenticationConfigs(request, callback)

listBackendAuthenticationConfigs(request: protos.google.cloud.networksecurity.v1alpha1.IListBackendAuthenticationConfigsRequest, callback: PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListBackendAuthenticationConfigsRequest, protos.google.cloud.networksecurity.v1alpha1.IListBackendAuthenticationConfigsResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig>): void;
Parameters
Name Description
request IListBackendAuthenticationConfigsRequest
callback PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListBackendAuthenticationConfigsRequest, protos.google.cloud.networksecurity.v1alpha1.IListBackendAuthenticationConfigsResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig>
Returns
Type Description
void

listBackendAuthenticationConfigsAsync(request, options)

listBackendAuthenticationConfigsAsync(request?: protos.google.cloud.networksecurity.v1alpha1.IListBackendAuthenticationConfigsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig>;

Equivalent to listBackendAuthenticationConfigs, but returns an iterable object.

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

Parameters
Name Description
request IListBackendAuthenticationConfigsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
AsyncIterable<protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig>

{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.

Example

  /**
   * 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
   *  BackendAuthenticationConfigs should be listed, specified in the format
   *  `projects/* /locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Maximum number of BackendAuthenticationConfigs to return per call.
   */
  // const pageSize = 1234
  /**
   *  The value returned by the last `ListBackendAuthenticationConfigsResponse`
   *  Indicates that this is a continuation of a prior
   *  `ListBackendAuthenticationConfigs` call, and that the system
   *  should return the next page of data.
   */
  // const pageToken = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callListBackendAuthenticationConfigs() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = networksecurityClient.listBackendAuthenticationConfigsAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListBackendAuthenticationConfigs();

listBackendAuthenticationConfigsStream(request, options)

listBackendAuthenticationConfigsStream(request?: protos.google.cloud.networksecurity.v1alpha1.IListBackendAuthenticationConfigsRequest, options?: CallOptions): Transform;

Equivalent to listBackendAuthenticationConfigs, but returns a NodeJS Stream object.

Parameters
Name Description
request IListBackendAuthenticationConfigsRequest

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 listBackendAuthenticationConfigsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listClientTlsPolicies(request, options)

listClientTlsPolicies(request?: protos.google.cloud.networksecurity.v1alpha1.IListClientTlsPoliciesRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy[],
        protos.google.cloud.networksecurity.v1alpha1.IListClientTlsPoliciesRequest | null,
        protos.google.cloud.networksecurity.v1alpha1.IListClientTlsPoliciesResponse
    ]>;

Lists ClientTlsPolicies in a given project and location.

Parameters
Name Description
request IListClientTlsPoliciesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy[], protos.google.cloud.networksecurity.v1alpha1.IListClientTlsPoliciesRequest | null, protos.google.cloud.networksecurity.v1alpha1.IListClientTlsPoliciesResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of ClientTlsPolicy. 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 listClientTlsPoliciesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listClientTlsPolicies(request, options, callback)

listClientTlsPolicies(request: protos.google.cloud.networksecurity.v1alpha1.IListClientTlsPoliciesRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListClientTlsPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListClientTlsPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy>): void;
Parameters
Name Description
request IListClientTlsPoliciesRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListClientTlsPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListClientTlsPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy>
Returns
Type Description
void

listClientTlsPolicies(request, callback)

listClientTlsPolicies(request: protos.google.cloud.networksecurity.v1alpha1.IListClientTlsPoliciesRequest, callback: PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListClientTlsPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListClientTlsPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy>): void;
Parameters
Name Description
request IListClientTlsPoliciesRequest
callback PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListClientTlsPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListClientTlsPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy>
Returns
Type Description
void

listClientTlsPoliciesAsync(request, options)

listClientTlsPoliciesAsync(request?: protos.google.cloud.networksecurity.v1alpha1.IListClientTlsPoliciesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy>;

Equivalent to listClientTlsPolicies, but returns an iterable object.

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

Parameters
Name Description
request IListClientTlsPoliciesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
AsyncIterable<protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing ClientTlsPolicy. 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.

Example

  /**
   * 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 ClientTlsPolicies should
   *  be listed, specified in the format `projects/* /locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Maximum number of ClientTlsPolicies to return per call.
   */
  // const pageSize = 1234
  /**
   *  The value returned by the last `ListClientTlsPoliciesResponse`
   *  Indicates that this is a continuation of a prior
   *  `ListClientTlsPolicies` call, and that the system
   *  should return the next page of data.
   */
  // const pageToken = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callListClientTlsPolicies() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = networksecurityClient.listClientTlsPoliciesAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListClientTlsPolicies();

listClientTlsPoliciesStream(request, options)

listClientTlsPoliciesStream(request?: protos.google.cloud.networksecurity.v1alpha1.IListClientTlsPoliciesRequest, options?: CallOptions): Transform;

Equivalent to listClientTlsPolicies, but returns a NodeJS Stream object.

Parameters
Name Description
request IListClientTlsPoliciesRequest

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 ClientTlsPolicy 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 listClientTlsPoliciesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listGatewaySecurityPolicies(request, options)

listGatewaySecurityPolicies(request?: protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPoliciesRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy[],
        protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPoliciesRequest | null,
        protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPoliciesResponse
    ]>;

Lists GatewaySecurityPolicies in a given project and location.

Parameters
Name Description
request IListGatewaySecurityPoliciesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy[], protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPoliciesRequest | null, protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPoliciesResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of GatewaySecurityPolicy. 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 listGatewaySecurityPoliciesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listGatewaySecurityPolicies(request, options, callback)

listGatewaySecurityPolicies(request: protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPoliciesRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy>): void;
Parameters
Name Description
request IListGatewaySecurityPoliciesRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy>
Returns
Type Description
void

listGatewaySecurityPolicies(request, callback)

listGatewaySecurityPolicies(request: protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPoliciesRequest, callback: PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy>): void;
Parameters
Name Description
request IListGatewaySecurityPoliciesRequest
callback PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy>
Returns
Type Description
void

listGatewaySecurityPoliciesAsync(request, options)

listGatewaySecurityPoliciesAsync(request?: protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPoliciesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy>;

Equivalent to listGatewaySecurityPolicies, but returns an iterable object.

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

Parameters
Name Description
request IListGatewaySecurityPoliciesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
AsyncIterable<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing GatewaySecurityPolicy. 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.

Example

  /**
   * 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 GatewaySecurityPolicies
   *  should be listed, specified in the format
   *  `projects/{project}/locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Maximum number of GatewaySecurityPolicies to return per call.
   */
  // const pageSize = 1234
  /**
   *  The value returned by the last
   *  'ListGatewaySecurityPoliciesResponse' Indicates that this is a
   *  continuation of a prior 'ListGatewaySecurityPolicies' call, and
   *  that the system should return the next page of data.
   */
  // const pageToken = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callListGatewaySecurityPolicies() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = networksecurityClient.listGatewaySecurityPoliciesAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListGatewaySecurityPolicies();

listGatewaySecurityPoliciesStream(request, options)

listGatewaySecurityPoliciesStream(request?: protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPoliciesRequest, options?: CallOptions): Transform;

Equivalent to listGatewaySecurityPolicies, but returns a NodeJS Stream object.

Parameters
Name Description
request IListGatewaySecurityPoliciesRequest

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 GatewaySecurityPolicy 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 listGatewaySecurityPoliciesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listGatewaySecurityPolicyRules(request, options)

listGatewaySecurityPolicyRules(request?: protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPolicyRulesRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule[],
        protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPolicyRulesRequest | null,
        protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPolicyRulesResponse
    ]>;

Lists GatewaySecurityPolicyRules in a given project and location.

Parameters
Name Description
request IListGatewaySecurityPolicyRulesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule[], protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPolicyRulesRequest | null, protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPolicyRulesResponse ]>

{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 listGatewaySecurityPolicyRulesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listGatewaySecurityPolicyRules(request, options, callback)

listGatewaySecurityPolicyRules(request: protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPolicyRulesRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPolicyRulesRequest, protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPolicyRulesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule>): void;
Parameters
Name Description
request IListGatewaySecurityPolicyRulesRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPolicyRulesRequest, protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPolicyRulesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule>
Returns
Type Description
void

listGatewaySecurityPolicyRules(request, callback)

listGatewaySecurityPolicyRules(request: protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPolicyRulesRequest, callback: PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPolicyRulesRequest, protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPolicyRulesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule>): void;
Parameters
Name Description
request IListGatewaySecurityPolicyRulesRequest
callback PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPolicyRulesRequest, protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPolicyRulesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule>
Returns
Type Description
void

listGatewaySecurityPolicyRulesAsync(request, options)

listGatewaySecurityPolicyRulesAsync(request?: protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPolicyRulesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule>;

Equivalent to listGatewaySecurityPolicyRules, but returns an iterable object.

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

Parameters
Name Description
request IListGatewaySecurityPolicyRulesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
AsyncIterable<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule>

{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.

Example

  /**
   * 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, location and GatewaySecurityPolicy from which the
   *  GatewaySecurityPolicyRules should be listed, specified in the format
   *  `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}`.
   */
  // const parent = 'abc123'
  /**
   *  Maximum number of GatewaySecurityPolicyRules to return per call.
   */
  // const pageSize = 1234
  /**
   *  The value returned by the last
   *  'ListGatewaySecurityPolicyRulesResponse' Indicates that this is a
   *  continuation of a prior 'ListGatewaySecurityPolicyRules' call, and
   *  that the system should return the next page of data.
   */
  // const pageToken = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callListGatewaySecurityPolicyRules() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = networksecurityClient.listGatewaySecurityPolicyRulesAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListGatewaySecurityPolicyRules();

listGatewaySecurityPolicyRulesStream(request, options)

listGatewaySecurityPolicyRulesStream(request?: protos.google.cloud.networksecurity.v1alpha1.IListGatewaySecurityPolicyRulesRequest, options?: CallOptions): Transform;

Equivalent to listGatewaySecurityPolicyRules, but returns a NodeJS Stream object.

Parameters
Name Description
request IListGatewaySecurityPolicyRulesRequest

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 listGatewaySecurityPolicyRulesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

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.

Example

const iterable = client.listLocationsAsync(request);
for await (const response of iterable) {
  // process response
}

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.

Example

const client = longrunning.operationsClient();
for await (const response of client.listOperationsAsync(request));
// doThingsWith(response)

listServerTlsPolicies(request, options)

listServerTlsPolicies(request?: protos.google.cloud.networksecurity.v1alpha1.IListServerTlsPoliciesRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy[],
        protos.google.cloud.networksecurity.v1alpha1.IListServerTlsPoliciesRequest | null,
        protos.google.cloud.networksecurity.v1alpha1.IListServerTlsPoliciesResponse
    ]>;

Lists ServerTlsPolicies in a given project and location.

Parameters
Name Description
request IListServerTlsPoliciesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy[], protos.google.cloud.networksecurity.v1alpha1.IListServerTlsPoliciesRequest | null, protos.google.cloud.networksecurity.v1alpha1.IListServerTlsPoliciesResponse ]>

{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 listServerTlsPoliciesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listServerTlsPolicies(request, options, callback)

listServerTlsPolicies(request: protos.google.cloud.networksecurity.v1alpha1.IListServerTlsPoliciesRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListServerTlsPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListServerTlsPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy>): void;
Parameters
Name Description
request IListServerTlsPoliciesRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListServerTlsPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListServerTlsPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy>
Returns
Type Description
void

listServerTlsPolicies(request, callback)

listServerTlsPolicies(request: protos.google.cloud.networksecurity.v1alpha1.IListServerTlsPoliciesRequest, callback: PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListServerTlsPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListServerTlsPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy>): void;
Parameters
Name Description
request IListServerTlsPoliciesRequest
callback PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListServerTlsPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListServerTlsPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy>
Returns
Type Description
void

listServerTlsPoliciesAsync(request, options)

listServerTlsPoliciesAsync(request?: protos.google.cloud.networksecurity.v1alpha1.IListServerTlsPoliciesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy>;

Equivalent to listServerTlsPolicies, but returns an iterable object.

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

Parameters
Name Description
request IListServerTlsPoliciesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
AsyncIterable<protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy>

{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.

Example

  /**
   * 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 ServerTlsPolicies should
   *  be listed, specified in the format `projects/* /locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Maximum number of ServerTlsPolicies to return per call.
   */
  // const pageSize = 1234
  /**
   *  The value returned by the last `ListServerTlsPoliciesResponse`
   *  Indicates that this is a continuation of a prior
   *  `ListServerTlsPolicies` call, and that the system
   *  should return the next page of data.
   */
  // const pageToken = 'abc123'
  /**
   *  Optional. Setting this field to `true` will opt the request into returning
   *  the resources that are reachable, and into including the names of those
   *  that were unreachable in the ListServerTlsPoliciesResponse.unreachable 
   *  field. This can only be `true` when reading across collections e.g. when
   *  `parent` is set to `"projects/example/locations/-"`.
   */
  // const returnPartialSuccess = true

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callListServerTlsPolicies() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = networksecurityClient.listServerTlsPoliciesAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListServerTlsPolicies();

listServerTlsPoliciesStream(request, options)

listServerTlsPoliciesStream(request?: protos.google.cloud.networksecurity.v1alpha1.IListServerTlsPoliciesRequest, options?: CallOptions): Transform;

Equivalent to listServerTlsPolicies, but returns a NodeJS Stream object.

Parameters
Name Description
request IListServerTlsPoliciesRequest

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 listServerTlsPoliciesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listTlsInspectionPolicies(request, options)

listTlsInspectionPolicies(request?: protos.google.cloud.networksecurity.v1alpha1.IListTlsInspectionPoliciesRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy[],
        protos.google.cloud.networksecurity.v1alpha1.IListTlsInspectionPoliciesRequest | null,
        protos.google.cloud.networksecurity.v1alpha1.IListTlsInspectionPoliciesResponse
    ]>;

Lists TlsInspectionPolicies in a given project and location.

Parameters
Name Description
request IListTlsInspectionPoliciesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy[], protos.google.cloud.networksecurity.v1alpha1.IListTlsInspectionPoliciesRequest | null, protos.google.cloud.networksecurity.v1alpha1.IListTlsInspectionPoliciesResponse ]>

{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 listTlsInspectionPoliciesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listTlsInspectionPolicies(request, options, callback)

listTlsInspectionPolicies(request: protos.google.cloud.networksecurity.v1alpha1.IListTlsInspectionPoliciesRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListTlsInspectionPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListTlsInspectionPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy>): void;
Parameters
Name Description
request IListTlsInspectionPoliciesRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListTlsInspectionPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListTlsInspectionPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy>
Returns
Type Description
void

listTlsInspectionPolicies(request, callback)

listTlsInspectionPolicies(request: protos.google.cloud.networksecurity.v1alpha1.IListTlsInspectionPoliciesRequest, callback: PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListTlsInspectionPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListTlsInspectionPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy>): void;
Parameters
Name Description
request IListTlsInspectionPoliciesRequest
callback PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListTlsInspectionPoliciesRequest, protos.google.cloud.networksecurity.v1alpha1.IListTlsInspectionPoliciesResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy>
Returns
Type Description
void

listTlsInspectionPoliciesAsync(request, options)

listTlsInspectionPoliciesAsync(request?: protos.google.cloud.networksecurity.v1alpha1.IListTlsInspectionPoliciesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy>;

Equivalent to listTlsInspectionPolicies, but returns an iterable object.

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

Parameters
Name Description
request IListTlsInspectionPoliciesRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
AsyncIterable<protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy>

{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.

Example

  /**
   * 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 TlsInspectionPolicies
   *  should be listed, specified in the format
   *  `projects/{project}/locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Maximum number of TlsInspectionPolicies to return per call.
   */
  // const pageSize = 1234
  /**
   *  The value returned by the last
   *  'ListTlsInspectionPoliciesResponse' Indicates that this is a
   *  continuation of a prior 'ListTlsInspectionPolicies' call, and
   *  that the system should return the next page of data.
   */
  // const pageToken = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callListTlsInspectionPolicies() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = networksecurityClient.listTlsInspectionPoliciesAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListTlsInspectionPolicies();

listTlsInspectionPoliciesStream(request, options)

listTlsInspectionPoliciesStream(request?: protos.google.cloud.networksecurity.v1alpha1.IListTlsInspectionPoliciesRequest, options?: CallOptions): Transform;

Equivalent to listTlsInspectionPolicies, but returns a NodeJS Stream object.

Parameters
Name Description
request IListTlsInspectionPoliciesRequest

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 listTlsInspectionPoliciesAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listUrlLists(request, options)

listUrlLists(request?: protos.google.cloud.networksecurity.v1alpha1.IListUrlListsRequest, options?: CallOptions): Promise<[
        protos.google.cloud.networksecurity.v1alpha1.IUrlList[],
        protos.google.cloud.networksecurity.v1alpha1.IListUrlListsRequest | null,
        protos.google.cloud.networksecurity.v1alpha1.IListUrlListsResponse
    ]>;

Lists UrlLists in a given project and location.

Parameters
Name Description
request IListUrlListsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ protos.google.cloud.networksecurity.v1alpha1.IUrlList[], protos.google.cloud.networksecurity.v1alpha1.IListUrlListsRequest | null, protos.google.cloud.networksecurity.v1alpha1.IListUrlListsResponse ]>

{Promise} - The promise which resolves to an array. The first element of the array is Array of UrlList. 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 listUrlListsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

listUrlLists(request, options, callback)

listUrlLists(request: protos.google.cloud.networksecurity.v1alpha1.IListUrlListsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListUrlListsRequest, protos.google.cloud.networksecurity.v1alpha1.IListUrlListsResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IUrlList>): void;
Parameters
Name Description
request IListUrlListsRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListUrlListsRequest, protos.google.cloud.networksecurity.v1alpha1.IListUrlListsResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IUrlList>
Returns
Type Description
void

listUrlLists(request, callback)

listUrlLists(request: protos.google.cloud.networksecurity.v1alpha1.IListUrlListsRequest, callback: PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListUrlListsRequest, protos.google.cloud.networksecurity.v1alpha1.IListUrlListsResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IUrlList>): void;
Parameters
Name Description
request IListUrlListsRequest
callback PaginationCallback<protos.google.cloud.networksecurity.v1alpha1.IListUrlListsRequest, protos.google.cloud.networksecurity.v1alpha1.IListUrlListsResponse | null | undefined, protos.google.cloud.networksecurity.v1alpha1.IUrlList>
Returns
Type Description
void

listUrlListsAsync(request, options)

listUrlListsAsync(request?: protos.google.cloud.networksecurity.v1alpha1.IListUrlListsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.networksecurity.v1alpha1.IUrlList>;

Equivalent to listUrlLists, but returns an iterable object.

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

Parameters
Name Description
request IListUrlListsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
AsyncIterable<protos.google.cloud.networksecurity.v1alpha1.IUrlList>

{Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing UrlList. 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.

Example

  /**
   * 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 UrlLists should
   *  be listed, specified in the format
   *  `projects/{project}/locations/{location}`.
   */
  // const parent = 'abc123'
  /**
   *  Maximum number of UrlLists to return per call.
   */
  // const pageSize = 1234
  /**
   *  The value returned by the last `ListUrlListsResponse`
   *  Indicates that this is a continuation of a prior
   *  `ListUrlLists` call, and that the system
   *  should return the next page of data.
   */
  // const pageToken = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callListUrlLists() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = networksecurityClient.listUrlListsAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListUrlLists();

listUrlListsStream(request, options)

listUrlListsStream(request?: protos.google.cloud.networksecurity.v1alpha1.IListUrlListsRequest, options?: CallOptions): Transform;

Equivalent to listUrlLists, but returns a NodeJS Stream object.

Parameters
Name Description
request IListUrlListsRequest

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 UrlList 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 listUrlListsAsync() method described below for async iteration which you can stop as needed. Please see the documentation for more details and examples.

matchAuthorizationPolicyFromAuthorizationPolicyName(authorizationPolicyName)

matchAuthorizationPolicyFromAuthorizationPolicyName(authorizationPolicyName: string): string | number;

Parse the authorization_policy from AuthorizationPolicy resource.

Parameter
Name Description
authorizationPolicyName string

A fully-qualified path representing AuthorizationPolicy resource.

Returns
Type Description
string | number

{string} A string representing the authorization_policy.

matchAuthzPolicyFromAuthzPolicyName(authzPolicyName)

matchAuthzPolicyFromAuthzPolicyName(authzPolicyName: string): string | number;

Parse the authz_policy from AuthzPolicy resource.

Parameter
Name Description
authzPolicyName string

A fully-qualified path representing AuthzPolicy resource.

Returns
Type Description
string | number

{string} A string representing the authz_policy.

matchBackendAuthenticationConfigFromBackendAuthenticationConfigName(backendAuthenticationConfigName)

matchBackendAuthenticationConfigFromBackendAuthenticationConfigName(backendAuthenticationConfigName: string): string | number;

Parse the backend_authentication_config from BackendAuthenticationConfig resource.

Parameter
Name Description
backendAuthenticationConfigName string

A fully-qualified path representing BackendAuthenticationConfig resource.

Returns
Type Description
string | number

{string} A string representing the backend_authentication_config.

matchClientTlsPolicyFromClientTlsPolicyName(clientTlsPolicyName)

matchClientTlsPolicyFromClientTlsPolicyName(clientTlsPolicyName: string): string | number;

Parse the client_tls_policy from ClientTlsPolicy resource.

Parameter
Name Description
clientTlsPolicyName string

A fully-qualified path representing ClientTlsPolicy resource.

Returns
Type Description
string | number

{string} A string representing the client_tls_policy.

matchDnsThreatDetectorFromDnsThreatDetectorName(dnsThreatDetectorName)

matchDnsThreatDetectorFromDnsThreatDetectorName(dnsThreatDetectorName: string): string | number;

Parse the dns_threat_detector from DnsThreatDetector resource.

Parameter
Name Description
dnsThreatDetectorName string

A fully-qualified path representing DnsThreatDetector resource.

Returns
Type Description
string | number

{string} A string representing the dns_threat_detector.

matchFirewallEndpointAssociationFromFirewallEndpointAssociationName(firewallEndpointAssociationName)

matchFirewallEndpointAssociationFromFirewallEndpointAssociationName(firewallEndpointAssociationName: string): string | number;

Parse the firewall_endpoint_association from FirewallEndpointAssociation resource.

Parameter
Name Description
firewallEndpointAssociationName string

A fully-qualified path representing FirewallEndpointAssociation resource.

Returns
Type Description
string | number

{string} A string representing the firewall_endpoint_association.

matchFirewallEndpointFromOrganizationLocationFirewallEndpointsName(organizationLocationFirewallEndpointsName)

matchFirewallEndpointFromOrganizationLocationFirewallEndpointsName(organizationLocationFirewallEndpointsName: string): string | number;

Parse the firewall_endpoint from OrganizationLocationFirewallEndpoints resource.

Parameter
Name Description
organizationLocationFirewallEndpointsName string

A fully-qualified path representing organization_location_firewallEndpoints resource.

Returns
Type Description
string | number

{string} A string representing the firewall_endpoint.

matchFirewallEndpointFromProjectLocationFirewallEndpointsName(projectLocationFirewallEndpointsName)

matchFirewallEndpointFromProjectLocationFirewallEndpointsName(projectLocationFirewallEndpointsName: string): string | number;

Parse the firewall_endpoint from ProjectLocationFirewallEndpoints resource.

Parameter
Name Description
projectLocationFirewallEndpointsName string

A fully-qualified path representing project_location_firewallEndpoints resource.

Returns
Type Description
string | number

{string} A string representing the firewall_endpoint.

matchGatewaySecurityPolicyFromGatewaySecurityPolicyName(gatewaySecurityPolicyName)

matchGatewaySecurityPolicyFromGatewaySecurityPolicyName(gatewaySecurityPolicyName: string): string | number;

Parse the gateway_security_policy from GatewaySecurityPolicy resource.

Parameter
Name Description
gatewaySecurityPolicyName string

A fully-qualified path representing GatewaySecurityPolicy resource.

Returns
Type Description
string | number

{string} A string representing the gateway_security_policy.

matchGatewaySecurityPolicyFromGatewaySecurityPolicyRuleName(gatewaySecurityPolicyRuleName)

matchGatewaySecurityPolicyFromGatewaySecurityPolicyRuleName(gatewaySecurityPolicyRuleName: string): string | number;

Parse the gateway_security_policy from GatewaySecurityPolicyRule resource.

Parameter
Name Description
gatewaySecurityPolicyRuleName string

A fully-qualified path representing GatewaySecurityPolicyRule resource.

Returns
Type Description
string | number

{string} A string representing the gateway_security_policy.

matchInterceptDeploymentFromInterceptDeploymentName(interceptDeploymentName)

matchInterceptDeploymentFromInterceptDeploymentName(interceptDeploymentName: string): string | number;

Parse the intercept_deployment from InterceptDeployment resource.

Parameter
Name Description
interceptDeploymentName string

A fully-qualified path representing InterceptDeployment resource.

Returns
Type Description
string | number

{string} A string representing the intercept_deployment.

matchInterceptDeploymentGroupFromInterceptDeploymentGroupName(interceptDeploymentGroupName)

matchInterceptDeploymentGroupFromInterceptDeploymentGroupName(interceptDeploymentGroupName: string): string | number;

Parse the intercept_deployment_group from InterceptDeploymentGroup resource.

Parameter
Name Description
interceptDeploymentGroupName string

A fully-qualified path representing InterceptDeploymentGroup resource.

Returns
Type Description
string | number

{string} A string representing the intercept_deployment_group.

matchInterceptEndpointGroupAssociationFromInterceptEndpointGroupAssociationName(interceptEndpointGroupAssociationName)

matchInterceptEndpointGroupAssociationFromInterceptEndpointGroupAssociationName(interceptEndpointGroupAssociationName: string): string | number;

Parse the intercept_endpoint_group_association from InterceptEndpointGroupAssociation resource.

Parameter
Name Description
interceptEndpointGroupAssociationName string

A fully-qualified path representing InterceptEndpointGroupAssociation resource.

Returns
Type Description
string | number

{string} A string representing the intercept_endpoint_group_association.

matchInterceptEndpointGroupFromInterceptEndpointGroupName(interceptEndpointGroupName)

matchInterceptEndpointGroupFromInterceptEndpointGroupName(interceptEndpointGroupName: string): string | number;

Parse the intercept_endpoint_group from InterceptEndpointGroup resource.

Parameter
Name Description
interceptEndpointGroupName string

A fully-qualified path representing InterceptEndpointGroup resource.

Returns
Type Description
string | number

{string} A string representing the intercept_endpoint_group.

matchLocationFromAuthorizationPolicyName(authorizationPolicyName)

matchLocationFromAuthorizationPolicyName(authorizationPolicyName: string): string | number;

Parse the location from AuthorizationPolicy resource.

Parameter
Name Description
authorizationPolicyName string

A fully-qualified path representing AuthorizationPolicy resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromAuthzPolicyName(authzPolicyName)

matchLocationFromAuthzPolicyName(authzPolicyName: string): string | number;

Parse the location from AuthzPolicy resource.

Parameter
Name Description
authzPolicyName string

A fully-qualified path representing AuthzPolicy resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromBackendAuthenticationConfigName(backendAuthenticationConfigName)

matchLocationFromBackendAuthenticationConfigName(backendAuthenticationConfigName: string): string | number;

Parse the location from BackendAuthenticationConfig resource.

Parameter
Name Description
backendAuthenticationConfigName string

A fully-qualified path representing BackendAuthenticationConfig resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromClientTlsPolicyName(clientTlsPolicyName)

matchLocationFromClientTlsPolicyName(clientTlsPolicyName: string): string | number;

Parse the location from ClientTlsPolicy resource.

Parameter
Name Description
clientTlsPolicyName string

A fully-qualified path representing ClientTlsPolicy resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromDnsThreatDetectorName(dnsThreatDetectorName)

matchLocationFromDnsThreatDetectorName(dnsThreatDetectorName: string): string | number;

Parse the location from DnsThreatDetector resource.

Parameter
Name Description
dnsThreatDetectorName string

A fully-qualified path representing DnsThreatDetector resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromFirewallEndpointAssociationName(firewallEndpointAssociationName)

matchLocationFromFirewallEndpointAssociationName(firewallEndpointAssociationName: string): string | number;

Parse the location from FirewallEndpointAssociation resource.

Parameter
Name Description
firewallEndpointAssociationName string

A fully-qualified path representing FirewallEndpointAssociation resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromGatewaySecurityPolicyName(gatewaySecurityPolicyName)

matchLocationFromGatewaySecurityPolicyName(gatewaySecurityPolicyName: string): string | number;

Parse the location from GatewaySecurityPolicy resource.

Parameter
Name Description
gatewaySecurityPolicyName string

A fully-qualified path representing GatewaySecurityPolicy resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromGatewaySecurityPolicyRuleName(gatewaySecurityPolicyRuleName)

matchLocationFromGatewaySecurityPolicyRuleName(gatewaySecurityPolicyRuleName: string): string | number;

Parse the location from GatewaySecurityPolicyRule resource.

Parameter
Name Description
gatewaySecurityPolicyRuleName string

A fully-qualified path representing GatewaySecurityPolicyRule resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromInterceptDeploymentGroupName(interceptDeploymentGroupName)

matchLocationFromInterceptDeploymentGroupName(interceptDeploymentGroupName: string): string | number;

Parse the location from InterceptDeploymentGroup resource.

Parameter
Name Description
interceptDeploymentGroupName string

A fully-qualified path representing InterceptDeploymentGroup resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromInterceptDeploymentName(interceptDeploymentName)

matchLocationFromInterceptDeploymentName(interceptDeploymentName: string): string | number;

Parse the location from InterceptDeployment resource.

Parameter
Name Description
interceptDeploymentName string

A fully-qualified path representing InterceptDeployment resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromInterceptEndpointGroupAssociationName(interceptEndpointGroupAssociationName)

matchLocationFromInterceptEndpointGroupAssociationName(interceptEndpointGroupAssociationName: string): string | number;

Parse the location from InterceptEndpointGroupAssociation resource.

Parameter
Name Description
interceptEndpointGroupAssociationName string

A fully-qualified path representing InterceptEndpointGroupAssociation resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromInterceptEndpointGroupName(interceptEndpointGroupName)

matchLocationFromInterceptEndpointGroupName(interceptEndpointGroupName: string): string | number;

Parse the location from InterceptEndpointGroup resource.

Parameter
Name Description
interceptEndpointGroupName string

A fully-qualified path representing InterceptEndpointGroup resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromMirroringDeploymentGroupName(mirroringDeploymentGroupName)

matchLocationFromMirroringDeploymentGroupName(mirroringDeploymentGroupName: string): string | number;

Parse the location from MirroringDeploymentGroup resource.

Parameter
Name Description
mirroringDeploymentGroupName string

A fully-qualified path representing MirroringDeploymentGroup resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromMirroringDeploymentName(mirroringDeploymentName)

matchLocationFromMirroringDeploymentName(mirroringDeploymentName: string): string | number;

Parse the location from MirroringDeployment resource.

Parameter
Name Description
mirroringDeploymentName string

A fully-qualified path representing MirroringDeployment resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromMirroringEndpointGroupAssociationName(mirroringEndpointGroupAssociationName)

matchLocationFromMirroringEndpointGroupAssociationName(mirroringEndpointGroupAssociationName: string): string | number;

Parse the location from MirroringEndpointGroupAssociation resource.

Parameter
Name Description
mirroringEndpointGroupAssociationName string

A fully-qualified path representing MirroringEndpointGroupAssociation resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromMirroringEndpointGroupName(mirroringEndpointGroupName)

matchLocationFromMirroringEndpointGroupName(mirroringEndpointGroupName: string): string | number;

Parse the location from MirroringEndpointGroup resource.

Parameter
Name Description
mirroringEndpointGroupName string

A fully-qualified path representing MirroringEndpointGroup resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromOrganizationLocationFirewallEndpointsName(organizationLocationFirewallEndpointsName)

matchLocationFromOrganizationLocationFirewallEndpointsName(organizationLocationFirewallEndpointsName: string): string | number;

Parse the location from OrganizationLocationFirewallEndpoints resource.

Parameter
Name Description
organizationLocationFirewallEndpointsName string

A fully-qualified path representing organization_location_firewallEndpoints resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromOrganizationLocationSecurityProfileGroupName(organizationLocationSecurityProfileGroupName)

matchLocationFromOrganizationLocationSecurityProfileGroupName(organizationLocationSecurityProfileGroupName: string): string | number;

Parse the location from OrganizationLocationSecurityProfileGroup resource.

Parameter
Name Description
organizationLocationSecurityProfileGroupName string

A fully-qualified path representing organization_location_security_profile_group resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromOrganizationLocationSecurityProfileName(organizationLocationSecurityProfileName)

matchLocationFromOrganizationLocationSecurityProfileName(organizationLocationSecurityProfileName: string): string | number;

Parse the location from OrganizationLocationSecurityProfile resource.

Parameter
Name Description
organizationLocationSecurityProfileName string

A fully-qualified path representing organization_location_security_profile resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromPartnerSSEGatewayName(partnerSSEGatewayName)

matchLocationFromPartnerSSEGatewayName(partnerSSEGatewayName: string): string | number;

Parse the location from PartnerSSEGateway resource.

Parameter
Name Description
partnerSSEGatewayName string

A fully-qualified path representing PartnerSSEGateway resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromPartnerSSERealmName(partnerSSERealmName)

matchLocationFromPartnerSSERealmName(partnerSSERealmName: string): string | number;

Parse the location from PartnerSSERealm resource.

Parameter
Name Description
partnerSSERealmName string

A fully-qualified path representing PartnerSSERealm resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationFirewallEndpointsName(projectLocationFirewallEndpointsName)

matchLocationFromProjectLocationFirewallEndpointsName(projectLocationFirewallEndpointsName: string): string | number;

Parse the location from ProjectLocationFirewallEndpoints resource.

Parameter
Name Description
projectLocationFirewallEndpointsName string

A fully-qualified path representing project_location_firewallEndpoints resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationSecurityProfileGroupName(projectLocationSecurityProfileGroupName)

matchLocationFromProjectLocationSecurityProfileGroupName(projectLocationSecurityProfileGroupName: string): string | number;

Parse the location from ProjectLocationSecurityProfileGroup resource.

Parameter
Name Description
projectLocationSecurityProfileGroupName string

A fully-qualified path representing project_location_security_profile_group resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationSecurityProfileName(projectLocationSecurityProfileName)

matchLocationFromProjectLocationSecurityProfileName(projectLocationSecurityProfileName: string): string | number;

Parse the location from ProjectLocationSecurityProfile resource.

Parameter
Name Description
projectLocationSecurityProfileName string

A fully-qualified path representing project_location_security_profile resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromSACAttachmentName(sACAttachmentName)

matchLocationFromSACAttachmentName(sACAttachmentName: string): string | number;

Parse the location from SACAttachment resource.

Parameter
Name Description
sACAttachmentName string

A fully-qualified path representing SACAttachment resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromSACRealmName(sACRealmName)

matchLocationFromSACRealmName(sACRealmName: string): string | number;

Parse the location from SACRealm resource.

Parameter
Name Description
sACRealmName string

A fully-qualified path representing SACRealm resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromServerTlsPolicyName(serverTlsPolicyName)

matchLocationFromServerTlsPolicyName(serverTlsPolicyName: string): string | number;

Parse the location from ServerTlsPolicy resource.

Parameter
Name Description
serverTlsPolicyName string

A fully-qualified path representing ServerTlsPolicy resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromSSEGatewayReferenceName(sSEGatewayReferenceName)

matchLocationFromSSEGatewayReferenceName(sSEGatewayReferenceName: string): string | number;

Parse the location from SSEGatewayReference resource.

Parameter
Name Description
sSEGatewayReferenceName string

A fully-qualified path representing SSEGatewayReference resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromTlsInspectionPolicyName(tlsInspectionPolicyName)

matchLocationFromTlsInspectionPolicyName(tlsInspectionPolicyName: string): string | number;

Parse the location from TlsInspectionPolicy resource.

Parameter
Name Description
tlsInspectionPolicyName string

A fully-qualified path representing TlsInspectionPolicy resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromUrlListName(urlListName)

matchLocationFromUrlListName(urlListName: string): string | number;

Parse the location from UrlList resource.

Parameter
Name Description
urlListName string

A fully-qualified path representing UrlList resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchMirroringDeploymentFromMirroringDeploymentName(mirroringDeploymentName)

matchMirroringDeploymentFromMirroringDeploymentName(mirroringDeploymentName: string): string | number;

Parse the mirroring_deployment from MirroringDeployment resource.

Parameter
Name Description
mirroringDeploymentName string

A fully-qualified path representing MirroringDeployment resource.

Returns
Type Description
string | number

{string} A string representing the mirroring_deployment.

matchMirroringDeploymentGroupFromMirroringDeploymentGroupName(mirroringDeploymentGroupName)

matchMirroringDeploymentGroupFromMirroringDeploymentGroupName(mirroringDeploymentGroupName: string): string | number;

Parse the mirroring_deployment_group from MirroringDeploymentGroup resource.

Parameter
Name Description
mirroringDeploymentGroupName string

A fully-qualified path representing MirroringDeploymentGroup resource.

Returns
Type Description
string | number

{string} A string representing the mirroring_deployment_group.

matchMirroringEndpointGroupAssociationFromMirroringEndpointGroupAssociationName(mirroringEndpointGroupAssociationName)

matchMirroringEndpointGroupAssociationFromMirroringEndpointGroupAssociationName(mirroringEndpointGroupAssociationName: string): string | number;

Parse the mirroring_endpoint_group_association from MirroringEndpointGroupAssociation resource.

Parameter
Name Description
mirroringEndpointGroupAssociationName string

A fully-qualified path representing MirroringEndpointGroupAssociation resource.

Returns
Type Description
string | number

{string} A string representing the mirroring_endpoint_group_association.

matchMirroringEndpointGroupFromMirroringEndpointGroupName(mirroringEndpointGroupName)

matchMirroringEndpointGroupFromMirroringEndpointGroupName(mirroringEndpointGroupName: string): string | number;

Parse the mirroring_endpoint_group from MirroringEndpointGroup resource.

Parameter
Name Description
mirroringEndpointGroupName string

A fully-qualified path representing MirroringEndpointGroup resource.

Returns
Type Description
string | number

{string} A string representing the mirroring_endpoint_group.

matchOrganizationFromOrganizationLocationFirewallEndpointsName(organizationLocationFirewallEndpointsName)

matchOrganizationFromOrganizationLocationFirewallEndpointsName(organizationLocationFirewallEndpointsName: string): string | number;

Parse the organization from OrganizationLocationFirewallEndpoints resource.

Parameter
Name Description
organizationLocationFirewallEndpointsName string

A fully-qualified path representing organization_location_firewallEndpoints resource.

Returns
Type Description
string | number

{string} A string representing the organization.

matchOrganizationFromOrganizationLocationSecurityProfileGroupName(organizationLocationSecurityProfileGroupName)

matchOrganizationFromOrganizationLocationSecurityProfileGroupName(organizationLocationSecurityProfileGroupName: string): string | number;

Parse the organization from OrganizationLocationSecurityProfileGroup resource.

Parameter
Name Description
organizationLocationSecurityProfileGroupName string

A fully-qualified path representing organization_location_security_profile_group resource.

Returns
Type Description
string | number

{string} A string representing the organization.

matchOrganizationFromOrganizationLocationSecurityProfileName(organizationLocationSecurityProfileName)

matchOrganizationFromOrganizationLocationSecurityProfileName(organizationLocationSecurityProfileName: string): string | number;

Parse the organization from OrganizationLocationSecurityProfile resource.

Parameter
Name Description
organizationLocationSecurityProfileName string

A fully-qualified path representing organization_location_security_profile resource.

Returns
Type Description
string | number

{string} A string representing the organization.

matchPartnerSseGatewayFromPartnerSSEGatewayName(partnerSSEGatewayName)

matchPartnerSseGatewayFromPartnerSSEGatewayName(partnerSSEGatewayName: string): string | number;

Parse the partner_sse_gateway from PartnerSSEGateway resource.

Parameter
Name Description
partnerSSEGatewayName string

A fully-qualified path representing PartnerSSEGateway resource.

Returns
Type Description
string | number

{string} A string representing the partner_sse_gateway.

matchPartnerSseRealmFromPartnerSSERealmName(partnerSSERealmName)

matchPartnerSseRealmFromPartnerSSERealmName(partnerSSERealmName: string): string | number;

Parse the partner_sse_realm from PartnerSSERealm resource.

Parameter
Name Description
partnerSSERealmName string

A fully-qualified path representing PartnerSSERealm resource.

Returns
Type Description
string | number

{string} A string representing the partner_sse_realm.

matchProjectFromAuthorizationPolicyName(authorizationPolicyName)

matchProjectFromAuthorizationPolicyName(authorizationPolicyName: string): string | number;

Parse the project from AuthorizationPolicy resource.

Parameter
Name Description
authorizationPolicyName string

A fully-qualified path representing AuthorizationPolicy resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromAuthzPolicyName(authzPolicyName)

matchProjectFromAuthzPolicyName(authzPolicyName: string): string | number;

Parse the project from AuthzPolicy resource.

Parameter
Name Description
authzPolicyName string

A fully-qualified path representing AuthzPolicy resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromBackendAuthenticationConfigName(backendAuthenticationConfigName)

matchProjectFromBackendAuthenticationConfigName(backendAuthenticationConfigName: string): string | number;

Parse the project from BackendAuthenticationConfig resource.

Parameter
Name Description
backendAuthenticationConfigName string

A fully-qualified path representing BackendAuthenticationConfig resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromClientTlsPolicyName(clientTlsPolicyName)

matchProjectFromClientTlsPolicyName(clientTlsPolicyName: string): string | number;

Parse the project from ClientTlsPolicy resource.

Parameter
Name Description
clientTlsPolicyName string

A fully-qualified path representing ClientTlsPolicy resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromDnsThreatDetectorName(dnsThreatDetectorName)

matchProjectFromDnsThreatDetectorName(dnsThreatDetectorName: string): string | number;

Parse the project from DnsThreatDetector resource.

Parameter
Name Description
dnsThreatDetectorName string

A fully-qualified path representing DnsThreatDetector resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromFirewallEndpointAssociationName(firewallEndpointAssociationName)

matchProjectFromFirewallEndpointAssociationName(firewallEndpointAssociationName: string): string | number;

Parse the project from FirewallEndpointAssociation resource.

Parameter
Name Description
firewallEndpointAssociationName string

A fully-qualified path representing FirewallEndpointAssociation resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromGatewaySecurityPolicyName(gatewaySecurityPolicyName)

matchProjectFromGatewaySecurityPolicyName(gatewaySecurityPolicyName: string): string | number;

Parse the project from GatewaySecurityPolicy resource.

Parameter
Name Description
gatewaySecurityPolicyName string

A fully-qualified path representing GatewaySecurityPolicy resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromGatewaySecurityPolicyRuleName(gatewaySecurityPolicyRuleName)

matchProjectFromGatewaySecurityPolicyRuleName(gatewaySecurityPolicyRuleName: string): string | number;

Parse the project from GatewaySecurityPolicyRule resource.

Parameter
Name Description
gatewaySecurityPolicyRuleName string

A fully-qualified path representing GatewaySecurityPolicyRule resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromInterceptDeploymentGroupName(interceptDeploymentGroupName)

matchProjectFromInterceptDeploymentGroupName(interceptDeploymentGroupName: string): string | number;

Parse the project from InterceptDeploymentGroup resource.

Parameter
Name Description
interceptDeploymentGroupName string

A fully-qualified path representing InterceptDeploymentGroup resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromInterceptDeploymentName(interceptDeploymentName)

matchProjectFromInterceptDeploymentName(interceptDeploymentName: string): string | number;

Parse the project from InterceptDeployment resource.

Parameter
Name Description
interceptDeploymentName string

A fully-qualified path representing InterceptDeployment resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromInterceptEndpointGroupAssociationName(interceptEndpointGroupAssociationName)

matchProjectFromInterceptEndpointGroupAssociationName(interceptEndpointGroupAssociationName: string): string | number;

Parse the project from InterceptEndpointGroupAssociation resource.

Parameter
Name Description
interceptEndpointGroupAssociationName string

A fully-qualified path representing InterceptEndpointGroupAssociation resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromInterceptEndpointGroupName(interceptEndpointGroupName)

matchProjectFromInterceptEndpointGroupName(interceptEndpointGroupName: string): string | number;

Parse the project from InterceptEndpointGroup resource.

Parameter
Name Description
interceptEndpointGroupName string

A fully-qualified path representing InterceptEndpointGroup resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromMirroringDeploymentGroupName(mirroringDeploymentGroupName)

matchProjectFromMirroringDeploymentGroupName(mirroringDeploymentGroupName: string): string | number;

Parse the project from MirroringDeploymentGroup resource.

Parameter
Name Description
mirroringDeploymentGroupName string

A fully-qualified path representing MirroringDeploymentGroup resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromMirroringDeploymentName(mirroringDeploymentName)

matchProjectFromMirroringDeploymentName(mirroringDeploymentName: string): string | number;

Parse the project from MirroringDeployment resource.

Parameter
Name Description
mirroringDeploymentName string

A fully-qualified path representing MirroringDeployment resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromMirroringEndpointGroupAssociationName(mirroringEndpointGroupAssociationName)

matchProjectFromMirroringEndpointGroupAssociationName(mirroringEndpointGroupAssociationName: string): string | number;

Parse the project from MirroringEndpointGroupAssociation resource.

Parameter
Name Description
mirroringEndpointGroupAssociationName string

A fully-qualified path representing MirroringEndpointGroupAssociation resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromMirroringEndpointGroupName(mirroringEndpointGroupName)

matchProjectFromMirroringEndpointGroupName(mirroringEndpointGroupName: string): string | number;

Parse the project from MirroringEndpointGroup resource.

Parameter
Name Description
mirroringEndpointGroupName string

A fully-qualified path representing MirroringEndpointGroup resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromPartnerSSEGatewayName(partnerSSEGatewayName)

matchProjectFromPartnerSSEGatewayName(partnerSSEGatewayName: string): string | number;

Parse the project from PartnerSSEGateway resource.

Parameter
Name Description
partnerSSEGatewayName string

A fully-qualified path representing PartnerSSEGateway resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromPartnerSSERealmName(partnerSSERealmName)

matchProjectFromPartnerSSERealmName(partnerSSERealmName: string): string | number;

Parse the project from PartnerSSERealm resource.

Parameter
Name Description
partnerSSERealmName string

A fully-qualified path representing PartnerSSERealm resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationFirewallEndpointsName(projectLocationFirewallEndpointsName)

matchProjectFromProjectLocationFirewallEndpointsName(projectLocationFirewallEndpointsName: string): string | number;

Parse the project from ProjectLocationFirewallEndpoints resource.

Parameter
Name Description
projectLocationFirewallEndpointsName string

A fully-qualified path representing project_location_firewallEndpoints resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationSecurityProfileGroupName(projectLocationSecurityProfileGroupName)

matchProjectFromProjectLocationSecurityProfileGroupName(projectLocationSecurityProfileGroupName: string): string | number;

Parse the project from ProjectLocationSecurityProfileGroup resource.

Parameter
Name Description
projectLocationSecurityProfileGroupName string

A fully-qualified path representing project_location_security_profile_group resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationSecurityProfileName(projectLocationSecurityProfileName)

matchProjectFromProjectLocationSecurityProfileName(projectLocationSecurityProfileName: string): string | number;

Parse the project from ProjectLocationSecurityProfile resource.

Parameter
Name Description
projectLocationSecurityProfileName string

A fully-qualified path representing project_location_security_profile resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromSACAttachmentName(sACAttachmentName)

matchProjectFromSACAttachmentName(sACAttachmentName: string): string | number;

Parse the project from SACAttachment resource.

Parameter
Name Description
sACAttachmentName string

A fully-qualified path representing SACAttachment resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromSACRealmName(sACRealmName)

matchProjectFromSACRealmName(sACRealmName: string): string | number;

Parse the project from SACRealm resource.

Parameter
Name Description
sACRealmName string

A fully-qualified path representing SACRealm resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromServerTlsPolicyName(serverTlsPolicyName)

matchProjectFromServerTlsPolicyName(serverTlsPolicyName: string): string | number;

Parse the project from ServerTlsPolicy resource.

Parameter
Name Description
serverTlsPolicyName string

A fully-qualified path representing ServerTlsPolicy resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromSSEGatewayReferenceName(sSEGatewayReferenceName)

matchProjectFromSSEGatewayReferenceName(sSEGatewayReferenceName: string): string | number;

Parse the project from SSEGatewayReference resource.

Parameter
Name Description
sSEGatewayReferenceName string

A fully-qualified path representing SSEGatewayReference resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromTlsInspectionPolicyName(tlsInspectionPolicyName)

matchProjectFromTlsInspectionPolicyName(tlsInspectionPolicyName: string): string | number;

Parse the project from TlsInspectionPolicy resource.

Parameter
Name Description
tlsInspectionPolicyName string

A fully-qualified path representing TlsInspectionPolicy resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromUrlListName(urlListName)

matchProjectFromUrlListName(urlListName: string): string | number;

Parse the project from UrlList resource.

Parameter
Name Description
urlListName string

A fully-qualified path representing UrlList resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchRuleFromGatewaySecurityPolicyRuleName(gatewaySecurityPolicyRuleName)

matchRuleFromGatewaySecurityPolicyRuleName(gatewaySecurityPolicyRuleName: string): string | number;

Parse the rule from GatewaySecurityPolicyRule resource.

Parameter
Name Description
gatewaySecurityPolicyRuleName string

A fully-qualified path representing GatewaySecurityPolicyRule resource.

Returns
Type Description
string | number

{string} A string representing the rule.

matchSacAttachmentFromSACAttachmentName(sACAttachmentName)

matchSacAttachmentFromSACAttachmentName(sACAttachmentName: string): string | number;

Parse the sac_attachment from SACAttachment resource.

Parameter
Name Description
sACAttachmentName string

A fully-qualified path representing SACAttachment resource.

Returns
Type Description
string | number

{string} A string representing the sac_attachment.

matchSacRealmFromSACRealmName(sACRealmName)

matchSacRealmFromSACRealmName(sACRealmName: string): string | number;

Parse the sac_realm from SACRealm resource.

Parameter
Name Description
sACRealmName string

A fully-qualified path representing SACRealm resource.

Returns
Type Description
string | number

{string} A string representing the sac_realm.

matchSecurityProfileFromOrganizationLocationSecurityProfileName(organizationLocationSecurityProfileName)

matchSecurityProfileFromOrganizationLocationSecurityProfileName(organizationLocationSecurityProfileName: string): string | number;

Parse the security_profile from OrganizationLocationSecurityProfile resource.

Parameter
Name Description
organizationLocationSecurityProfileName string

A fully-qualified path representing organization_location_security_profile resource.

Returns
Type Description
string | number

{string} A string representing the security_profile.

matchSecurityProfileFromProjectLocationSecurityProfileName(projectLocationSecurityProfileName)

matchSecurityProfileFromProjectLocationSecurityProfileName(projectLocationSecurityProfileName: string): string | number;

Parse the security_profile from ProjectLocationSecurityProfile resource.

Parameter
Name Description
projectLocationSecurityProfileName string

A fully-qualified path representing project_location_security_profile resource.

Returns
Type Description
string | number

{string} A string representing the security_profile.

matchSecurityProfileGroupFromOrganizationLocationSecurityProfileGroupName(organizationLocationSecurityProfileGroupName)

matchSecurityProfileGroupFromOrganizationLocationSecurityProfileGroupName(organizationLocationSecurityProfileGroupName: string): string | number;

Parse the security_profile_group from OrganizationLocationSecurityProfileGroup resource.

Parameter
Name Description
organizationLocationSecurityProfileGroupName string

A fully-qualified path representing organization_location_security_profile_group resource.

Returns
Type Description
string | number

{string} A string representing the security_profile_group.

matchSecurityProfileGroupFromProjectLocationSecurityProfileGroupName(projectLocationSecurityProfileGroupName)

matchSecurityProfileGroupFromProjectLocationSecurityProfileGroupName(projectLocationSecurityProfileGroupName: string): string | number;

Parse the security_profile_group from ProjectLocationSecurityProfileGroup resource.

Parameter
Name Description
projectLocationSecurityProfileGroupName string

A fully-qualified path representing project_location_security_profile_group resource.

Returns
Type Description
string | number

{string} A string representing the security_profile_group.

matchServerTlsPolicyFromServerTlsPolicyName(serverTlsPolicyName)

matchServerTlsPolicyFromServerTlsPolicyName(serverTlsPolicyName: string): string | number;

Parse the server_tls_policy from ServerTlsPolicy resource.

Parameter
Name Description
serverTlsPolicyName string

A fully-qualified path representing ServerTlsPolicy resource.

Returns
Type Description
string | number

{string} A string representing the server_tls_policy.

matchSseGatewayReferenceFromSSEGatewayReferenceName(sSEGatewayReferenceName)

matchSseGatewayReferenceFromSSEGatewayReferenceName(sSEGatewayReferenceName: string): string | number;

Parse the sse_gateway_reference from SSEGatewayReference resource.

Parameter
Name Description
sSEGatewayReferenceName string

A fully-qualified path representing SSEGatewayReference resource.

Returns
Type Description
string | number

{string} A string representing the sse_gateway_reference.

matchTlsInspectionPolicyFromTlsInspectionPolicyName(tlsInspectionPolicyName)

matchTlsInspectionPolicyFromTlsInspectionPolicyName(tlsInspectionPolicyName: string): string | number;

Parse the tls_inspection_policy from TlsInspectionPolicy resource.

Parameter
Name Description
tlsInspectionPolicyName string

A fully-qualified path representing TlsInspectionPolicy resource.

Returns
Type Description
string | number

{string} A string representing the tls_inspection_policy.

matchUrlListFromUrlListName(urlListName)

matchUrlListFromUrlListName(urlListName: string): string | number;

Parse the url_list from UrlList resource.

Parameter
Name Description
urlListName string

A fully-qualified path representing UrlList resource.

Returns
Type Description
string | number

{string} A string representing the url_list.

mirroringDeploymentGroupPath(project, location, mirroringDeploymentGroup)

mirroringDeploymentGroupPath(project: string, location: string, mirroringDeploymentGroup: string): string;

Return a fully-qualified mirroringDeploymentGroup resource name string.

Parameters
Name Description
project string
location string
mirroringDeploymentGroup string
Returns
Type Description
string

{string} Resource name string.

mirroringDeploymentPath(project, location, mirroringDeployment)

mirroringDeploymentPath(project: string, location: string, mirroringDeployment: string): string;

Return a fully-qualified mirroringDeployment resource name string.

Parameters
Name Description
project string
location string
mirroringDeployment string
Returns
Type Description
string

{string} Resource name string.

mirroringEndpointGroupAssociationPath(project, location, mirroringEndpointGroupAssociation)

mirroringEndpointGroupAssociationPath(project: string, location: string, mirroringEndpointGroupAssociation: string): string;

Return a fully-qualified mirroringEndpointGroupAssociation resource name string.

Parameters
Name Description
project string
location string
mirroringEndpointGroupAssociation string
Returns
Type Description
string

{string} Resource name string.

mirroringEndpointGroupPath(project, location, mirroringEndpointGroup)

mirroringEndpointGroupPath(project: string, location: string, mirroringEndpointGroup: string): string;

Return a fully-qualified mirroringEndpointGroup resource name string.

Parameters
Name Description
project string
location string
mirroringEndpointGroup string
Returns
Type Description
string

{string} Resource name string.

organizationLocationFirewallEndpointsPath(organization, location, firewallEndpoint)

organizationLocationFirewallEndpointsPath(organization: string, location: string, firewallEndpoint: string): string;

Return a fully-qualified organizationLocationFirewallEndpoints resource name string.

Parameters
Name Description
organization string
location string
firewallEndpoint string
Returns
Type Description
string

{string} Resource name string.

organizationLocationSecurityProfileGroupPath(organization, location, securityProfileGroup)

organizationLocationSecurityProfileGroupPath(organization: string, location: string, securityProfileGroup: string): string;

Return a fully-qualified organizationLocationSecurityProfileGroup resource name string.

Parameters
Name Description
organization string
location string
securityProfileGroup string
Returns
Type Description
string

{string} Resource name string.

organizationLocationSecurityProfilePath(organization, location, securityProfile)

organizationLocationSecurityProfilePath(organization: string, location: string, securityProfile: string): string;

Return a fully-qualified organizationLocationSecurityProfile resource name string.

Parameters
Name Description
organization string
location string
securityProfile string
Returns
Type Description
string

{string} Resource name string.

partnerSSEGatewayPath(project, location, partnerSseGateway)

partnerSSEGatewayPath(project: string, location: string, partnerSseGateway: string): string;

Return a fully-qualified partnerSSEGateway resource name string.

Parameters
Name Description
project string
location string
partnerSseGateway string
Returns
Type Description
string

{string} Resource name string.

partnerSSERealmPath(project, location, partnerSseRealm)

partnerSSERealmPath(project: string, location: string, partnerSseRealm: string): string;

Return a fully-qualified partnerSSERealm resource name string.

Parameters
Name Description
project string
location string
partnerSseRealm string
Returns
Type Description
string

{string} Resource name string.

projectLocationFirewallEndpointsPath(project, location, firewallEndpoint)

projectLocationFirewallEndpointsPath(project: string, location: string, firewallEndpoint: string): string;

Return a fully-qualified projectLocationFirewallEndpoints resource name string.

Parameters
Name Description
project string
location string
firewallEndpoint string
Returns
Type Description
string

{string} Resource name string.

projectLocationSecurityProfileGroupPath(project, location, securityProfileGroup)

projectLocationSecurityProfileGroupPath(project: string, location: string, securityProfileGroup: string): string;

Return a fully-qualified projectLocationSecurityProfileGroup resource name string.

Parameters
Name Description
project string
location string
securityProfileGroup string
Returns
Type Description
string

{string} Resource name string.

projectLocationSecurityProfilePath(project, location, securityProfile)

projectLocationSecurityProfilePath(project: string, location: string, securityProfile: string): string;

Return a fully-qualified projectLocationSecurityProfile resource name string.

Parameters
Name Description
project string
location string
securityProfile string
Returns
Type Description
string

{string} Resource name string.

sACAttachmentPath(project, location, sacAttachment)

sACAttachmentPath(project: string, location: string, sacAttachment: string): string;

Return a fully-qualified sACAttachment resource name string.

Parameters
Name Description
project string
location string
sacAttachment string
Returns
Type Description
string

{string} Resource name string.

sACRealmPath(project, location, sacRealm)

sACRealmPath(project: string, location: string, sacRealm: string): string;

Return a fully-qualified sACRealm resource name string.

Parameters
Name Description
project string
location string
sacRealm string
Returns
Type Description
string

{string} Resource name string.

serverTlsPolicyPath(project, location, serverTlsPolicy)

serverTlsPolicyPath(project: string, location: string, serverTlsPolicy: string): string;

Return a fully-qualified serverTlsPolicy resource name string.

Parameters
Name Description
project string
location string
serverTlsPolicy 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.

sSEGatewayReferencePath(project, location, sseGatewayReference)

sSEGatewayReferencePath(project: string, location: string, sseGatewayReference: string): string;

Return a fully-qualified sSEGatewayReference resource name string.

Parameters
Name Description
project string
location string
sseGatewayReference 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.

tlsInspectionPolicyPath(project, location, tlsInspectionPolicy)

tlsInspectionPolicyPath(project: string, location: string, tlsInspectionPolicy: string): string;

Return a fully-qualified tlsInspectionPolicy resource name string.

Parameters
Name Description
project string
location string
tlsInspectionPolicy string
Returns
Type Description
string

{string} Resource name string.

updateAuthorizationPolicy(request, options)

updateAuthorizationPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.IUpdateAuthorizationPolicyRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Updates the parameters of a single AuthorizationPolicy.

Parameters
Name Description
request IUpdateAuthorizationPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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
   *  AuthorizationPolicy 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 AuthorizationPolicy resource.
   */
  // const authorizationPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callUpdateAuthorizationPolicy() {
    // Construct request
    const request = {
      authorizationPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.updateAuthorizationPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateAuthorizationPolicy();

updateAuthorizationPolicy(request, options, callback)

updateAuthorizationPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IUpdateAuthorizationPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateAuthorizationPolicyRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

updateAuthorizationPolicy(request, callback)

updateAuthorizationPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IUpdateAuthorizationPolicyRequest, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateAuthorizationPolicyRequest
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthorizationPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

updateAuthzPolicy(request, options)

updateAuthzPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.IUpdateAuthzPolicyRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Updates the parameters of a single AuthzPolicy.

Parameters
Name Description
request IUpdateAuthzPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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. Used to specify the fields to be overwritten in the
   *  `AuthzPolicy` resource by the update.
   *  The fields specified in the `update_mask` are relative to the resource, not
   *  the full request. A field is overwritten if it is in the mask. If the
   *  user does not specify a mask, then all fields are overwritten.
   */
  // const updateMask = {}
  /**
   *  Required. `AuthzPolicy` resource being updated.
   */
  // const authzPolicy = {}
  /**
   *  Optional. An optional request ID to identify requests. Specify a unique
   *  request ID so that if you must retry your request, the server can ignore
   *  the request if it has already been completed. The server guarantees
   *  that for at least 60 minutes since the first request.
   *  For example, consider a situation where you make an initial request and the
   *  request times out. If you make the request again with the same request
   *  ID, the server can check if original operation with the same request ID
   *  was received, and if so, ignores the second request. This prevents
   *  clients from accidentally creating duplicate commitments.
   *  The request ID must be a valid UUID with the exception that zero UUID is
   *  not supported (00000000-0000-0000-0000-000000000000).
   */
  // const requestId = 'abc123'

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callUpdateAuthzPolicy() {
    // Construct request
    const request = {
      updateMask,
      authzPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.updateAuthzPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateAuthzPolicy();

updateAuthzPolicy(request, options, callback)

updateAuthzPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IUpdateAuthzPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateAuthzPolicyRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

updateAuthzPolicy(request, callback)

updateAuthzPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IUpdateAuthzPolicyRequest, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateAuthzPolicyRequest
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IAuthzPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

updateBackendAuthenticationConfig(request, options)

updateBackendAuthenticationConfig(request?: protos.google.cloud.networksecurity.v1alpha1.IUpdateBackendAuthenticationConfigRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Updates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
request IUpdateBackendAuthenticationConfigRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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
   *  BackendAuthenticationConfig 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 BackendAuthenticationConfig resource.
   */
  // const backendAuthenticationConfig = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callUpdateBackendAuthenticationConfig() {
    // Construct request
    const request = {
      backendAuthenticationConfig,
    };

    // Run request
    const [operation] = await networksecurityClient.updateBackendAuthenticationConfig(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateBackendAuthenticationConfig();

updateBackendAuthenticationConfig(request, options, callback)

updateBackendAuthenticationConfig(request: protos.google.cloud.networksecurity.v1alpha1.IUpdateBackendAuthenticationConfigRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateBackendAuthenticationConfigRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

updateBackendAuthenticationConfig(request, callback)

updateBackendAuthenticationConfig(request: protos.google.cloud.networksecurity.v1alpha1.IUpdateBackendAuthenticationConfigRequest, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateBackendAuthenticationConfigRequest
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IBackendAuthenticationConfig, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

updateClientTlsPolicy(request, options)

updateClientTlsPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.IUpdateClientTlsPolicyRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Updates the parameters of a single ClientTlsPolicy.

Parameters
Name Description
request IUpdateClientTlsPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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
   *  ClientTlsPolicy 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 ClientTlsPolicy resource.
   */
  // const clientTlsPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callUpdateClientTlsPolicy() {
    // Construct request
    const request = {
      clientTlsPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.updateClientTlsPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateClientTlsPolicy();

updateClientTlsPolicy(request, options, callback)

updateClientTlsPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IUpdateClientTlsPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateClientTlsPolicyRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

updateClientTlsPolicy(request, callback)

updateClientTlsPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IUpdateClientTlsPolicyRequest, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateClientTlsPolicyRequest
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IClientTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

updateGatewaySecurityPolicy(request, options)

updateGatewaySecurityPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.IUpdateGatewaySecurityPolicyRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Updates the parameters of a single GatewaySecurityPolicy.

Parameters
Name Description
request IUpdateGatewaySecurityPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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
   *  GatewaySecurityPolicy 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 GatewaySecurityPolicy resource.
   */
  // const gatewaySecurityPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callUpdateGatewaySecurityPolicy() {
    // Construct request
    const request = {
      gatewaySecurityPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.updateGatewaySecurityPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateGatewaySecurityPolicy();

updateGatewaySecurityPolicy(request, options, callback)

updateGatewaySecurityPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IUpdateGatewaySecurityPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateGatewaySecurityPolicyRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

updateGatewaySecurityPolicy(request, callback)

updateGatewaySecurityPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IUpdateGatewaySecurityPolicyRequest, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateGatewaySecurityPolicyRequest
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

updateGatewaySecurityPolicyRule(request, options)

updateGatewaySecurityPolicyRule(request?: protos.google.cloud.networksecurity.v1alpha1.IUpdateGatewaySecurityPolicyRuleRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Updates the parameters of a single GatewaySecurityPolicyRule.

Parameters
Name Description
request IUpdateGatewaySecurityPolicyRuleRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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
   *  GatewaySecurityPolicy 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 GatewaySecurityPolicyRule resource.
   */
  // const gatewaySecurityPolicyRule = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callUpdateGatewaySecurityPolicyRule() {
    // Construct request
    const request = {
      gatewaySecurityPolicyRule,
    };

    // Run request
    const [operation] = await networksecurityClient.updateGatewaySecurityPolicyRule(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateGatewaySecurityPolicyRule();

updateGatewaySecurityPolicyRule(request, options, callback)

updateGatewaySecurityPolicyRule(request: protos.google.cloud.networksecurity.v1alpha1.IUpdateGatewaySecurityPolicyRuleRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateGatewaySecurityPolicyRuleRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

updateGatewaySecurityPolicyRule(request, callback)

updateGatewaySecurityPolicyRule(request: protos.google.cloud.networksecurity.v1alpha1.IUpdateGatewaySecurityPolicyRuleRequest, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateGatewaySecurityPolicyRuleRequest
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IGatewaySecurityPolicyRule, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

updateServerTlsPolicy(request, options)

updateServerTlsPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.IUpdateServerTlsPolicyRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Updates the parameters of a single ServerTlsPolicy.

Parameters
Name Description
request IUpdateServerTlsPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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
   *  ServerTlsPolicy 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 ServerTlsPolicy resource.
   */
  // const serverTlsPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callUpdateServerTlsPolicy() {
    // Construct request
    const request = {
      serverTlsPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.updateServerTlsPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateServerTlsPolicy();

updateServerTlsPolicy(request, options, callback)

updateServerTlsPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IUpdateServerTlsPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateServerTlsPolicyRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

updateServerTlsPolicy(request, callback)

updateServerTlsPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IUpdateServerTlsPolicyRequest, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateServerTlsPolicyRequest
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IServerTlsPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

updateTlsInspectionPolicy(request, options)

updateTlsInspectionPolicy(request?: protos.google.cloud.networksecurity.v1alpha1.IUpdateTlsInspectionPolicyRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Updates the parameters of a single TlsInspectionPolicy.

Parameters
Name Description
request IUpdateTlsInspectionPolicyRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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
   *  TlsInspectionPolicy 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 TlsInspectionPolicy resource.
   */
  // const tlsInspectionPolicy = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callUpdateTlsInspectionPolicy() {
    // Construct request
    const request = {
      tlsInspectionPolicy,
    };

    // Run request
    const [operation] = await networksecurityClient.updateTlsInspectionPolicy(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateTlsInspectionPolicy();

updateTlsInspectionPolicy(request, options, callback)

updateTlsInspectionPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IUpdateTlsInspectionPolicyRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateTlsInspectionPolicyRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

updateTlsInspectionPolicy(request, callback)

updateTlsInspectionPolicy(request: protos.google.cloud.networksecurity.v1alpha1.IUpdateTlsInspectionPolicyRequest, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateTlsInspectionPolicyRequest
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.ITlsInspectionPolicy, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

updateUrlList(request, options)

updateUrlList(request?: protos.google.cloud.networksecurity.v1alpha1.IUpdateUrlListRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.networksecurity.v1alpha1.IUrlList, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Updates the parameters of a single UrlList.

Parameters
Name Description
request IUpdateUrlListRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
Type Description
Promise<[ LROperation<protos.google.cloud.networksecurity.v1alpha1.IUrlList, protos.google.cloud.networksecurity.v1alpha1.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 promise() method returns a promise you can await for. Please see the documentation for more details and examples.

Example

  /**
   * 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
   *  UrlList 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 UrlList resource.
   */
  // const urlList = {}

  // Imports the Networksecurity library
  const {NetworkSecurityClient} = require('@google-cloud/network-security').v1alpha1;

  // Instantiates a client
  const networksecurityClient = new NetworkSecurityClient();

  async function callUpdateUrlList() {
    // Construct request
    const request = {
      urlList,
    };

    // Run request
    const [operation] = await networksecurityClient.updateUrlList(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callUpdateUrlList();

updateUrlList(request, options, callback)

updateUrlList(request: protos.google.cloud.networksecurity.v1alpha1.IUpdateUrlListRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IUrlList, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateUrlListRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IUrlList, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

updateUrlList(request, callback)

updateUrlList(request: protos.google.cloud.networksecurity.v1alpha1.IUpdateUrlListRequest, callback: Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IUrlList, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name Description
request IUpdateUrlListRequest
callback Callback<LROperation<protos.google.cloud.networksecurity.v1alpha1.IUrlList, protos.google.cloud.networksecurity.v1alpha1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
Type Description
void

urlListPath(project, location, urlList)

urlListPath(project: string, location: string, urlList: string): string;

Return a fully-qualified urlList resource name string.

Parameters
Name Description
project string
location string
urlList string
Returns
Type Description
string

{string} Resource name string.