Network Security v1 API - Class NetworkSecurityClient (1.0.0-beta01)

public abstract class NetworkSecurityClient

Reference documentation and code samples for the Network Security v1 API class NetworkSecurityClient.

NetworkSecurity client wrapper, for convenient use.

Inheritance

object > NetworkSecurityClient

Namespace

Google.Cloud.NetworkSecurity.V1

Assembly

Google.Cloud.NetworkSecurity.V1.dll

Remarks

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

Properties

CreateAuthorizationPolicyOperationsClient

public virtual OperationsClient CreateAuthorizationPolicyOperationsClient { get; }

The long-running operations client for CreateAuthorizationPolicy.

Property Value
Type Description
OperationsClient

CreateAuthzPolicyOperationsClient

public virtual OperationsClient CreateAuthzPolicyOperationsClient { get; }

The long-running operations client for CreateAuthzPolicy.

Property Value
Type Description
OperationsClient

CreateBackendAuthenticationConfigOperationsClient

public virtual OperationsClient CreateBackendAuthenticationConfigOperationsClient { get; }

The long-running operations client for CreateBackendAuthenticationConfig.

Property Value
Type Description
OperationsClient

CreateClientTlsPolicyOperationsClient

public virtual OperationsClient CreateClientTlsPolicyOperationsClient { get; }

The long-running operations client for CreateClientTlsPolicy.

Property Value
Type Description
OperationsClient

CreateGatewaySecurityPolicyOperationsClient

public virtual OperationsClient CreateGatewaySecurityPolicyOperationsClient { get; }

The long-running operations client for CreateGatewaySecurityPolicy.

Property Value
Type Description
OperationsClient

CreateGatewaySecurityPolicyRuleOperationsClient

public virtual OperationsClient CreateGatewaySecurityPolicyRuleOperationsClient { get; }

The long-running operations client for CreateGatewaySecurityPolicyRule.

Property Value
Type Description
OperationsClient

CreateServerTlsPolicyOperationsClient

public virtual OperationsClient CreateServerTlsPolicyOperationsClient { get; }

The long-running operations client for CreateServerTlsPolicy.

Property Value
Type Description
OperationsClient

CreateTlsInspectionPolicyOperationsClient

public virtual OperationsClient CreateTlsInspectionPolicyOperationsClient { get; }

The long-running operations client for CreateTlsInspectionPolicy.

Property Value
Type Description
OperationsClient

CreateUrlListOperationsClient

public virtual OperationsClient CreateUrlListOperationsClient { get; }

The long-running operations client for CreateUrlList.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the NetworkSecurity service, which is a host of "networksecurity.googleapis.com" and a port of 443.

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default NetworkSecurity scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default NetworkSecurity scopes are:

DeleteAuthorizationPolicyOperationsClient

public virtual OperationsClient DeleteAuthorizationPolicyOperationsClient { get; }

The long-running operations client for DeleteAuthorizationPolicy.

Property Value
Type Description
OperationsClient

DeleteAuthzPolicyOperationsClient

public virtual OperationsClient DeleteAuthzPolicyOperationsClient { get; }

The long-running operations client for DeleteAuthzPolicy.

Property Value
Type Description
OperationsClient

DeleteBackendAuthenticationConfigOperationsClient

public virtual OperationsClient DeleteBackendAuthenticationConfigOperationsClient { get; }

The long-running operations client for DeleteBackendAuthenticationConfig.

Property Value
Type Description
OperationsClient

DeleteClientTlsPolicyOperationsClient

public virtual OperationsClient DeleteClientTlsPolicyOperationsClient { get; }

The long-running operations client for DeleteClientTlsPolicy.

Property Value
Type Description
OperationsClient

DeleteGatewaySecurityPolicyOperationsClient

public virtual OperationsClient DeleteGatewaySecurityPolicyOperationsClient { get; }

The long-running operations client for DeleteGatewaySecurityPolicy.

Property Value
Type Description
OperationsClient

DeleteGatewaySecurityPolicyRuleOperationsClient

public virtual OperationsClient DeleteGatewaySecurityPolicyRuleOperationsClient { get; }

The long-running operations client for DeleteGatewaySecurityPolicyRule.

Property Value
Type Description
OperationsClient

DeleteServerTlsPolicyOperationsClient

public virtual OperationsClient DeleteServerTlsPolicyOperationsClient { get; }

The long-running operations client for DeleteServerTlsPolicy.

Property Value
Type Description
OperationsClient

DeleteTlsInspectionPolicyOperationsClient

public virtual OperationsClient DeleteTlsInspectionPolicyOperationsClient { get; }

The long-running operations client for DeleteTlsInspectionPolicy.

Property Value
Type Description
OperationsClient

DeleteUrlListOperationsClient

public virtual OperationsClient DeleteUrlListOperationsClient { get; }

The long-running operations client for DeleteUrlList.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual NetworkSecurity.NetworkSecurityClient GrpcClient { get; }

The underlying gRPC NetworkSecurity client

Property Value
Type Description
NetworkSecurityNetworkSecurityClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

UpdateAuthorizationPolicyOperationsClient

public virtual OperationsClient UpdateAuthorizationPolicyOperationsClient { get; }

The long-running operations client for UpdateAuthorizationPolicy.

Property Value
Type Description
OperationsClient

UpdateAuthzPolicyOperationsClient

public virtual OperationsClient UpdateAuthzPolicyOperationsClient { get; }

The long-running operations client for UpdateAuthzPolicy.

Property Value
Type Description
OperationsClient

UpdateBackendAuthenticationConfigOperationsClient

public virtual OperationsClient UpdateBackendAuthenticationConfigOperationsClient { get; }

The long-running operations client for UpdateBackendAuthenticationConfig.

Property Value
Type Description
OperationsClient

UpdateClientTlsPolicyOperationsClient

public virtual OperationsClient UpdateClientTlsPolicyOperationsClient { get; }

The long-running operations client for UpdateClientTlsPolicy.

Property Value
Type Description
OperationsClient

UpdateGatewaySecurityPolicyOperationsClient

public virtual OperationsClient UpdateGatewaySecurityPolicyOperationsClient { get; }

The long-running operations client for UpdateGatewaySecurityPolicy.

Property Value
Type Description
OperationsClient

UpdateGatewaySecurityPolicyRuleOperationsClient

public virtual OperationsClient UpdateGatewaySecurityPolicyRuleOperationsClient { get; }

The long-running operations client for UpdateGatewaySecurityPolicyRule.

Property Value
Type Description
OperationsClient

UpdateServerTlsPolicyOperationsClient

public virtual OperationsClient UpdateServerTlsPolicyOperationsClient { get; }

The long-running operations client for UpdateServerTlsPolicy.

Property Value
Type Description
OperationsClient

UpdateTlsInspectionPolicyOperationsClient

public virtual OperationsClient UpdateTlsInspectionPolicyOperationsClient { get; }

The long-running operations client for UpdateTlsInspectionPolicy.

Property Value
Type Description
OperationsClient

UpdateUrlListOperationsClient

public virtual OperationsClient UpdateUrlListOperationsClient { get; }

The long-running operations client for UpdateUrlList.

Property Value
Type Description
OperationsClient

Methods

Create()

public static NetworkSecurityClient Create()

Synchronously creates a NetworkSecurityClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use NetworkSecurityClientBuilder.

Returns
Type Description
NetworkSecurityClient

The created NetworkSecurityClient.

CreateAsync(CancellationToken)

public static Task<NetworkSecurityClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a NetworkSecurityClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use NetworkSecurityClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskNetworkSecurityClient

The task representing the created NetworkSecurityClient.

CreateAuthorizationPolicy(LocationName, AuthorizationPolicy, string, CallSettings)

public virtual Operation<AuthorizationPolicy, OperationMetadata> CreateAuthorizationPolicy(LocationName parent, AuthorizationPolicy authorizationPolicy, string authorizationPolicyId, CallSettings callSettings = null)

Creates a new AuthorizationPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the AuthorizationPolicy. Must be in the format projects/{project}/locations/{location}.

authorizationPolicy AuthorizationPolicy

Required. AuthorizationPolicy resource to be created.

authorizationPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAuthorizationPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
AuthorizationPolicy authorizationPolicy = new AuthorizationPolicy();
string authorizationPolicyId = "";
// Make the request
Operation<AuthorizationPolicy, OperationMetadata> response = networkSecurityClient.CreateAuthorizationPolicy(parent, authorizationPolicy, authorizationPolicyId);

// Poll until the returned long-running operation is complete
Operation<AuthorizationPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AuthorizationPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthorizationPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateAuthorizationPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthorizationPolicy retrievedResult = retrievedResponse.Result;
}

CreateAuthorizationPolicy(CreateAuthorizationPolicyRequest, CallSettings)

public virtual Operation<AuthorizationPolicy, OperationMetadata> CreateAuthorizationPolicy(CreateAuthorizationPolicyRequest request, CallSettings callSettings = null)

Creates a new AuthorizationPolicy in a given project and location.

Parameters
Name Description
request CreateAuthorizationPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAuthorizationPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
CreateAuthorizationPolicyRequest request = new CreateAuthorizationPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    AuthorizationPolicyId = "",
    AuthorizationPolicy = new AuthorizationPolicy(),
};
// Make the request
Operation<AuthorizationPolicy, OperationMetadata> response = networkSecurityClient.CreateAuthorizationPolicy(request);

// Poll until the returned long-running operation is complete
Operation<AuthorizationPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AuthorizationPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthorizationPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateAuthorizationPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthorizationPolicy retrievedResult = retrievedResponse.Result;
}

CreateAuthorizationPolicy(string, AuthorizationPolicy, string, CallSettings)

public virtual Operation<AuthorizationPolicy, OperationMetadata> CreateAuthorizationPolicy(string parent, AuthorizationPolicy authorizationPolicy, string authorizationPolicyId, CallSettings callSettings = null)

Creates a new AuthorizationPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the AuthorizationPolicy. Must be in the format projects/{project}/locations/{location}.

authorizationPolicy AuthorizationPolicy

Required. AuthorizationPolicy resource to be created.

authorizationPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAuthorizationPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
AuthorizationPolicy authorizationPolicy = new AuthorizationPolicy();
string authorizationPolicyId = "";
// Make the request
Operation<AuthorizationPolicy, OperationMetadata> response = networkSecurityClient.CreateAuthorizationPolicy(parent, authorizationPolicy, authorizationPolicyId);

// Poll until the returned long-running operation is complete
Operation<AuthorizationPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AuthorizationPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthorizationPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateAuthorizationPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthorizationPolicy retrievedResult = retrievedResponse.Result;
}

CreateAuthorizationPolicyAsync(LocationName, AuthorizationPolicy, string, CallSettings)

public virtual Task<Operation<AuthorizationPolicy, OperationMetadata>> CreateAuthorizationPolicyAsync(LocationName parent, AuthorizationPolicy authorizationPolicy, string authorizationPolicyId, CallSettings callSettings = null)

Creates a new AuthorizationPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the AuthorizationPolicy. Must be in the format projects/{project}/locations/{location}.

authorizationPolicy AuthorizationPolicy

Required. AuthorizationPolicy resource to be created.

authorizationPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAuthorizationPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
AuthorizationPolicy authorizationPolicy = new AuthorizationPolicy();
string authorizationPolicyId = "";
// Make the request
Operation<AuthorizationPolicy, OperationMetadata> response = await networkSecurityClient.CreateAuthorizationPolicyAsync(parent, authorizationPolicy, authorizationPolicyId);

// Poll until the returned long-running operation is complete
Operation<AuthorizationPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthorizationPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthorizationPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateAuthorizationPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthorizationPolicy retrievedResult = retrievedResponse.Result;
}

CreateAuthorizationPolicyAsync(LocationName, AuthorizationPolicy, string, CancellationToken)

public virtual Task<Operation<AuthorizationPolicy, OperationMetadata>> CreateAuthorizationPolicyAsync(LocationName parent, AuthorizationPolicy authorizationPolicy, string authorizationPolicyId, CancellationToken cancellationToken)

Creates a new AuthorizationPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the AuthorizationPolicy. Must be in the format projects/{project}/locations/{location}.

authorizationPolicy AuthorizationPolicy

Required. AuthorizationPolicy resource to be created.

authorizationPolicyId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAuthorizationPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
AuthorizationPolicy authorizationPolicy = new AuthorizationPolicy();
string authorizationPolicyId = "";
// Make the request
Operation<AuthorizationPolicy, OperationMetadata> response = await networkSecurityClient.CreateAuthorizationPolicyAsync(parent, authorizationPolicy, authorizationPolicyId);

// Poll until the returned long-running operation is complete
Operation<AuthorizationPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthorizationPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthorizationPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateAuthorizationPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthorizationPolicy retrievedResult = retrievedResponse.Result;
}

CreateAuthorizationPolicyAsync(CreateAuthorizationPolicyRequest, CallSettings)

public virtual Task<Operation<AuthorizationPolicy, OperationMetadata>> CreateAuthorizationPolicyAsync(CreateAuthorizationPolicyRequest request, CallSettings callSettings = null)

Creates a new AuthorizationPolicy in a given project and location.

Parameters
Name Description
request CreateAuthorizationPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAuthorizationPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
CreateAuthorizationPolicyRequest request = new CreateAuthorizationPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    AuthorizationPolicyId = "",
    AuthorizationPolicy = new AuthorizationPolicy(),
};
// Make the request
Operation<AuthorizationPolicy, OperationMetadata> response = await networkSecurityClient.CreateAuthorizationPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<AuthorizationPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthorizationPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthorizationPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateAuthorizationPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthorizationPolicy retrievedResult = retrievedResponse.Result;
}

CreateAuthorizationPolicyAsync(CreateAuthorizationPolicyRequest, CancellationToken)

public virtual Task<Operation<AuthorizationPolicy, OperationMetadata>> CreateAuthorizationPolicyAsync(CreateAuthorizationPolicyRequest request, CancellationToken cancellationToken)

Creates a new AuthorizationPolicy in a given project and location.

Parameters
Name Description
request CreateAuthorizationPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAuthorizationPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
CreateAuthorizationPolicyRequest request = new CreateAuthorizationPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    AuthorizationPolicyId = "",
    AuthorizationPolicy = new AuthorizationPolicy(),
};
// Make the request
Operation<AuthorizationPolicy, OperationMetadata> response = await networkSecurityClient.CreateAuthorizationPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<AuthorizationPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthorizationPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthorizationPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateAuthorizationPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthorizationPolicy retrievedResult = retrievedResponse.Result;
}

CreateAuthorizationPolicyAsync(string, AuthorizationPolicy, string, CallSettings)

public virtual Task<Operation<AuthorizationPolicy, OperationMetadata>> CreateAuthorizationPolicyAsync(string parent, AuthorizationPolicy authorizationPolicy, string authorizationPolicyId, CallSettings callSettings = null)

Creates a new AuthorizationPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the AuthorizationPolicy. Must be in the format projects/{project}/locations/{location}.

authorizationPolicy AuthorizationPolicy

Required. AuthorizationPolicy resource to be created.

authorizationPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAuthorizationPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
AuthorizationPolicy authorizationPolicy = new AuthorizationPolicy();
string authorizationPolicyId = "";
// Make the request
Operation<AuthorizationPolicy, OperationMetadata> response = await networkSecurityClient.CreateAuthorizationPolicyAsync(parent, authorizationPolicy, authorizationPolicyId);

// Poll until the returned long-running operation is complete
Operation<AuthorizationPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthorizationPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthorizationPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateAuthorizationPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthorizationPolicy retrievedResult = retrievedResponse.Result;
}

CreateAuthorizationPolicyAsync(string, AuthorizationPolicy, string, CancellationToken)

public virtual Task<Operation<AuthorizationPolicy, OperationMetadata>> CreateAuthorizationPolicyAsync(string parent, AuthorizationPolicy authorizationPolicy, string authorizationPolicyId, CancellationToken cancellationToken)

Creates a new AuthorizationPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the AuthorizationPolicy. Must be in the format projects/{project}/locations/{location}.

authorizationPolicy AuthorizationPolicy

Required. AuthorizationPolicy resource to be created.

authorizationPolicyId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAuthorizationPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
AuthorizationPolicy authorizationPolicy = new AuthorizationPolicy();
string authorizationPolicyId = "";
// Make the request
Operation<AuthorizationPolicy, OperationMetadata> response = await networkSecurityClient.CreateAuthorizationPolicyAsync(parent, authorizationPolicy, authorizationPolicyId);

// Poll until the returned long-running operation is complete
Operation<AuthorizationPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthorizationPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthorizationPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateAuthorizationPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthorizationPolicy retrievedResult = retrievedResponse.Result;
}

CreateAuthzPolicy(LocationName, AuthzPolicy, string, CallSettings)

public virtual Operation<AuthzPolicy, OperationMetadata> CreateAuthzPolicy(LocationName parent, AuthzPolicy authzPolicy, string authzPolicyId, CallSettings callSettings = null)

Creates a new AuthzPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the AuthzPolicy resource. Must be in the format projects/{project}/locations/{location}.

authzPolicy AuthzPolicy

Required. AuthzPolicy resource to be created.

authzPolicyId string

Required. User-provided ID of the AuthzPolicy resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAuthzPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
AuthzPolicy authzPolicy = new AuthzPolicy();
string authzPolicyId = "";
// Make the request
Operation<AuthzPolicy, OperationMetadata> response = networkSecurityClient.CreateAuthzPolicy(parent, authzPolicy, authzPolicyId);

// Poll until the returned long-running operation is complete
Operation<AuthzPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AuthzPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthzPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateAuthzPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthzPolicy retrievedResult = retrievedResponse.Result;
}

CreateAuthzPolicy(CreateAuthzPolicyRequest, CallSettings)

public virtual Operation<AuthzPolicy, OperationMetadata> CreateAuthzPolicy(CreateAuthzPolicyRequest request, CallSettings callSettings = null)

Creates a new AuthzPolicy in a given project and location.

Parameters
Name Description
request CreateAuthzPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAuthzPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
CreateAuthzPolicyRequest request = new CreateAuthzPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    AuthzPolicyId = "",
    AuthzPolicy = new AuthzPolicy(),
    RequestId = "",
};
// Make the request
Operation<AuthzPolicy, OperationMetadata> response = networkSecurityClient.CreateAuthzPolicy(request);

// Poll until the returned long-running operation is complete
Operation<AuthzPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AuthzPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthzPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateAuthzPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthzPolicy retrievedResult = retrievedResponse.Result;
}

CreateAuthzPolicy(string, AuthzPolicy, string, CallSettings)

public virtual Operation<AuthzPolicy, OperationMetadata> CreateAuthzPolicy(string parent, AuthzPolicy authzPolicy, string authzPolicyId, CallSettings callSettings = null)

Creates a new AuthzPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the AuthzPolicy resource. Must be in the format projects/{project}/locations/{location}.

authzPolicy AuthzPolicy

Required. AuthzPolicy resource to be created.

authzPolicyId string

Required. User-provided ID of the AuthzPolicy resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAuthzPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
AuthzPolicy authzPolicy = new AuthzPolicy();
string authzPolicyId = "";
// Make the request
Operation<AuthzPolicy, OperationMetadata> response = networkSecurityClient.CreateAuthzPolicy(parent, authzPolicy, authzPolicyId);

// Poll until the returned long-running operation is complete
Operation<AuthzPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AuthzPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthzPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateAuthzPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthzPolicy retrievedResult = retrievedResponse.Result;
}

CreateAuthzPolicyAsync(LocationName, AuthzPolicy, string, CallSettings)

public virtual Task<Operation<AuthzPolicy, OperationMetadata>> CreateAuthzPolicyAsync(LocationName parent, AuthzPolicy authzPolicy, string authzPolicyId, CallSettings callSettings = null)

Creates a new AuthzPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the AuthzPolicy resource. Must be in the format projects/{project}/locations/{location}.

authzPolicy AuthzPolicy

Required. AuthzPolicy resource to be created.

authzPolicyId string

Required. User-provided ID of the AuthzPolicy resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAuthzPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
AuthzPolicy authzPolicy = new AuthzPolicy();
string authzPolicyId = "";
// Make the request
Operation<AuthzPolicy, OperationMetadata> response = await networkSecurityClient.CreateAuthzPolicyAsync(parent, authzPolicy, authzPolicyId);

// Poll until the returned long-running operation is complete
Operation<AuthzPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthzPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthzPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateAuthzPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthzPolicy retrievedResult = retrievedResponse.Result;
}

CreateAuthzPolicyAsync(LocationName, AuthzPolicy, string, CancellationToken)

public virtual Task<Operation<AuthzPolicy, OperationMetadata>> CreateAuthzPolicyAsync(LocationName parent, AuthzPolicy authzPolicy, string authzPolicyId, CancellationToken cancellationToken)

Creates a new AuthzPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the AuthzPolicy resource. Must be in the format projects/{project}/locations/{location}.

authzPolicy AuthzPolicy

Required. AuthzPolicy resource to be created.

authzPolicyId string

Required. User-provided ID of the AuthzPolicy resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAuthzPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
AuthzPolicy authzPolicy = new AuthzPolicy();
string authzPolicyId = "";
// Make the request
Operation<AuthzPolicy, OperationMetadata> response = await networkSecurityClient.CreateAuthzPolicyAsync(parent, authzPolicy, authzPolicyId);

// Poll until the returned long-running operation is complete
Operation<AuthzPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthzPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthzPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateAuthzPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthzPolicy retrievedResult = retrievedResponse.Result;
}

CreateAuthzPolicyAsync(CreateAuthzPolicyRequest, CallSettings)

public virtual Task<Operation<AuthzPolicy, OperationMetadata>> CreateAuthzPolicyAsync(CreateAuthzPolicyRequest request, CallSettings callSettings = null)

Creates a new AuthzPolicy in a given project and location.

Parameters
Name Description
request CreateAuthzPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAuthzPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
CreateAuthzPolicyRequest request = new CreateAuthzPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    AuthzPolicyId = "",
    AuthzPolicy = new AuthzPolicy(),
    RequestId = "",
};
// Make the request
Operation<AuthzPolicy, OperationMetadata> response = await networkSecurityClient.CreateAuthzPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<AuthzPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthzPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthzPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateAuthzPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthzPolicy retrievedResult = retrievedResponse.Result;
}

CreateAuthzPolicyAsync(CreateAuthzPolicyRequest, CancellationToken)

public virtual Task<Operation<AuthzPolicy, OperationMetadata>> CreateAuthzPolicyAsync(CreateAuthzPolicyRequest request, CancellationToken cancellationToken)

Creates a new AuthzPolicy in a given project and location.

Parameters
Name Description
request CreateAuthzPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAuthzPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
CreateAuthzPolicyRequest request = new CreateAuthzPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    AuthzPolicyId = "",
    AuthzPolicy = new AuthzPolicy(),
    RequestId = "",
};
// Make the request
Operation<AuthzPolicy, OperationMetadata> response = await networkSecurityClient.CreateAuthzPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<AuthzPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthzPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthzPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateAuthzPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthzPolicy retrievedResult = retrievedResponse.Result;
}

CreateAuthzPolicyAsync(string, AuthzPolicy, string, CallSettings)

public virtual Task<Operation<AuthzPolicy, OperationMetadata>> CreateAuthzPolicyAsync(string parent, AuthzPolicy authzPolicy, string authzPolicyId, CallSettings callSettings = null)

Creates a new AuthzPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the AuthzPolicy resource. Must be in the format projects/{project}/locations/{location}.

authzPolicy AuthzPolicy

Required. AuthzPolicy resource to be created.

authzPolicyId string

Required. User-provided ID of the AuthzPolicy resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAuthzPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
AuthzPolicy authzPolicy = new AuthzPolicy();
string authzPolicyId = "";
// Make the request
Operation<AuthzPolicy, OperationMetadata> response = await networkSecurityClient.CreateAuthzPolicyAsync(parent, authzPolicy, authzPolicyId);

// Poll until the returned long-running operation is complete
Operation<AuthzPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthzPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthzPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateAuthzPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthzPolicy retrievedResult = retrievedResponse.Result;
}

CreateAuthzPolicyAsync(string, AuthzPolicy, string, CancellationToken)

public virtual Task<Operation<AuthzPolicy, OperationMetadata>> CreateAuthzPolicyAsync(string parent, AuthzPolicy authzPolicy, string authzPolicyId, CancellationToken cancellationToken)

Creates a new AuthzPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the AuthzPolicy resource. Must be in the format projects/{project}/locations/{location}.

authzPolicy AuthzPolicy

Required. AuthzPolicy resource to be created.

authzPolicyId string

Required. User-provided ID of the AuthzPolicy resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAuthzPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
AuthzPolicy authzPolicy = new AuthzPolicy();
string authzPolicyId = "";
// Make the request
Operation<AuthzPolicy, OperationMetadata> response = await networkSecurityClient.CreateAuthzPolicyAsync(parent, authzPolicy, authzPolicyId);

// Poll until the returned long-running operation is complete
Operation<AuthzPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthzPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthzPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateAuthzPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthzPolicy retrievedResult = retrievedResponse.Result;
}

CreateBackendAuthenticationConfig(LocationName, BackendAuthenticationConfig, string, CallSettings)

public virtual Operation<BackendAuthenticationConfig, OperationMetadata> CreateBackendAuthenticationConfig(LocationName parent, BackendAuthenticationConfig backendAuthenticationConfig, string backendAuthenticationConfigId, CallSettings callSettings = null)

Creates a new BackendAuthenticationConfig in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the BackendAuthenticationConfig. Must be in the format projects/*/locations/{location}.

backendAuthenticationConfig BackendAuthenticationConfig

Required. BackendAuthenticationConfig resource to be created.

backendAuthenticationConfigId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackendAuthenticationConfigOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BackendAuthenticationConfig backendAuthenticationConfig = new BackendAuthenticationConfig();
string backendAuthenticationConfigId = "";
// Make the request
Operation<BackendAuthenticationConfig, OperationMetadata> response = networkSecurityClient.CreateBackendAuthenticationConfig(parent, backendAuthenticationConfig, backendAuthenticationConfigId);

// Poll until the returned long-running operation is complete
Operation<BackendAuthenticationConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackendAuthenticationConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackendAuthenticationConfig, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateBackendAuthenticationConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackendAuthenticationConfig retrievedResult = retrievedResponse.Result;
}

CreateBackendAuthenticationConfig(CreateBackendAuthenticationConfigRequest, CallSettings)

public virtual Operation<BackendAuthenticationConfig, OperationMetadata> CreateBackendAuthenticationConfig(CreateBackendAuthenticationConfigRequest request, CallSettings callSettings = null)

Creates a new BackendAuthenticationConfig in a given project and location.

Parameters
Name Description
request CreateBackendAuthenticationConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackendAuthenticationConfigOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
CreateBackendAuthenticationConfigRequest request = new CreateBackendAuthenticationConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    BackendAuthenticationConfigId = "",
    BackendAuthenticationConfig = new BackendAuthenticationConfig(),
};
// Make the request
Operation<BackendAuthenticationConfig, OperationMetadata> response = networkSecurityClient.CreateBackendAuthenticationConfig(request);

// Poll until the returned long-running operation is complete
Operation<BackendAuthenticationConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackendAuthenticationConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackendAuthenticationConfig, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateBackendAuthenticationConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackendAuthenticationConfig retrievedResult = retrievedResponse.Result;
}

CreateBackendAuthenticationConfig(string, BackendAuthenticationConfig, string, CallSettings)

public virtual Operation<BackendAuthenticationConfig, OperationMetadata> CreateBackendAuthenticationConfig(string parent, BackendAuthenticationConfig backendAuthenticationConfig, string backendAuthenticationConfigId, CallSettings callSettings = null)

Creates a new BackendAuthenticationConfig in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the BackendAuthenticationConfig. Must be in the format projects/*/locations/{location}.

backendAuthenticationConfig BackendAuthenticationConfig

Required. BackendAuthenticationConfig resource to be created.

backendAuthenticationConfigId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackendAuthenticationConfigOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
BackendAuthenticationConfig backendAuthenticationConfig = new BackendAuthenticationConfig();
string backendAuthenticationConfigId = "";
// Make the request
Operation<BackendAuthenticationConfig, OperationMetadata> response = networkSecurityClient.CreateBackendAuthenticationConfig(parent, backendAuthenticationConfig, backendAuthenticationConfigId);

// Poll until the returned long-running operation is complete
Operation<BackendAuthenticationConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackendAuthenticationConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackendAuthenticationConfig, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateBackendAuthenticationConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackendAuthenticationConfig retrievedResult = retrievedResponse.Result;
}

CreateBackendAuthenticationConfigAsync(LocationName, BackendAuthenticationConfig, string, CallSettings)

public virtual Task<Operation<BackendAuthenticationConfig, OperationMetadata>> CreateBackendAuthenticationConfigAsync(LocationName parent, BackendAuthenticationConfig backendAuthenticationConfig, string backendAuthenticationConfigId, CallSettings callSettings = null)

Creates a new BackendAuthenticationConfig in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the BackendAuthenticationConfig. Must be in the format projects/*/locations/{location}.

backendAuthenticationConfig BackendAuthenticationConfig

Required. BackendAuthenticationConfig resource to be created.

backendAuthenticationConfigId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackendAuthenticationConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BackendAuthenticationConfig backendAuthenticationConfig = new BackendAuthenticationConfig();
string backendAuthenticationConfigId = "";
// Make the request
Operation<BackendAuthenticationConfig, OperationMetadata> response = await networkSecurityClient.CreateBackendAuthenticationConfigAsync(parent, backendAuthenticationConfig, backendAuthenticationConfigId);

// Poll until the returned long-running operation is complete
Operation<BackendAuthenticationConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackendAuthenticationConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackendAuthenticationConfig, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateBackendAuthenticationConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackendAuthenticationConfig retrievedResult = retrievedResponse.Result;
}

CreateBackendAuthenticationConfigAsync(LocationName, BackendAuthenticationConfig, string, CancellationToken)

public virtual Task<Operation<BackendAuthenticationConfig, OperationMetadata>> CreateBackendAuthenticationConfigAsync(LocationName parent, BackendAuthenticationConfig backendAuthenticationConfig, string backendAuthenticationConfigId, CancellationToken cancellationToken)

Creates a new BackendAuthenticationConfig in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the BackendAuthenticationConfig. Must be in the format projects/*/locations/{location}.

backendAuthenticationConfig BackendAuthenticationConfig

Required. BackendAuthenticationConfig resource to be created.

backendAuthenticationConfigId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackendAuthenticationConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BackendAuthenticationConfig backendAuthenticationConfig = new BackendAuthenticationConfig();
string backendAuthenticationConfigId = "";
// Make the request
Operation<BackendAuthenticationConfig, OperationMetadata> response = await networkSecurityClient.CreateBackendAuthenticationConfigAsync(parent, backendAuthenticationConfig, backendAuthenticationConfigId);

// Poll until the returned long-running operation is complete
Operation<BackendAuthenticationConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackendAuthenticationConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackendAuthenticationConfig, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateBackendAuthenticationConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackendAuthenticationConfig retrievedResult = retrievedResponse.Result;
}

CreateBackendAuthenticationConfigAsync(CreateBackendAuthenticationConfigRequest, CallSettings)

public virtual Task<Operation<BackendAuthenticationConfig, OperationMetadata>> CreateBackendAuthenticationConfigAsync(CreateBackendAuthenticationConfigRequest request, CallSettings callSettings = null)

Creates a new BackendAuthenticationConfig in a given project and location.

Parameters
Name Description
request CreateBackendAuthenticationConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackendAuthenticationConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
CreateBackendAuthenticationConfigRequest request = new CreateBackendAuthenticationConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    BackendAuthenticationConfigId = "",
    BackendAuthenticationConfig = new BackendAuthenticationConfig(),
};
// Make the request
Operation<BackendAuthenticationConfig, OperationMetadata> response = await networkSecurityClient.CreateBackendAuthenticationConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<BackendAuthenticationConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackendAuthenticationConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackendAuthenticationConfig, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateBackendAuthenticationConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackendAuthenticationConfig retrievedResult = retrievedResponse.Result;
}

CreateBackendAuthenticationConfigAsync(CreateBackendAuthenticationConfigRequest, CancellationToken)

public virtual Task<Operation<BackendAuthenticationConfig, OperationMetadata>> CreateBackendAuthenticationConfigAsync(CreateBackendAuthenticationConfigRequest request, CancellationToken cancellationToken)

Creates a new BackendAuthenticationConfig in a given project and location.

Parameters
Name Description
request CreateBackendAuthenticationConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackendAuthenticationConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
CreateBackendAuthenticationConfigRequest request = new CreateBackendAuthenticationConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    BackendAuthenticationConfigId = "",
    BackendAuthenticationConfig = new BackendAuthenticationConfig(),
};
// Make the request
Operation<BackendAuthenticationConfig, OperationMetadata> response = await networkSecurityClient.CreateBackendAuthenticationConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<BackendAuthenticationConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackendAuthenticationConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackendAuthenticationConfig, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateBackendAuthenticationConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackendAuthenticationConfig retrievedResult = retrievedResponse.Result;
}

CreateBackendAuthenticationConfigAsync(string, BackendAuthenticationConfig, string, CallSettings)

public virtual Task<Operation<BackendAuthenticationConfig, OperationMetadata>> CreateBackendAuthenticationConfigAsync(string parent, BackendAuthenticationConfig backendAuthenticationConfig, string backendAuthenticationConfigId, CallSettings callSettings = null)

Creates a new BackendAuthenticationConfig in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the BackendAuthenticationConfig. Must be in the format projects/*/locations/{location}.

backendAuthenticationConfig BackendAuthenticationConfig

Required. BackendAuthenticationConfig resource to be created.

backendAuthenticationConfigId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackendAuthenticationConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
BackendAuthenticationConfig backendAuthenticationConfig = new BackendAuthenticationConfig();
string backendAuthenticationConfigId = "";
// Make the request
Operation<BackendAuthenticationConfig, OperationMetadata> response = await networkSecurityClient.CreateBackendAuthenticationConfigAsync(parent, backendAuthenticationConfig, backendAuthenticationConfigId);

// Poll until the returned long-running operation is complete
Operation<BackendAuthenticationConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackendAuthenticationConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackendAuthenticationConfig, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateBackendAuthenticationConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackendAuthenticationConfig retrievedResult = retrievedResponse.Result;
}

CreateBackendAuthenticationConfigAsync(string, BackendAuthenticationConfig, string, CancellationToken)

public virtual Task<Operation<BackendAuthenticationConfig, OperationMetadata>> CreateBackendAuthenticationConfigAsync(string parent, BackendAuthenticationConfig backendAuthenticationConfig, string backendAuthenticationConfigId, CancellationToken cancellationToken)

Creates a new BackendAuthenticationConfig in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the BackendAuthenticationConfig. Must be in the format projects/*/locations/{location}.

backendAuthenticationConfig BackendAuthenticationConfig

Required. BackendAuthenticationConfig resource to be created.

backendAuthenticationConfigId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackendAuthenticationConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
BackendAuthenticationConfig backendAuthenticationConfig = new BackendAuthenticationConfig();
string backendAuthenticationConfigId = "";
// Make the request
Operation<BackendAuthenticationConfig, OperationMetadata> response = await networkSecurityClient.CreateBackendAuthenticationConfigAsync(parent, backendAuthenticationConfig, backendAuthenticationConfigId);

// Poll until the returned long-running operation is complete
Operation<BackendAuthenticationConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackendAuthenticationConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackendAuthenticationConfig, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateBackendAuthenticationConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackendAuthenticationConfig retrievedResult = retrievedResponse.Result;
}

CreateClientTlsPolicy(LocationName, ClientTlsPolicy, string, CallSettings)

public virtual Operation<ClientTlsPolicy, OperationMetadata> CreateClientTlsPolicy(LocationName parent, ClientTlsPolicy clientTlsPolicy, string clientTlsPolicyId, CallSettings callSettings = null)

Creates a new ClientTlsPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the ClientTlsPolicy. Must be in the format projects/*/locations/{location}.

clientTlsPolicy ClientTlsPolicy

Required. ClientTlsPolicy resource to be created.

clientTlsPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationClientTlsPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ClientTlsPolicy clientTlsPolicy = new ClientTlsPolicy();
string clientTlsPolicyId = "";
// Make the request
Operation<ClientTlsPolicy, OperationMetadata> response = networkSecurityClient.CreateClientTlsPolicy(parent, clientTlsPolicy, clientTlsPolicyId);

// Poll until the returned long-running operation is complete
Operation<ClientTlsPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ClientTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ClientTlsPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateClientTlsPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientTlsPolicy retrievedResult = retrievedResponse.Result;
}

CreateClientTlsPolicy(CreateClientTlsPolicyRequest, CallSettings)

public virtual Operation<ClientTlsPolicy, OperationMetadata> CreateClientTlsPolicy(CreateClientTlsPolicyRequest request, CallSettings callSettings = null)

Creates a new ClientTlsPolicy in a given project and location.

Parameters
Name Description
request CreateClientTlsPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationClientTlsPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
CreateClientTlsPolicyRequest request = new CreateClientTlsPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ClientTlsPolicyId = "",
    ClientTlsPolicy = new ClientTlsPolicy(),
};
// Make the request
Operation<ClientTlsPolicy, OperationMetadata> response = networkSecurityClient.CreateClientTlsPolicy(request);

// Poll until the returned long-running operation is complete
Operation<ClientTlsPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ClientTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ClientTlsPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateClientTlsPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientTlsPolicy retrievedResult = retrievedResponse.Result;
}

CreateClientTlsPolicy(string, ClientTlsPolicy, string, CallSettings)

public virtual Operation<ClientTlsPolicy, OperationMetadata> CreateClientTlsPolicy(string parent, ClientTlsPolicy clientTlsPolicy, string clientTlsPolicyId, CallSettings callSettings = null)

Creates a new ClientTlsPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the ClientTlsPolicy. Must be in the format projects/*/locations/{location}.

clientTlsPolicy ClientTlsPolicy

Required. ClientTlsPolicy resource to be created.

clientTlsPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationClientTlsPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ClientTlsPolicy clientTlsPolicy = new ClientTlsPolicy();
string clientTlsPolicyId = "";
// Make the request
Operation<ClientTlsPolicy, OperationMetadata> response = networkSecurityClient.CreateClientTlsPolicy(parent, clientTlsPolicy, clientTlsPolicyId);

// Poll until the returned long-running operation is complete
Operation<ClientTlsPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ClientTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ClientTlsPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateClientTlsPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientTlsPolicy retrievedResult = retrievedResponse.Result;
}

CreateClientTlsPolicyAsync(LocationName, ClientTlsPolicy, string, CallSettings)

public virtual Task<Operation<ClientTlsPolicy, OperationMetadata>> CreateClientTlsPolicyAsync(LocationName parent, ClientTlsPolicy clientTlsPolicy, string clientTlsPolicyId, CallSettings callSettings = null)

Creates a new ClientTlsPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the ClientTlsPolicy. Must be in the format projects/*/locations/{location}.

clientTlsPolicy ClientTlsPolicy

Required. ClientTlsPolicy resource to be created.

clientTlsPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationClientTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ClientTlsPolicy clientTlsPolicy = new ClientTlsPolicy();
string clientTlsPolicyId = "";
// Make the request
Operation<ClientTlsPolicy, OperationMetadata> response = await networkSecurityClient.CreateClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId);

// Poll until the returned long-running operation is complete
Operation<ClientTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ClientTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateClientTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientTlsPolicy retrievedResult = retrievedResponse.Result;
}

CreateClientTlsPolicyAsync(LocationName, ClientTlsPolicy, string, CancellationToken)

public virtual Task<Operation<ClientTlsPolicy, OperationMetadata>> CreateClientTlsPolicyAsync(LocationName parent, ClientTlsPolicy clientTlsPolicy, string clientTlsPolicyId, CancellationToken cancellationToken)

Creates a new ClientTlsPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the ClientTlsPolicy. Must be in the format projects/*/locations/{location}.

clientTlsPolicy ClientTlsPolicy

Required. ClientTlsPolicy resource to be created.

clientTlsPolicyId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationClientTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ClientTlsPolicy clientTlsPolicy = new ClientTlsPolicy();
string clientTlsPolicyId = "";
// Make the request
Operation<ClientTlsPolicy, OperationMetadata> response = await networkSecurityClient.CreateClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId);

// Poll until the returned long-running operation is complete
Operation<ClientTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ClientTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateClientTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientTlsPolicy retrievedResult = retrievedResponse.Result;
}

CreateClientTlsPolicyAsync(CreateClientTlsPolicyRequest, CallSettings)

public virtual Task<Operation<ClientTlsPolicy, OperationMetadata>> CreateClientTlsPolicyAsync(CreateClientTlsPolicyRequest request, CallSettings callSettings = null)

Creates a new ClientTlsPolicy in a given project and location.

Parameters
Name Description
request CreateClientTlsPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationClientTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
CreateClientTlsPolicyRequest request = new CreateClientTlsPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ClientTlsPolicyId = "",
    ClientTlsPolicy = new ClientTlsPolicy(),
};
// Make the request
Operation<ClientTlsPolicy, OperationMetadata> response = await networkSecurityClient.CreateClientTlsPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<ClientTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ClientTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateClientTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientTlsPolicy retrievedResult = retrievedResponse.Result;
}

CreateClientTlsPolicyAsync(CreateClientTlsPolicyRequest, CancellationToken)

public virtual Task<Operation<ClientTlsPolicy, OperationMetadata>> CreateClientTlsPolicyAsync(CreateClientTlsPolicyRequest request, CancellationToken cancellationToken)

Creates a new ClientTlsPolicy in a given project and location.

Parameters
Name Description
request CreateClientTlsPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationClientTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
CreateClientTlsPolicyRequest request = new CreateClientTlsPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ClientTlsPolicyId = "",
    ClientTlsPolicy = new ClientTlsPolicy(),
};
// Make the request
Operation<ClientTlsPolicy, OperationMetadata> response = await networkSecurityClient.CreateClientTlsPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<ClientTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ClientTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateClientTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientTlsPolicy retrievedResult = retrievedResponse.Result;
}

CreateClientTlsPolicyAsync(string, ClientTlsPolicy, string, CallSettings)

public virtual Task<Operation<ClientTlsPolicy, OperationMetadata>> CreateClientTlsPolicyAsync(string parent, ClientTlsPolicy clientTlsPolicy, string clientTlsPolicyId, CallSettings callSettings = null)

Creates a new ClientTlsPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the ClientTlsPolicy. Must be in the format projects/*/locations/{location}.

clientTlsPolicy ClientTlsPolicy

Required. ClientTlsPolicy resource to be created.

clientTlsPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationClientTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ClientTlsPolicy clientTlsPolicy = new ClientTlsPolicy();
string clientTlsPolicyId = "";
// Make the request
Operation<ClientTlsPolicy, OperationMetadata> response = await networkSecurityClient.CreateClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId);

// Poll until the returned long-running operation is complete
Operation<ClientTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ClientTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateClientTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientTlsPolicy retrievedResult = retrievedResponse.Result;
}

CreateClientTlsPolicyAsync(string, ClientTlsPolicy, string, CancellationToken)

public virtual Task<Operation<ClientTlsPolicy, OperationMetadata>> CreateClientTlsPolicyAsync(string parent, ClientTlsPolicy clientTlsPolicy, string clientTlsPolicyId, CancellationToken cancellationToken)

Creates a new ClientTlsPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the ClientTlsPolicy. Must be in the format projects/*/locations/{location}.

clientTlsPolicy ClientTlsPolicy

Required. ClientTlsPolicy resource to be created.

clientTlsPolicyId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationClientTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ClientTlsPolicy clientTlsPolicy = new ClientTlsPolicy();
string clientTlsPolicyId = "";
// Make the request
Operation<ClientTlsPolicy, OperationMetadata> response = await networkSecurityClient.CreateClientTlsPolicyAsync(parent, clientTlsPolicy, clientTlsPolicyId);

// Poll until the returned long-running operation is complete
Operation<ClientTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ClientTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateClientTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientTlsPolicy retrievedResult = retrievedResponse.Result;
}

CreateGatewaySecurityPolicy(LocationName, GatewaySecurityPolicy, string, CallSettings)

public virtual Operation<GatewaySecurityPolicy, OperationMetadata> CreateGatewaySecurityPolicy(LocationName parent, GatewaySecurityPolicy gatewaySecurityPolicy, string gatewaySecurityPolicyId, CallSettings callSettings = null)

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the GatewaySecurityPolicy. Must be in the format projects/{project}/locations/{location}.

gatewaySecurityPolicy GatewaySecurityPolicy

Required. GatewaySecurityPolicy resource to be created.

gatewaySecurityPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGatewaySecurityPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
GatewaySecurityPolicy gatewaySecurityPolicy = new GatewaySecurityPolicy();
string gatewaySecurityPolicyId = "";
// Make the request
Operation<GatewaySecurityPolicy, OperationMetadata> response = networkSecurityClient.CreateGatewaySecurityPolicy(parent, gatewaySecurityPolicy, gatewaySecurityPolicyId);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GatewaySecurityPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateGatewaySecurityPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicy retrievedResult = retrievedResponse.Result;
}

CreateGatewaySecurityPolicy(CreateGatewaySecurityPolicyRequest, CallSettings)

public virtual Operation<GatewaySecurityPolicy, OperationMetadata> CreateGatewaySecurityPolicy(CreateGatewaySecurityPolicyRequest request, CallSettings callSettings = null)

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
request CreateGatewaySecurityPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGatewaySecurityPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
CreateGatewaySecurityPolicyRequest request = new CreateGatewaySecurityPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    GatewaySecurityPolicyId = "",
    GatewaySecurityPolicy = new GatewaySecurityPolicy(),
};
// Make the request
Operation<GatewaySecurityPolicy, OperationMetadata> response = networkSecurityClient.CreateGatewaySecurityPolicy(request);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GatewaySecurityPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateGatewaySecurityPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicy retrievedResult = retrievedResponse.Result;
}

CreateGatewaySecurityPolicy(string, GatewaySecurityPolicy, string, CallSettings)

public virtual Operation<GatewaySecurityPolicy, OperationMetadata> CreateGatewaySecurityPolicy(string parent, GatewaySecurityPolicy gatewaySecurityPolicy, string gatewaySecurityPolicyId, CallSettings callSettings = null)

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the GatewaySecurityPolicy. Must be in the format projects/{project}/locations/{location}.

gatewaySecurityPolicy GatewaySecurityPolicy

Required. GatewaySecurityPolicy resource to be created.

gatewaySecurityPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGatewaySecurityPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
GatewaySecurityPolicy gatewaySecurityPolicy = new GatewaySecurityPolicy();
string gatewaySecurityPolicyId = "";
// Make the request
Operation<GatewaySecurityPolicy, OperationMetadata> response = networkSecurityClient.CreateGatewaySecurityPolicy(parent, gatewaySecurityPolicy, gatewaySecurityPolicyId);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GatewaySecurityPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateGatewaySecurityPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicy retrievedResult = retrievedResponse.Result;
}

CreateGatewaySecurityPolicyAsync(LocationName, GatewaySecurityPolicy, string, CallSettings)

public virtual Task<Operation<GatewaySecurityPolicy, OperationMetadata>> CreateGatewaySecurityPolicyAsync(LocationName parent, GatewaySecurityPolicy gatewaySecurityPolicy, string gatewaySecurityPolicyId, CallSettings callSettings = null)

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the GatewaySecurityPolicy. Must be in the format projects/{project}/locations/{location}.

gatewaySecurityPolicy GatewaySecurityPolicy

Required. GatewaySecurityPolicy resource to be created.

gatewaySecurityPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGatewaySecurityPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
GatewaySecurityPolicy gatewaySecurityPolicy = new GatewaySecurityPolicy();
string gatewaySecurityPolicyId = "";
// Make the request
Operation<GatewaySecurityPolicy, OperationMetadata> response = await networkSecurityClient.CreateGatewaySecurityPolicyAsync(parent, gatewaySecurityPolicy, gatewaySecurityPolicyId);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateGatewaySecurityPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicy retrievedResult = retrievedResponse.Result;
}

CreateGatewaySecurityPolicyAsync(LocationName, GatewaySecurityPolicy, string, CancellationToken)

public virtual Task<Operation<GatewaySecurityPolicy, OperationMetadata>> CreateGatewaySecurityPolicyAsync(LocationName parent, GatewaySecurityPolicy gatewaySecurityPolicy, string gatewaySecurityPolicyId, CancellationToken cancellationToken)

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the GatewaySecurityPolicy. Must be in the format projects/{project}/locations/{location}.

gatewaySecurityPolicy GatewaySecurityPolicy

Required. GatewaySecurityPolicy resource to be created.

gatewaySecurityPolicyId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGatewaySecurityPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
GatewaySecurityPolicy gatewaySecurityPolicy = new GatewaySecurityPolicy();
string gatewaySecurityPolicyId = "";
// Make the request
Operation<GatewaySecurityPolicy, OperationMetadata> response = await networkSecurityClient.CreateGatewaySecurityPolicyAsync(parent, gatewaySecurityPolicy, gatewaySecurityPolicyId);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateGatewaySecurityPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicy retrievedResult = retrievedResponse.Result;
}

CreateGatewaySecurityPolicyAsync(CreateGatewaySecurityPolicyRequest, CallSettings)

public virtual Task<Operation<GatewaySecurityPolicy, OperationMetadata>> CreateGatewaySecurityPolicyAsync(CreateGatewaySecurityPolicyRequest request, CallSettings callSettings = null)

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
request CreateGatewaySecurityPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGatewaySecurityPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
CreateGatewaySecurityPolicyRequest request = new CreateGatewaySecurityPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    GatewaySecurityPolicyId = "",
    GatewaySecurityPolicy = new GatewaySecurityPolicy(),
};
// Make the request
Operation<GatewaySecurityPolicy, OperationMetadata> response = await networkSecurityClient.CreateGatewaySecurityPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateGatewaySecurityPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicy retrievedResult = retrievedResponse.Result;
}

CreateGatewaySecurityPolicyAsync(CreateGatewaySecurityPolicyRequest, CancellationToken)

public virtual Task<Operation<GatewaySecurityPolicy, OperationMetadata>> CreateGatewaySecurityPolicyAsync(CreateGatewaySecurityPolicyRequest request, CancellationToken cancellationToken)

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
request CreateGatewaySecurityPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGatewaySecurityPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
CreateGatewaySecurityPolicyRequest request = new CreateGatewaySecurityPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    GatewaySecurityPolicyId = "",
    GatewaySecurityPolicy = new GatewaySecurityPolicy(),
};
// Make the request
Operation<GatewaySecurityPolicy, OperationMetadata> response = await networkSecurityClient.CreateGatewaySecurityPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateGatewaySecurityPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicy retrievedResult = retrievedResponse.Result;
}

CreateGatewaySecurityPolicyAsync(string, GatewaySecurityPolicy, string, CallSettings)

public virtual Task<Operation<GatewaySecurityPolicy, OperationMetadata>> CreateGatewaySecurityPolicyAsync(string parent, GatewaySecurityPolicy gatewaySecurityPolicy, string gatewaySecurityPolicyId, CallSettings callSettings = null)

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the GatewaySecurityPolicy. Must be in the format projects/{project}/locations/{location}.

gatewaySecurityPolicy GatewaySecurityPolicy

Required. GatewaySecurityPolicy resource to be created.

gatewaySecurityPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGatewaySecurityPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
GatewaySecurityPolicy gatewaySecurityPolicy = new GatewaySecurityPolicy();
string gatewaySecurityPolicyId = "";
// Make the request
Operation<GatewaySecurityPolicy, OperationMetadata> response = await networkSecurityClient.CreateGatewaySecurityPolicyAsync(parent, gatewaySecurityPolicy, gatewaySecurityPolicyId);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateGatewaySecurityPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicy retrievedResult = retrievedResponse.Result;
}

CreateGatewaySecurityPolicyAsync(string, GatewaySecurityPolicy, string, CancellationToken)

public virtual Task<Operation<GatewaySecurityPolicy, OperationMetadata>> CreateGatewaySecurityPolicyAsync(string parent, GatewaySecurityPolicy gatewaySecurityPolicy, string gatewaySecurityPolicyId, CancellationToken cancellationToken)

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the GatewaySecurityPolicy. Must be in the format projects/{project}/locations/{location}.

gatewaySecurityPolicy GatewaySecurityPolicy

Required. GatewaySecurityPolicy resource to be created.

gatewaySecurityPolicyId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGatewaySecurityPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
GatewaySecurityPolicy gatewaySecurityPolicy = new GatewaySecurityPolicy();
string gatewaySecurityPolicyId = "";
// Make the request
Operation<GatewaySecurityPolicy, OperationMetadata> response = await networkSecurityClient.CreateGatewaySecurityPolicyAsync(parent, gatewaySecurityPolicy, gatewaySecurityPolicyId);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateGatewaySecurityPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicy retrievedResult = retrievedResponse.Result;
}

CreateGatewaySecurityPolicyRule(CreateGatewaySecurityPolicyRuleRequest, CallSettings)

public virtual Operation<GatewaySecurityPolicyRule, OperationMetadata> CreateGatewaySecurityPolicyRule(CreateGatewaySecurityPolicyRuleRequest request, CallSettings callSettings = null)

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
request CreateGatewaySecurityPolicyRuleRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGatewaySecurityPolicyRuleOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
CreateGatewaySecurityPolicyRuleRequest request = new CreateGatewaySecurityPolicyRuleRequest
{
    ParentAsGatewaySecurityPolicyName = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"),
    GatewaySecurityPolicyRule = new GatewaySecurityPolicyRule(),
    GatewaySecurityPolicyRuleId = "",
};
// Make the request
Operation<GatewaySecurityPolicyRule, OperationMetadata> response = networkSecurityClient.CreateGatewaySecurityPolicyRule(request);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicyRule, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GatewaySecurityPolicyRule result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicyRule, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateGatewaySecurityPolicyRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicyRule retrievedResult = retrievedResponse.Result;
}

CreateGatewaySecurityPolicyRule(GatewaySecurityPolicyName, GatewaySecurityPolicyRule, string, CallSettings)

public virtual Operation<GatewaySecurityPolicyRule, OperationMetadata> CreateGatewaySecurityPolicyRule(GatewaySecurityPolicyName parent, GatewaySecurityPolicyRule gatewaySecurityPolicyRule, string gatewaySecurityPolicyRuleId, CallSettings callSettings = null)

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
parent GatewaySecurityPolicyName

Required. The parent where this rule will be created. Format : projects/{project}/location/{location}/gatewaySecurityPolicies/*

gatewaySecurityPolicyRule GatewaySecurityPolicyRule

Required. The rule to be created.

gatewaySecurityPolicyRuleId string

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]-/.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGatewaySecurityPolicyRuleOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
GatewaySecurityPolicyName parent = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]");
GatewaySecurityPolicyRule gatewaySecurityPolicyRule = new GatewaySecurityPolicyRule();
string gatewaySecurityPolicyRuleId = "";
// Make the request
Operation<GatewaySecurityPolicyRule, OperationMetadata> response = networkSecurityClient.CreateGatewaySecurityPolicyRule(parent, gatewaySecurityPolicyRule, gatewaySecurityPolicyRuleId);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicyRule, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GatewaySecurityPolicyRule result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicyRule, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateGatewaySecurityPolicyRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicyRule retrievedResult = retrievedResponse.Result;
}

CreateGatewaySecurityPolicyRule(string, GatewaySecurityPolicyRule, string, CallSettings)

public virtual Operation<GatewaySecurityPolicyRule, OperationMetadata> CreateGatewaySecurityPolicyRule(string parent, GatewaySecurityPolicyRule gatewaySecurityPolicyRule, string gatewaySecurityPolicyRuleId, CallSettings callSettings = null)

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent where this rule will be created. Format : projects/{project}/location/{location}/gatewaySecurityPolicies/*

gatewaySecurityPolicyRule GatewaySecurityPolicyRule

Required. The rule to be created.

gatewaySecurityPolicyRuleId string

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]-/.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGatewaySecurityPolicyRuleOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/gatewaySecurityPolicies/[GATEWAY_SECURITY_POLICY]";
GatewaySecurityPolicyRule gatewaySecurityPolicyRule = new GatewaySecurityPolicyRule();
string gatewaySecurityPolicyRuleId = "";
// Make the request
Operation<GatewaySecurityPolicyRule, OperationMetadata> response = networkSecurityClient.CreateGatewaySecurityPolicyRule(parent, gatewaySecurityPolicyRule, gatewaySecurityPolicyRuleId);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicyRule, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GatewaySecurityPolicyRule result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicyRule, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateGatewaySecurityPolicyRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicyRule retrievedResult = retrievedResponse.Result;
}

CreateGatewaySecurityPolicyRuleAsync(CreateGatewaySecurityPolicyRuleRequest, CallSettings)

public virtual Task<Operation<GatewaySecurityPolicyRule, OperationMetadata>> CreateGatewaySecurityPolicyRuleAsync(CreateGatewaySecurityPolicyRuleRequest request, CallSettings callSettings = null)

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
request CreateGatewaySecurityPolicyRuleRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGatewaySecurityPolicyRuleOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
CreateGatewaySecurityPolicyRuleRequest request = new CreateGatewaySecurityPolicyRuleRequest
{
    ParentAsGatewaySecurityPolicyName = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"),
    GatewaySecurityPolicyRule = new GatewaySecurityPolicyRule(),
    GatewaySecurityPolicyRuleId = "",
};
// Make the request
Operation<GatewaySecurityPolicyRule, OperationMetadata> response = await networkSecurityClient.CreateGatewaySecurityPolicyRuleAsync(request);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicyRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicyRule result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicyRule, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateGatewaySecurityPolicyRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicyRule retrievedResult = retrievedResponse.Result;
}

CreateGatewaySecurityPolicyRuleAsync(CreateGatewaySecurityPolicyRuleRequest, CancellationToken)

public virtual Task<Operation<GatewaySecurityPolicyRule, OperationMetadata>> CreateGatewaySecurityPolicyRuleAsync(CreateGatewaySecurityPolicyRuleRequest request, CancellationToken cancellationToken)

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
request CreateGatewaySecurityPolicyRuleRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGatewaySecurityPolicyRuleOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
CreateGatewaySecurityPolicyRuleRequest request = new CreateGatewaySecurityPolicyRuleRequest
{
    ParentAsGatewaySecurityPolicyName = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"),
    GatewaySecurityPolicyRule = new GatewaySecurityPolicyRule(),
    GatewaySecurityPolicyRuleId = "",
};
// Make the request
Operation<GatewaySecurityPolicyRule, OperationMetadata> response = await networkSecurityClient.CreateGatewaySecurityPolicyRuleAsync(request);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicyRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicyRule result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicyRule, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateGatewaySecurityPolicyRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicyRule retrievedResult = retrievedResponse.Result;
}

CreateGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyName, GatewaySecurityPolicyRule, string, CallSettings)

public virtual Task<Operation<GatewaySecurityPolicyRule, OperationMetadata>> CreateGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyName parent, GatewaySecurityPolicyRule gatewaySecurityPolicyRule, string gatewaySecurityPolicyRuleId, CallSettings callSettings = null)

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
parent GatewaySecurityPolicyName

Required. The parent where this rule will be created. Format : projects/{project}/location/{location}/gatewaySecurityPolicies/*

gatewaySecurityPolicyRule GatewaySecurityPolicyRule

Required. The rule to be created.

gatewaySecurityPolicyRuleId string

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]-/.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGatewaySecurityPolicyRuleOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GatewaySecurityPolicyName parent = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]");
GatewaySecurityPolicyRule gatewaySecurityPolicyRule = new GatewaySecurityPolicyRule();
string gatewaySecurityPolicyRuleId = "";
// Make the request
Operation<GatewaySecurityPolicyRule, OperationMetadata> response = await networkSecurityClient.CreateGatewaySecurityPolicyRuleAsync(parent, gatewaySecurityPolicyRule, gatewaySecurityPolicyRuleId);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicyRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicyRule result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicyRule, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateGatewaySecurityPolicyRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicyRule retrievedResult = retrievedResponse.Result;
}

CreateGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyName, GatewaySecurityPolicyRule, string, CancellationToken)

public virtual Task<Operation<GatewaySecurityPolicyRule, OperationMetadata>> CreateGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyName parent, GatewaySecurityPolicyRule gatewaySecurityPolicyRule, string gatewaySecurityPolicyRuleId, CancellationToken cancellationToken)

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
parent GatewaySecurityPolicyName

Required. The parent where this rule will be created. Format : projects/{project}/location/{location}/gatewaySecurityPolicies/*

gatewaySecurityPolicyRule GatewaySecurityPolicyRule

Required. The rule to be created.

gatewaySecurityPolicyRuleId string

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]-/.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGatewaySecurityPolicyRuleOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GatewaySecurityPolicyName parent = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]");
GatewaySecurityPolicyRule gatewaySecurityPolicyRule = new GatewaySecurityPolicyRule();
string gatewaySecurityPolicyRuleId = "";
// Make the request
Operation<GatewaySecurityPolicyRule, OperationMetadata> response = await networkSecurityClient.CreateGatewaySecurityPolicyRuleAsync(parent, gatewaySecurityPolicyRule, gatewaySecurityPolicyRuleId);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicyRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicyRule result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicyRule, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateGatewaySecurityPolicyRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicyRule retrievedResult = retrievedResponse.Result;
}

CreateGatewaySecurityPolicyRuleAsync(string, GatewaySecurityPolicyRule, string, CallSettings)

public virtual Task<Operation<GatewaySecurityPolicyRule, OperationMetadata>> CreateGatewaySecurityPolicyRuleAsync(string parent, GatewaySecurityPolicyRule gatewaySecurityPolicyRule, string gatewaySecurityPolicyRuleId, CallSettings callSettings = null)

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent where this rule will be created. Format : projects/{project}/location/{location}/gatewaySecurityPolicies/*

gatewaySecurityPolicyRule GatewaySecurityPolicyRule

Required. The rule to be created.

gatewaySecurityPolicyRuleId string

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]-/.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGatewaySecurityPolicyRuleOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/gatewaySecurityPolicies/[GATEWAY_SECURITY_POLICY]";
GatewaySecurityPolicyRule gatewaySecurityPolicyRule = new GatewaySecurityPolicyRule();
string gatewaySecurityPolicyRuleId = "";
// Make the request
Operation<GatewaySecurityPolicyRule, OperationMetadata> response = await networkSecurityClient.CreateGatewaySecurityPolicyRuleAsync(parent, gatewaySecurityPolicyRule, gatewaySecurityPolicyRuleId);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicyRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicyRule result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicyRule, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateGatewaySecurityPolicyRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicyRule retrievedResult = retrievedResponse.Result;
}

CreateGatewaySecurityPolicyRuleAsync(string, GatewaySecurityPolicyRule, string, CancellationToken)

public virtual Task<Operation<GatewaySecurityPolicyRule, OperationMetadata>> CreateGatewaySecurityPolicyRuleAsync(string parent, GatewaySecurityPolicyRule gatewaySecurityPolicyRule, string gatewaySecurityPolicyRuleId, CancellationToken cancellationToken)

Creates a new GatewaySecurityPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent where this rule will be created. Format : projects/{project}/location/{location}/gatewaySecurityPolicies/*

gatewaySecurityPolicyRule GatewaySecurityPolicyRule

Required. The rule to be created.

gatewaySecurityPolicyRuleId string

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]-/.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGatewaySecurityPolicyRuleOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/gatewaySecurityPolicies/[GATEWAY_SECURITY_POLICY]";
GatewaySecurityPolicyRule gatewaySecurityPolicyRule = new GatewaySecurityPolicyRule();
string gatewaySecurityPolicyRuleId = "";
// Make the request
Operation<GatewaySecurityPolicyRule, OperationMetadata> response = await networkSecurityClient.CreateGatewaySecurityPolicyRuleAsync(parent, gatewaySecurityPolicyRule, gatewaySecurityPolicyRuleId);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicyRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicyRule result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicyRule, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateGatewaySecurityPolicyRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicyRule retrievedResult = retrievedResponse.Result;
}

CreateServerTlsPolicy(LocationName, ServerTlsPolicy, string, CallSettings)

public virtual Operation<ServerTlsPolicy, OperationMetadata> CreateServerTlsPolicy(LocationName parent, ServerTlsPolicy serverTlsPolicy, string serverTlsPolicyId, CallSettings callSettings = null)

Creates a new ServerTlsPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the ServerTlsPolicy. Must be in the format projects/*/locations/{location}.

serverTlsPolicy ServerTlsPolicy

Required. ServerTlsPolicy resource to be created.

serverTlsPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationServerTlsPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ServerTlsPolicy serverTlsPolicy = new ServerTlsPolicy();
string serverTlsPolicyId = "";
// Make the request
Operation<ServerTlsPolicy, OperationMetadata> response = networkSecurityClient.CreateServerTlsPolicy(parent, serverTlsPolicy, serverTlsPolicyId);

// Poll until the returned long-running operation is complete
Operation<ServerTlsPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServerTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServerTlsPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateServerTlsPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServerTlsPolicy retrievedResult = retrievedResponse.Result;
}

CreateServerTlsPolicy(CreateServerTlsPolicyRequest, CallSettings)

public virtual Operation<ServerTlsPolicy, OperationMetadata> CreateServerTlsPolicy(CreateServerTlsPolicyRequest request, CallSettings callSettings = null)

Creates a new ServerTlsPolicy in a given project and location.

Parameters
Name Description
request CreateServerTlsPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationServerTlsPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
CreateServerTlsPolicyRequest request = new CreateServerTlsPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ServerTlsPolicyId = "",
    ServerTlsPolicy = new ServerTlsPolicy(),
};
// Make the request
Operation<ServerTlsPolicy, OperationMetadata> response = networkSecurityClient.CreateServerTlsPolicy(request);

// Poll until the returned long-running operation is complete
Operation<ServerTlsPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServerTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServerTlsPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateServerTlsPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServerTlsPolicy retrievedResult = retrievedResponse.Result;
}

CreateServerTlsPolicy(string, ServerTlsPolicy, string, CallSettings)

public virtual Operation<ServerTlsPolicy, OperationMetadata> CreateServerTlsPolicy(string parent, ServerTlsPolicy serverTlsPolicy, string serverTlsPolicyId, CallSettings callSettings = null)

Creates a new ServerTlsPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the ServerTlsPolicy. Must be in the format projects/*/locations/{location}.

serverTlsPolicy ServerTlsPolicy

Required. ServerTlsPolicy resource to be created.

serverTlsPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationServerTlsPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ServerTlsPolicy serverTlsPolicy = new ServerTlsPolicy();
string serverTlsPolicyId = "";
// Make the request
Operation<ServerTlsPolicy, OperationMetadata> response = networkSecurityClient.CreateServerTlsPolicy(parent, serverTlsPolicy, serverTlsPolicyId);

// Poll until the returned long-running operation is complete
Operation<ServerTlsPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServerTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServerTlsPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateServerTlsPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServerTlsPolicy retrievedResult = retrievedResponse.Result;
}

CreateServerTlsPolicyAsync(LocationName, ServerTlsPolicy, string, CallSettings)

public virtual Task<Operation<ServerTlsPolicy, OperationMetadata>> CreateServerTlsPolicyAsync(LocationName parent, ServerTlsPolicy serverTlsPolicy, string serverTlsPolicyId, CallSettings callSettings = null)

Creates a new ServerTlsPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the ServerTlsPolicy. Must be in the format projects/*/locations/{location}.

serverTlsPolicy ServerTlsPolicy

Required. ServerTlsPolicy resource to be created.

serverTlsPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationServerTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ServerTlsPolicy serverTlsPolicy = new ServerTlsPolicy();
string serverTlsPolicyId = "";
// Make the request
Operation<ServerTlsPolicy, OperationMetadata> response = await networkSecurityClient.CreateServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId);

// Poll until the returned long-running operation is complete
Operation<ServerTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServerTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServerTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateServerTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServerTlsPolicy retrievedResult = retrievedResponse.Result;
}

CreateServerTlsPolicyAsync(LocationName, ServerTlsPolicy, string, CancellationToken)

public virtual Task<Operation<ServerTlsPolicy, OperationMetadata>> CreateServerTlsPolicyAsync(LocationName parent, ServerTlsPolicy serverTlsPolicy, string serverTlsPolicyId, CancellationToken cancellationToken)

Creates a new ServerTlsPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the ServerTlsPolicy. Must be in the format projects/*/locations/{location}.

serverTlsPolicy ServerTlsPolicy

Required. ServerTlsPolicy resource to be created.

serverTlsPolicyId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationServerTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ServerTlsPolicy serverTlsPolicy = new ServerTlsPolicy();
string serverTlsPolicyId = "";
// Make the request
Operation<ServerTlsPolicy, OperationMetadata> response = await networkSecurityClient.CreateServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId);

// Poll until the returned long-running operation is complete
Operation<ServerTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServerTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServerTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateServerTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServerTlsPolicy retrievedResult = retrievedResponse.Result;
}

CreateServerTlsPolicyAsync(CreateServerTlsPolicyRequest, CallSettings)

public virtual Task<Operation<ServerTlsPolicy, OperationMetadata>> CreateServerTlsPolicyAsync(CreateServerTlsPolicyRequest request, CallSettings callSettings = null)

Creates a new ServerTlsPolicy in a given project and location.

Parameters
Name Description
request CreateServerTlsPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationServerTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
CreateServerTlsPolicyRequest request = new CreateServerTlsPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ServerTlsPolicyId = "",
    ServerTlsPolicy = new ServerTlsPolicy(),
};
// Make the request
Operation<ServerTlsPolicy, OperationMetadata> response = await networkSecurityClient.CreateServerTlsPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<ServerTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServerTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServerTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateServerTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServerTlsPolicy retrievedResult = retrievedResponse.Result;
}

CreateServerTlsPolicyAsync(CreateServerTlsPolicyRequest, CancellationToken)

public virtual Task<Operation<ServerTlsPolicy, OperationMetadata>> CreateServerTlsPolicyAsync(CreateServerTlsPolicyRequest request, CancellationToken cancellationToken)

Creates a new ServerTlsPolicy in a given project and location.

Parameters
Name Description
request CreateServerTlsPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationServerTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
CreateServerTlsPolicyRequest request = new CreateServerTlsPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ServerTlsPolicyId = "",
    ServerTlsPolicy = new ServerTlsPolicy(),
};
// Make the request
Operation<ServerTlsPolicy, OperationMetadata> response = await networkSecurityClient.CreateServerTlsPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<ServerTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServerTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServerTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateServerTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServerTlsPolicy retrievedResult = retrievedResponse.Result;
}

CreateServerTlsPolicyAsync(string, ServerTlsPolicy, string, CallSettings)

public virtual Task<Operation<ServerTlsPolicy, OperationMetadata>> CreateServerTlsPolicyAsync(string parent, ServerTlsPolicy serverTlsPolicy, string serverTlsPolicyId, CallSettings callSettings = null)

Creates a new ServerTlsPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the ServerTlsPolicy. Must be in the format projects/*/locations/{location}.

serverTlsPolicy ServerTlsPolicy

Required. ServerTlsPolicy resource to be created.

serverTlsPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationServerTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ServerTlsPolicy serverTlsPolicy = new ServerTlsPolicy();
string serverTlsPolicyId = "";
// Make the request
Operation<ServerTlsPolicy, OperationMetadata> response = await networkSecurityClient.CreateServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId);

// Poll until the returned long-running operation is complete
Operation<ServerTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServerTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServerTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateServerTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServerTlsPolicy retrievedResult = retrievedResponse.Result;
}

CreateServerTlsPolicyAsync(string, ServerTlsPolicy, string, CancellationToken)

public virtual Task<Operation<ServerTlsPolicy, OperationMetadata>> CreateServerTlsPolicyAsync(string parent, ServerTlsPolicy serverTlsPolicy, string serverTlsPolicyId, CancellationToken cancellationToken)

Creates a new ServerTlsPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the ServerTlsPolicy. Must be in the format projects/*/locations/{location}.

serverTlsPolicy ServerTlsPolicy

Required. ServerTlsPolicy resource to be created.

serverTlsPolicyId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationServerTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ServerTlsPolicy serverTlsPolicy = new ServerTlsPolicy();
string serverTlsPolicyId = "";
// Make the request
Operation<ServerTlsPolicy, OperationMetadata> response = await networkSecurityClient.CreateServerTlsPolicyAsync(parent, serverTlsPolicy, serverTlsPolicyId);

// Poll until the returned long-running operation is complete
Operation<ServerTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServerTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServerTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateServerTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServerTlsPolicy retrievedResult = retrievedResponse.Result;
}

CreateTlsInspectionPolicy(LocationName, TlsInspectionPolicy, string, CallSettings)

public virtual Operation<TlsInspectionPolicy, OperationMetadata> CreateTlsInspectionPolicy(LocationName parent, TlsInspectionPolicy tlsInspectionPolicy, string tlsInspectionPolicyId, CallSettings callSettings = null)

Creates a new TlsInspectionPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the TlsInspectionPolicy. Must be in the format projects/{project}/locations/{location}.

tlsInspectionPolicy TlsInspectionPolicy

Required. TlsInspectionPolicy resource to be created.

tlsInspectionPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTlsInspectionPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
TlsInspectionPolicy tlsInspectionPolicy = new TlsInspectionPolicy();
string tlsInspectionPolicyId = "";
// Make the request
Operation<TlsInspectionPolicy, OperationMetadata> response = networkSecurityClient.CreateTlsInspectionPolicy(parent, tlsInspectionPolicy, tlsInspectionPolicyId);

// Poll until the returned long-running operation is complete
Operation<TlsInspectionPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
TlsInspectionPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TlsInspectionPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateTlsInspectionPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TlsInspectionPolicy retrievedResult = retrievedResponse.Result;
}

CreateTlsInspectionPolicy(CreateTlsInspectionPolicyRequest, CallSettings)

public virtual Operation<TlsInspectionPolicy, OperationMetadata> CreateTlsInspectionPolicy(CreateTlsInspectionPolicyRequest request, CallSettings callSettings = null)

Creates a new TlsInspectionPolicy in a given project and location.

Parameters
Name Description
request CreateTlsInspectionPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTlsInspectionPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
CreateTlsInspectionPolicyRequest request = new CreateTlsInspectionPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    TlsInspectionPolicyId = "",
    TlsInspectionPolicy = new TlsInspectionPolicy(),
};
// Make the request
Operation<TlsInspectionPolicy, OperationMetadata> response = networkSecurityClient.CreateTlsInspectionPolicy(request);

// Poll until the returned long-running operation is complete
Operation<TlsInspectionPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
TlsInspectionPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TlsInspectionPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateTlsInspectionPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TlsInspectionPolicy retrievedResult = retrievedResponse.Result;
}

CreateTlsInspectionPolicy(string, TlsInspectionPolicy, string, CallSettings)

public virtual Operation<TlsInspectionPolicy, OperationMetadata> CreateTlsInspectionPolicy(string parent, TlsInspectionPolicy tlsInspectionPolicy, string tlsInspectionPolicyId, CallSettings callSettings = null)

Creates a new TlsInspectionPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the TlsInspectionPolicy. Must be in the format projects/{project}/locations/{location}.

tlsInspectionPolicy TlsInspectionPolicy

Required. TlsInspectionPolicy resource to be created.

tlsInspectionPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTlsInspectionPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
TlsInspectionPolicy tlsInspectionPolicy = new TlsInspectionPolicy();
string tlsInspectionPolicyId = "";
// Make the request
Operation<TlsInspectionPolicy, OperationMetadata> response = networkSecurityClient.CreateTlsInspectionPolicy(parent, tlsInspectionPolicy, tlsInspectionPolicyId);

// Poll until the returned long-running operation is complete
Operation<TlsInspectionPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
TlsInspectionPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TlsInspectionPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateTlsInspectionPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TlsInspectionPolicy retrievedResult = retrievedResponse.Result;
}

CreateTlsInspectionPolicyAsync(LocationName, TlsInspectionPolicy, string, CallSettings)

public virtual Task<Operation<TlsInspectionPolicy, OperationMetadata>> CreateTlsInspectionPolicyAsync(LocationName parent, TlsInspectionPolicy tlsInspectionPolicy, string tlsInspectionPolicyId, CallSettings callSettings = null)

Creates a new TlsInspectionPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the TlsInspectionPolicy. Must be in the format projects/{project}/locations/{location}.

tlsInspectionPolicy TlsInspectionPolicy

Required. TlsInspectionPolicy resource to be created.

tlsInspectionPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTlsInspectionPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
TlsInspectionPolicy tlsInspectionPolicy = new TlsInspectionPolicy();
string tlsInspectionPolicyId = "";
// Make the request
Operation<TlsInspectionPolicy, OperationMetadata> response = await networkSecurityClient.CreateTlsInspectionPolicyAsync(parent, tlsInspectionPolicy, tlsInspectionPolicyId);

// Poll until the returned long-running operation is complete
Operation<TlsInspectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TlsInspectionPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TlsInspectionPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateTlsInspectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TlsInspectionPolicy retrievedResult = retrievedResponse.Result;
}

CreateTlsInspectionPolicyAsync(LocationName, TlsInspectionPolicy, string, CancellationToken)

public virtual Task<Operation<TlsInspectionPolicy, OperationMetadata>> CreateTlsInspectionPolicyAsync(LocationName parent, TlsInspectionPolicy tlsInspectionPolicy, string tlsInspectionPolicyId, CancellationToken cancellationToken)

Creates a new TlsInspectionPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the TlsInspectionPolicy. Must be in the format projects/{project}/locations/{location}.

tlsInspectionPolicy TlsInspectionPolicy

Required. TlsInspectionPolicy resource to be created.

tlsInspectionPolicyId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTlsInspectionPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
TlsInspectionPolicy tlsInspectionPolicy = new TlsInspectionPolicy();
string tlsInspectionPolicyId = "";
// Make the request
Operation<TlsInspectionPolicy, OperationMetadata> response = await networkSecurityClient.CreateTlsInspectionPolicyAsync(parent, tlsInspectionPolicy, tlsInspectionPolicyId);

// Poll until the returned long-running operation is complete
Operation<TlsInspectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TlsInspectionPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TlsInspectionPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateTlsInspectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TlsInspectionPolicy retrievedResult = retrievedResponse.Result;
}

CreateTlsInspectionPolicyAsync(CreateTlsInspectionPolicyRequest, CallSettings)

public virtual Task<Operation<TlsInspectionPolicy, OperationMetadata>> CreateTlsInspectionPolicyAsync(CreateTlsInspectionPolicyRequest request, CallSettings callSettings = null)

Creates a new TlsInspectionPolicy in a given project and location.

Parameters
Name Description
request CreateTlsInspectionPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTlsInspectionPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
CreateTlsInspectionPolicyRequest request = new CreateTlsInspectionPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    TlsInspectionPolicyId = "",
    TlsInspectionPolicy = new TlsInspectionPolicy(),
};
// Make the request
Operation<TlsInspectionPolicy, OperationMetadata> response = await networkSecurityClient.CreateTlsInspectionPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<TlsInspectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TlsInspectionPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TlsInspectionPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateTlsInspectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TlsInspectionPolicy retrievedResult = retrievedResponse.Result;
}

CreateTlsInspectionPolicyAsync(CreateTlsInspectionPolicyRequest, CancellationToken)

public virtual Task<Operation<TlsInspectionPolicy, OperationMetadata>> CreateTlsInspectionPolicyAsync(CreateTlsInspectionPolicyRequest request, CancellationToken cancellationToken)

Creates a new TlsInspectionPolicy in a given project and location.

Parameters
Name Description
request CreateTlsInspectionPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTlsInspectionPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
CreateTlsInspectionPolicyRequest request = new CreateTlsInspectionPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    TlsInspectionPolicyId = "",
    TlsInspectionPolicy = new TlsInspectionPolicy(),
};
// Make the request
Operation<TlsInspectionPolicy, OperationMetadata> response = await networkSecurityClient.CreateTlsInspectionPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<TlsInspectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TlsInspectionPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TlsInspectionPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateTlsInspectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TlsInspectionPolicy retrievedResult = retrievedResponse.Result;
}

CreateTlsInspectionPolicyAsync(string, TlsInspectionPolicy, string, CallSettings)

public virtual Task<Operation<TlsInspectionPolicy, OperationMetadata>> CreateTlsInspectionPolicyAsync(string parent, TlsInspectionPolicy tlsInspectionPolicy, string tlsInspectionPolicyId, CallSettings callSettings = null)

Creates a new TlsInspectionPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the TlsInspectionPolicy. Must be in the format projects/{project}/locations/{location}.

tlsInspectionPolicy TlsInspectionPolicy

Required. TlsInspectionPolicy resource to be created.

tlsInspectionPolicyId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTlsInspectionPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
TlsInspectionPolicy tlsInspectionPolicy = new TlsInspectionPolicy();
string tlsInspectionPolicyId = "";
// Make the request
Operation<TlsInspectionPolicy, OperationMetadata> response = await networkSecurityClient.CreateTlsInspectionPolicyAsync(parent, tlsInspectionPolicy, tlsInspectionPolicyId);

// Poll until the returned long-running operation is complete
Operation<TlsInspectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TlsInspectionPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TlsInspectionPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateTlsInspectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TlsInspectionPolicy retrievedResult = retrievedResponse.Result;
}

CreateTlsInspectionPolicyAsync(string, TlsInspectionPolicy, string, CancellationToken)

public virtual Task<Operation<TlsInspectionPolicy, OperationMetadata>> CreateTlsInspectionPolicyAsync(string parent, TlsInspectionPolicy tlsInspectionPolicy, string tlsInspectionPolicyId, CancellationToken cancellationToken)

Creates a new TlsInspectionPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the TlsInspectionPolicy. Must be in the format projects/{project}/locations/{location}.

tlsInspectionPolicy TlsInspectionPolicy

Required. TlsInspectionPolicy resource to be created.

tlsInspectionPolicyId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTlsInspectionPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
TlsInspectionPolicy tlsInspectionPolicy = new TlsInspectionPolicy();
string tlsInspectionPolicyId = "";
// Make the request
Operation<TlsInspectionPolicy, OperationMetadata> response = await networkSecurityClient.CreateTlsInspectionPolicyAsync(parent, tlsInspectionPolicy, tlsInspectionPolicyId);

// Poll until the returned long-running operation is complete
Operation<TlsInspectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TlsInspectionPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TlsInspectionPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateTlsInspectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TlsInspectionPolicy retrievedResult = retrievedResponse.Result;
}

CreateUrlList(LocationName, UrlList, string, CallSettings)

public virtual Operation<UrlList, OperationMetadata> CreateUrlList(LocationName parent, UrlList urlList, string urlListId, CallSettings callSettings = null)

Creates a new UrlList in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the UrlList. Must be in the format projects/*/locations/{location}.

urlList UrlList

Required. UrlList resource to be created.

urlListId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationUrlListOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
UrlList urlList = new UrlList();
string urlListId = "";
// Make the request
Operation<UrlList, OperationMetadata> response = networkSecurityClient.CreateUrlList(parent, urlList, urlListId);

// Poll until the returned long-running operation is complete
Operation<UrlList, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
UrlList result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UrlList, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateUrlList(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UrlList retrievedResult = retrievedResponse.Result;
}

CreateUrlList(CreateUrlListRequest, CallSettings)

public virtual Operation<UrlList, OperationMetadata> CreateUrlList(CreateUrlListRequest request, CallSettings callSettings = null)

Creates a new UrlList in a given project and location.

Parameters
Name Description
request CreateUrlListRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationUrlListOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
CreateUrlListRequest request = new CreateUrlListRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    UrlListId = "",
    UrlList = new UrlList(),
};
// Make the request
Operation<UrlList, OperationMetadata> response = networkSecurityClient.CreateUrlList(request);

// Poll until the returned long-running operation is complete
Operation<UrlList, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
UrlList result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UrlList, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateUrlList(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UrlList retrievedResult = retrievedResponse.Result;
}

CreateUrlList(string, UrlList, string, CallSettings)

public virtual Operation<UrlList, OperationMetadata> CreateUrlList(string parent, UrlList urlList, string urlListId, CallSettings callSettings = null)

Creates a new UrlList in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the UrlList. Must be in the format projects/*/locations/{location}.

urlList UrlList

Required. UrlList resource to be created.

urlListId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationUrlListOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
UrlList urlList = new UrlList();
string urlListId = "";
// Make the request
Operation<UrlList, OperationMetadata> response = networkSecurityClient.CreateUrlList(parent, urlList, urlListId);

// Poll until the returned long-running operation is complete
Operation<UrlList, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
UrlList result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UrlList, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceCreateUrlList(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UrlList retrievedResult = retrievedResponse.Result;
}

CreateUrlListAsync(LocationName, UrlList, string, CallSettings)

public virtual Task<Operation<UrlList, OperationMetadata>> CreateUrlListAsync(LocationName parent, UrlList urlList, string urlListId, CallSettings callSettings = null)

Creates a new UrlList in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the UrlList. Must be in the format projects/*/locations/{location}.

urlList UrlList

Required. UrlList resource to be created.

urlListId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationUrlListOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
UrlList urlList = new UrlList();
string urlListId = "";
// Make the request
Operation<UrlList, OperationMetadata> response = await networkSecurityClient.CreateUrlListAsync(parent, urlList, urlListId);

// Poll until the returned long-running operation is complete
Operation<UrlList, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UrlList result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UrlList, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateUrlListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UrlList retrievedResult = retrievedResponse.Result;
}

CreateUrlListAsync(LocationName, UrlList, string, CancellationToken)

public virtual Task<Operation<UrlList, OperationMetadata>> CreateUrlListAsync(LocationName parent, UrlList urlList, string urlListId, CancellationToken cancellationToken)

Creates a new UrlList in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the UrlList. Must be in the format projects/*/locations/{location}.

urlList UrlList

Required. UrlList resource to be created.

urlListId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationUrlListOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
UrlList urlList = new UrlList();
string urlListId = "";
// Make the request
Operation<UrlList, OperationMetadata> response = await networkSecurityClient.CreateUrlListAsync(parent, urlList, urlListId);

// Poll until the returned long-running operation is complete
Operation<UrlList, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UrlList result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UrlList, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateUrlListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UrlList retrievedResult = retrievedResponse.Result;
}

CreateUrlListAsync(CreateUrlListRequest, CallSettings)

public virtual Task<Operation<UrlList, OperationMetadata>> CreateUrlListAsync(CreateUrlListRequest request, CallSettings callSettings = null)

Creates a new UrlList in a given project and location.

Parameters
Name Description
request CreateUrlListRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationUrlListOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
CreateUrlListRequest request = new CreateUrlListRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    UrlListId = "",
    UrlList = new UrlList(),
};
// Make the request
Operation<UrlList, OperationMetadata> response = await networkSecurityClient.CreateUrlListAsync(request);

// Poll until the returned long-running operation is complete
Operation<UrlList, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UrlList result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UrlList, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateUrlListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UrlList retrievedResult = retrievedResponse.Result;
}

CreateUrlListAsync(CreateUrlListRequest, CancellationToken)

public virtual Task<Operation<UrlList, OperationMetadata>> CreateUrlListAsync(CreateUrlListRequest request, CancellationToken cancellationToken)

Creates a new UrlList in a given project and location.

Parameters
Name Description
request CreateUrlListRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationUrlListOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
CreateUrlListRequest request = new CreateUrlListRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    UrlListId = "",
    UrlList = new UrlList(),
};
// Make the request
Operation<UrlList, OperationMetadata> response = await networkSecurityClient.CreateUrlListAsync(request);

// Poll until the returned long-running operation is complete
Operation<UrlList, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UrlList result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UrlList, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateUrlListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UrlList retrievedResult = retrievedResponse.Result;
}

CreateUrlListAsync(string, UrlList, string, CallSettings)

public virtual Task<Operation<UrlList, OperationMetadata>> CreateUrlListAsync(string parent, UrlList urlList, string urlListId, CallSettings callSettings = null)

Creates a new UrlList in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the UrlList. Must be in the format projects/*/locations/{location}.

urlList UrlList

Required. UrlList resource to be created.

urlListId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationUrlListOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
UrlList urlList = new UrlList();
string urlListId = "";
// Make the request
Operation<UrlList, OperationMetadata> response = await networkSecurityClient.CreateUrlListAsync(parent, urlList, urlListId);

// Poll until the returned long-running operation is complete
Operation<UrlList, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UrlList result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UrlList, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateUrlListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UrlList retrievedResult = retrievedResponse.Result;
}

CreateUrlListAsync(string, UrlList, string, CancellationToken)

public virtual Task<Operation<UrlList, OperationMetadata>> CreateUrlListAsync(string parent, UrlList urlList, string urlListId, CancellationToken cancellationToken)

Creates a new UrlList in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the UrlList. Must be in the format projects/*/locations/{location}.

urlList UrlList

Required. UrlList resource to be created.

urlListId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationUrlListOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
UrlList urlList = new UrlList();
string urlListId = "";
// Make the request
Operation<UrlList, OperationMetadata> response = await networkSecurityClient.CreateUrlListAsync(parent, urlList, urlListId);

// Poll until the returned long-running operation is complete
Operation<UrlList, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UrlList result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UrlList, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceCreateUrlListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UrlList retrievedResult = retrievedResponse.Result;
}

DeleteAuthorizationPolicy(AuthorizationPolicyName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteAuthorizationPolicy(AuthorizationPolicyName name, CallSettings callSettings = null)

Deletes a single AuthorizationPolicy.

Parameters
Name Description
name AuthorizationPolicyName

Required. A name of the AuthorizationPolicy to delete. Must be in the format projects/{project}/locations/{location}/authorizationPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
AuthorizationPolicyName name = AuthorizationPolicyName.FromProjectLocationAuthorizationPolicy("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteAuthorizationPolicy(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteAuthorizationPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAuthorizationPolicy(DeleteAuthorizationPolicyRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteAuthorizationPolicy(DeleteAuthorizationPolicyRequest request, CallSettings callSettings = null)

Deletes a single AuthorizationPolicy.

Parameters
Name Description
request DeleteAuthorizationPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
DeleteAuthorizationPolicyRequest request = new DeleteAuthorizationPolicyRequest
{
    AuthorizationPolicyName = AuthorizationPolicyName.FromProjectLocationAuthorizationPolicy("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteAuthorizationPolicy(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteAuthorizationPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAuthorizationPolicy(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteAuthorizationPolicy(string name, CallSettings callSettings = null)

Deletes a single AuthorizationPolicy.

Parameters
Name Description
name string

Required. A name of the AuthorizationPolicy to delete. Must be in the format projects/{project}/locations/{location}/authorizationPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/authorizationPolicies/[AUTHORIZATION_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteAuthorizationPolicy(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteAuthorizationPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAuthorizationPolicyAsync(AuthorizationPolicyName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteAuthorizationPolicyAsync(AuthorizationPolicyName name, CallSettings callSettings = null)

Deletes a single AuthorizationPolicy.

Parameters
Name Description
name AuthorizationPolicyName

Required. A name of the AuthorizationPolicy to delete. Must be in the format projects/{project}/locations/{location}/authorizationPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
AuthorizationPolicyName name = AuthorizationPolicyName.FromProjectLocationAuthorizationPolicy("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteAuthorizationPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteAuthorizationPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAuthorizationPolicyAsync(AuthorizationPolicyName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteAuthorizationPolicyAsync(AuthorizationPolicyName name, CancellationToken cancellationToken)

Deletes a single AuthorizationPolicy.

Parameters
Name Description
name AuthorizationPolicyName

Required. A name of the AuthorizationPolicy to delete. Must be in the format projects/{project}/locations/{location}/authorizationPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
AuthorizationPolicyName name = AuthorizationPolicyName.FromProjectLocationAuthorizationPolicy("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteAuthorizationPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteAuthorizationPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAuthorizationPolicyAsync(DeleteAuthorizationPolicyRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteAuthorizationPolicyAsync(DeleteAuthorizationPolicyRequest request, CallSettings callSettings = null)

Deletes a single AuthorizationPolicy.

Parameters
Name Description
request DeleteAuthorizationPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
DeleteAuthorizationPolicyRequest request = new DeleteAuthorizationPolicyRequest
{
    AuthorizationPolicyName = AuthorizationPolicyName.FromProjectLocationAuthorizationPolicy("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteAuthorizationPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteAuthorizationPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAuthorizationPolicyAsync(DeleteAuthorizationPolicyRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteAuthorizationPolicyAsync(DeleteAuthorizationPolicyRequest request, CancellationToken cancellationToken)

Deletes a single AuthorizationPolicy.

Parameters
Name Description
request DeleteAuthorizationPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
DeleteAuthorizationPolicyRequest request = new DeleteAuthorizationPolicyRequest
{
    AuthorizationPolicyName = AuthorizationPolicyName.FromProjectLocationAuthorizationPolicy("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteAuthorizationPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteAuthorizationPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAuthorizationPolicyAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteAuthorizationPolicyAsync(string name, CallSettings callSettings = null)

Deletes a single AuthorizationPolicy.

Parameters
Name Description
name string

Required. A name of the AuthorizationPolicy to delete. Must be in the format projects/{project}/locations/{location}/authorizationPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/authorizationPolicies/[AUTHORIZATION_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteAuthorizationPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteAuthorizationPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAuthorizationPolicyAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteAuthorizationPolicyAsync(string name, CancellationToken cancellationToken)

Deletes a single AuthorizationPolicy.

Parameters
Name Description
name string

Required. A name of the AuthorizationPolicy to delete. Must be in the format projects/{project}/locations/{location}/authorizationPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/authorizationPolicies/[AUTHORIZATION_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteAuthorizationPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteAuthorizationPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAuthzPolicy(AuthzPolicyName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteAuthzPolicy(AuthzPolicyName name, CallSettings callSettings = null)

Deletes a single AuthzPolicy.

Parameters
Name Description
name AuthzPolicyName

Required. The name of the AuthzPolicy resource to delete. Must be in the format projects/{project}/locations/{location}/authzPolicies/{authz_policy}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
AuthzPolicyName name = AuthzPolicyName.FromProjectLocationAuthzPolicy("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteAuthzPolicy(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteAuthzPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAuthzPolicy(DeleteAuthzPolicyRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteAuthzPolicy(DeleteAuthzPolicyRequest request, CallSettings callSettings = null)

Deletes a single AuthzPolicy.

Parameters
Name Description
request DeleteAuthzPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
DeleteAuthzPolicyRequest request = new DeleteAuthzPolicyRequest
{
    AuthzPolicyName = AuthzPolicyName.FromProjectLocationAuthzPolicy("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteAuthzPolicy(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteAuthzPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAuthzPolicy(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteAuthzPolicy(string name, CallSettings callSettings = null)

Deletes a single AuthzPolicy.

Parameters
Name Description
name string

Required. The name of the AuthzPolicy resource to delete. Must be in the format projects/{project}/locations/{location}/authzPolicies/{authz_policy}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/authzPolicies/[AUTHZ_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteAuthzPolicy(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteAuthzPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAuthzPolicyAsync(AuthzPolicyName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteAuthzPolicyAsync(AuthzPolicyName name, CallSettings callSettings = null)

Deletes a single AuthzPolicy.

Parameters
Name Description
name AuthzPolicyName

Required. The name of the AuthzPolicy resource to delete. Must be in the format projects/{project}/locations/{location}/authzPolicies/{authz_policy}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
AuthzPolicyName name = AuthzPolicyName.FromProjectLocationAuthzPolicy("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteAuthzPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteAuthzPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAuthzPolicyAsync(AuthzPolicyName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteAuthzPolicyAsync(AuthzPolicyName name, CancellationToken cancellationToken)

Deletes a single AuthzPolicy.

Parameters
Name Description
name AuthzPolicyName

Required. The name of the AuthzPolicy resource to delete. Must be in the format projects/{project}/locations/{location}/authzPolicies/{authz_policy}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
AuthzPolicyName name = AuthzPolicyName.FromProjectLocationAuthzPolicy("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteAuthzPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteAuthzPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAuthzPolicyAsync(DeleteAuthzPolicyRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteAuthzPolicyAsync(DeleteAuthzPolicyRequest request, CallSettings callSettings = null)

Deletes a single AuthzPolicy.

Parameters
Name Description
request DeleteAuthzPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
DeleteAuthzPolicyRequest request = new DeleteAuthzPolicyRequest
{
    AuthzPolicyName = AuthzPolicyName.FromProjectLocationAuthzPolicy("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteAuthzPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteAuthzPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAuthzPolicyAsync(DeleteAuthzPolicyRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteAuthzPolicyAsync(DeleteAuthzPolicyRequest request, CancellationToken cancellationToken)

Deletes a single AuthzPolicy.

Parameters
Name Description
request DeleteAuthzPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
DeleteAuthzPolicyRequest request = new DeleteAuthzPolicyRequest
{
    AuthzPolicyName = AuthzPolicyName.FromProjectLocationAuthzPolicy("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteAuthzPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteAuthzPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAuthzPolicyAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteAuthzPolicyAsync(string name, CallSettings callSettings = null)

Deletes a single AuthzPolicy.

Parameters
Name Description
name string

Required. The name of the AuthzPolicy resource to delete. Must be in the format projects/{project}/locations/{location}/authzPolicies/{authz_policy}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/authzPolicies/[AUTHZ_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteAuthzPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteAuthzPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAuthzPolicyAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteAuthzPolicyAsync(string name, CancellationToken cancellationToken)

Deletes a single AuthzPolicy.

Parameters
Name Description
name string

Required. The name of the AuthzPolicy resource to delete. Must be in the format projects/{project}/locations/{location}/authzPolicies/{authz_policy}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/authzPolicies/[AUTHZ_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteAuthzPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteAuthzPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackendAuthenticationConfig(BackendAuthenticationConfigName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteBackendAuthenticationConfig(BackendAuthenticationConfigName name, CallSettings callSettings = null)

Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
name BackendAuthenticationConfigName

Required. A name of the BackendAuthenticationConfig to delete. Must be in the format projects/*/locations/{location}/backendAuthenticationConfigs/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
BackendAuthenticationConfigName name = BackendAuthenticationConfigName.FromProjectLocationBackendAuthenticationConfig("[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]");
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteBackendAuthenticationConfig(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteBackendAuthenticationConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackendAuthenticationConfig(DeleteBackendAuthenticationConfigRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteBackendAuthenticationConfig(DeleteBackendAuthenticationConfigRequest request, CallSettings callSettings = null)

Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
request DeleteBackendAuthenticationConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
DeleteBackendAuthenticationConfigRequest request = new DeleteBackendAuthenticationConfigRequest
{
    BackendAuthenticationConfigName = BackendAuthenticationConfigName.FromProjectLocationBackendAuthenticationConfig("[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]"),
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteBackendAuthenticationConfig(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteBackendAuthenticationConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackendAuthenticationConfig(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteBackendAuthenticationConfig(string name, CallSettings callSettings = null)

Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
name string

Required. A name of the BackendAuthenticationConfig to delete. Must be in the format projects/*/locations/{location}/backendAuthenticationConfigs/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backendAuthenticationConfigs/[BACKEND_AUTHENTICATION_CONFIG]";
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteBackendAuthenticationConfig(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteBackendAuthenticationConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackendAuthenticationConfigAsync(BackendAuthenticationConfigName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackendAuthenticationConfigAsync(BackendAuthenticationConfigName name, CallSettings callSettings = null)

Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
name BackendAuthenticationConfigName

Required. A name of the BackendAuthenticationConfig to delete. Must be in the format projects/*/locations/{location}/backendAuthenticationConfigs/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
BackendAuthenticationConfigName name = BackendAuthenticationConfigName.FromProjectLocationBackendAuthenticationConfig("[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteBackendAuthenticationConfigAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteBackendAuthenticationConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackendAuthenticationConfigAsync(BackendAuthenticationConfigName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackendAuthenticationConfigAsync(BackendAuthenticationConfigName name, CancellationToken cancellationToken)

Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
name BackendAuthenticationConfigName

Required. A name of the BackendAuthenticationConfig to delete. Must be in the format projects/*/locations/{location}/backendAuthenticationConfigs/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
BackendAuthenticationConfigName name = BackendAuthenticationConfigName.FromProjectLocationBackendAuthenticationConfig("[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteBackendAuthenticationConfigAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteBackendAuthenticationConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackendAuthenticationConfigAsync(DeleteBackendAuthenticationConfigRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackendAuthenticationConfigAsync(DeleteBackendAuthenticationConfigRequest request, CallSettings callSettings = null)

Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
request DeleteBackendAuthenticationConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
DeleteBackendAuthenticationConfigRequest request = new DeleteBackendAuthenticationConfigRequest
{
    BackendAuthenticationConfigName = BackendAuthenticationConfigName.FromProjectLocationBackendAuthenticationConfig("[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]"),
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteBackendAuthenticationConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteBackendAuthenticationConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackendAuthenticationConfigAsync(DeleteBackendAuthenticationConfigRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackendAuthenticationConfigAsync(DeleteBackendAuthenticationConfigRequest request, CancellationToken cancellationToken)

Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
request DeleteBackendAuthenticationConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
DeleteBackendAuthenticationConfigRequest request = new DeleteBackendAuthenticationConfigRequest
{
    BackendAuthenticationConfigName = BackendAuthenticationConfigName.FromProjectLocationBackendAuthenticationConfig("[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]"),
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteBackendAuthenticationConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteBackendAuthenticationConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackendAuthenticationConfigAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackendAuthenticationConfigAsync(string name, CallSettings callSettings = null)

Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
name string

Required. A name of the BackendAuthenticationConfig to delete. Must be in the format projects/*/locations/{location}/backendAuthenticationConfigs/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backendAuthenticationConfigs/[BACKEND_AUTHENTICATION_CONFIG]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteBackendAuthenticationConfigAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteBackendAuthenticationConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackendAuthenticationConfigAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackendAuthenticationConfigAsync(string name, CancellationToken cancellationToken)

Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
name string

Required. A name of the BackendAuthenticationConfig to delete. Must be in the format projects/*/locations/{location}/backendAuthenticationConfigs/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backendAuthenticationConfigs/[BACKEND_AUTHENTICATION_CONFIG]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteBackendAuthenticationConfigAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteBackendAuthenticationConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteClientTlsPolicy(ClientTlsPolicyName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteClientTlsPolicy(ClientTlsPolicyName name, CallSettings callSettings = null)

Deletes a single ClientTlsPolicy.

Parameters
Name Description
name ClientTlsPolicyName

Required. A name of the ClientTlsPolicy to delete. Must be in the format projects/*/locations/{location}/clientTlsPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
ClientTlsPolicyName name = ClientTlsPolicyName.FromProjectLocationClientTlsPolicy("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteClientTlsPolicy(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteClientTlsPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteClientTlsPolicy(DeleteClientTlsPolicyRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteClientTlsPolicy(DeleteClientTlsPolicyRequest request, CallSettings callSettings = null)

Deletes a single ClientTlsPolicy.

Parameters
Name Description
request DeleteClientTlsPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
DeleteClientTlsPolicyRequest request = new DeleteClientTlsPolicyRequest
{
    ClientTlsPolicyName = ClientTlsPolicyName.FromProjectLocationClientTlsPolicy("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteClientTlsPolicy(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteClientTlsPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteClientTlsPolicy(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteClientTlsPolicy(string name, CallSettings callSettings = null)

Deletes a single ClientTlsPolicy.

Parameters
Name Description
name string

Required. A name of the ClientTlsPolicy to delete. Must be in the format projects/*/locations/{location}/clientTlsPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/clientTlsPolicies/[CLIENT_TLS_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteClientTlsPolicy(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteClientTlsPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteClientTlsPolicyAsync(ClientTlsPolicyName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteClientTlsPolicyAsync(ClientTlsPolicyName name, CallSettings callSettings = null)

Deletes a single ClientTlsPolicy.

Parameters
Name Description
name ClientTlsPolicyName

Required. A name of the ClientTlsPolicy to delete. Must be in the format projects/*/locations/{location}/clientTlsPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ClientTlsPolicyName name = ClientTlsPolicyName.FromProjectLocationClientTlsPolicy("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteClientTlsPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteClientTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteClientTlsPolicyAsync(ClientTlsPolicyName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteClientTlsPolicyAsync(ClientTlsPolicyName name, CancellationToken cancellationToken)

Deletes a single ClientTlsPolicy.

Parameters
Name Description
name ClientTlsPolicyName

Required. A name of the ClientTlsPolicy to delete. Must be in the format projects/*/locations/{location}/clientTlsPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ClientTlsPolicyName name = ClientTlsPolicyName.FromProjectLocationClientTlsPolicy("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteClientTlsPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteClientTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteClientTlsPolicyAsync(DeleteClientTlsPolicyRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteClientTlsPolicyAsync(DeleteClientTlsPolicyRequest request, CallSettings callSettings = null)

Deletes a single ClientTlsPolicy.

Parameters
Name Description
request DeleteClientTlsPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
DeleteClientTlsPolicyRequest request = new DeleteClientTlsPolicyRequest
{
    ClientTlsPolicyName = ClientTlsPolicyName.FromProjectLocationClientTlsPolicy("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteClientTlsPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteClientTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteClientTlsPolicyAsync(DeleteClientTlsPolicyRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteClientTlsPolicyAsync(DeleteClientTlsPolicyRequest request, CancellationToken cancellationToken)

Deletes a single ClientTlsPolicy.

Parameters
Name Description
request DeleteClientTlsPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
DeleteClientTlsPolicyRequest request = new DeleteClientTlsPolicyRequest
{
    ClientTlsPolicyName = ClientTlsPolicyName.FromProjectLocationClientTlsPolicy("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteClientTlsPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteClientTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteClientTlsPolicyAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteClientTlsPolicyAsync(string name, CallSettings callSettings = null)

Deletes a single ClientTlsPolicy.

Parameters
Name Description
name string

Required. A name of the ClientTlsPolicy to delete. Must be in the format projects/*/locations/{location}/clientTlsPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/clientTlsPolicies/[CLIENT_TLS_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteClientTlsPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteClientTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteClientTlsPolicyAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteClientTlsPolicyAsync(string name, CancellationToken cancellationToken)

Deletes a single ClientTlsPolicy.

Parameters
Name Description
name string

Required. A name of the ClientTlsPolicy to delete. Must be in the format projects/*/locations/{location}/clientTlsPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/clientTlsPolicies/[CLIENT_TLS_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteClientTlsPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteClientTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGatewaySecurityPolicy(DeleteGatewaySecurityPolicyRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGatewaySecurityPolicy(DeleteGatewaySecurityPolicyRequest request, CallSettings callSettings = null)

Deletes a single GatewaySecurityPolicy.

Parameters
Name Description
request DeleteGatewaySecurityPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
DeleteGatewaySecurityPolicyRequest request = new DeleteGatewaySecurityPolicyRequest
{
    GatewaySecurityPolicyName = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteGatewaySecurityPolicy(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteGatewaySecurityPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGatewaySecurityPolicy(GatewaySecurityPolicyName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGatewaySecurityPolicy(GatewaySecurityPolicyName name, CallSettings callSettings = null)

Deletes a single GatewaySecurityPolicy.

Parameters
Name Description
name GatewaySecurityPolicyName

Required. A name of the GatewaySecurityPolicy to delete. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
GatewaySecurityPolicyName name = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteGatewaySecurityPolicy(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteGatewaySecurityPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGatewaySecurityPolicy(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGatewaySecurityPolicy(string name, CallSettings callSettings = null)

Deletes a single GatewaySecurityPolicy.

Parameters
Name Description
name string

Required. A name of the GatewaySecurityPolicy to delete. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/gatewaySecurityPolicies/[GATEWAY_SECURITY_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteGatewaySecurityPolicy(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteGatewaySecurityPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGatewaySecurityPolicyAsync(DeleteGatewaySecurityPolicyRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGatewaySecurityPolicyAsync(DeleteGatewaySecurityPolicyRequest request, CallSettings callSettings = null)

Deletes a single GatewaySecurityPolicy.

Parameters
Name Description
request DeleteGatewaySecurityPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
DeleteGatewaySecurityPolicyRequest request = new DeleteGatewaySecurityPolicyRequest
{
    GatewaySecurityPolicyName = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteGatewaySecurityPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteGatewaySecurityPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGatewaySecurityPolicyAsync(DeleteGatewaySecurityPolicyRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGatewaySecurityPolicyAsync(DeleteGatewaySecurityPolicyRequest request, CancellationToken cancellationToken)

Deletes a single GatewaySecurityPolicy.

Parameters
Name Description
request DeleteGatewaySecurityPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
DeleteGatewaySecurityPolicyRequest request = new DeleteGatewaySecurityPolicyRequest
{
    GatewaySecurityPolicyName = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteGatewaySecurityPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteGatewaySecurityPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGatewaySecurityPolicyAsync(GatewaySecurityPolicyName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGatewaySecurityPolicyAsync(GatewaySecurityPolicyName name, CallSettings callSettings = null)

Deletes a single GatewaySecurityPolicy.

Parameters
Name Description
name GatewaySecurityPolicyName

Required. A name of the GatewaySecurityPolicy to delete. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GatewaySecurityPolicyName name = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteGatewaySecurityPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteGatewaySecurityPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGatewaySecurityPolicyAsync(GatewaySecurityPolicyName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGatewaySecurityPolicyAsync(GatewaySecurityPolicyName name, CancellationToken cancellationToken)

Deletes a single GatewaySecurityPolicy.

Parameters
Name Description
name GatewaySecurityPolicyName

Required. A name of the GatewaySecurityPolicy to delete. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GatewaySecurityPolicyName name = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteGatewaySecurityPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteGatewaySecurityPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGatewaySecurityPolicyAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGatewaySecurityPolicyAsync(string name, CallSettings callSettings = null)

Deletes a single GatewaySecurityPolicy.

Parameters
Name Description
name string

Required. A name of the GatewaySecurityPolicy to delete. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/gatewaySecurityPolicies/[GATEWAY_SECURITY_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteGatewaySecurityPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteGatewaySecurityPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGatewaySecurityPolicyAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGatewaySecurityPolicyAsync(string name, CancellationToken cancellationToken)

Deletes a single GatewaySecurityPolicy.

Parameters
Name Description
name string

Required. A name of the GatewaySecurityPolicy to delete. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/gatewaySecurityPolicies/[GATEWAY_SECURITY_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteGatewaySecurityPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteGatewaySecurityPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGatewaySecurityPolicyRule(DeleteGatewaySecurityPolicyRuleRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGatewaySecurityPolicyRule(DeleteGatewaySecurityPolicyRuleRequest request, CallSettings callSettings = null)

Deletes a single GatewaySecurityPolicyRule.

Parameters
Name Description
request DeleteGatewaySecurityPolicyRuleRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
DeleteGatewaySecurityPolicyRuleRequest request = new DeleteGatewaySecurityPolicyRuleRequest
{
    GatewaySecurityPolicyRuleName = GatewaySecurityPolicyRuleName.FromProjectLocationGatewaySecurityPolicyRule("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteGatewaySecurityPolicyRule(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteGatewaySecurityPolicyRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGatewaySecurityPolicyRule(GatewaySecurityPolicyRuleName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGatewaySecurityPolicyRule(GatewaySecurityPolicyRuleName name, CallSettings callSettings = null)

Deletes a single GatewaySecurityPolicyRule.

Parameters
Name Description
name GatewaySecurityPolicyRuleName

Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
GatewaySecurityPolicyRuleName name = GatewaySecurityPolicyRuleName.FromProjectLocationGatewaySecurityPolicyRule("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]");
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteGatewaySecurityPolicyRule(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteGatewaySecurityPolicyRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGatewaySecurityPolicyRule(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGatewaySecurityPolicyRule(string name, CallSettings callSettings = null)

Deletes a single GatewaySecurityPolicyRule.

Parameters
Name Description
name string

Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/gatewaySecurityPolicies/[GATEWAY_SECURITY_POLICY]/rules/[RULE]";
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteGatewaySecurityPolicyRule(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteGatewaySecurityPolicyRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGatewaySecurityPolicyRuleAsync(DeleteGatewaySecurityPolicyRuleRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGatewaySecurityPolicyRuleAsync(DeleteGatewaySecurityPolicyRuleRequest request, CallSettings callSettings = null)

Deletes a single GatewaySecurityPolicyRule.

Parameters
Name Description
request DeleteGatewaySecurityPolicyRuleRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
DeleteGatewaySecurityPolicyRuleRequest request = new DeleteGatewaySecurityPolicyRuleRequest
{
    GatewaySecurityPolicyRuleName = GatewaySecurityPolicyRuleName.FromProjectLocationGatewaySecurityPolicyRule("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteGatewaySecurityPolicyRuleAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteGatewaySecurityPolicyRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGatewaySecurityPolicyRuleAsync(DeleteGatewaySecurityPolicyRuleRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGatewaySecurityPolicyRuleAsync(DeleteGatewaySecurityPolicyRuleRequest request, CancellationToken cancellationToken)

Deletes a single GatewaySecurityPolicyRule.

Parameters
Name Description
request DeleteGatewaySecurityPolicyRuleRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
DeleteGatewaySecurityPolicyRuleRequest request = new DeleteGatewaySecurityPolicyRuleRequest
{
    GatewaySecurityPolicyRuleName = GatewaySecurityPolicyRuleName.FromProjectLocationGatewaySecurityPolicyRule("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteGatewaySecurityPolicyRuleAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteGatewaySecurityPolicyRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyRuleName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyRuleName name, CallSettings callSettings = null)

Deletes a single GatewaySecurityPolicyRule.

Parameters
Name Description
name GatewaySecurityPolicyRuleName

Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GatewaySecurityPolicyRuleName name = GatewaySecurityPolicyRuleName.FromProjectLocationGatewaySecurityPolicyRule("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteGatewaySecurityPolicyRuleAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteGatewaySecurityPolicyRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyRuleName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyRuleName name, CancellationToken cancellationToken)

Deletes a single GatewaySecurityPolicyRule.

Parameters
Name Description
name GatewaySecurityPolicyRuleName

Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GatewaySecurityPolicyRuleName name = GatewaySecurityPolicyRuleName.FromProjectLocationGatewaySecurityPolicyRule("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteGatewaySecurityPolicyRuleAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteGatewaySecurityPolicyRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGatewaySecurityPolicyRuleAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGatewaySecurityPolicyRuleAsync(string name, CallSettings callSettings = null)

Deletes a single GatewaySecurityPolicyRule.

Parameters
Name Description
name string

Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/gatewaySecurityPolicies/[GATEWAY_SECURITY_POLICY]/rules/[RULE]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteGatewaySecurityPolicyRuleAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteGatewaySecurityPolicyRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGatewaySecurityPolicyRuleAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGatewaySecurityPolicyRuleAsync(string name, CancellationToken cancellationToken)

Deletes a single GatewaySecurityPolicyRule.

Parameters
Name Description
name string

Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/gatewaySecurityPolicies/[GATEWAY_SECURITY_POLICY]/rules/[RULE]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteGatewaySecurityPolicyRuleAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteGatewaySecurityPolicyRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteServerTlsPolicy(DeleteServerTlsPolicyRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteServerTlsPolicy(DeleteServerTlsPolicyRequest request, CallSettings callSettings = null)

Deletes a single ServerTlsPolicy.

Parameters
Name Description
request DeleteServerTlsPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
DeleteServerTlsPolicyRequest request = new DeleteServerTlsPolicyRequest
{
    ServerTlsPolicyName = ServerTlsPolicyName.FromProjectLocationServerTlsPolicy("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteServerTlsPolicy(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteServerTlsPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteServerTlsPolicy(ServerTlsPolicyName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteServerTlsPolicy(ServerTlsPolicyName name, CallSettings callSettings = null)

Deletes a single ServerTlsPolicy.

Parameters
Name Description
name ServerTlsPolicyName

Required. A name of the ServerTlsPolicy to delete. Must be in the format projects/*/locations/{location}/serverTlsPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
ServerTlsPolicyName name = ServerTlsPolicyName.FromProjectLocationServerTlsPolicy("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteServerTlsPolicy(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteServerTlsPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteServerTlsPolicy(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteServerTlsPolicy(string name, CallSettings callSettings = null)

Deletes a single ServerTlsPolicy.

Parameters
Name Description
name string

Required. A name of the ServerTlsPolicy to delete. Must be in the format projects/*/locations/{location}/serverTlsPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serverTlsPolicies/[SERVER_TLS_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteServerTlsPolicy(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteServerTlsPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteServerTlsPolicyAsync(DeleteServerTlsPolicyRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteServerTlsPolicyAsync(DeleteServerTlsPolicyRequest request, CallSettings callSettings = null)

Deletes a single ServerTlsPolicy.

Parameters
Name Description
request DeleteServerTlsPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
DeleteServerTlsPolicyRequest request = new DeleteServerTlsPolicyRequest
{
    ServerTlsPolicyName = ServerTlsPolicyName.FromProjectLocationServerTlsPolicy("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteServerTlsPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteServerTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteServerTlsPolicyAsync(DeleteServerTlsPolicyRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteServerTlsPolicyAsync(DeleteServerTlsPolicyRequest request, CancellationToken cancellationToken)

Deletes a single ServerTlsPolicy.

Parameters
Name Description
request DeleteServerTlsPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
DeleteServerTlsPolicyRequest request = new DeleteServerTlsPolicyRequest
{
    ServerTlsPolicyName = ServerTlsPolicyName.FromProjectLocationServerTlsPolicy("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteServerTlsPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteServerTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteServerTlsPolicyAsync(ServerTlsPolicyName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteServerTlsPolicyAsync(ServerTlsPolicyName name, CallSettings callSettings = null)

Deletes a single ServerTlsPolicy.

Parameters
Name Description
name ServerTlsPolicyName

Required. A name of the ServerTlsPolicy to delete. Must be in the format projects/*/locations/{location}/serverTlsPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ServerTlsPolicyName name = ServerTlsPolicyName.FromProjectLocationServerTlsPolicy("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteServerTlsPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteServerTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteServerTlsPolicyAsync(ServerTlsPolicyName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteServerTlsPolicyAsync(ServerTlsPolicyName name, CancellationToken cancellationToken)

Deletes a single ServerTlsPolicy.

Parameters
Name Description
name ServerTlsPolicyName

Required. A name of the ServerTlsPolicy to delete. Must be in the format projects/*/locations/{location}/serverTlsPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ServerTlsPolicyName name = ServerTlsPolicyName.FromProjectLocationServerTlsPolicy("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteServerTlsPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteServerTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteServerTlsPolicyAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteServerTlsPolicyAsync(string name, CallSettings callSettings = null)

Deletes a single ServerTlsPolicy.

Parameters
Name Description
name string

Required. A name of the ServerTlsPolicy to delete. Must be in the format projects/*/locations/{location}/serverTlsPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serverTlsPolicies/[SERVER_TLS_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteServerTlsPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteServerTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteServerTlsPolicyAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteServerTlsPolicyAsync(string name, CancellationToken cancellationToken)

Deletes a single ServerTlsPolicy.

Parameters
Name Description
name string

Required. A name of the ServerTlsPolicy to delete. Must be in the format projects/*/locations/{location}/serverTlsPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serverTlsPolicies/[SERVER_TLS_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteServerTlsPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteServerTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteTlsInspectionPolicy(DeleteTlsInspectionPolicyRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteTlsInspectionPolicy(DeleteTlsInspectionPolicyRequest request, CallSettings callSettings = null)

Deletes a single TlsInspectionPolicy.

Parameters
Name Description
request DeleteTlsInspectionPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
DeleteTlsInspectionPolicyRequest request = new DeleteTlsInspectionPolicyRequest
{
    TlsInspectionPolicyName = TlsInspectionPolicyName.FromProjectLocationTlsInspectionPolicy("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]"),
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteTlsInspectionPolicy(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteTlsInspectionPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteTlsInspectionPolicy(TlsInspectionPolicyName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteTlsInspectionPolicy(TlsInspectionPolicyName name, CallSettings callSettings = null)

Deletes a single TlsInspectionPolicy.

Parameters
Name Description
name TlsInspectionPolicyName

Required. A name of the TlsInspectionPolicy to delete. Must be in the format projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
TlsInspectionPolicyName name = TlsInspectionPolicyName.FromProjectLocationTlsInspectionPolicy("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteTlsInspectionPolicy(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteTlsInspectionPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteTlsInspectionPolicy(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteTlsInspectionPolicy(string name, CallSettings callSettings = null)

Deletes a single TlsInspectionPolicy.

Parameters
Name Description
name string

Required. A name of the TlsInspectionPolicy to delete. Must be in the format projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/tlsInspectionPolicies/[TLS_INSPECTION_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteTlsInspectionPolicy(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteTlsInspectionPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteTlsInspectionPolicyAsync(DeleteTlsInspectionPolicyRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTlsInspectionPolicyAsync(DeleteTlsInspectionPolicyRequest request, CallSettings callSettings = null)

Deletes a single TlsInspectionPolicy.

Parameters
Name Description
request DeleteTlsInspectionPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
DeleteTlsInspectionPolicyRequest request = new DeleteTlsInspectionPolicyRequest
{
    TlsInspectionPolicyName = TlsInspectionPolicyName.FromProjectLocationTlsInspectionPolicy("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]"),
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteTlsInspectionPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteTlsInspectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteTlsInspectionPolicyAsync(DeleteTlsInspectionPolicyRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTlsInspectionPolicyAsync(DeleteTlsInspectionPolicyRequest request, CancellationToken cancellationToken)

Deletes a single TlsInspectionPolicy.

Parameters
Name Description
request DeleteTlsInspectionPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
DeleteTlsInspectionPolicyRequest request = new DeleteTlsInspectionPolicyRequest
{
    TlsInspectionPolicyName = TlsInspectionPolicyName.FromProjectLocationTlsInspectionPolicy("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]"),
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteTlsInspectionPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteTlsInspectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteTlsInspectionPolicyAsync(TlsInspectionPolicyName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTlsInspectionPolicyAsync(TlsInspectionPolicyName name, CallSettings callSettings = null)

Deletes a single TlsInspectionPolicy.

Parameters
Name Description
name TlsInspectionPolicyName

Required. A name of the TlsInspectionPolicy to delete. Must be in the format projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
TlsInspectionPolicyName name = TlsInspectionPolicyName.FromProjectLocationTlsInspectionPolicy("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteTlsInspectionPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteTlsInspectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteTlsInspectionPolicyAsync(TlsInspectionPolicyName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTlsInspectionPolicyAsync(TlsInspectionPolicyName name, CancellationToken cancellationToken)

Deletes a single TlsInspectionPolicy.

Parameters
Name Description
name TlsInspectionPolicyName

Required. A name of the TlsInspectionPolicy to delete. Must be in the format projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
TlsInspectionPolicyName name = TlsInspectionPolicyName.FromProjectLocationTlsInspectionPolicy("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteTlsInspectionPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteTlsInspectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteTlsInspectionPolicyAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTlsInspectionPolicyAsync(string name, CallSettings callSettings = null)

Deletes a single TlsInspectionPolicy.

Parameters
Name Description
name string

Required. A name of the TlsInspectionPolicy to delete. Must be in the format projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/tlsInspectionPolicies/[TLS_INSPECTION_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteTlsInspectionPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteTlsInspectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteTlsInspectionPolicyAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTlsInspectionPolicyAsync(string name, CancellationToken cancellationToken)

Deletes a single TlsInspectionPolicy.

Parameters
Name Description
name string

Required. A name of the TlsInspectionPolicy to delete. Must be in the format projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/tlsInspectionPolicies/[TLS_INSPECTION_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteTlsInspectionPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteTlsInspectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUrlList(DeleteUrlListRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteUrlList(DeleteUrlListRequest request, CallSettings callSettings = null)

Deletes a single UrlList.

Parameters
Name Description
request DeleteUrlListRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
DeleteUrlListRequest request = new DeleteUrlListRequest
{
    UrlListName = UrlListName.FromProjectLocationUrlList("[PROJECT]", "[LOCATION]", "[URL_LIST]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteUrlList(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteUrlList(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUrlList(UrlListName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteUrlList(UrlListName name, CallSettings callSettings = null)

Deletes a single UrlList.

Parameters
Name Description
name UrlListName

Required. A name of the UrlList to delete. Must be in the format projects/*/locations/{location}/urlLists/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
UrlListName name = UrlListName.FromProjectLocationUrlList("[PROJECT]", "[LOCATION]", "[URL_LIST]");
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteUrlList(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteUrlList(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUrlList(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteUrlList(string name, CallSettings callSettings = null)

Deletes a single UrlList.

Parameters
Name Description
name string

Required. A name of the UrlList to delete. Must be in the format projects/*/locations/{location}/urlLists/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/urlLists/[URL_LIST]";
// Make the request
Operation<Empty, OperationMetadata> response = networkSecurityClient.DeleteUrlList(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceDeleteUrlList(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUrlListAsync(DeleteUrlListRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteUrlListAsync(DeleteUrlListRequest request, CallSettings callSettings = null)

Deletes a single UrlList.

Parameters
Name Description
request DeleteUrlListRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
DeleteUrlListRequest request = new DeleteUrlListRequest
{
    UrlListName = UrlListName.FromProjectLocationUrlList("[PROJECT]", "[LOCATION]", "[URL_LIST]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteUrlListAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteUrlListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUrlListAsync(DeleteUrlListRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteUrlListAsync(DeleteUrlListRequest request, CancellationToken cancellationToken)

Deletes a single UrlList.

Parameters
Name Description
request DeleteUrlListRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
DeleteUrlListRequest request = new DeleteUrlListRequest
{
    UrlListName = UrlListName.FromProjectLocationUrlList("[PROJECT]", "[LOCATION]", "[URL_LIST]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteUrlListAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteUrlListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUrlListAsync(UrlListName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteUrlListAsync(UrlListName name, CallSettings callSettings = null)

Deletes a single UrlList.

Parameters
Name Description
name UrlListName

Required. A name of the UrlList to delete. Must be in the format projects/*/locations/{location}/urlLists/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UrlListName name = UrlListName.FromProjectLocationUrlList("[PROJECT]", "[LOCATION]", "[URL_LIST]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteUrlListAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteUrlListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUrlListAsync(UrlListName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteUrlListAsync(UrlListName name, CancellationToken cancellationToken)

Deletes a single UrlList.

Parameters
Name Description
name UrlListName

Required. A name of the UrlList to delete. Must be in the format projects/*/locations/{location}/urlLists/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UrlListName name = UrlListName.FromProjectLocationUrlList("[PROJECT]", "[LOCATION]", "[URL_LIST]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteUrlListAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteUrlListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUrlListAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteUrlListAsync(string name, CallSettings callSettings = null)

Deletes a single UrlList.

Parameters
Name Description
name string

Required. A name of the UrlList to delete. Must be in the format projects/*/locations/{location}/urlLists/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/urlLists/[URL_LIST]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteUrlListAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteUrlListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUrlListAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteUrlListAsync(string name, CancellationToken cancellationToken)

Deletes a single UrlList.

Parameters
Name Description
name string

Required. A name of the UrlList to delete. Must be in the format projects/*/locations/{location}/urlLists/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/urlLists/[URL_LIST]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkSecurityClient.DeleteUrlListAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceDeleteUrlListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

GetAuthorizationPolicy(AuthorizationPolicyName, CallSettings)

public virtual AuthorizationPolicy GetAuthorizationPolicy(AuthorizationPolicyName name, CallSettings callSettings = null)

Gets details of a single AuthorizationPolicy.

Parameters
Name Description
name AuthorizationPolicyName

Required. A name of the AuthorizationPolicy to get. Must be in the format projects/{project}/locations/{location}/authorizationPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AuthorizationPolicy

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
AuthorizationPolicyName name = AuthorizationPolicyName.FromProjectLocationAuthorizationPolicy("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]");
// Make the request
AuthorizationPolicy response = networkSecurityClient.GetAuthorizationPolicy(name);

GetAuthorizationPolicy(GetAuthorizationPolicyRequest, CallSettings)

public virtual AuthorizationPolicy GetAuthorizationPolicy(GetAuthorizationPolicyRequest request, CallSettings callSettings = null)

Gets details of a single AuthorizationPolicy.

Parameters
Name Description
request GetAuthorizationPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AuthorizationPolicy

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
GetAuthorizationPolicyRequest request = new GetAuthorizationPolicyRequest
{
    AuthorizationPolicyName = AuthorizationPolicyName.FromProjectLocationAuthorizationPolicy("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"),
};
// Make the request
AuthorizationPolicy response = networkSecurityClient.GetAuthorizationPolicy(request);

GetAuthorizationPolicy(string, CallSettings)

public virtual AuthorizationPolicy GetAuthorizationPolicy(string name, CallSettings callSettings = null)

Gets details of a single AuthorizationPolicy.

Parameters
Name Description
name string

Required. A name of the AuthorizationPolicy to get. Must be in the format projects/{project}/locations/{location}/authorizationPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AuthorizationPolicy

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/authorizationPolicies/[AUTHORIZATION_POLICY]";
// Make the request
AuthorizationPolicy response = networkSecurityClient.GetAuthorizationPolicy(name);

GetAuthorizationPolicyAsync(AuthorizationPolicyName, CallSettings)

public virtual Task<AuthorizationPolicy> GetAuthorizationPolicyAsync(AuthorizationPolicyName name, CallSettings callSettings = null)

Gets details of a single AuthorizationPolicy.

Parameters
Name Description
name AuthorizationPolicyName

Required. A name of the AuthorizationPolicy to get. Must be in the format projects/{project}/locations/{location}/authorizationPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAuthorizationPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
AuthorizationPolicyName name = AuthorizationPolicyName.FromProjectLocationAuthorizationPolicy("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]");
// Make the request
AuthorizationPolicy response = await networkSecurityClient.GetAuthorizationPolicyAsync(name);

GetAuthorizationPolicyAsync(AuthorizationPolicyName, CancellationToken)

public virtual Task<AuthorizationPolicy> GetAuthorizationPolicyAsync(AuthorizationPolicyName name, CancellationToken cancellationToken)

Gets details of a single AuthorizationPolicy.

Parameters
Name Description
name AuthorizationPolicyName

Required. A name of the AuthorizationPolicy to get. Must be in the format projects/{project}/locations/{location}/authorizationPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskAuthorizationPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
AuthorizationPolicyName name = AuthorizationPolicyName.FromProjectLocationAuthorizationPolicy("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]");
// Make the request
AuthorizationPolicy response = await networkSecurityClient.GetAuthorizationPolicyAsync(name);

GetAuthorizationPolicyAsync(GetAuthorizationPolicyRequest, CallSettings)

public virtual Task<AuthorizationPolicy> GetAuthorizationPolicyAsync(GetAuthorizationPolicyRequest request, CallSettings callSettings = null)

Gets details of a single AuthorizationPolicy.

Parameters
Name Description
request GetAuthorizationPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAuthorizationPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GetAuthorizationPolicyRequest request = new GetAuthorizationPolicyRequest
{
    AuthorizationPolicyName = AuthorizationPolicyName.FromProjectLocationAuthorizationPolicy("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"),
};
// Make the request
AuthorizationPolicy response = await networkSecurityClient.GetAuthorizationPolicyAsync(request);

GetAuthorizationPolicyAsync(GetAuthorizationPolicyRequest, CancellationToken)

public virtual Task<AuthorizationPolicy> GetAuthorizationPolicyAsync(GetAuthorizationPolicyRequest request, CancellationToken cancellationToken)

Gets details of a single AuthorizationPolicy.

Parameters
Name Description
request GetAuthorizationPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskAuthorizationPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GetAuthorizationPolicyRequest request = new GetAuthorizationPolicyRequest
{
    AuthorizationPolicyName = AuthorizationPolicyName.FromProjectLocationAuthorizationPolicy("[PROJECT]", "[LOCATION]", "[AUTHORIZATION_POLICY]"),
};
// Make the request
AuthorizationPolicy response = await networkSecurityClient.GetAuthorizationPolicyAsync(request);

GetAuthorizationPolicyAsync(string, CallSettings)

public virtual Task<AuthorizationPolicy> GetAuthorizationPolicyAsync(string name, CallSettings callSettings = null)

Gets details of a single AuthorizationPolicy.

Parameters
Name Description
name string

Required. A name of the AuthorizationPolicy to get. Must be in the format projects/{project}/locations/{location}/authorizationPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAuthorizationPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/authorizationPolicies/[AUTHORIZATION_POLICY]";
// Make the request
AuthorizationPolicy response = await networkSecurityClient.GetAuthorizationPolicyAsync(name);

GetAuthorizationPolicyAsync(string, CancellationToken)

public virtual Task<AuthorizationPolicy> GetAuthorizationPolicyAsync(string name, CancellationToken cancellationToken)

Gets details of a single AuthorizationPolicy.

Parameters
Name Description
name string

Required. A name of the AuthorizationPolicy to get. Must be in the format projects/{project}/locations/{location}/authorizationPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskAuthorizationPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/authorizationPolicies/[AUTHORIZATION_POLICY]";
// Make the request
AuthorizationPolicy response = await networkSecurityClient.GetAuthorizationPolicyAsync(name);

GetAuthzPolicy(AuthzPolicyName, CallSettings)

public virtual AuthzPolicy GetAuthzPolicy(AuthzPolicyName name, CallSettings callSettings = null)

Gets details of a single AuthzPolicy.

Parameters
Name Description
name AuthzPolicyName

Required. A name of the AuthzPolicy resource to get. Must be in the format projects/{project}/locations/{location}/authzPolicies/{authz_policy}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AuthzPolicy

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
AuthzPolicyName name = AuthzPolicyName.FromProjectLocationAuthzPolicy("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]");
// Make the request
AuthzPolicy response = networkSecurityClient.GetAuthzPolicy(name);

GetAuthzPolicy(GetAuthzPolicyRequest, CallSettings)

public virtual AuthzPolicy GetAuthzPolicy(GetAuthzPolicyRequest request, CallSettings callSettings = null)

Gets details of a single AuthzPolicy.

Parameters
Name Description
request GetAuthzPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AuthzPolicy

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
GetAuthzPolicyRequest request = new GetAuthzPolicyRequest
{
    AuthzPolicyName = AuthzPolicyName.FromProjectLocationAuthzPolicy("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]"),
};
// Make the request
AuthzPolicy response = networkSecurityClient.GetAuthzPolicy(request);

GetAuthzPolicy(string, CallSettings)

public virtual AuthzPolicy GetAuthzPolicy(string name, CallSettings callSettings = null)

Gets details of a single AuthzPolicy.

Parameters
Name Description
name string

Required. A name of the AuthzPolicy resource to get. Must be in the format projects/{project}/locations/{location}/authzPolicies/{authz_policy}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AuthzPolicy

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/authzPolicies/[AUTHZ_POLICY]";
// Make the request
AuthzPolicy response = networkSecurityClient.GetAuthzPolicy(name);

GetAuthzPolicyAsync(AuthzPolicyName, CallSettings)

public virtual Task<AuthzPolicy> GetAuthzPolicyAsync(AuthzPolicyName name, CallSettings callSettings = null)

Gets details of a single AuthzPolicy.

Parameters
Name Description
name AuthzPolicyName

Required. A name of the AuthzPolicy resource to get. Must be in the format projects/{project}/locations/{location}/authzPolicies/{authz_policy}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAuthzPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
AuthzPolicyName name = AuthzPolicyName.FromProjectLocationAuthzPolicy("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]");
// Make the request
AuthzPolicy response = await networkSecurityClient.GetAuthzPolicyAsync(name);

GetAuthzPolicyAsync(AuthzPolicyName, CancellationToken)

public virtual Task<AuthzPolicy> GetAuthzPolicyAsync(AuthzPolicyName name, CancellationToken cancellationToken)

Gets details of a single AuthzPolicy.

Parameters
Name Description
name AuthzPolicyName

Required. A name of the AuthzPolicy resource to get. Must be in the format projects/{project}/locations/{location}/authzPolicies/{authz_policy}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskAuthzPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
AuthzPolicyName name = AuthzPolicyName.FromProjectLocationAuthzPolicy("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]");
// Make the request
AuthzPolicy response = await networkSecurityClient.GetAuthzPolicyAsync(name);

GetAuthzPolicyAsync(GetAuthzPolicyRequest, CallSettings)

public virtual Task<AuthzPolicy> GetAuthzPolicyAsync(GetAuthzPolicyRequest request, CallSettings callSettings = null)

Gets details of a single AuthzPolicy.

Parameters
Name Description
request GetAuthzPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAuthzPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GetAuthzPolicyRequest request = new GetAuthzPolicyRequest
{
    AuthzPolicyName = AuthzPolicyName.FromProjectLocationAuthzPolicy("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]"),
};
// Make the request
AuthzPolicy response = await networkSecurityClient.GetAuthzPolicyAsync(request);

GetAuthzPolicyAsync(GetAuthzPolicyRequest, CancellationToken)

public virtual Task<AuthzPolicy> GetAuthzPolicyAsync(GetAuthzPolicyRequest request, CancellationToken cancellationToken)

Gets details of a single AuthzPolicy.

Parameters
Name Description
request GetAuthzPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskAuthzPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GetAuthzPolicyRequest request = new GetAuthzPolicyRequest
{
    AuthzPolicyName = AuthzPolicyName.FromProjectLocationAuthzPolicy("[PROJECT]", "[LOCATION]", "[AUTHZ_POLICY]"),
};
// Make the request
AuthzPolicy response = await networkSecurityClient.GetAuthzPolicyAsync(request);

GetAuthzPolicyAsync(string, CallSettings)

public virtual Task<AuthzPolicy> GetAuthzPolicyAsync(string name, CallSettings callSettings = null)

Gets details of a single AuthzPolicy.

Parameters
Name Description
name string

Required. A name of the AuthzPolicy resource to get. Must be in the format projects/{project}/locations/{location}/authzPolicies/{authz_policy}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAuthzPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/authzPolicies/[AUTHZ_POLICY]";
// Make the request
AuthzPolicy response = await networkSecurityClient.GetAuthzPolicyAsync(name);

GetAuthzPolicyAsync(string, CancellationToken)

public virtual Task<AuthzPolicy> GetAuthzPolicyAsync(string name, CancellationToken cancellationToken)

Gets details of a single AuthzPolicy.

Parameters
Name Description
name string

Required. A name of the AuthzPolicy resource to get. Must be in the format projects/{project}/locations/{location}/authzPolicies/{authz_policy}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskAuthzPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/authzPolicies/[AUTHZ_POLICY]";
// Make the request
AuthzPolicy response = await networkSecurityClient.GetAuthzPolicyAsync(name);

GetBackendAuthenticationConfig(BackendAuthenticationConfigName, CallSettings)

public virtual BackendAuthenticationConfig GetBackendAuthenticationConfig(BackendAuthenticationConfigName name, CallSettings callSettings = null)

Gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
name BackendAuthenticationConfigName

Required. A name of the BackendAuthenticationConfig to get. Must be in the format projects/*/locations/{location}/backendAuthenticationConfigs/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BackendAuthenticationConfig

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
BackendAuthenticationConfigName name = BackendAuthenticationConfigName.FromProjectLocationBackendAuthenticationConfig("[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]");
// Make the request
BackendAuthenticationConfig response = networkSecurityClient.GetBackendAuthenticationConfig(name);

GetBackendAuthenticationConfig(GetBackendAuthenticationConfigRequest, CallSettings)

public virtual BackendAuthenticationConfig GetBackendAuthenticationConfig(GetBackendAuthenticationConfigRequest request, CallSettings callSettings = null)

Gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
request GetBackendAuthenticationConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BackendAuthenticationConfig

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
GetBackendAuthenticationConfigRequest request = new GetBackendAuthenticationConfigRequest
{
    BackendAuthenticationConfigName = BackendAuthenticationConfigName.FromProjectLocationBackendAuthenticationConfig("[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]"),
};
// Make the request
BackendAuthenticationConfig response = networkSecurityClient.GetBackendAuthenticationConfig(request);

GetBackendAuthenticationConfig(string, CallSettings)

public virtual BackendAuthenticationConfig GetBackendAuthenticationConfig(string name, CallSettings callSettings = null)

Gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
name string

Required. A name of the BackendAuthenticationConfig to get. Must be in the format projects/*/locations/{location}/backendAuthenticationConfigs/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BackendAuthenticationConfig

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backendAuthenticationConfigs/[BACKEND_AUTHENTICATION_CONFIG]";
// Make the request
BackendAuthenticationConfig response = networkSecurityClient.GetBackendAuthenticationConfig(name);

GetBackendAuthenticationConfigAsync(BackendAuthenticationConfigName, CallSettings)

public virtual Task<BackendAuthenticationConfig> GetBackendAuthenticationConfigAsync(BackendAuthenticationConfigName name, CallSettings callSettings = null)

Gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
name BackendAuthenticationConfigName

Required. A name of the BackendAuthenticationConfig to get. Must be in the format projects/*/locations/{location}/backendAuthenticationConfigs/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBackendAuthenticationConfig

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
BackendAuthenticationConfigName name = BackendAuthenticationConfigName.FromProjectLocationBackendAuthenticationConfig("[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]");
// Make the request
BackendAuthenticationConfig response = await networkSecurityClient.GetBackendAuthenticationConfigAsync(name);

GetBackendAuthenticationConfigAsync(BackendAuthenticationConfigName, CancellationToken)

public virtual Task<BackendAuthenticationConfig> GetBackendAuthenticationConfigAsync(BackendAuthenticationConfigName name, CancellationToken cancellationToken)

Gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
name BackendAuthenticationConfigName

Required. A name of the BackendAuthenticationConfig to get. Must be in the format projects/*/locations/{location}/backendAuthenticationConfigs/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBackendAuthenticationConfig

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
BackendAuthenticationConfigName name = BackendAuthenticationConfigName.FromProjectLocationBackendAuthenticationConfig("[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]");
// Make the request
BackendAuthenticationConfig response = await networkSecurityClient.GetBackendAuthenticationConfigAsync(name);

GetBackendAuthenticationConfigAsync(GetBackendAuthenticationConfigRequest, CallSettings)

public virtual Task<BackendAuthenticationConfig> GetBackendAuthenticationConfigAsync(GetBackendAuthenticationConfigRequest request, CallSettings callSettings = null)

Gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
request GetBackendAuthenticationConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBackendAuthenticationConfig

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GetBackendAuthenticationConfigRequest request = new GetBackendAuthenticationConfigRequest
{
    BackendAuthenticationConfigName = BackendAuthenticationConfigName.FromProjectLocationBackendAuthenticationConfig("[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]"),
};
// Make the request
BackendAuthenticationConfig response = await networkSecurityClient.GetBackendAuthenticationConfigAsync(request);

GetBackendAuthenticationConfigAsync(GetBackendAuthenticationConfigRequest, CancellationToken)

public virtual Task<BackendAuthenticationConfig> GetBackendAuthenticationConfigAsync(GetBackendAuthenticationConfigRequest request, CancellationToken cancellationToken)

Gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
request GetBackendAuthenticationConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBackendAuthenticationConfig

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GetBackendAuthenticationConfigRequest request = new GetBackendAuthenticationConfigRequest
{
    BackendAuthenticationConfigName = BackendAuthenticationConfigName.FromProjectLocationBackendAuthenticationConfig("[PROJECT]", "[LOCATION]", "[BACKEND_AUTHENTICATION_CONFIG]"),
};
// Make the request
BackendAuthenticationConfig response = await networkSecurityClient.GetBackendAuthenticationConfigAsync(request);

GetBackendAuthenticationConfigAsync(string, CallSettings)

public virtual Task<BackendAuthenticationConfig> GetBackendAuthenticationConfigAsync(string name, CallSettings callSettings = null)

Gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
name string

Required. A name of the BackendAuthenticationConfig to get. Must be in the format projects/*/locations/{location}/backendAuthenticationConfigs/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBackendAuthenticationConfig

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backendAuthenticationConfigs/[BACKEND_AUTHENTICATION_CONFIG]";
// Make the request
BackendAuthenticationConfig response = await networkSecurityClient.GetBackendAuthenticationConfigAsync(name);

GetBackendAuthenticationConfigAsync(string, CancellationToken)

public virtual Task<BackendAuthenticationConfig> GetBackendAuthenticationConfigAsync(string name, CancellationToken cancellationToken)

Gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
name string

Required. A name of the BackendAuthenticationConfig to get. Must be in the format projects/*/locations/{location}/backendAuthenticationConfigs/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBackendAuthenticationConfig

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backendAuthenticationConfigs/[BACKEND_AUTHENTICATION_CONFIG]";
// Make the request
BackendAuthenticationConfig response = await networkSecurityClient.GetBackendAuthenticationConfigAsync(name);

GetClientTlsPolicy(ClientTlsPolicyName, CallSettings)

public virtual ClientTlsPolicy GetClientTlsPolicy(ClientTlsPolicyName name, CallSettings callSettings = null)

Gets details of a single ClientTlsPolicy.

Parameters
Name Description
name ClientTlsPolicyName

Required. A name of the ClientTlsPolicy to get. Must be in the format projects/*/locations/{location}/clientTlsPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ClientTlsPolicy

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
ClientTlsPolicyName name = ClientTlsPolicyName.FromProjectLocationClientTlsPolicy("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]");
// Make the request
ClientTlsPolicy response = networkSecurityClient.GetClientTlsPolicy(name);

GetClientTlsPolicy(GetClientTlsPolicyRequest, CallSettings)

public virtual ClientTlsPolicy GetClientTlsPolicy(GetClientTlsPolicyRequest request, CallSettings callSettings = null)

Gets details of a single ClientTlsPolicy.

Parameters
Name Description
request GetClientTlsPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ClientTlsPolicy

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
GetClientTlsPolicyRequest request = new GetClientTlsPolicyRequest
{
    ClientTlsPolicyName = ClientTlsPolicyName.FromProjectLocationClientTlsPolicy("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"),
};
// Make the request
ClientTlsPolicy response = networkSecurityClient.GetClientTlsPolicy(request);

GetClientTlsPolicy(string, CallSettings)

public virtual ClientTlsPolicy GetClientTlsPolicy(string name, CallSettings callSettings = null)

Gets details of a single ClientTlsPolicy.

Parameters
Name Description
name string

Required. A name of the ClientTlsPolicy to get. Must be in the format projects/*/locations/{location}/clientTlsPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ClientTlsPolicy

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/clientTlsPolicies/[CLIENT_TLS_POLICY]";
// Make the request
ClientTlsPolicy response = networkSecurityClient.GetClientTlsPolicy(name);

GetClientTlsPolicyAsync(ClientTlsPolicyName, CallSettings)

public virtual Task<ClientTlsPolicy> GetClientTlsPolicyAsync(ClientTlsPolicyName name, CallSettings callSettings = null)

Gets details of a single ClientTlsPolicy.

Parameters
Name Description
name ClientTlsPolicyName

Required. A name of the ClientTlsPolicy to get. Must be in the format projects/*/locations/{location}/clientTlsPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskClientTlsPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ClientTlsPolicyName name = ClientTlsPolicyName.FromProjectLocationClientTlsPolicy("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]");
// Make the request
ClientTlsPolicy response = await networkSecurityClient.GetClientTlsPolicyAsync(name);

GetClientTlsPolicyAsync(ClientTlsPolicyName, CancellationToken)

public virtual Task<ClientTlsPolicy> GetClientTlsPolicyAsync(ClientTlsPolicyName name, CancellationToken cancellationToken)

Gets details of a single ClientTlsPolicy.

Parameters
Name Description
name ClientTlsPolicyName

Required. A name of the ClientTlsPolicy to get. Must be in the format projects/*/locations/{location}/clientTlsPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskClientTlsPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ClientTlsPolicyName name = ClientTlsPolicyName.FromProjectLocationClientTlsPolicy("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]");
// Make the request
ClientTlsPolicy response = await networkSecurityClient.GetClientTlsPolicyAsync(name);

GetClientTlsPolicyAsync(GetClientTlsPolicyRequest, CallSettings)

public virtual Task<ClientTlsPolicy> GetClientTlsPolicyAsync(GetClientTlsPolicyRequest request, CallSettings callSettings = null)

Gets details of a single ClientTlsPolicy.

Parameters
Name Description
request GetClientTlsPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskClientTlsPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GetClientTlsPolicyRequest request = new GetClientTlsPolicyRequest
{
    ClientTlsPolicyName = ClientTlsPolicyName.FromProjectLocationClientTlsPolicy("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"),
};
// Make the request
ClientTlsPolicy response = await networkSecurityClient.GetClientTlsPolicyAsync(request);

GetClientTlsPolicyAsync(GetClientTlsPolicyRequest, CancellationToken)

public virtual Task<ClientTlsPolicy> GetClientTlsPolicyAsync(GetClientTlsPolicyRequest request, CancellationToken cancellationToken)

Gets details of a single ClientTlsPolicy.

Parameters
Name Description
request GetClientTlsPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskClientTlsPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GetClientTlsPolicyRequest request = new GetClientTlsPolicyRequest
{
    ClientTlsPolicyName = ClientTlsPolicyName.FromProjectLocationClientTlsPolicy("[PROJECT]", "[LOCATION]", "[CLIENT_TLS_POLICY]"),
};
// Make the request
ClientTlsPolicy response = await networkSecurityClient.GetClientTlsPolicyAsync(request);

GetClientTlsPolicyAsync(string, CallSettings)

public virtual Task<ClientTlsPolicy> GetClientTlsPolicyAsync(string name, CallSettings callSettings = null)

Gets details of a single ClientTlsPolicy.

Parameters
Name Description
name string

Required. A name of the ClientTlsPolicy to get. Must be in the format projects/*/locations/{location}/clientTlsPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskClientTlsPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/clientTlsPolicies/[CLIENT_TLS_POLICY]";
// Make the request
ClientTlsPolicy response = await networkSecurityClient.GetClientTlsPolicyAsync(name);

GetClientTlsPolicyAsync(string, CancellationToken)

public virtual Task<ClientTlsPolicy> GetClientTlsPolicyAsync(string name, CancellationToken cancellationToken)

Gets details of a single ClientTlsPolicy.

Parameters
Name Description
name string

Required. A name of the ClientTlsPolicy to get. Must be in the format projects/*/locations/{location}/clientTlsPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskClientTlsPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/clientTlsPolicies/[CLIENT_TLS_POLICY]";
// Make the request
ClientTlsPolicy response = await networkSecurityClient.GetClientTlsPolicyAsync(name);

GetGatewaySecurityPolicy(GatewaySecurityPolicyName, CallSettings)

public virtual GatewaySecurityPolicy GetGatewaySecurityPolicy(GatewaySecurityPolicyName name, CallSettings callSettings = null)

Gets details of a single GatewaySecurityPolicy.

Parameters
Name Description
name GatewaySecurityPolicyName

Required. A name of the GatewaySecurityPolicy to get. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GatewaySecurityPolicy

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
GatewaySecurityPolicyName name = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]");
// Make the request
GatewaySecurityPolicy response = networkSecurityClient.GetGatewaySecurityPolicy(name);

GetGatewaySecurityPolicy(GetGatewaySecurityPolicyRequest, CallSettings)

public virtual GatewaySecurityPolicy GetGatewaySecurityPolicy(GetGatewaySecurityPolicyRequest request, CallSettings callSettings = null)

Gets details of a single GatewaySecurityPolicy.

Parameters
Name Description
request GetGatewaySecurityPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GatewaySecurityPolicy

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
GetGatewaySecurityPolicyRequest request = new GetGatewaySecurityPolicyRequest
{
    GatewaySecurityPolicyName = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"),
};
// Make the request
GatewaySecurityPolicy response = networkSecurityClient.GetGatewaySecurityPolicy(request);

GetGatewaySecurityPolicy(string, CallSettings)

public virtual GatewaySecurityPolicy GetGatewaySecurityPolicy(string name, CallSettings callSettings = null)

Gets details of a single GatewaySecurityPolicy.

Parameters
Name Description
name string

Required. A name of the GatewaySecurityPolicy to get. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GatewaySecurityPolicy

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/gatewaySecurityPolicies/[GATEWAY_SECURITY_POLICY]";
// Make the request
GatewaySecurityPolicy response = networkSecurityClient.GetGatewaySecurityPolicy(name);

GetGatewaySecurityPolicyAsync(GatewaySecurityPolicyName, CallSettings)

public virtual Task<GatewaySecurityPolicy> GetGatewaySecurityPolicyAsync(GatewaySecurityPolicyName name, CallSettings callSettings = null)

Gets details of a single GatewaySecurityPolicy.

Parameters
Name Description
name GatewaySecurityPolicyName

Required. A name of the GatewaySecurityPolicy to get. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGatewaySecurityPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GatewaySecurityPolicyName name = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]");
// Make the request
GatewaySecurityPolicy response = await networkSecurityClient.GetGatewaySecurityPolicyAsync(name);

GetGatewaySecurityPolicyAsync(GatewaySecurityPolicyName, CancellationToken)

public virtual Task<GatewaySecurityPolicy> GetGatewaySecurityPolicyAsync(GatewaySecurityPolicyName name, CancellationToken cancellationToken)

Gets details of a single GatewaySecurityPolicy.

Parameters
Name Description
name GatewaySecurityPolicyName

Required. A name of the GatewaySecurityPolicy to get. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGatewaySecurityPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GatewaySecurityPolicyName name = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]");
// Make the request
GatewaySecurityPolicy response = await networkSecurityClient.GetGatewaySecurityPolicyAsync(name);

GetGatewaySecurityPolicyAsync(GetGatewaySecurityPolicyRequest, CallSettings)

public virtual Task<GatewaySecurityPolicy> GetGatewaySecurityPolicyAsync(GetGatewaySecurityPolicyRequest request, CallSettings callSettings = null)

Gets details of a single GatewaySecurityPolicy.

Parameters
Name Description
request GetGatewaySecurityPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGatewaySecurityPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GetGatewaySecurityPolicyRequest request = new GetGatewaySecurityPolicyRequest
{
    GatewaySecurityPolicyName = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"),
};
// Make the request
GatewaySecurityPolicy response = await networkSecurityClient.GetGatewaySecurityPolicyAsync(request);

GetGatewaySecurityPolicyAsync(GetGatewaySecurityPolicyRequest, CancellationToken)

public virtual Task<GatewaySecurityPolicy> GetGatewaySecurityPolicyAsync(GetGatewaySecurityPolicyRequest request, CancellationToken cancellationToken)

Gets details of a single GatewaySecurityPolicy.

Parameters
Name Description
request GetGatewaySecurityPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGatewaySecurityPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GetGatewaySecurityPolicyRequest request = new GetGatewaySecurityPolicyRequest
{
    GatewaySecurityPolicyName = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"),
};
// Make the request
GatewaySecurityPolicy response = await networkSecurityClient.GetGatewaySecurityPolicyAsync(request);

GetGatewaySecurityPolicyAsync(string, CallSettings)

public virtual Task<GatewaySecurityPolicy> GetGatewaySecurityPolicyAsync(string name, CallSettings callSettings = null)

Gets details of a single GatewaySecurityPolicy.

Parameters
Name Description
name string

Required. A name of the GatewaySecurityPolicy to get. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGatewaySecurityPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/gatewaySecurityPolicies/[GATEWAY_SECURITY_POLICY]";
// Make the request
GatewaySecurityPolicy response = await networkSecurityClient.GetGatewaySecurityPolicyAsync(name);

GetGatewaySecurityPolicyAsync(string, CancellationToken)

public virtual Task<GatewaySecurityPolicy> GetGatewaySecurityPolicyAsync(string name, CancellationToken cancellationToken)

Gets details of a single GatewaySecurityPolicy.

Parameters
Name Description
name string

Required. A name of the GatewaySecurityPolicy to get. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGatewaySecurityPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/gatewaySecurityPolicies/[GATEWAY_SECURITY_POLICY]";
// Make the request
GatewaySecurityPolicy response = await networkSecurityClient.GetGatewaySecurityPolicyAsync(name);

GetGatewaySecurityPolicyRule(GatewaySecurityPolicyRuleName, CallSettings)

public virtual GatewaySecurityPolicyRule GetGatewaySecurityPolicyRule(GatewaySecurityPolicyRuleName name, CallSettings callSettings = null)

Gets details of a single GatewaySecurityPolicyRule.

Parameters
Name Description
name GatewaySecurityPolicyRuleName

Required. The name of the GatewaySecurityPolicyRule to retrieve. Format: projects/{project}/location/{location}/gatewaySecurityPolicies//rules/

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GatewaySecurityPolicyRule

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
GatewaySecurityPolicyRuleName name = GatewaySecurityPolicyRuleName.FromProjectLocationGatewaySecurityPolicyRule("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]");
// Make the request
GatewaySecurityPolicyRule response = networkSecurityClient.GetGatewaySecurityPolicyRule(name);

GetGatewaySecurityPolicyRule(GetGatewaySecurityPolicyRuleRequest, CallSettings)

public virtual GatewaySecurityPolicyRule GetGatewaySecurityPolicyRule(GetGatewaySecurityPolicyRuleRequest request, CallSettings callSettings = null)

Gets details of a single GatewaySecurityPolicyRule.

Parameters
Name Description
request GetGatewaySecurityPolicyRuleRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GatewaySecurityPolicyRule

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
GetGatewaySecurityPolicyRuleRequest request = new GetGatewaySecurityPolicyRuleRequest
{
    GatewaySecurityPolicyRuleName = GatewaySecurityPolicyRuleName.FromProjectLocationGatewaySecurityPolicyRule("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]"),
};
// Make the request
GatewaySecurityPolicyRule response = networkSecurityClient.GetGatewaySecurityPolicyRule(request);

GetGatewaySecurityPolicyRule(string, CallSettings)

public virtual GatewaySecurityPolicyRule GetGatewaySecurityPolicyRule(string name, CallSettings callSettings = null)

Gets details of a single GatewaySecurityPolicyRule.

Parameters
Name Description
name string

Required. The name of the GatewaySecurityPolicyRule to retrieve. Format: projects/{project}/location/{location}/gatewaySecurityPolicies//rules/

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GatewaySecurityPolicyRule

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/gatewaySecurityPolicies/[GATEWAY_SECURITY_POLICY]/rules/[RULE]";
// Make the request
GatewaySecurityPolicyRule response = networkSecurityClient.GetGatewaySecurityPolicyRule(name);

GetGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyRuleName, CallSettings)

public virtual Task<GatewaySecurityPolicyRule> GetGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyRuleName name, CallSettings callSettings = null)

Gets details of a single GatewaySecurityPolicyRule.

Parameters
Name Description
name GatewaySecurityPolicyRuleName

Required. The name of the GatewaySecurityPolicyRule to retrieve. Format: projects/{project}/location/{location}/gatewaySecurityPolicies//rules/

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGatewaySecurityPolicyRule

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GatewaySecurityPolicyRuleName name = GatewaySecurityPolicyRuleName.FromProjectLocationGatewaySecurityPolicyRule("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]");
// Make the request
GatewaySecurityPolicyRule response = await networkSecurityClient.GetGatewaySecurityPolicyRuleAsync(name);

GetGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyRuleName, CancellationToken)

public virtual Task<GatewaySecurityPolicyRule> GetGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyRuleName name, CancellationToken cancellationToken)

Gets details of a single GatewaySecurityPolicyRule.

Parameters
Name Description
name GatewaySecurityPolicyRuleName

Required. The name of the GatewaySecurityPolicyRule to retrieve. Format: projects/{project}/location/{location}/gatewaySecurityPolicies//rules/

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGatewaySecurityPolicyRule

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GatewaySecurityPolicyRuleName name = GatewaySecurityPolicyRuleName.FromProjectLocationGatewaySecurityPolicyRule("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]");
// Make the request
GatewaySecurityPolicyRule response = await networkSecurityClient.GetGatewaySecurityPolicyRuleAsync(name);

GetGatewaySecurityPolicyRuleAsync(GetGatewaySecurityPolicyRuleRequest, CallSettings)

public virtual Task<GatewaySecurityPolicyRule> GetGatewaySecurityPolicyRuleAsync(GetGatewaySecurityPolicyRuleRequest request, CallSettings callSettings = null)

Gets details of a single GatewaySecurityPolicyRule.

Parameters
Name Description
request GetGatewaySecurityPolicyRuleRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGatewaySecurityPolicyRule

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GetGatewaySecurityPolicyRuleRequest request = new GetGatewaySecurityPolicyRuleRequest
{
    GatewaySecurityPolicyRuleName = GatewaySecurityPolicyRuleName.FromProjectLocationGatewaySecurityPolicyRule("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]"),
};
// Make the request
GatewaySecurityPolicyRule response = await networkSecurityClient.GetGatewaySecurityPolicyRuleAsync(request);

GetGatewaySecurityPolicyRuleAsync(GetGatewaySecurityPolicyRuleRequest, CancellationToken)

public virtual Task<GatewaySecurityPolicyRule> GetGatewaySecurityPolicyRuleAsync(GetGatewaySecurityPolicyRuleRequest request, CancellationToken cancellationToken)

Gets details of a single GatewaySecurityPolicyRule.

Parameters
Name Description
request GetGatewaySecurityPolicyRuleRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGatewaySecurityPolicyRule

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GetGatewaySecurityPolicyRuleRequest request = new GetGatewaySecurityPolicyRuleRequest
{
    GatewaySecurityPolicyRuleName = GatewaySecurityPolicyRuleName.FromProjectLocationGatewaySecurityPolicyRule("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]", "[RULE]"),
};
// Make the request
GatewaySecurityPolicyRule response = await networkSecurityClient.GetGatewaySecurityPolicyRuleAsync(request);

GetGatewaySecurityPolicyRuleAsync(string, CallSettings)

public virtual Task<GatewaySecurityPolicyRule> GetGatewaySecurityPolicyRuleAsync(string name, CallSettings callSettings = null)

Gets details of a single GatewaySecurityPolicyRule.

Parameters
Name Description
name string

Required. The name of the GatewaySecurityPolicyRule to retrieve. Format: projects/{project}/location/{location}/gatewaySecurityPolicies//rules/

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGatewaySecurityPolicyRule

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/gatewaySecurityPolicies/[GATEWAY_SECURITY_POLICY]/rules/[RULE]";
// Make the request
GatewaySecurityPolicyRule response = await networkSecurityClient.GetGatewaySecurityPolicyRuleAsync(name);

GetGatewaySecurityPolicyRuleAsync(string, CancellationToken)

public virtual Task<GatewaySecurityPolicyRule> GetGatewaySecurityPolicyRuleAsync(string name, CancellationToken cancellationToken)

Gets details of a single GatewaySecurityPolicyRule.

Parameters
Name Description
name string

Required. The name of the GatewaySecurityPolicyRule to retrieve. Format: projects/{project}/location/{location}/gatewaySecurityPolicies//rules/

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGatewaySecurityPolicyRule

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/gatewaySecurityPolicies/[GATEWAY_SECURITY_POLICY]/rules/[RULE]";
// Make the request
GatewaySecurityPolicyRule response = await networkSecurityClient.GetGatewaySecurityPolicyRuleAsync(name);

GetServerTlsPolicy(GetServerTlsPolicyRequest, CallSettings)

public virtual ServerTlsPolicy GetServerTlsPolicy(GetServerTlsPolicyRequest request, CallSettings callSettings = null)

Gets details of a single ServerTlsPolicy.

Parameters
Name Description
request GetServerTlsPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ServerTlsPolicy

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
GetServerTlsPolicyRequest request = new GetServerTlsPolicyRequest
{
    ServerTlsPolicyName = ServerTlsPolicyName.FromProjectLocationServerTlsPolicy("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"),
};
// Make the request
ServerTlsPolicy response = networkSecurityClient.GetServerTlsPolicy(request);

GetServerTlsPolicy(ServerTlsPolicyName, CallSettings)

public virtual ServerTlsPolicy GetServerTlsPolicy(ServerTlsPolicyName name, CallSettings callSettings = null)

Gets details of a single ServerTlsPolicy.

Parameters
Name Description
name ServerTlsPolicyName

Required. A name of the ServerTlsPolicy to get. Must be in the format projects/*/locations/{location}/serverTlsPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ServerTlsPolicy

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
ServerTlsPolicyName name = ServerTlsPolicyName.FromProjectLocationServerTlsPolicy("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]");
// Make the request
ServerTlsPolicy response = networkSecurityClient.GetServerTlsPolicy(name);

GetServerTlsPolicy(string, CallSettings)

public virtual ServerTlsPolicy GetServerTlsPolicy(string name, CallSettings callSettings = null)

Gets details of a single ServerTlsPolicy.

Parameters
Name Description
name string

Required. A name of the ServerTlsPolicy to get. Must be in the format projects/*/locations/{location}/serverTlsPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ServerTlsPolicy

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serverTlsPolicies/[SERVER_TLS_POLICY]";
// Make the request
ServerTlsPolicy response = networkSecurityClient.GetServerTlsPolicy(name);

GetServerTlsPolicyAsync(GetServerTlsPolicyRequest, CallSettings)

public virtual Task<ServerTlsPolicy> GetServerTlsPolicyAsync(GetServerTlsPolicyRequest request, CallSettings callSettings = null)

Gets details of a single ServerTlsPolicy.

Parameters
Name Description
request GetServerTlsPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskServerTlsPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GetServerTlsPolicyRequest request = new GetServerTlsPolicyRequest
{
    ServerTlsPolicyName = ServerTlsPolicyName.FromProjectLocationServerTlsPolicy("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"),
};
// Make the request
ServerTlsPolicy response = await networkSecurityClient.GetServerTlsPolicyAsync(request);

GetServerTlsPolicyAsync(GetServerTlsPolicyRequest, CancellationToken)

public virtual Task<ServerTlsPolicy> GetServerTlsPolicyAsync(GetServerTlsPolicyRequest request, CancellationToken cancellationToken)

Gets details of a single ServerTlsPolicy.

Parameters
Name Description
request GetServerTlsPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskServerTlsPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GetServerTlsPolicyRequest request = new GetServerTlsPolicyRequest
{
    ServerTlsPolicyName = ServerTlsPolicyName.FromProjectLocationServerTlsPolicy("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]"),
};
// Make the request
ServerTlsPolicy response = await networkSecurityClient.GetServerTlsPolicyAsync(request);

GetServerTlsPolicyAsync(ServerTlsPolicyName, CallSettings)

public virtual Task<ServerTlsPolicy> GetServerTlsPolicyAsync(ServerTlsPolicyName name, CallSettings callSettings = null)

Gets details of a single ServerTlsPolicy.

Parameters
Name Description
name ServerTlsPolicyName

Required. A name of the ServerTlsPolicy to get. Must be in the format projects/*/locations/{location}/serverTlsPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskServerTlsPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ServerTlsPolicyName name = ServerTlsPolicyName.FromProjectLocationServerTlsPolicy("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]");
// Make the request
ServerTlsPolicy response = await networkSecurityClient.GetServerTlsPolicyAsync(name);

GetServerTlsPolicyAsync(ServerTlsPolicyName, CancellationToken)

public virtual Task<ServerTlsPolicy> GetServerTlsPolicyAsync(ServerTlsPolicyName name, CancellationToken cancellationToken)

Gets details of a single ServerTlsPolicy.

Parameters
Name Description
name ServerTlsPolicyName

Required. A name of the ServerTlsPolicy to get. Must be in the format projects/*/locations/{location}/serverTlsPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskServerTlsPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ServerTlsPolicyName name = ServerTlsPolicyName.FromProjectLocationServerTlsPolicy("[PROJECT]", "[LOCATION]", "[SERVER_TLS_POLICY]");
// Make the request
ServerTlsPolicy response = await networkSecurityClient.GetServerTlsPolicyAsync(name);

GetServerTlsPolicyAsync(string, CallSettings)

public virtual Task<ServerTlsPolicy> GetServerTlsPolicyAsync(string name, CallSettings callSettings = null)

Gets details of a single ServerTlsPolicy.

Parameters
Name Description
name string

Required. A name of the ServerTlsPolicy to get. Must be in the format projects/*/locations/{location}/serverTlsPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskServerTlsPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serverTlsPolicies/[SERVER_TLS_POLICY]";
// Make the request
ServerTlsPolicy response = await networkSecurityClient.GetServerTlsPolicyAsync(name);

GetServerTlsPolicyAsync(string, CancellationToken)

public virtual Task<ServerTlsPolicy> GetServerTlsPolicyAsync(string name, CancellationToken cancellationToken)

Gets details of a single ServerTlsPolicy.

Parameters
Name Description
name string

Required. A name of the ServerTlsPolicy to get. Must be in the format projects/*/locations/{location}/serverTlsPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskServerTlsPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serverTlsPolicies/[SERVER_TLS_POLICY]";
// Make the request
ServerTlsPolicy response = await networkSecurityClient.GetServerTlsPolicyAsync(name);

GetTlsInspectionPolicy(GetTlsInspectionPolicyRequest, CallSettings)

public virtual TlsInspectionPolicy GetTlsInspectionPolicy(GetTlsInspectionPolicyRequest request, CallSettings callSettings = null)

Gets details of a single TlsInspectionPolicy.

Parameters
Name Description
request GetTlsInspectionPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TlsInspectionPolicy

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
GetTlsInspectionPolicyRequest request = new GetTlsInspectionPolicyRequest
{
    TlsInspectionPolicyName = TlsInspectionPolicyName.FromProjectLocationTlsInspectionPolicy("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]"),
};
// Make the request
TlsInspectionPolicy response = networkSecurityClient.GetTlsInspectionPolicy(request);

GetTlsInspectionPolicy(TlsInspectionPolicyName, CallSettings)

public virtual TlsInspectionPolicy GetTlsInspectionPolicy(TlsInspectionPolicyName name, CallSettings callSettings = null)

Gets details of a single TlsInspectionPolicy.

Parameters
Name Description
name TlsInspectionPolicyName

Required. A name of the TlsInspectionPolicy to get. Must be in the format projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TlsInspectionPolicy

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
TlsInspectionPolicyName name = TlsInspectionPolicyName.FromProjectLocationTlsInspectionPolicy("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]");
// Make the request
TlsInspectionPolicy response = networkSecurityClient.GetTlsInspectionPolicy(name);

GetTlsInspectionPolicy(string, CallSettings)

public virtual TlsInspectionPolicy GetTlsInspectionPolicy(string name, CallSettings callSettings = null)

Gets details of a single TlsInspectionPolicy.

Parameters
Name Description
name string

Required. A name of the TlsInspectionPolicy to get. Must be in the format projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TlsInspectionPolicy

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/tlsInspectionPolicies/[TLS_INSPECTION_POLICY]";
// Make the request
TlsInspectionPolicy response = networkSecurityClient.GetTlsInspectionPolicy(name);

GetTlsInspectionPolicyAsync(GetTlsInspectionPolicyRequest, CallSettings)

public virtual Task<TlsInspectionPolicy> GetTlsInspectionPolicyAsync(GetTlsInspectionPolicyRequest request, CallSettings callSettings = null)

Gets details of a single TlsInspectionPolicy.

Parameters
Name Description
request GetTlsInspectionPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTlsInspectionPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GetTlsInspectionPolicyRequest request = new GetTlsInspectionPolicyRequest
{
    TlsInspectionPolicyName = TlsInspectionPolicyName.FromProjectLocationTlsInspectionPolicy("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]"),
};
// Make the request
TlsInspectionPolicy response = await networkSecurityClient.GetTlsInspectionPolicyAsync(request);

GetTlsInspectionPolicyAsync(GetTlsInspectionPolicyRequest, CancellationToken)

public virtual Task<TlsInspectionPolicy> GetTlsInspectionPolicyAsync(GetTlsInspectionPolicyRequest request, CancellationToken cancellationToken)

Gets details of a single TlsInspectionPolicy.

Parameters
Name Description
request GetTlsInspectionPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTlsInspectionPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GetTlsInspectionPolicyRequest request = new GetTlsInspectionPolicyRequest
{
    TlsInspectionPolicyName = TlsInspectionPolicyName.FromProjectLocationTlsInspectionPolicy("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]"),
};
// Make the request
TlsInspectionPolicy response = await networkSecurityClient.GetTlsInspectionPolicyAsync(request);

GetTlsInspectionPolicyAsync(TlsInspectionPolicyName, CallSettings)

public virtual Task<TlsInspectionPolicy> GetTlsInspectionPolicyAsync(TlsInspectionPolicyName name, CallSettings callSettings = null)

Gets details of a single TlsInspectionPolicy.

Parameters
Name Description
name TlsInspectionPolicyName

Required. A name of the TlsInspectionPolicy to get. Must be in the format projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTlsInspectionPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
TlsInspectionPolicyName name = TlsInspectionPolicyName.FromProjectLocationTlsInspectionPolicy("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]");
// Make the request
TlsInspectionPolicy response = await networkSecurityClient.GetTlsInspectionPolicyAsync(name);

GetTlsInspectionPolicyAsync(TlsInspectionPolicyName, CancellationToken)

public virtual Task<TlsInspectionPolicy> GetTlsInspectionPolicyAsync(TlsInspectionPolicyName name, CancellationToken cancellationToken)

Gets details of a single TlsInspectionPolicy.

Parameters
Name Description
name TlsInspectionPolicyName

Required. A name of the TlsInspectionPolicy to get. Must be in the format projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTlsInspectionPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
TlsInspectionPolicyName name = TlsInspectionPolicyName.FromProjectLocationTlsInspectionPolicy("[PROJECT]", "[LOCATION]", "[TLS_INSPECTION_POLICY]");
// Make the request
TlsInspectionPolicy response = await networkSecurityClient.GetTlsInspectionPolicyAsync(name);

GetTlsInspectionPolicyAsync(string, CallSettings)

public virtual Task<TlsInspectionPolicy> GetTlsInspectionPolicyAsync(string name, CallSettings callSettings = null)

Gets details of a single TlsInspectionPolicy.

Parameters
Name Description
name string

Required. A name of the TlsInspectionPolicy to get. Must be in the format projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTlsInspectionPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/tlsInspectionPolicies/[TLS_INSPECTION_POLICY]";
// Make the request
TlsInspectionPolicy response = await networkSecurityClient.GetTlsInspectionPolicyAsync(name);

GetTlsInspectionPolicyAsync(string, CancellationToken)

public virtual Task<TlsInspectionPolicy> GetTlsInspectionPolicyAsync(string name, CancellationToken cancellationToken)

Gets details of a single TlsInspectionPolicy.

Parameters
Name Description
name string

Required. A name of the TlsInspectionPolicy to get. Must be in the format projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTlsInspectionPolicy

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/tlsInspectionPolicies/[TLS_INSPECTION_POLICY]";
// Make the request
TlsInspectionPolicy response = await networkSecurityClient.GetTlsInspectionPolicyAsync(name);

GetUrlList(GetUrlListRequest, CallSettings)

public virtual UrlList GetUrlList(GetUrlListRequest request, CallSettings callSettings = null)

Gets details of a single UrlList.

Parameters
Name Description
request GetUrlListRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
UrlList

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
GetUrlListRequest request = new GetUrlListRequest
{
    UrlListName = UrlListName.FromProjectLocationUrlList("[PROJECT]", "[LOCATION]", "[URL_LIST]"),
};
// Make the request
UrlList response = networkSecurityClient.GetUrlList(request);

GetUrlList(UrlListName, CallSettings)

public virtual UrlList GetUrlList(UrlListName name, CallSettings callSettings = null)

Gets details of a single UrlList.

Parameters
Name Description
name UrlListName

Required. A name of the UrlList to get. Must be in the format projects/*/locations/{location}/urlLists/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
UrlList

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
UrlListName name = UrlListName.FromProjectLocationUrlList("[PROJECT]", "[LOCATION]", "[URL_LIST]");
// Make the request
UrlList response = networkSecurityClient.GetUrlList(name);

GetUrlList(string, CallSettings)

public virtual UrlList GetUrlList(string name, CallSettings callSettings = null)

Gets details of a single UrlList.

Parameters
Name Description
name string

Required. A name of the UrlList to get. Must be in the format projects/*/locations/{location}/urlLists/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
UrlList

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/urlLists/[URL_LIST]";
// Make the request
UrlList response = networkSecurityClient.GetUrlList(name);

GetUrlListAsync(GetUrlListRequest, CallSettings)

public virtual Task<UrlList> GetUrlListAsync(GetUrlListRequest request, CallSettings callSettings = null)

Gets details of a single UrlList.

Parameters
Name Description
request GetUrlListRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskUrlList

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GetUrlListRequest request = new GetUrlListRequest
{
    UrlListName = UrlListName.FromProjectLocationUrlList("[PROJECT]", "[LOCATION]", "[URL_LIST]"),
};
// Make the request
UrlList response = await networkSecurityClient.GetUrlListAsync(request);

GetUrlListAsync(GetUrlListRequest, CancellationToken)

public virtual Task<UrlList> GetUrlListAsync(GetUrlListRequest request, CancellationToken cancellationToken)

Gets details of a single UrlList.

Parameters
Name Description
request GetUrlListRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskUrlList

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GetUrlListRequest request = new GetUrlListRequest
{
    UrlListName = UrlListName.FromProjectLocationUrlList("[PROJECT]", "[LOCATION]", "[URL_LIST]"),
};
// Make the request
UrlList response = await networkSecurityClient.GetUrlListAsync(request);

GetUrlListAsync(UrlListName, CallSettings)

public virtual Task<UrlList> GetUrlListAsync(UrlListName name, CallSettings callSettings = null)

Gets details of a single UrlList.

Parameters
Name Description
name UrlListName

Required. A name of the UrlList to get. Must be in the format projects/*/locations/{location}/urlLists/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskUrlList

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UrlListName name = UrlListName.FromProjectLocationUrlList("[PROJECT]", "[LOCATION]", "[URL_LIST]");
// Make the request
UrlList response = await networkSecurityClient.GetUrlListAsync(name);

GetUrlListAsync(UrlListName, CancellationToken)

public virtual Task<UrlList> GetUrlListAsync(UrlListName name, CancellationToken cancellationToken)

Gets details of a single UrlList.

Parameters
Name Description
name UrlListName

Required. A name of the UrlList to get. Must be in the format projects/*/locations/{location}/urlLists/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskUrlList

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UrlListName name = UrlListName.FromProjectLocationUrlList("[PROJECT]", "[LOCATION]", "[URL_LIST]");
// Make the request
UrlList response = await networkSecurityClient.GetUrlListAsync(name);

GetUrlListAsync(string, CallSettings)

public virtual Task<UrlList> GetUrlListAsync(string name, CallSettings callSettings = null)

Gets details of a single UrlList.

Parameters
Name Description
name string

Required. A name of the UrlList to get. Must be in the format projects/*/locations/{location}/urlLists/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskUrlList

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/urlLists/[URL_LIST]";
// Make the request
UrlList response = await networkSecurityClient.GetUrlListAsync(name);

GetUrlListAsync(string, CancellationToken)

public virtual Task<UrlList> GetUrlListAsync(string name, CancellationToken cancellationToken)

Gets details of a single UrlList.

Parameters
Name Description
name string

Required. A name of the UrlList to get. Must be in the format projects/*/locations/{location}/urlLists/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskUrlList

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/urlLists/[URL_LIST]";
// Make the request
UrlList response = await networkSecurityClient.GetUrlListAsync(name);

ListAuthorizationPolicies(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListAuthorizationPoliciesResponse, AuthorizationPolicy> ListAuthorizationPolicies(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists AuthorizationPolicies in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the AuthorizationPolicies should be listed, specified in the format projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListAuthorizationPoliciesResponseAuthorizationPolicy

A pageable sequence of AuthorizationPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListAuthorizationPoliciesResponse, AuthorizationPolicy> response = networkSecurityClient.ListAuthorizationPolicies(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (AuthorizationPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAuthorizationPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AuthorizationPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AuthorizationPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AuthorizationPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAuthorizationPolicies(ListAuthorizationPoliciesRequest, CallSettings)

public virtual PagedEnumerable<ListAuthorizationPoliciesResponse, AuthorizationPolicy> ListAuthorizationPolicies(ListAuthorizationPoliciesRequest request, CallSettings callSettings = null)

Lists AuthorizationPolicies in a given project and location.

Parameters
Name Description
request ListAuthorizationPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListAuthorizationPoliciesResponseAuthorizationPolicy

A pageable sequence of AuthorizationPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
ListAuthorizationPoliciesRequest request = new ListAuthorizationPoliciesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListAuthorizationPoliciesResponse, AuthorizationPolicy> response = networkSecurityClient.ListAuthorizationPolicies(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (AuthorizationPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAuthorizationPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AuthorizationPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AuthorizationPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AuthorizationPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAuthorizationPolicies(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListAuthorizationPoliciesResponse, AuthorizationPolicy> ListAuthorizationPolicies(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists AuthorizationPolicies in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the AuthorizationPolicies should be listed, specified in the format projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListAuthorizationPoliciesResponseAuthorizationPolicy

A pageable sequence of AuthorizationPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListAuthorizationPoliciesResponse, AuthorizationPolicy> response = networkSecurityClient.ListAuthorizationPolicies(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (AuthorizationPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAuthorizationPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AuthorizationPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AuthorizationPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AuthorizationPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAuthorizationPoliciesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListAuthorizationPoliciesResponse, AuthorizationPolicy> ListAuthorizationPoliciesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists AuthorizationPolicies in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the AuthorizationPolicies should be listed, specified in the format projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListAuthorizationPoliciesResponseAuthorizationPolicy

A pageable asynchronous sequence of AuthorizationPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListAuthorizationPoliciesResponse, AuthorizationPolicy> response = networkSecurityClient.ListAuthorizationPoliciesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (AuthorizationPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListAuthorizationPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AuthorizationPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AuthorizationPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AuthorizationPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAuthorizationPoliciesAsync(ListAuthorizationPoliciesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListAuthorizationPoliciesResponse, AuthorizationPolicy> ListAuthorizationPoliciesAsync(ListAuthorizationPoliciesRequest request, CallSettings callSettings = null)

Lists AuthorizationPolicies in a given project and location.

Parameters
Name Description
request ListAuthorizationPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListAuthorizationPoliciesResponseAuthorizationPolicy

A pageable asynchronous sequence of AuthorizationPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ListAuthorizationPoliciesRequest request = new ListAuthorizationPoliciesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListAuthorizationPoliciesResponse, AuthorizationPolicy> response = networkSecurityClient.ListAuthorizationPoliciesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (AuthorizationPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListAuthorizationPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AuthorizationPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AuthorizationPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AuthorizationPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAuthorizationPoliciesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListAuthorizationPoliciesResponse, AuthorizationPolicy> ListAuthorizationPoliciesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists AuthorizationPolicies in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the AuthorizationPolicies should be listed, specified in the format projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListAuthorizationPoliciesResponseAuthorizationPolicy

A pageable asynchronous sequence of AuthorizationPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListAuthorizationPoliciesResponse, AuthorizationPolicy> response = networkSecurityClient.ListAuthorizationPoliciesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (AuthorizationPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListAuthorizationPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AuthorizationPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AuthorizationPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AuthorizationPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAuthzPolicies(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListAuthzPoliciesResponse, AuthzPolicy> ListAuthzPolicies(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists AuthzPolicies in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the AuthzPolicy resources are listed, specified in the following format: projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListAuthzPoliciesResponseAuthzPolicy

A pageable sequence of AuthzPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListAuthzPoliciesResponse, AuthzPolicy> response = networkSecurityClient.ListAuthzPolicies(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (AuthzPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAuthzPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AuthzPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AuthzPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AuthzPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAuthzPolicies(ListAuthzPoliciesRequest, CallSettings)

public virtual PagedEnumerable<ListAuthzPoliciesResponse, AuthzPolicy> ListAuthzPolicies(ListAuthzPoliciesRequest request, CallSettings callSettings = null)

Lists AuthzPolicies in a given project and location.

Parameters
Name Description
request ListAuthzPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListAuthzPoliciesResponseAuthzPolicy

A pageable sequence of AuthzPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
ListAuthzPoliciesRequest request = new ListAuthzPoliciesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListAuthzPoliciesResponse, AuthzPolicy> response = networkSecurityClient.ListAuthzPolicies(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (AuthzPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAuthzPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AuthzPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AuthzPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AuthzPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAuthzPolicies(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListAuthzPoliciesResponse, AuthzPolicy> ListAuthzPolicies(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists AuthzPolicies in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the AuthzPolicy resources are listed, specified in the following format: projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListAuthzPoliciesResponseAuthzPolicy

A pageable sequence of AuthzPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListAuthzPoliciesResponse, AuthzPolicy> response = networkSecurityClient.ListAuthzPolicies(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (AuthzPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAuthzPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AuthzPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AuthzPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AuthzPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAuthzPoliciesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListAuthzPoliciesResponse, AuthzPolicy> ListAuthzPoliciesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists AuthzPolicies in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the AuthzPolicy resources are listed, specified in the following format: projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListAuthzPoliciesResponseAuthzPolicy

A pageable asynchronous sequence of AuthzPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListAuthzPoliciesResponse, AuthzPolicy> response = networkSecurityClient.ListAuthzPoliciesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (AuthzPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListAuthzPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AuthzPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AuthzPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AuthzPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAuthzPoliciesAsync(ListAuthzPoliciesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListAuthzPoliciesResponse, AuthzPolicy> ListAuthzPoliciesAsync(ListAuthzPoliciesRequest request, CallSettings callSettings = null)

Lists AuthzPolicies in a given project and location.

Parameters
Name Description
request ListAuthzPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListAuthzPoliciesResponseAuthzPolicy

A pageable asynchronous sequence of AuthzPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ListAuthzPoliciesRequest request = new ListAuthzPoliciesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListAuthzPoliciesResponse, AuthzPolicy> response = networkSecurityClient.ListAuthzPoliciesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (AuthzPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListAuthzPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AuthzPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AuthzPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AuthzPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAuthzPoliciesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListAuthzPoliciesResponse, AuthzPolicy> ListAuthzPoliciesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists AuthzPolicies in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the AuthzPolicy resources are listed, specified in the following format: projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListAuthzPoliciesResponseAuthzPolicy

A pageable asynchronous sequence of AuthzPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListAuthzPoliciesResponse, AuthzPolicy> response = networkSecurityClient.ListAuthzPoliciesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (AuthzPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListAuthzPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AuthzPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AuthzPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AuthzPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackendAuthenticationConfigs(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListBackendAuthenticationConfigsResponse, BackendAuthenticationConfig> ListBackendAuthenticationConfigs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists BackendAuthenticationConfigs in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the BackendAuthenticationConfigs should be listed, specified in the format projects/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBackendAuthenticationConfigsResponseBackendAuthenticationConfig

A pageable sequence of BackendAuthenticationConfig resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListBackendAuthenticationConfigsResponse, BackendAuthenticationConfig> response = networkSecurityClient.ListBackendAuthenticationConfigs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (BackendAuthenticationConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBackendAuthenticationConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackendAuthenticationConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackendAuthenticationConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackendAuthenticationConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackendAuthenticationConfigs(ListBackendAuthenticationConfigsRequest, CallSettings)

public virtual PagedEnumerable<ListBackendAuthenticationConfigsResponse, BackendAuthenticationConfig> ListBackendAuthenticationConfigs(ListBackendAuthenticationConfigsRequest request, CallSettings callSettings = null)

Lists BackendAuthenticationConfigs in a given project and location.

Parameters
Name Description
request ListBackendAuthenticationConfigsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBackendAuthenticationConfigsResponseBackendAuthenticationConfig

A pageable sequence of BackendAuthenticationConfig resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
ListBackendAuthenticationConfigsRequest request = new ListBackendAuthenticationConfigsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListBackendAuthenticationConfigsResponse, BackendAuthenticationConfig> response = networkSecurityClient.ListBackendAuthenticationConfigs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (BackendAuthenticationConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBackendAuthenticationConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackendAuthenticationConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackendAuthenticationConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackendAuthenticationConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackendAuthenticationConfigs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListBackendAuthenticationConfigsResponse, BackendAuthenticationConfig> ListBackendAuthenticationConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists BackendAuthenticationConfigs in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the BackendAuthenticationConfigs should be listed, specified in the format projects/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBackendAuthenticationConfigsResponseBackendAuthenticationConfig

A pageable sequence of BackendAuthenticationConfig resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListBackendAuthenticationConfigsResponse, BackendAuthenticationConfig> response = networkSecurityClient.ListBackendAuthenticationConfigs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (BackendAuthenticationConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBackendAuthenticationConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackendAuthenticationConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackendAuthenticationConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackendAuthenticationConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackendAuthenticationConfigsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListBackendAuthenticationConfigsResponse, BackendAuthenticationConfig> ListBackendAuthenticationConfigsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists BackendAuthenticationConfigs in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the BackendAuthenticationConfigs should be listed, specified in the format projects/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBackendAuthenticationConfigsResponseBackendAuthenticationConfig

A pageable asynchronous sequence of BackendAuthenticationConfig resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListBackendAuthenticationConfigsResponse, BackendAuthenticationConfig> response = networkSecurityClient.ListBackendAuthenticationConfigsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (BackendAuthenticationConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListBackendAuthenticationConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackendAuthenticationConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackendAuthenticationConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackendAuthenticationConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackendAuthenticationConfigsAsync(ListBackendAuthenticationConfigsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListBackendAuthenticationConfigsResponse, BackendAuthenticationConfig> ListBackendAuthenticationConfigsAsync(ListBackendAuthenticationConfigsRequest request, CallSettings callSettings = null)

Lists BackendAuthenticationConfigs in a given project and location.

Parameters
Name Description
request ListBackendAuthenticationConfigsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBackendAuthenticationConfigsResponseBackendAuthenticationConfig

A pageable asynchronous sequence of BackendAuthenticationConfig resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ListBackendAuthenticationConfigsRequest request = new ListBackendAuthenticationConfigsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListBackendAuthenticationConfigsResponse, BackendAuthenticationConfig> response = networkSecurityClient.ListBackendAuthenticationConfigsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (BackendAuthenticationConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListBackendAuthenticationConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackendAuthenticationConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackendAuthenticationConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackendAuthenticationConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackendAuthenticationConfigsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListBackendAuthenticationConfigsResponse, BackendAuthenticationConfig> ListBackendAuthenticationConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists BackendAuthenticationConfigs in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the BackendAuthenticationConfigs should be listed, specified in the format projects/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBackendAuthenticationConfigsResponseBackendAuthenticationConfig

A pageable asynchronous sequence of BackendAuthenticationConfig resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListBackendAuthenticationConfigsResponse, BackendAuthenticationConfig> response = networkSecurityClient.ListBackendAuthenticationConfigsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (BackendAuthenticationConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListBackendAuthenticationConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackendAuthenticationConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackendAuthenticationConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackendAuthenticationConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListClientTlsPolicies(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListClientTlsPoliciesResponse, ClientTlsPolicy> ListClientTlsPolicies(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ClientTlsPolicies in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the ClientTlsPolicies should be listed, specified in the format projects/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListClientTlsPoliciesResponseClientTlsPolicy

A pageable sequence of ClientTlsPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListClientTlsPoliciesResponse, ClientTlsPolicy> response = networkSecurityClient.ListClientTlsPolicies(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ClientTlsPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListClientTlsPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ClientTlsPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ClientTlsPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ClientTlsPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListClientTlsPolicies(ListClientTlsPoliciesRequest, CallSettings)

public virtual PagedEnumerable<ListClientTlsPoliciesResponse, ClientTlsPolicy> ListClientTlsPolicies(ListClientTlsPoliciesRequest request, CallSettings callSettings = null)

Lists ClientTlsPolicies in a given project and location.

Parameters
Name Description
request ListClientTlsPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListClientTlsPoliciesResponseClientTlsPolicy

A pageable sequence of ClientTlsPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
ListClientTlsPoliciesRequest request = new ListClientTlsPoliciesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListClientTlsPoliciesResponse, ClientTlsPolicy> response = networkSecurityClient.ListClientTlsPolicies(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ClientTlsPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListClientTlsPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ClientTlsPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ClientTlsPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ClientTlsPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListClientTlsPolicies(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListClientTlsPoliciesResponse, ClientTlsPolicy> ListClientTlsPolicies(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ClientTlsPolicies in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the ClientTlsPolicies should be listed, specified in the format projects/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListClientTlsPoliciesResponseClientTlsPolicy

A pageable sequence of ClientTlsPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListClientTlsPoliciesResponse, ClientTlsPolicy> response = networkSecurityClient.ListClientTlsPolicies(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ClientTlsPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListClientTlsPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ClientTlsPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ClientTlsPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ClientTlsPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListClientTlsPoliciesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListClientTlsPoliciesResponse, ClientTlsPolicy> ListClientTlsPoliciesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ClientTlsPolicies in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the ClientTlsPolicies should be listed, specified in the format projects/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListClientTlsPoliciesResponseClientTlsPolicy

A pageable asynchronous sequence of ClientTlsPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListClientTlsPoliciesResponse, ClientTlsPolicy> response = networkSecurityClient.ListClientTlsPoliciesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (ClientTlsPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListClientTlsPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ClientTlsPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ClientTlsPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ClientTlsPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListClientTlsPoliciesAsync(ListClientTlsPoliciesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListClientTlsPoliciesResponse, ClientTlsPolicy> ListClientTlsPoliciesAsync(ListClientTlsPoliciesRequest request, CallSettings callSettings = null)

Lists ClientTlsPolicies in a given project and location.

Parameters
Name Description
request ListClientTlsPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListClientTlsPoliciesResponseClientTlsPolicy

A pageable asynchronous sequence of ClientTlsPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ListClientTlsPoliciesRequest request = new ListClientTlsPoliciesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListClientTlsPoliciesResponse, ClientTlsPolicy> response = networkSecurityClient.ListClientTlsPoliciesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (ClientTlsPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListClientTlsPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ClientTlsPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ClientTlsPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ClientTlsPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListClientTlsPoliciesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListClientTlsPoliciesResponse, ClientTlsPolicy> ListClientTlsPoliciesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ClientTlsPolicies in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the ClientTlsPolicies should be listed, specified in the format projects/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListClientTlsPoliciesResponseClientTlsPolicy

A pageable asynchronous sequence of ClientTlsPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListClientTlsPoliciesResponse, ClientTlsPolicy> response = networkSecurityClient.ListClientTlsPoliciesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (ClientTlsPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListClientTlsPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ClientTlsPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ClientTlsPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ClientTlsPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGatewaySecurityPolicies(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListGatewaySecurityPoliciesResponse, GatewaySecurityPolicy> ListGatewaySecurityPolicies(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GatewaySecurityPolicies in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the GatewaySecurityPolicies should be listed, specified in the format projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGatewaySecurityPoliciesResponseGatewaySecurityPolicy

A pageable sequence of GatewaySecurityPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListGatewaySecurityPoliciesResponse, GatewaySecurityPolicy> response = networkSecurityClient.ListGatewaySecurityPolicies(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (GatewaySecurityPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGatewaySecurityPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GatewaySecurityPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GatewaySecurityPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GatewaySecurityPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGatewaySecurityPolicies(ListGatewaySecurityPoliciesRequest, CallSettings)

public virtual PagedEnumerable<ListGatewaySecurityPoliciesResponse, GatewaySecurityPolicy> ListGatewaySecurityPolicies(ListGatewaySecurityPoliciesRequest request, CallSettings callSettings = null)

Lists GatewaySecurityPolicies in a given project and location.

Parameters
Name Description
request ListGatewaySecurityPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGatewaySecurityPoliciesResponseGatewaySecurityPolicy

A pageable sequence of GatewaySecurityPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
ListGatewaySecurityPoliciesRequest request = new ListGatewaySecurityPoliciesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListGatewaySecurityPoliciesResponse, GatewaySecurityPolicy> response = networkSecurityClient.ListGatewaySecurityPolicies(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (GatewaySecurityPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGatewaySecurityPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GatewaySecurityPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GatewaySecurityPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GatewaySecurityPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGatewaySecurityPolicies(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListGatewaySecurityPoliciesResponse, GatewaySecurityPolicy> ListGatewaySecurityPolicies(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GatewaySecurityPolicies in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the GatewaySecurityPolicies should be listed, specified in the format projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGatewaySecurityPoliciesResponseGatewaySecurityPolicy

A pageable sequence of GatewaySecurityPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListGatewaySecurityPoliciesResponse, GatewaySecurityPolicy> response = networkSecurityClient.ListGatewaySecurityPolicies(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (GatewaySecurityPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGatewaySecurityPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GatewaySecurityPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GatewaySecurityPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GatewaySecurityPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGatewaySecurityPoliciesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGatewaySecurityPoliciesResponse, GatewaySecurityPolicy> ListGatewaySecurityPoliciesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GatewaySecurityPolicies in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the GatewaySecurityPolicies should be listed, specified in the format projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGatewaySecurityPoliciesResponseGatewaySecurityPolicy

A pageable asynchronous sequence of GatewaySecurityPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListGatewaySecurityPoliciesResponse, GatewaySecurityPolicy> response = networkSecurityClient.ListGatewaySecurityPoliciesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (GatewaySecurityPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListGatewaySecurityPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GatewaySecurityPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GatewaySecurityPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GatewaySecurityPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGatewaySecurityPoliciesAsync(ListGatewaySecurityPoliciesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListGatewaySecurityPoliciesResponse, GatewaySecurityPolicy> ListGatewaySecurityPoliciesAsync(ListGatewaySecurityPoliciesRequest request, CallSettings callSettings = null)

Lists GatewaySecurityPolicies in a given project and location.

Parameters
Name Description
request ListGatewaySecurityPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGatewaySecurityPoliciesResponseGatewaySecurityPolicy

A pageable asynchronous sequence of GatewaySecurityPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ListGatewaySecurityPoliciesRequest request = new ListGatewaySecurityPoliciesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListGatewaySecurityPoliciesResponse, GatewaySecurityPolicy> response = networkSecurityClient.ListGatewaySecurityPoliciesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (GatewaySecurityPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListGatewaySecurityPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GatewaySecurityPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GatewaySecurityPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GatewaySecurityPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGatewaySecurityPoliciesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGatewaySecurityPoliciesResponse, GatewaySecurityPolicy> ListGatewaySecurityPoliciesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GatewaySecurityPolicies in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the GatewaySecurityPolicies should be listed, specified in the format projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGatewaySecurityPoliciesResponseGatewaySecurityPolicy

A pageable asynchronous sequence of GatewaySecurityPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListGatewaySecurityPoliciesResponse, GatewaySecurityPolicy> response = networkSecurityClient.ListGatewaySecurityPoliciesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (GatewaySecurityPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListGatewaySecurityPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GatewaySecurityPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GatewaySecurityPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GatewaySecurityPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGatewaySecurityPolicyRules(GatewaySecurityPolicyName, string, int?, CallSettings)

public virtual PagedEnumerable<ListGatewaySecurityPolicyRulesResponse, GatewaySecurityPolicyRule> ListGatewaySecurityPolicyRules(GatewaySecurityPolicyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GatewaySecurityPolicyRules in a given project and location.

Parameters
Name Description
parent GatewaySecurityPolicyName

Required. The project, location and GatewaySecurityPolicy from which the GatewaySecurityPolicyRules should be listed, specified in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGatewaySecurityPolicyRulesResponseGatewaySecurityPolicyRule

A pageable sequence of GatewaySecurityPolicyRule resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
GatewaySecurityPolicyName parent = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]");
// Make the request
PagedEnumerable<ListGatewaySecurityPolicyRulesResponse, GatewaySecurityPolicyRule> response = networkSecurityClient.ListGatewaySecurityPolicyRules(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (GatewaySecurityPolicyRule item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGatewaySecurityPolicyRulesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GatewaySecurityPolicyRule item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GatewaySecurityPolicyRule> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GatewaySecurityPolicyRule item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGatewaySecurityPolicyRules(ListGatewaySecurityPolicyRulesRequest, CallSettings)

public virtual PagedEnumerable<ListGatewaySecurityPolicyRulesResponse, GatewaySecurityPolicyRule> ListGatewaySecurityPolicyRules(ListGatewaySecurityPolicyRulesRequest request, CallSettings callSettings = null)

Lists GatewaySecurityPolicyRules in a given project and location.

Parameters
Name Description
request ListGatewaySecurityPolicyRulesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGatewaySecurityPolicyRulesResponseGatewaySecurityPolicyRule

A pageable sequence of GatewaySecurityPolicyRule resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
ListGatewaySecurityPolicyRulesRequest request = new ListGatewaySecurityPolicyRulesRequest
{
    ParentAsGatewaySecurityPolicyName = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"),
};
// Make the request
PagedEnumerable<ListGatewaySecurityPolicyRulesResponse, GatewaySecurityPolicyRule> response = networkSecurityClient.ListGatewaySecurityPolicyRules(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (GatewaySecurityPolicyRule item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGatewaySecurityPolicyRulesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GatewaySecurityPolicyRule item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GatewaySecurityPolicyRule> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GatewaySecurityPolicyRule item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGatewaySecurityPolicyRules(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListGatewaySecurityPolicyRulesResponse, GatewaySecurityPolicyRule> ListGatewaySecurityPolicyRules(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GatewaySecurityPolicyRules in a given project and location.

Parameters
Name Description
parent string

Required. The project, location and GatewaySecurityPolicy from which the GatewaySecurityPolicyRules should be listed, specified in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGatewaySecurityPolicyRulesResponseGatewaySecurityPolicyRule

A pageable sequence of GatewaySecurityPolicyRule resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/gatewaySecurityPolicies/[GATEWAY_SECURITY_POLICY]";
// Make the request
PagedEnumerable<ListGatewaySecurityPolicyRulesResponse, GatewaySecurityPolicyRule> response = networkSecurityClient.ListGatewaySecurityPolicyRules(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (GatewaySecurityPolicyRule item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGatewaySecurityPolicyRulesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GatewaySecurityPolicyRule item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GatewaySecurityPolicyRule> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GatewaySecurityPolicyRule item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGatewaySecurityPolicyRulesAsync(GatewaySecurityPolicyName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGatewaySecurityPolicyRulesResponse, GatewaySecurityPolicyRule> ListGatewaySecurityPolicyRulesAsync(GatewaySecurityPolicyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GatewaySecurityPolicyRules in a given project and location.

Parameters
Name Description
parent GatewaySecurityPolicyName

Required. The project, location and GatewaySecurityPolicy from which the GatewaySecurityPolicyRules should be listed, specified in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGatewaySecurityPolicyRulesResponseGatewaySecurityPolicyRule

A pageable asynchronous sequence of GatewaySecurityPolicyRule resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GatewaySecurityPolicyName parent = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]");
// Make the request
PagedAsyncEnumerable<ListGatewaySecurityPolicyRulesResponse, GatewaySecurityPolicyRule> response = networkSecurityClient.ListGatewaySecurityPolicyRulesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (GatewaySecurityPolicyRule item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListGatewaySecurityPolicyRulesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GatewaySecurityPolicyRule item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GatewaySecurityPolicyRule> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GatewaySecurityPolicyRule item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGatewaySecurityPolicyRulesAsync(ListGatewaySecurityPolicyRulesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListGatewaySecurityPolicyRulesResponse, GatewaySecurityPolicyRule> ListGatewaySecurityPolicyRulesAsync(ListGatewaySecurityPolicyRulesRequest request, CallSettings callSettings = null)

Lists GatewaySecurityPolicyRules in a given project and location.

Parameters
Name Description
request ListGatewaySecurityPolicyRulesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGatewaySecurityPolicyRulesResponseGatewaySecurityPolicyRule

A pageable asynchronous sequence of GatewaySecurityPolicyRule resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ListGatewaySecurityPolicyRulesRequest request = new ListGatewaySecurityPolicyRulesRequest
{
    ParentAsGatewaySecurityPolicyName = GatewaySecurityPolicyName.FromProjectLocationGatewaySecurityPolicy("[PROJECT]", "[LOCATION]", "[GATEWAY_SECURITY_POLICY]"),
};
// Make the request
PagedAsyncEnumerable<ListGatewaySecurityPolicyRulesResponse, GatewaySecurityPolicyRule> response = networkSecurityClient.ListGatewaySecurityPolicyRulesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (GatewaySecurityPolicyRule item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListGatewaySecurityPolicyRulesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GatewaySecurityPolicyRule item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GatewaySecurityPolicyRule> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GatewaySecurityPolicyRule item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGatewaySecurityPolicyRulesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGatewaySecurityPolicyRulesResponse, GatewaySecurityPolicyRule> ListGatewaySecurityPolicyRulesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GatewaySecurityPolicyRules in a given project and location.

Parameters
Name Description
parent string

Required. The project, location and GatewaySecurityPolicy from which the GatewaySecurityPolicyRules should be listed, specified in the format projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGatewaySecurityPolicyRulesResponseGatewaySecurityPolicyRule

A pageable asynchronous sequence of GatewaySecurityPolicyRule resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/gatewaySecurityPolicies/[GATEWAY_SECURITY_POLICY]";
// Make the request
PagedAsyncEnumerable<ListGatewaySecurityPolicyRulesResponse, GatewaySecurityPolicyRule> response = networkSecurityClient.ListGatewaySecurityPolicyRulesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (GatewaySecurityPolicyRule item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListGatewaySecurityPolicyRulesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GatewaySecurityPolicyRule item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GatewaySecurityPolicyRule> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GatewaySecurityPolicyRule item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListServerTlsPolicies(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListServerTlsPoliciesResponse, ServerTlsPolicy> ListServerTlsPolicies(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ServerTlsPolicies in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the ServerTlsPolicies should be listed, specified in the format projects/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListServerTlsPoliciesResponseServerTlsPolicy

A pageable sequence of ServerTlsPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListServerTlsPoliciesResponse, ServerTlsPolicy> response = networkSecurityClient.ListServerTlsPolicies(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ServerTlsPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListServerTlsPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServerTlsPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ServerTlsPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ServerTlsPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListServerTlsPolicies(ListServerTlsPoliciesRequest, CallSettings)

public virtual PagedEnumerable<ListServerTlsPoliciesResponse, ServerTlsPolicy> ListServerTlsPolicies(ListServerTlsPoliciesRequest request, CallSettings callSettings = null)

Lists ServerTlsPolicies in a given project and location.

Parameters
Name Description
request ListServerTlsPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListServerTlsPoliciesResponseServerTlsPolicy

A pageable sequence of ServerTlsPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
ListServerTlsPoliciesRequest request = new ListServerTlsPoliciesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<ListServerTlsPoliciesResponse, ServerTlsPolicy> response = networkSecurityClient.ListServerTlsPolicies(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ServerTlsPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListServerTlsPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServerTlsPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ServerTlsPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ServerTlsPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListServerTlsPolicies(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListServerTlsPoliciesResponse, ServerTlsPolicy> ListServerTlsPolicies(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ServerTlsPolicies in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the ServerTlsPolicies should be listed, specified in the format projects/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListServerTlsPoliciesResponseServerTlsPolicy

A pageable sequence of ServerTlsPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListServerTlsPoliciesResponse, ServerTlsPolicy> response = networkSecurityClient.ListServerTlsPolicies(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ServerTlsPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListServerTlsPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServerTlsPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ServerTlsPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ServerTlsPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListServerTlsPoliciesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListServerTlsPoliciesResponse, ServerTlsPolicy> ListServerTlsPoliciesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ServerTlsPolicies in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the ServerTlsPolicies should be listed, specified in the format projects/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListServerTlsPoliciesResponseServerTlsPolicy

A pageable asynchronous sequence of ServerTlsPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListServerTlsPoliciesResponse, ServerTlsPolicy> response = networkSecurityClient.ListServerTlsPoliciesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (ServerTlsPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListServerTlsPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServerTlsPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ServerTlsPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ServerTlsPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListServerTlsPoliciesAsync(ListServerTlsPoliciesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListServerTlsPoliciesResponse, ServerTlsPolicy> ListServerTlsPoliciesAsync(ListServerTlsPoliciesRequest request, CallSettings callSettings = null)

Lists ServerTlsPolicies in a given project and location.

Parameters
Name Description
request ListServerTlsPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListServerTlsPoliciesResponseServerTlsPolicy

A pageable asynchronous sequence of ServerTlsPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ListServerTlsPoliciesRequest request = new ListServerTlsPoliciesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<ListServerTlsPoliciesResponse, ServerTlsPolicy> response = networkSecurityClient.ListServerTlsPoliciesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (ServerTlsPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListServerTlsPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServerTlsPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ServerTlsPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ServerTlsPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListServerTlsPoliciesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListServerTlsPoliciesResponse, ServerTlsPolicy> ListServerTlsPoliciesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ServerTlsPolicies in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the ServerTlsPolicies should be listed, specified in the format projects/*/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListServerTlsPoliciesResponseServerTlsPolicy

A pageable asynchronous sequence of ServerTlsPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListServerTlsPoliciesResponse, ServerTlsPolicy> response = networkSecurityClient.ListServerTlsPoliciesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (ServerTlsPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListServerTlsPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServerTlsPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ServerTlsPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ServerTlsPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTlsInspectionPolicies(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListTlsInspectionPoliciesResponse, TlsInspectionPolicy> ListTlsInspectionPolicies(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists TlsInspectionPolicies in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the TlsInspectionPolicies should be listed, specified in the format projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListTlsInspectionPoliciesResponseTlsInspectionPolicy

A pageable sequence of TlsInspectionPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListTlsInspectionPoliciesResponse, TlsInspectionPolicy> response = networkSecurityClient.ListTlsInspectionPolicies(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (TlsInspectionPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTlsInspectionPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TlsInspectionPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TlsInspectionPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TlsInspectionPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTlsInspectionPolicies(ListTlsInspectionPoliciesRequest, CallSettings)

public virtual PagedEnumerable<ListTlsInspectionPoliciesResponse, TlsInspectionPolicy> ListTlsInspectionPolicies(ListTlsInspectionPoliciesRequest request, CallSettings callSettings = null)

Lists TlsInspectionPolicies in a given project and location.

Parameters
Name Description
request ListTlsInspectionPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListTlsInspectionPoliciesResponseTlsInspectionPolicy

A pageable sequence of TlsInspectionPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
ListTlsInspectionPoliciesRequest request = new ListTlsInspectionPoliciesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListTlsInspectionPoliciesResponse, TlsInspectionPolicy> response = networkSecurityClient.ListTlsInspectionPolicies(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (TlsInspectionPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTlsInspectionPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TlsInspectionPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TlsInspectionPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TlsInspectionPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTlsInspectionPolicies(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListTlsInspectionPoliciesResponse, TlsInspectionPolicy> ListTlsInspectionPolicies(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists TlsInspectionPolicies in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the TlsInspectionPolicies should be listed, specified in the format projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListTlsInspectionPoliciesResponseTlsInspectionPolicy

A pageable sequence of TlsInspectionPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListTlsInspectionPoliciesResponse, TlsInspectionPolicy> response = networkSecurityClient.ListTlsInspectionPolicies(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (TlsInspectionPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTlsInspectionPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TlsInspectionPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TlsInspectionPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TlsInspectionPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTlsInspectionPoliciesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListTlsInspectionPoliciesResponse, TlsInspectionPolicy> ListTlsInspectionPoliciesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists TlsInspectionPolicies in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the TlsInspectionPolicies should be listed, specified in the format projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListTlsInspectionPoliciesResponseTlsInspectionPolicy

A pageable asynchronous sequence of TlsInspectionPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListTlsInspectionPoliciesResponse, TlsInspectionPolicy> response = networkSecurityClient.ListTlsInspectionPoliciesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (TlsInspectionPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListTlsInspectionPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TlsInspectionPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TlsInspectionPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TlsInspectionPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTlsInspectionPoliciesAsync(ListTlsInspectionPoliciesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListTlsInspectionPoliciesResponse, TlsInspectionPolicy> ListTlsInspectionPoliciesAsync(ListTlsInspectionPoliciesRequest request, CallSettings callSettings = null)

Lists TlsInspectionPolicies in a given project and location.

Parameters
Name Description
request ListTlsInspectionPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListTlsInspectionPoliciesResponseTlsInspectionPolicy

A pageable asynchronous sequence of TlsInspectionPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ListTlsInspectionPoliciesRequest request = new ListTlsInspectionPoliciesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListTlsInspectionPoliciesResponse, TlsInspectionPolicy> response = networkSecurityClient.ListTlsInspectionPoliciesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (TlsInspectionPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListTlsInspectionPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TlsInspectionPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TlsInspectionPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TlsInspectionPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTlsInspectionPoliciesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListTlsInspectionPoliciesResponse, TlsInspectionPolicy> ListTlsInspectionPoliciesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists TlsInspectionPolicies in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the TlsInspectionPolicies should be listed, specified in the format projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListTlsInspectionPoliciesResponseTlsInspectionPolicy

A pageable asynchronous sequence of TlsInspectionPolicy resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListTlsInspectionPoliciesResponse, TlsInspectionPolicy> response = networkSecurityClient.ListTlsInspectionPoliciesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (TlsInspectionPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListTlsInspectionPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (TlsInspectionPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TlsInspectionPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TlsInspectionPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListUrlLists(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListUrlListsResponse, UrlList> ListUrlLists(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists UrlLists in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the UrlLists should be listed, specified in the format projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListUrlListsResponseUrlList

A pageable sequence of UrlList resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListUrlListsResponse, UrlList> response = networkSecurityClient.ListUrlLists(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (UrlList item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListUrlListsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (UrlList item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UrlList> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UrlList item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListUrlLists(ListUrlListsRequest, CallSettings)

public virtual PagedEnumerable<ListUrlListsResponse, UrlList> ListUrlLists(ListUrlListsRequest request, CallSettings callSettings = null)

Lists UrlLists in a given project and location.

Parameters
Name Description
request ListUrlListsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListUrlListsResponseUrlList

A pageable sequence of UrlList resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
ListUrlListsRequest request = new ListUrlListsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListUrlListsResponse, UrlList> response = networkSecurityClient.ListUrlLists(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (UrlList item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListUrlListsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (UrlList item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UrlList> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UrlList item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListUrlLists(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListUrlListsResponse, UrlList> ListUrlLists(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists UrlLists in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the UrlLists should be listed, specified in the format projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListUrlListsResponseUrlList

A pageable sequence of UrlList resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListUrlListsResponse, UrlList> response = networkSecurityClient.ListUrlLists(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (UrlList item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListUrlListsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (UrlList item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UrlList> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UrlList item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListUrlListsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListUrlListsResponse, UrlList> ListUrlListsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists UrlLists in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the UrlLists should be listed, specified in the format projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListUrlListsResponseUrlList

A pageable asynchronous sequence of UrlList resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListUrlListsResponse, UrlList> response = networkSecurityClient.ListUrlListsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (UrlList item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListUrlListsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (UrlList item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UrlList> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UrlList item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListUrlListsAsync(ListUrlListsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListUrlListsResponse, UrlList> ListUrlListsAsync(ListUrlListsRequest request, CallSettings callSettings = null)

Lists UrlLists in a given project and location.

Parameters
Name Description
request ListUrlListsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListUrlListsResponseUrlList

A pageable asynchronous sequence of UrlList resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ListUrlListsRequest request = new ListUrlListsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListUrlListsResponse, UrlList> response = networkSecurityClient.ListUrlListsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (UrlList item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListUrlListsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (UrlList item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UrlList> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UrlList item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListUrlListsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListUrlListsResponse, UrlList> ListUrlListsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists UrlLists in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the UrlLists should be listed, specified in the format projects/{project}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListUrlListsResponseUrlList

A pageable asynchronous sequence of UrlList resources.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListUrlListsResponse, UrlList> response = networkSecurityClient.ListUrlListsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (UrlList item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListUrlListsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (UrlList item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UrlList> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UrlList item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

PollOnceCreateAuthorizationPolicy(string, CallSettings)

public virtual Operation<AuthorizationPolicy, OperationMetadata> PollOnceCreateAuthorizationPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateAuthorizationPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAuthorizationPolicyOperationMetadata

The result of polling the operation.

PollOnceCreateAuthorizationPolicyAsync(string, CallSettings)

public virtual Task<Operation<AuthorizationPolicy, OperationMetadata>> PollOnceCreateAuthorizationPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateAuthorizationPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAuthorizationPolicyOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateAuthzPolicy(string, CallSettings)

public virtual Operation<AuthzPolicy, OperationMetadata> PollOnceCreateAuthzPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateAuthzPolicy .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAuthzPolicyOperationMetadata

The result of polling the operation.

PollOnceCreateAuthzPolicyAsync(string, CallSettings)

public virtual Task<Operation<AuthzPolicy, OperationMetadata>> PollOnceCreateAuthzPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateAuthzPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAuthzPolicyOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateBackendAuthenticationConfig(string, CallSettings)

public virtual Operation<BackendAuthenticationConfig, OperationMetadata> PollOnceCreateBackendAuthenticationConfig(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateBackendAuthenticationConfig.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackendAuthenticationConfigOperationMetadata

The result of polling the operation.

PollOnceCreateBackendAuthenticationConfigAsync(string, CallSettings)

public virtual Task<Operation<BackendAuthenticationConfig, OperationMetadata>> PollOnceCreateBackendAuthenticationConfigAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateBackendAuthenticationConfig.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackendAuthenticationConfigOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateClientTlsPolicy(string, CallSettings)

public virtual Operation<ClientTlsPolicy, OperationMetadata> PollOnceCreateClientTlsPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateClientTlsPolicy .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationClientTlsPolicyOperationMetadata

The result of polling the operation.

PollOnceCreateClientTlsPolicyAsync(string, CallSettings)

public virtual Task<Operation<ClientTlsPolicy, OperationMetadata>> PollOnceCreateClientTlsPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateClientTlsPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationClientTlsPolicyOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateGatewaySecurityPolicy(string, CallSettings)

public virtual Operation<GatewaySecurityPolicy, OperationMetadata> PollOnceCreateGatewaySecurityPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateGatewaySecurityPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGatewaySecurityPolicyOperationMetadata

The result of polling the operation.

PollOnceCreateGatewaySecurityPolicyAsync(string, CallSettings)

public virtual Task<Operation<GatewaySecurityPolicy, OperationMetadata>> PollOnceCreateGatewaySecurityPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateGatewaySecurityPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGatewaySecurityPolicyOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateGatewaySecurityPolicyRule(string, CallSettings)

public virtual Operation<GatewaySecurityPolicyRule, OperationMetadata> PollOnceCreateGatewaySecurityPolicyRule(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateGatewaySecurityPolicyRule.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGatewaySecurityPolicyRuleOperationMetadata

The result of polling the operation.

PollOnceCreateGatewaySecurityPolicyRuleAsync(string, CallSettings)

public virtual Task<Operation<GatewaySecurityPolicyRule, OperationMetadata>> PollOnceCreateGatewaySecurityPolicyRuleAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateGatewaySecurityPolicyRule.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGatewaySecurityPolicyRuleOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateServerTlsPolicy(string, CallSettings)

public virtual Operation<ServerTlsPolicy, OperationMetadata> PollOnceCreateServerTlsPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateServerTlsPolicy .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationServerTlsPolicyOperationMetadata

The result of polling the operation.

PollOnceCreateServerTlsPolicyAsync(string, CallSettings)

public virtual Task<Operation<ServerTlsPolicy, OperationMetadata>> PollOnceCreateServerTlsPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateServerTlsPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationServerTlsPolicyOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateTlsInspectionPolicy(string, CallSettings)

public virtual Operation<TlsInspectionPolicy, OperationMetadata> PollOnceCreateTlsInspectionPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateTlsInspectionPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTlsInspectionPolicyOperationMetadata

The result of polling the operation.

PollOnceCreateTlsInspectionPolicyAsync(string, CallSettings)

public virtual Task<Operation<TlsInspectionPolicy, OperationMetadata>> PollOnceCreateTlsInspectionPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateTlsInspectionPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTlsInspectionPolicyOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateUrlList(string, CallSettings)

public virtual Operation<UrlList, OperationMetadata> PollOnceCreateUrlList(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateUrlList.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationUrlListOperationMetadata

The result of polling the operation.

PollOnceCreateUrlListAsync(string, CallSettings)

public virtual Task<Operation<UrlList, OperationMetadata>> PollOnceCreateUrlListAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateUrlList.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationUrlListOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteAuthorizationPolicy(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteAuthorizationPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteAuthorizationPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteAuthorizationPolicyAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteAuthorizationPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteAuthorizationPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteAuthzPolicy(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteAuthzPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteAuthzPolicy .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteAuthzPolicyAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteAuthzPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteAuthzPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteBackendAuthenticationConfig(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteBackendAuthenticationConfig(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteBackendAuthenticationConfig.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteBackendAuthenticationConfigAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteBackendAuthenticationConfigAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteBackendAuthenticationConfig.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteClientTlsPolicy(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteClientTlsPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteClientTlsPolicy .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteClientTlsPolicyAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteClientTlsPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteClientTlsPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteGatewaySecurityPolicy(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteGatewaySecurityPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteGatewaySecurityPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteGatewaySecurityPolicyAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteGatewaySecurityPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteGatewaySecurityPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteGatewaySecurityPolicyRule(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteGatewaySecurityPolicyRule(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteGatewaySecurityPolicyRule.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteGatewaySecurityPolicyRuleAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteGatewaySecurityPolicyRuleAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteGatewaySecurityPolicyRule.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteServerTlsPolicy(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteServerTlsPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteServerTlsPolicy .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteServerTlsPolicyAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteServerTlsPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteServerTlsPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteTlsInspectionPolicy(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteTlsInspectionPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteTlsInspectionPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteTlsInspectionPolicyAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteTlsInspectionPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteTlsInspectionPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteUrlList(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteUrlList(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteUrlList.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteUrlListAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteUrlListAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteUrlList.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateAuthorizationPolicy(string, CallSettings)

public virtual Operation<AuthorizationPolicy, OperationMetadata> PollOnceUpdateAuthorizationPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateAuthorizationPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAuthorizationPolicyOperationMetadata

The result of polling the operation.

PollOnceUpdateAuthorizationPolicyAsync(string, CallSettings)

public virtual Task<Operation<AuthorizationPolicy, OperationMetadata>> PollOnceUpdateAuthorizationPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateAuthorizationPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAuthorizationPolicyOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateAuthzPolicy(string, CallSettings)

public virtual Operation<AuthzPolicy, OperationMetadata> PollOnceUpdateAuthzPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateAuthzPolicy .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAuthzPolicyOperationMetadata

The result of polling the operation.

PollOnceUpdateAuthzPolicyAsync(string, CallSettings)

public virtual Task<Operation<AuthzPolicy, OperationMetadata>> PollOnceUpdateAuthzPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateAuthzPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAuthzPolicyOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateBackendAuthenticationConfig(string, CallSettings)

public virtual Operation<BackendAuthenticationConfig, OperationMetadata> PollOnceUpdateBackendAuthenticationConfig(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateBackendAuthenticationConfig.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackendAuthenticationConfigOperationMetadata

The result of polling the operation.

PollOnceUpdateBackendAuthenticationConfigAsync(string, CallSettings)

public virtual Task<Operation<BackendAuthenticationConfig, OperationMetadata>> PollOnceUpdateBackendAuthenticationConfigAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateBackendAuthenticationConfig.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackendAuthenticationConfigOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateClientTlsPolicy(string, CallSettings)

public virtual Operation<ClientTlsPolicy, OperationMetadata> PollOnceUpdateClientTlsPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateClientTlsPolicy .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationClientTlsPolicyOperationMetadata

The result of polling the operation.

PollOnceUpdateClientTlsPolicyAsync(string, CallSettings)

public virtual Task<Operation<ClientTlsPolicy, OperationMetadata>> PollOnceUpdateClientTlsPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateClientTlsPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationClientTlsPolicyOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateGatewaySecurityPolicy(string, CallSettings)

public virtual Operation<GatewaySecurityPolicy, OperationMetadata> PollOnceUpdateGatewaySecurityPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateGatewaySecurityPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGatewaySecurityPolicyOperationMetadata

The result of polling the operation.

PollOnceUpdateGatewaySecurityPolicyAsync(string, CallSettings)

public virtual Task<Operation<GatewaySecurityPolicy, OperationMetadata>> PollOnceUpdateGatewaySecurityPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateGatewaySecurityPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGatewaySecurityPolicyOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateGatewaySecurityPolicyRule(string, CallSettings)

public virtual Operation<GatewaySecurityPolicyRule, OperationMetadata> PollOnceUpdateGatewaySecurityPolicyRule(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateGatewaySecurityPolicyRule.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGatewaySecurityPolicyRuleOperationMetadata

The result of polling the operation.

PollOnceUpdateGatewaySecurityPolicyRuleAsync(string, CallSettings)

public virtual Task<Operation<GatewaySecurityPolicyRule, OperationMetadata>> PollOnceUpdateGatewaySecurityPolicyRuleAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateGatewaySecurityPolicyRule.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGatewaySecurityPolicyRuleOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateServerTlsPolicy(string, CallSettings)

public virtual Operation<ServerTlsPolicy, OperationMetadata> PollOnceUpdateServerTlsPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateServerTlsPolicy .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationServerTlsPolicyOperationMetadata

The result of polling the operation.

PollOnceUpdateServerTlsPolicyAsync(string, CallSettings)

public virtual Task<Operation<ServerTlsPolicy, OperationMetadata>> PollOnceUpdateServerTlsPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateServerTlsPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationServerTlsPolicyOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateTlsInspectionPolicy(string, CallSettings)

public virtual Operation<TlsInspectionPolicy, OperationMetadata> PollOnceUpdateTlsInspectionPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateTlsInspectionPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTlsInspectionPolicyOperationMetadata

The result of polling the operation.

PollOnceUpdateTlsInspectionPolicyAsync(string, CallSettings)

public virtual Task<Operation<TlsInspectionPolicy, OperationMetadata>> PollOnceUpdateTlsInspectionPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateTlsInspectionPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTlsInspectionPolicyOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateUrlList(string, CallSettings)

public virtual Operation<UrlList, OperationMetadata> PollOnceUpdateUrlList(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateUrlList.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationUrlListOperationMetadata

The result of polling the operation.

PollOnceUpdateUrlListAsync(string, CallSettings)

public virtual Task<Operation<UrlList, OperationMetadata>> PollOnceUpdateUrlListAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateUrlList.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationUrlListOperationMetadata

A task representing the result of polling the operation.

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateAuthorizationPolicy(AuthorizationPolicy, FieldMask, CallSettings)

public virtual Operation<AuthorizationPolicy, OperationMetadata> UpdateAuthorizationPolicy(AuthorizationPolicy authorizationPolicy, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single AuthorizationPolicy.

Parameters
Name Description
authorizationPolicy AuthorizationPolicy

Required. Updated AuthorizationPolicy resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAuthorizationPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
AuthorizationPolicy authorizationPolicy = new AuthorizationPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<AuthorizationPolicy, OperationMetadata> response = networkSecurityClient.UpdateAuthorizationPolicy(authorizationPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<AuthorizationPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AuthorizationPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthorizationPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceUpdateAuthorizationPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthorizationPolicy retrievedResult = retrievedResponse.Result;
}

UpdateAuthorizationPolicy(UpdateAuthorizationPolicyRequest, CallSettings)

public virtual Operation<AuthorizationPolicy, OperationMetadata> UpdateAuthorizationPolicy(UpdateAuthorizationPolicyRequest request, CallSettings callSettings = null)

Updates the parameters of a single AuthorizationPolicy.

Parameters
Name Description
request UpdateAuthorizationPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAuthorizationPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
UpdateAuthorizationPolicyRequest request = new UpdateAuthorizationPolicyRequest
{
    UpdateMask = new FieldMask(),
    AuthorizationPolicy = new AuthorizationPolicy(),
};
// Make the request
Operation<AuthorizationPolicy, OperationMetadata> response = networkSecurityClient.UpdateAuthorizationPolicy(request);

// Poll until the returned long-running operation is complete
Operation<AuthorizationPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AuthorizationPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthorizationPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceUpdateAuthorizationPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthorizationPolicy retrievedResult = retrievedResponse.Result;
}

UpdateAuthorizationPolicyAsync(AuthorizationPolicy, FieldMask, CallSettings)

public virtual Task<Operation<AuthorizationPolicy, OperationMetadata>> UpdateAuthorizationPolicyAsync(AuthorizationPolicy authorizationPolicy, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single AuthorizationPolicy.

Parameters
Name Description
authorizationPolicy AuthorizationPolicy

Required. Updated AuthorizationPolicy resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAuthorizationPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
AuthorizationPolicy authorizationPolicy = new AuthorizationPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<AuthorizationPolicy, OperationMetadata> response = await networkSecurityClient.UpdateAuthorizationPolicyAsync(authorizationPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<AuthorizationPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthorizationPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthorizationPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateAuthorizationPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthorizationPolicy retrievedResult = retrievedResponse.Result;
}

UpdateAuthorizationPolicyAsync(AuthorizationPolicy, FieldMask, CancellationToken)

public virtual Task<Operation<AuthorizationPolicy, OperationMetadata>> UpdateAuthorizationPolicyAsync(AuthorizationPolicy authorizationPolicy, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single AuthorizationPolicy.

Parameters
Name Description
authorizationPolicy AuthorizationPolicy

Required. Updated AuthorizationPolicy resource.

updateMask FieldMask

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.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAuthorizationPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
AuthorizationPolicy authorizationPolicy = new AuthorizationPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<AuthorizationPolicy, OperationMetadata> response = await networkSecurityClient.UpdateAuthorizationPolicyAsync(authorizationPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<AuthorizationPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthorizationPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthorizationPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateAuthorizationPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthorizationPolicy retrievedResult = retrievedResponse.Result;
}

UpdateAuthorizationPolicyAsync(UpdateAuthorizationPolicyRequest, CallSettings)

public virtual Task<Operation<AuthorizationPolicy, OperationMetadata>> UpdateAuthorizationPolicyAsync(UpdateAuthorizationPolicyRequest request, CallSettings callSettings = null)

Updates the parameters of a single AuthorizationPolicy.

Parameters
Name Description
request UpdateAuthorizationPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAuthorizationPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UpdateAuthorizationPolicyRequest request = new UpdateAuthorizationPolicyRequest
{
    UpdateMask = new FieldMask(),
    AuthorizationPolicy = new AuthorizationPolicy(),
};
// Make the request
Operation<AuthorizationPolicy, OperationMetadata> response = await networkSecurityClient.UpdateAuthorizationPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<AuthorizationPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthorizationPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthorizationPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateAuthorizationPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthorizationPolicy retrievedResult = retrievedResponse.Result;
}

UpdateAuthorizationPolicyAsync(UpdateAuthorizationPolicyRequest, CancellationToken)

public virtual Task<Operation<AuthorizationPolicy, OperationMetadata>> UpdateAuthorizationPolicyAsync(UpdateAuthorizationPolicyRequest request, CancellationToken cancellationToken)

Updates the parameters of a single AuthorizationPolicy.

Parameters
Name Description
request UpdateAuthorizationPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAuthorizationPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UpdateAuthorizationPolicyRequest request = new UpdateAuthorizationPolicyRequest
{
    UpdateMask = new FieldMask(),
    AuthorizationPolicy = new AuthorizationPolicy(),
};
// Make the request
Operation<AuthorizationPolicy, OperationMetadata> response = await networkSecurityClient.UpdateAuthorizationPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<AuthorizationPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthorizationPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthorizationPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateAuthorizationPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthorizationPolicy retrievedResult = retrievedResponse.Result;
}

UpdateAuthzPolicy(AuthzPolicy, FieldMask, CallSettings)

public virtual Operation<AuthzPolicy, OperationMetadata> UpdateAuthzPolicy(AuthzPolicy authzPolicy, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single AuthzPolicy.

Parameters
Name Description
authzPolicy AuthzPolicy

Required. AuthzPolicy resource being updated.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAuthzPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
AuthzPolicy authzPolicy = new AuthzPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<AuthzPolicy, OperationMetadata> response = networkSecurityClient.UpdateAuthzPolicy(authzPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<AuthzPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AuthzPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthzPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceUpdateAuthzPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthzPolicy retrievedResult = retrievedResponse.Result;
}

UpdateAuthzPolicy(UpdateAuthzPolicyRequest, CallSettings)

public virtual Operation<AuthzPolicy, OperationMetadata> UpdateAuthzPolicy(UpdateAuthzPolicyRequest request, CallSettings callSettings = null)

Updates the parameters of a single AuthzPolicy.

Parameters
Name Description
request UpdateAuthzPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAuthzPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
UpdateAuthzPolicyRequest request = new UpdateAuthzPolicyRequest
{
    UpdateMask = new FieldMask(),
    AuthzPolicy = new AuthzPolicy(),
    RequestId = "",
};
// Make the request
Operation<AuthzPolicy, OperationMetadata> response = networkSecurityClient.UpdateAuthzPolicy(request);

// Poll until the returned long-running operation is complete
Operation<AuthzPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AuthzPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthzPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceUpdateAuthzPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthzPolicy retrievedResult = retrievedResponse.Result;
}

UpdateAuthzPolicyAsync(AuthzPolicy, FieldMask, CallSettings)

public virtual Task<Operation<AuthzPolicy, OperationMetadata>> UpdateAuthzPolicyAsync(AuthzPolicy authzPolicy, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single AuthzPolicy.

Parameters
Name Description
authzPolicy AuthzPolicy

Required. AuthzPolicy resource being updated.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAuthzPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
AuthzPolicy authzPolicy = new AuthzPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<AuthzPolicy, OperationMetadata> response = await networkSecurityClient.UpdateAuthzPolicyAsync(authzPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<AuthzPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthzPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthzPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateAuthzPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthzPolicy retrievedResult = retrievedResponse.Result;
}

UpdateAuthzPolicyAsync(AuthzPolicy, FieldMask, CancellationToken)

public virtual Task<Operation<AuthzPolicy, OperationMetadata>> UpdateAuthzPolicyAsync(AuthzPolicy authzPolicy, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single AuthzPolicy.

Parameters
Name Description
authzPolicy AuthzPolicy

Required. AuthzPolicy resource being updated.

updateMask FieldMask

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.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAuthzPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
AuthzPolicy authzPolicy = new AuthzPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<AuthzPolicy, OperationMetadata> response = await networkSecurityClient.UpdateAuthzPolicyAsync(authzPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<AuthzPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthzPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthzPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateAuthzPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthzPolicy retrievedResult = retrievedResponse.Result;
}

UpdateAuthzPolicyAsync(UpdateAuthzPolicyRequest, CallSettings)

public virtual Task<Operation<AuthzPolicy, OperationMetadata>> UpdateAuthzPolicyAsync(UpdateAuthzPolicyRequest request, CallSettings callSettings = null)

Updates the parameters of a single AuthzPolicy.

Parameters
Name Description
request UpdateAuthzPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAuthzPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UpdateAuthzPolicyRequest request = new UpdateAuthzPolicyRequest
{
    UpdateMask = new FieldMask(),
    AuthzPolicy = new AuthzPolicy(),
    RequestId = "",
};
// Make the request
Operation<AuthzPolicy, OperationMetadata> response = await networkSecurityClient.UpdateAuthzPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<AuthzPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthzPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthzPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateAuthzPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthzPolicy retrievedResult = retrievedResponse.Result;
}

UpdateAuthzPolicyAsync(UpdateAuthzPolicyRequest, CancellationToken)

public virtual Task<Operation<AuthzPolicy, OperationMetadata>> UpdateAuthzPolicyAsync(UpdateAuthzPolicyRequest request, CancellationToken cancellationToken)

Updates the parameters of a single AuthzPolicy.

Parameters
Name Description
request UpdateAuthzPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAuthzPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UpdateAuthzPolicyRequest request = new UpdateAuthzPolicyRequest
{
    UpdateMask = new FieldMask(),
    AuthzPolicy = new AuthzPolicy(),
    RequestId = "",
};
// Make the request
Operation<AuthzPolicy, OperationMetadata> response = await networkSecurityClient.UpdateAuthzPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<AuthzPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AuthzPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AuthzPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateAuthzPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AuthzPolicy retrievedResult = retrievedResponse.Result;
}

UpdateBackendAuthenticationConfig(BackendAuthenticationConfig, FieldMask, CallSettings)

public virtual Operation<BackendAuthenticationConfig, OperationMetadata> UpdateBackendAuthenticationConfig(BackendAuthenticationConfig backendAuthenticationConfig, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
backendAuthenticationConfig BackendAuthenticationConfig

Required. Updated BackendAuthenticationConfig resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackendAuthenticationConfigOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
BackendAuthenticationConfig backendAuthenticationConfig = new BackendAuthenticationConfig();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<BackendAuthenticationConfig, OperationMetadata> response = networkSecurityClient.UpdateBackendAuthenticationConfig(backendAuthenticationConfig, updateMask);

// Poll until the returned long-running operation is complete
Operation<BackendAuthenticationConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackendAuthenticationConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackendAuthenticationConfig, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceUpdateBackendAuthenticationConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackendAuthenticationConfig retrievedResult = retrievedResponse.Result;
}

UpdateBackendAuthenticationConfig(UpdateBackendAuthenticationConfigRequest, CallSettings)

public virtual Operation<BackendAuthenticationConfig, OperationMetadata> UpdateBackendAuthenticationConfig(UpdateBackendAuthenticationConfigRequest request, CallSettings callSettings = null)

Updates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
request UpdateBackendAuthenticationConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackendAuthenticationConfigOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
UpdateBackendAuthenticationConfigRequest request = new UpdateBackendAuthenticationConfigRequest
{
    UpdateMask = new FieldMask(),
    BackendAuthenticationConfig = new BackendAuthenticationConfig(),
};
// Make the request
Operation<BackendAuthenticationConfig, OperationMetadata> response = networkSecurityClient.UpdateBackendAuthenticationConfig(request);

// Poll until the returned long-running operation is complete
Operation<BackendAuthenticationConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackendAuthenticationConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackendAuthenticationConfig, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceUpdateBackendAuthenticationConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackendAuthenticationConfig retrievedResult = retrievedResponse.Result;
}

UpdateBackendAuthenticationConfigAsync(BackendAuthenticationConfig, FieldMask, CallSettings)

public virtual Task<Operation<BackendAuthenticationConfig, OperationMetadata>> UpdateBackendAuthenticationConfigAsync(BackendAuthenticationConfig backendAuthenticationConfig, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
backendAuthenticationConfig BackendAuthenticationConfig

Required. Updated BackendAuthenticationConfig resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackendAuthenticationConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
BackendAuthenticationConfig backendAuthenticationConfig = new BackendAuthenticationConfig();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<BackendAuthenticationConfig, OperationMetadata> response = await networkSecurityClient.UpdateBackendAuthenticationConfigAsync(backendAuthenticationConfig, updateMask);

// Poll until the returned long-running operation is complete
Operation<BackendAuthenticationConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackendAuthenticationConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackendAuthenticationConfig, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateBackendAuthenticationConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackendAuthenticationConfig retrievedResult = retrievedResponse.Result;
}

UpdateBackendAuthenticationConfigAsync(BackendAuthenticationConfig, FieldMask, CancellationToken)

public virtual Task<Operation<BackendAuthenticationConfig, OperationMetadata>> UpdateBackendAuthenticationConfigAsync(BackendAuthenticationConfig backendAuthenticationConfig, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
backendAuthenticationConfig BackendAuthenticationConfig

Required. Updated BackendAuthenticationConfig resource.

updateMask FieldMask

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.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackendAuthenticationConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
BackendAuthenticationConfig backendAuthenticationConfig = new BackendAuthenticationConfig();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<BackendAuthenticationConfig, OperationMetadata> response = await networkSecurityClient.UpdateBackendAuthenticationConfigAsync(backendAuthenticationConfig, updateMask);

// Poll until the returned long-running operation is complete
Operation<BackendAuthenticationConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackendAuthenticationConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackendAuthenticationConfig, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateBackendAuthenticationConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackendAuthenticationConfig retrievedResult = retrievedResponse.Result;
}

UpdateBackendAuthenticationConfigAsync(UpdateBackendAuthenticationConfigRequest, CallSettings)

public virtual Task<Operation<BackendAuthenticationConfig, OperationMetadata>> UpdateBackendAuthenticationConfigAsync(UpdateBackendAuthenticationConfigRequest request, CallSettings callSettings = null)

Updates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
request UpdateBackendAuthenticationConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackendAuthenticationConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UpdateBackendAuthenticationConfigRequest request = new UpdateBackendAuthenticationConfigRequest
{
    UpdateMask = new FieldMask(),
    BackendAuthenticationConfig = new BackendAuthenticationConfig(),
};
// Make the request
Operation<BackendAuthenticationConfig, OperationMetadata> response = await networkSecurityClient.UpdateBackendAuthenticationConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<BackendAuthenticationConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackendAuthenticationConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackendAuthenticationConfig, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateBackendAuthenticationConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackendAuthenticationConfig retrievedResult = retrievedResponse.Result;
}

UpdateBackendAuthenticationConfigAsync(UpdateBackendAuthenticationConfigRequest, CancellationToken)

public virtual Task<Operation<BackendAuthenticationConfig, OperationMetadata>> UpdateBackendAuthenticationConfigAsync(UpdateBackendAuthenticationConfigRequest request, CancellationToken cancellationToken)

Updates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig.

Parameters
Name Description
request UpdateBackendAuthenticationConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackendAuthenticationConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UpdateBackendAuthenticationConfigRequest request = new UpdateBackendAuthenticationConfigRequest
{
    UpdateMask = new FieldMask(),
    BackendAuthenticationConfig = new BackendAuthenticationConfig(),
};
// Make the request
Operation<BackendAuthenticationConfig, OperationMetadata> response = await networkSecurityClient.UpdateBackendAuthenticationConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<BackendAuthenticationConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackendAuthenticationConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackendAuthenticationConfig, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateBackendAuthenticationConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackendAuthenticationConfig retrievedResult = retrievedResponse.Result;
}

UpdateClientTlsPolicy(ClientTlsPolicy, FieldMask, CallSettings)

public virtual Operation<ClientTlsPolicy, OperationMetadata> UpdateClientTlsPolicy(ClientTlsPolicy clientTlsPolicy, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single ClientTlsPolicy.

Parameters
Name Description
clientTlsPolicy ClientTlsPolicy

Required. Updated ClientTlsPolicy resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationClientTlsPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
ClientTlsPolicy clientTlsPolicy = new ClientTlsPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ClientTlsPolicy, OperationMetadata> response = networkSecurityClient.UpdateClientTlsPolicy(clientTlsPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<ClientTlsPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ClientTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ClientTlsPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceUpdateClientTlsPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientTlsPolicy retrievedResult = retrievedResponse.Result;
}

UpdateClientTlsPolicy(UpdateClientTlsPolicyRequest, CallSettings)

public virtual Operation<ClientTlsPolicy, OperationMetadata> UpdateClientTlsPolicy(UpdateClientTlsPolicyRequest request, CallSettings callSettings = null)

Updates the parameters of a single ClientTlsPolicy.

Parameters
Name Description
request UpdateClientTlsPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationClientTlsPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
UpdateClientTlsPolicyRequest request = new UpdateClientTlsPolicyRequest
{
    UpdateMask = new FieldMask(),
    ClientTlsPolicy = new ClientTlsPolicy(),
};
// Make the request
Operation<ClientTlsPolicy, OperationMetadata> response = networkSecurityClient.UpdateClientTlsPolicy(request);

// Poll until the returned long-running operation is complete
Operation<ClientTlsPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ClientTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ClientTlsPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceUpdateClientTlsPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientTlsPolicy retrievedResult = retrievedResponse.Result;
}

UpdateClientTlsPolicyAsync(ClientTlsPolicy, FieldMask, CallSettings)

public virtual Task<Operation<ClientTlsPolicy, OperationMetadata>> UpdateClientTlsPolicyAsync(ClientTlsPolicy clientTlsPolicy, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single ClientTlsPolicy.

Parameters
Name Description
clientTlsPolicy ClientTlsPolicy

Required. Updated ClientTlsPolicy resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationClientTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ClientTlsPolicy clientTlsPolicy = new ClientTlsPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ClientTlsPolicy, OperationMetadata> response = await networkSecurityClient.UpdateClientTlsPolicyAsync(clientTlsPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<ClientTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ClientTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateClientTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientTlsPolicy retrievedResult = retrievedResponse.Result;
}

UpdateClientTlsPolicyAsync(ClientTlsPolicy, FieldMask, CancellationToken)

public virtual Task<Operation<ClientTlsPolicy, OperationMetadata>> UpdateClientTlsPolicyAsync(ClientTlsPolicy clientTlsPolicy, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single ClientTlsPolicy.

Parameters
Name Description
clientTlsPolicy ClientTlsPolicy

Required. Updated ClientTlsPolicy resource.

updateMask FieldMask

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.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationClientTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ClientTlsPolicy clientTlsPolicy = new ClientTlsPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ClientTlsPolicy, OperationMetadata> response = await networkSecurityClient.UpdateClientTlsPolicyAsync(clientTlsPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<ClientTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ClientTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateClientTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientTlsPolicy retrievedResult = retrievedResponse.Result;
}

UpdateClientTlsPolicyAsync(UpdateClientTlsPolicyRequest, CallSettings)

public virtual Task<Operation<ClientTlsPolicy, OperationMetadata>> UpdateClientTlsPolicyAsync(UpdateClientTlsPolicyRequest request, CallSettings callSettings = null)

Updates the parameters of a single ClientTlsPolicy.

Parameters
Name Description
request UpdateClientTlsPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationClientTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UpdateClientTlsPolicyRequest request = new UpdateClientTlsPolicyRequest
{
    UpdateMask = new FieldMask(),
    ClientTlsPolicy = new ClientTlsPolicy(),
};
// Make the request
Operation<ClientTlsPolicy, OperationMetadata> response = await networkSecurityClient.UpdateClientTlsPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<ClientTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ClientTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateClientTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientTlsPolicy retrievedResult = retrievedResponse.Result;
}

UpdateClientTlsPolicyAsync(UpdateClientTlsPolicyRequest, CancellationToken)

public virtual Task<Operation<ClientTlsPolicy, OperationMetadata>> UpdateClientTlsPolicyAsync(UpdateClientTlsPolicyRequest request, CancellationToken cancellationToken)

Updates the parameters of a single ClientTlsPolicy.

Parameters
Name Description
request UpdateClientTlsPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationClientTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UpdateClientTlsPolicyRequest request = new UpdateClientTlsPolicyRequest
{
    UpdateMask = new FieldMask(),
    ClientTlsPolicy = new ClientTlsPolicy(),
};
// Make the request
Operation<ClientTlsPolicy, OperationMetadata> response = await networkSecurityClient.UpdateClientTlsPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<ClientTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ClientTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateClientTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientTlsPolicy retrievedResult = retrievedResponse.Result;
}

UpdateGatewaySecurityPolicy(GatewaySecurityPolicy, FieldMask, CallSettings)

public virtual Operation<GatewaySecurityPolicy, OperationMetadata> UpdateGatewaySecurityPolicy(GatewaySecurityPolicy gatewaySecurityPolicy, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single GatewaySecurityPolicy.

Parameters
Name Description
gatewaySecurityPolicy GatewaySecurityPolicy

Required. Updated GatewaySecurityPolicy resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGatewaySecurityPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
GatewaySecurityPolicy gatewaySecurityPolicy = new GatewaySecurityPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<GatewaySecurityPolicy, OperationMetadata> response = networkSecurityClient.UpdateGatewaySecurityPolicy(gatewaySecurityPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GatewaySecurityPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceUpdateGatewaySecurityPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicy retrievedResult = retrievedResponse.Result;
}

UpdateGatewaySecurityPolicy(UpdateGatewaySecurityPolicyRequest, CallSettings)

public virtual Operation<GatewaySecurityPolicy, OperationMetadata> UpdateGatewaySecurityPolicy(UpdateGatewaySecurityPolicyRequest request, CallSettings callSettings = null)

Updates the parameters of a single GatewaySecurityPolicy.

Parameters
Name Description
request UpdateGatewaySecurityPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGatewaySecurityPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
UpdateGatewaySecurityPolicyRequest request = new UpdateGatewaySecurityPolicyRequest
{
    UpdateMask = new FieldMask(),
    GatewaySecurityPolicy = new GatewaySecurityPolicy(),
};
// Make the request
Operation<GatewaySecurityPolicy, OperationMetadata> response = networkSecurityClient.UpdateGatewaySecurityPolicy(request);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GatewaySecurityPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceUpdateGatewaySecurityPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicy retrievedResult = retrievedResponse.Result;
}

UpdateGatewaySecurityPolicyAsync(GatewaySecurityPolicy, FieldMask, CallSettings)

public virtual Task<Operation<GatewaySecurityPolicy, OperationMetadata>> UpdateGatewaySecurityPolicyAsync(GatewaySecurityPolicy gatewaySecurityPolicy, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single GatewaySecurityPolicy.

Parameters
Name Description
gatewaySecurityPolicy GatewaySecurityPolicy

Required. Updated GatewaySecurityPolicy resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGatewaySecurityPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GatewaySecurityPolicy gatewaySecurityPolicy = new GatewaySecurityPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<GatewaySecurityPolicy, OperationMetadata> response = await networkSecurityClient.UpdateGatewaySecurityPolicyAsync(gatewaySecurityPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateGatewaySecurityPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicy retrievedResult = retrievedResponse.Result;
}

UpdateGatewaySecurityPolicyAsync(GatewaySecurityPolicy, FieldMask, CancellationToken)

public virtual Task<Operation<GatewaySecurityPolicy, OperationMetadata>> UpdateGatewaySecurityPolicyAsync(GatewaySecurityPolicy gatewaySecurityPolicy, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single GatewaySecurityPolicy.

Parameters
Name Description
gatewaySecurityPolicy GatewaySecurityPolicy

Required. Updated GatewaySecurityPolicy resource.

updateMask FieldMask

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.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGatewaySecurityPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GatewaySecurityPolicy gatewaySecurityPolicy = new GatewaySecurityPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<GatewaySecurityPolicy, OperationMetadata> response = await networkSecurityClient.UpdateGatewaySecurityPolicyAsync(gatewaySecurityPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateGatewaySecurityPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicy retrievedResult = retrievedResponse.Result;
}

UpdateGatewaySecurityPolicyAsync(UpdateGatewaySecurityPolicyRequest, CallSettings)

public virtual Task<Operation<GatewaySecurityPolicy, OperationMetadata>> UpdateGatewaySecurityPolicyAsync(UpdateGatewaySecurityPolicyRequest request, CallSettings callSettings = null)

Updates the parameters of a single GatewaySecurityPolicy.

Parameters
Name Description
request UpdateGatewaySecurityPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGatewaySecurityPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UpdateGatewaySecurityPolicyRequest request = new UpdateGatewaySecurityPolicyRequest
{
    UpdateMask = new FieldMask(),
    GatewaySecurityPolicy = new GatewaySecurityPolicy(),
};
// Make the request
Operation<GatewaySecurityPolicy, OperationMetadata> response = await networkSecurityClient.UpdateGatewaySecurityPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateGatewaySecurityPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicy retrievedResult = retrievedResponse.Result;
}

UpdateGatewaySecurityPolicyAsync(UpdateGatewaySecurityPolicyRequest, CancellationToken)

public virtual Task<Operation<GatewaySecurityPolicy, OperationMetadata>> UpdateGatewaySecurityPolicyAsync(UpdateGatewaySecurityPolicyRequest request, CancellationToken cancellationToken)

Updates the parameters of a single GatewaySecurityPolicy.

Parameters
Name Description
request UpdateGatewaySecurityPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGatewaySecurityPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UpdateGatewaySecurityPolicyRequest request = new UpdateGatewaySecurityPolicyRequest
{
    UpdateMask = new FieldMask(),
    GatewaySecurityPolicy = new GatewaySecurityPolicy(),
};
// Make the request
Operation<GatewaySecurityPolicy, OperationMetadata> response = await networkSecurityClient.UpdateGatewaySecurityPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateGatewaySecurityPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicy retrievedResult = retrievedResponse.Result;
}

UpdateGatewaySecurityPolicyRule(GatewaySecurityPolicyRule, FieldMask, CallSettings)

public virtual Operation<GatewaySecurityPolicyRule, OperationMetadata> UpdateGatewaySecurityPolicyRule(GatewaySecurityPolicyRule gatewaySecurityPolicyRule, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single GatewaySecurityPolicyRule.

Parameters
Name Description
gatewaySecurityPolicyRule GatewaySecurityPolicyRule

Required. Updated GatewaySecurityPolicyRule resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGatewaySecurityPolicyRuleOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
GatewaySecurityPolicyRule gatewaySecurityPolicyRule = new GatewaySecurityPolicyRule();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<GatewaySecurityPolicyRule, OperationMetadata> response = networkSecurityClient.UpdateGatewaySecurityPolicyRule(gatewaySecurityPolicyRule, updateMask);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicyRule, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GatewaySecurityPolicyRule result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicyRule, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceUpdateGatewaySecurityPolicyRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicyRule retrievedResult = retrievedResponse.Result;
}

UpdateGatewaySecurityPolicyRule(UpdateGatewaySecurityPolicyRuleRequest, CallSettings)

public virtual Operation<GatewaySecurityPolicyRule, OperationMetadata> UpdateGatewaySecurityPolicyRule(UpdateGatewaySecurityPolicyRuleRequest request, CallSettings callSettings = null)

Updates the parameters of a single GatewaySecurityPolicyRule.

Parameters
Name Description
request UpdateGatewaySecurityPolicyRuleRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGatewaySecurityPolicyRuleOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
UpdateGatewaySecurityPolicyRuleRequest request = new UpdateGatewaySecurityPolicyRuleRequest
{
    UpdateMask = new FieldMask(),
    GatewaySecurityPolicyRule = new GatewaySecurityPolicyRule(),
};
// Make the request
Operation<GatewaySecurityPolicyRule, OperationMetadata> response = networkSecurityClient.UpdateGatewaySecurityPolicyRule(request);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicyRule, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GatewaySecurityPolicyRule result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicyRule, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceUpdateGatewaySecurityPolicyRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicyRule retrievedResult = retrievedResponse.Result;
}

UpdateGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyRule, FieldMask, CallSettings)

public virtual Task<Operation<GatewaySecurityPolicyRule, OperationMetadata>> UpdateGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyRule gatewaySecurityPolicyRule, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single GatewaySecurityPolicyRule.

Parameters
Name Description
gatewaySecurityPolicyRule GatewaySecurityPolicyRule

Required. Updated GatewaySecurityPolicyRule resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGatewaySecurityPolicyRuleOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GatewaySecurityPolicyRule gatewaySecurityPolicyRule = new GatewaySecurityPolicyRule();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<GatewaySecurityPolicyRule, OperationMetadata> response = await networkSecurityClient.UpdateGatewaySecurityPolicyRuleAsync(gatewaySecurityPolicyRule, updateMask);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicyRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicyRule result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicyRule, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateGatewaySecurityPolicyRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicyRule retrievedResult = retrievedResponse.Result;
}

UpdateGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyRule, FieldMask, CancellationToken)

public virtual Task<Operation<GatewaySecurityPolicyRule, OperationMetadata>> UpdateGatewaySecurityPolicyRuleAsync(GatewaySecurityPolicyRule gatewaySecurityPolicyRule, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single GatewaySecurityPolicyRule.

Parameters
Name Description
gatewaySecurityPolicyRule GatewaySecurityPolicyRule

Required. Updated GatewaySecurityPolicyRule resource.

updateMask FieldMask

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.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGatewaySecurityPolicyRuleOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
GatewaySecurityPolicyRule gatewaySecurityPolicyRule = new GatewaySecurityPolicyRule();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<GatewaySecurityPolicyRule, OperationMetadata> response = await networkSecurityClient.UpdateGatewaySecurityPolicyRuleAsync(gatewaySecurityPolicyRule, updateMask);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicyRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicyRule result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicyRule, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateGatewaySecurityPolicyRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicyRule retrievedResult = retrievedResponse.Result;
}

UpdateGatewaySecurityPolicyRuleAsync(UpdateGatewaySecurityPolicyRuleRequest, CallSettings)

public virtual Task<Operation<GatewaySecurityPolicyRule, OperationMetadata>> UpdateGatewaySecurityPolicyRuleAsync(UpdateGatewaySecurityPolicyRuleRequest request, CallSettings callSettings = null)

Updates the parameters of a single GatewaySecurityPolicyRule.

Parameters
Name Description
request UpdateGatewaySecurityPolicyRuleRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGatewaySecurityPolicyRuleOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UpdateGatewaySecurityPolicyRuleRequest request = new UpdateGatewaySecurityPolicyRuleRequest
{
    UpdateMask = new FieldMask(),
    GatewaySecurityPolicyRule = new GatewaySecurityPolicyRule(),
};
// Make the request
Operation<GatewaySecurityPolicyRule, OperationMetadata> response = await networkSecurityClient.UpdateGatewaySecurityPolicyRuleAsync(request);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicyRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicyRule result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicyRule, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateGatewaySecurityPolicyRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicyRule retrievedResult = retrievedResponse.Result;
}

UpdateGatewaySecurityPolicyRuleAsync(UpdateGatewaySecurityPolicyRuleRequest, CancellationToken)

public virtual Task<Operation<GatewaySecurityPolicyRule, OperationMetadata>> UpdateGatewaySecurityPolicyRuleAsync(UpdateGatewaySecurityPolicyRuleRequest request, CancellationToken cancellationToken)

Updates the parameters of a single GatewaySecurityPolicyRule.

Parameters
Name Description
request UpdateGatewaySecurityPolicyRuleRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGatewaySecurityPolicyRuleOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UpdateGatewaySecurityPolicyRuleRequest request = new UpdateGatewaySecurityPolicyRuleRequest
{
    UpdateMask = new FieldMask(),
    GatewaySecurityPolicyRule = new GatewaySecurityPolicyRule(),
};
// Make the request
Operation<GatewaySecurityPolicyRule, OperationMetadata> response = await networkSecurityClient.UpdateGatewaySecurityPolicyRuleAsync(request);

// Poll until the returned long-running operation is complete
Operation<GatewaySecurityPolicyRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GatewaySecurityPolicyRule result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GatewaySecurityPolicyRule, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateGatewaySecurityPolicyRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GatewaySecurityPolicyRule retrievedResult = retrievedResponse.Result;
}

UpdateServerTlsPolicy(ServerTlsPolicy, FieldMask, CallSettings)

public virtual Operation<ServerTlsPolicy, OperationMetadata> UpdateServerTlsPolicy(ServerTlsPolicy serverTlsPolicy, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single ServerTlsPolicy.

Parameters
Name Description
serverTlsPolicy ServerTlsPolicy

Required. Updated ServerTlsPolicy resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationServerTlsPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
ServerTlsPolicy serverTlsPolicy = new ServerTlsPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ServerTlsPolicy, OperationMetadata> response = networkSecurityClient.UpdateServerTlsPolicy(serverTlsPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<ServerTlsPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServerTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServerTlsPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceUpdateServerTlsPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServerTlsPolicy retrievedResult = retrievedResponse.Result;
}

UpdateServerTlsPolicy(UpdateServerTlsPolicyRequest, CallSettings)

public virtual Operation<ServerTlsPolicy, OperationMetadata> UpdateServerTlsPolicy(UpdateServerTlsPolicyRequest request, CallSettings callSettings = null)

Updates the parameters of a single ServerTlsPolicy.

Parameters
Name Description
request UpdateServerTlsPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationServerTlsPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
UpdateServerTlsPolicyRequest request = new UpdateServerTlsPolicyRequest
{
    UpdateMask = new FieldMask(),
    ServerTlsPolicy = new ServerTlsPolicy(),
};
// Make the request
Operation<ServerTlsPolicy, OperationMetadata> response = networkSecurityClient.UpdateServerTlsPolicy(request);

// Poll until the returned long-running operation is complete
Operation<ServerTlsPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServerTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServerTlsPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceUpdateServerTlsPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServerTlsPolicy retrievedResult = retrievedResponse.Result;
}

UpdateServerTlsPolicyAsync(ServerTlsPolicy, FieldMask, CallSettings)

public virtual Task<Operation<ServerTlsPolicy, OperationMetadata>> UpdateServerTlsPolicyAsync(ServerTlsPolicy serverTlsPolicy, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single ServerTlsPolicy.

Parameters
Name Description
serverTlsPolicy ServerTlsPolicy

Required. Updated ServerTlsPolicy resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationServerTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ServerTlsPolicy serverTlsPolicy = new ServerTlsPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ServerTlsPolicy, OperationMetadata> response = await networkSecurityClient.UpdateServerTlsPolicyAsync(serverTlsPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<ServerTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServerTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServerTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateServerTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServerTlsPolicy retrievedResult = retrievedResponse.Result;
}

UpdateServerTlsPolicyAsync(ServerTlsPolicy, FieldMask, CancellationToken)

public virtual Task<Operation<ServerTlsPolicy, OperationMetadata>> UpdateServerTlsPolicyAsync(ServerTlsPolicy serverTlsPolicy, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single ServerTlsPolicy.

Parameters
Name Description
serverTlsPolicy ServerTlsPolicy

Required. Updated ServerTlsPolicy resource.

updateMask FieldMask

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.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationServerTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
ServerTlsPolicy serverTlsPolicy = new ServerTlsPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ServerTlsPolicy, OperationMetadata> response = await networkSecurityClient.UpdateServerTlsPolicyAsync(serverTlsPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<ServerTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServerTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServerTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateServerTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServerTlsPolicy retrievedResult = retrievedResponse.Result;
}

UpdateServerTlsPolicyAsync(UpdateServerTlsPolicyRequest, CallSettings)

public virtual Task<Operation<ServerTlsPolicy, OperationMetadata>> UpdateServerTlsPolicyAsync(UpdateServerTlsPolicyRequest request, CallSettings callSettings = null)

Updates the parameters of a single ServerTlsPolicy.

Parameters
Name Description
request UpdateServerTlsPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationServerTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UpdateServerTlsPolicyRequest request = new UpdateServerTlsPolicyRequest
{
    UpdateMask = new FieldMask(),
    ServerTlsPolicy = new ServerTlsPolicy(),
};
// Make the request
Operation<ServerTlsPolicy, OperationMetadata> response = await networkSecurityClient.UpdateServerTlsPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<ServerTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServerTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServerTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateServerTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServerTlsPolicy retrievedResult = retrievedResponse.Result;
}

UpdateServerTlsPolicyAsync(UpdateServerTlsPolicyRequest, CancellationToken)

public virtual Task<Operation<ServerTlsPolicy, OperationMetadata>> UpdateServerTlsPolicyAsync(UpdateServerTlsPolicyRequest request, CancellationToken cancellationToken)

Updates the parameters of a single ServerTlsPolicy.

Parameters
Name Description
request UpdateServerTlsPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationServerTlsPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UpdateServerTlsPolicyRequest request = new UpdateServerTlsPolicyRequest
{
    UpdateMask = new FieldMask(),
    ServerTlsPolicy = new ServerTlsPolicy(),
};
// Make the request
Operation<ServerTlsPolicy, OperationMetadata> response = await networkSecurityClient.UpdateServerTlsPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<ServerTlsPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServerTlsPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServerTlsPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateServerTlsPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServerTlsPolicy retrievedResult = retrievedResponse.Result;
}

UpdateTlsInspectionPolicy(TlsInspectionPolicy, FieldMask, CallSettings)

public virtual Operation<TlsInspectionPolicy, OperationMetadata> UpdateTlsInspectionPolicy(TlsInspectionPolicy tlsInspectionPolicy, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single TlsInspectionPolicy.

Parameters
Name Description
tlsInspectionPolicy TlsInspectionPolicy

Required. Updated TlsInspectionPolicy resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTlsInspectionPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
TlsInspectionPolicy tlsInspectionPolicy = new TlsInspectionPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<TlsInspectionPolicy, OperationMetadata> response = networkSecurityClient.UpdateTlsInspectionPolicy(tlsInspectionPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<TlsInspectionPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
TlsInspectionPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TlsInspectionPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceUpdateTlsInspectionPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TlsInspectionPolicy retrievedResult = retrievedResponse.Result;
}

UpdateTlsInspectionPolicy(UpdateTlsInspectionPolicyRequest, CallSettings)

public virtual Operation<TlsInspectionPolicy, OperationMetadata> UpdateTlsInspectionPolicy(UpdateTlsInspectionPolicyRequest request, CallSettings callSettings = null)

Updates the parameters of a single TlsInspectionPolicy.

Parameters
Name Description
request UpdateTlsInspectionPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTlsInspectionPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
UpdateTlsInspectionPolicyRequest request = new UpdateTlsInspectionPolicyRequest
{
    UpdateMask = new FieldMask(),
    TlsInspectionPolicy = new TlsInspectionPolicy(),
};
// Make the request
Operation<TlsInspectionPolicy, OperationMetadata> response = networkSecurityClient.UpdateTlsInspectionPolicy(request);

// Poll until the returned long-running operation is complete
Operation<TlsInspectionPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
TlsInspectionPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TlsInspectionPolicy, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceUpdateTlsInspectionPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TlsInspectionPolicy retrievedResult = retrievedResponse.Result;
}

UpdateTlsInspectionPolicyAsync(TlsInspectionPolicy, FieldMask, CallSettings)

public virtual Task<Operation<TlsInspectionPolicy, OperationMetadata>> UpdateTlsInspectionPolicyAsync(TlsInspectionPolicy tlsInspectionPolicy, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single TlsInspectionPolicy.

Parameters
Name Description
tlsInspectionPolicy TlsInspectionPolicy

Required. Updated TlsInspectionPolicy resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTlsInspectionPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
TlsInspectionPolicy tlsInspectionPolicy = new TlsInspectionPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<TlsInspectionPolicy, OperationMetadata> response = await networkSecurityClient.UpdateTlsInspectionPolicyAsync(tlsInspectionPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<TlsInspectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TlsInspectionPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TlsInspectionPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateTlsInspectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TlsInspectionPolicy retrievedResult = retrievedResponse.Result;
}

UpdateTlsInspectionPolicyAsync(TlsInspectionPolicy, FieldMask, CancellationToken)

public virtual Task<Operation<TlsInspectionPolicy, OperationMetadata>> UpdateTlsInspectionPolicyAsync(TlsInspectionPolicy tlsInspectionPolicy, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single TlsInspectionPolicy.

Parameters
Name Description
tlsInspectionPolicy TlsInspectionPolicy

Required. Updated TlsInspectionPolicy resource.

updateMask FieldMask

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.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTlsInspectionPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
TlsInspectionPolicy tlsInspectionPolicy = new TlsInspectionPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<TlsInspectionPolicy, OperationMetadata> response = await networkSecurityClient.UpdateTlsInspectionPolicyAsync(tlsInspectionPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<TlsInspectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TlsInspectionPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TlsInspectionPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateTlsInspectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TlsInspectionPolicy retrievedResult = retrievedResponse.Result;
}

UpdateTlsInspectionPolicyAsync(UpdateTlsInspectionPolicyRequest, CallSettings)

public virtual Task<Operation<TlsInspectionPolicy, OperationMetadata>> UpdateTlsInspectionPolicyAsync(UpdateTlsInspectionPolicyRequest request, CallSettings callSettings = null)

Updates the parameters of a single TlsInspectionPolicy.

Parameters
Name Description
request UpdateTlsInspectionPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTlsInspectionPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UpdateTlsInspectionPolicyRequest request = new UpdateTlsInspectionPolicyRequest
{
    UpdateMask = new FieldMask(),
    TlsInspectionPolicy = new TlsInspectionPolicy(),
};
// Make the request
Operation<TlsInspectionPolicy, OperationMetadata> response = await networkSecurityClient.UpdateTlsInspectionPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<TlsInspectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TlsInspectionPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TlsInspectionPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateTlsInspectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TlsInspectionPolicy retrievedResult = retrievedResponse.Result;
}

UpdateTlsInspectionPolicyAsync(UpdateTlsInspectionPolicyRequest, CancellationToken)

public virtual Task<Operation<TlsInspectionPolicy, OperationMetadata>> UpdateTlsInspectionPolicyAsync(UpdateTlsInspectionPolicyRequest request, CancellationToken cancellationToken)

Updates the parameters of a single TlsInspectionPolicy.

Parameters
Name Description
request UpdateTlsInspectionPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTlsInspectionPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UpdateTlsInspectionPolicyRequest request = new UpdateTlsInspectionPolicyRequest
{
    UpdateMask = new FieldMask(),
    TlsInspectionPolicy = new TlsInspectionPolicy(),
};
// Make the request
Operation<TlsInspectionPolicy, OperationMetadata> response = await networkSecurityClient.UpdateTlsInspectionPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<TlsInspectionPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
TlsInspectionPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<TlsInspectionPolicy, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateTlsInspectionPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    TlsInspectionPolicy retrievedResult = retrievedResponse.Result;
}

UpdateUrlList(UpdateUrlListRequest, CallSettings)

public virtual Operation<UrlList, OperationMetadata> UpdateUrlList(UpdateUrlListRequest request, CallSettings callSettings = null)

Updates the parameters of a single UrlList.

Parameters
Name Description
request UpdateUrlListRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationUrlListOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
UpdateUrlListRequest request = new UpdateUrlListRequest
{
    UpdateMask = new FieldMask(),
    UrlList = new UrlList(),
};
// Make the request
Operation<UrlList, OperationMetadata> response = networkSecurityClient.UpdateUrlList(request);

// Poll until the returned long-running operation is complete
Operation<UrlList, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
UrlList result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UrlList, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceUpdateUrlList(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UrlList retrievedResult = retrievedResponse.Result;
}

UpdateUrlList(UrlList, FieldMask, CallSettings)

public virtual Operation<UrlList, OperationMetadata> UpdateUrlList(UrlList urlList, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single UrlList.

Parameters
Name Description
urlList UrlList

Required. Updated UrlList resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationUrlListOperationMetadata

The RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = NetworkSecurityClient.Create();
// Initialize request argument(s)
UrlList urlList = new UrlList();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<UrlList, OperationMetadata> response = networkSecurityClient.UpdateUrlList(urlList, updateMask);

// Poll until the returned long-running operation is complete
Operation<UrlList, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
UrlList result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UrlList, OperationMetadata> retrievedResponse = networkSecurityClient.PollOnceUpdateUrlList(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UrlList retrievedResult = retrievedResponse.Result;
}

UpdateUrlListAsync(UpdateUrlListRequest, CallSettings)

public virtual Task<Operation<UrlList, OperationMetadata>> UpdateUrlListAsync(UpdateUrlListRequest request, CallSettings callSettings = null)

Updates the parameters of a single UrlList.

Parameters
Name Description
request UpdateUrlListRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationUrlListOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UpdateUrlListRequest request = new UpdateUrlListRequest
{
    UpdateMask = new FieldMask(),
    UrlList = new UrlList(),
};
// Make the request
Operation<UrlList, OperationMetadata> response = await networkSecurityClient.UpdateUrlListAsync(request);

// Poll until the returned long-running operation is complete
Operation<UrlList, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UrlList result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UrlList, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateUrlListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UrlList retrievedResult = retrievedResponse.Result;
}

UpdateUrlListAsync(UpdateUrlListRequest, CancellationToken)

public virtual Task<Operation<UrlList, OperationMetadata>> UpdateUrlListAsync(UpdateUrlListRequest request, CancellationToken cancellationToken)

Updates the parameters of a single UrlList.

Parameters
Name Description
request UpdateUrlListRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationUrlListOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UpdateUrlListRequest request = new UpdateUrlListRequest
{
    UpdateMask = new FieldMask(),
    UrlList = new UrlList(),
};
// Make the request
Operation<UrlList, OperationMetadata> response = await networkSecurityClient.UpdateUrlListAsync(request);

// Poll until the returned long-running operation is complete
Operation<UrlList, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UrlList result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UrlList, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateUrlListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UrlList retrievedResult = retrievedResponse.Result;
}

UpdateUrlListAsync(UrlList, FieldMask, CallSettings)

public virtual Task<Operation<UrlList, OperationMetadata>> UpdateUrlListAsync(UrlList urlList, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single UrlList.

Parameters
Name Description
urlList UrlList

Required. Updated UrlList resource.

updateMask FieldMask

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationUrlListOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UrlList urlList = new UrlList();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<UrlList, OperationMetadata> response = await networkSecurityClient.UpdateUrlListAsync(urlList, updateMask);

// Poll until the returned long-running operation is complete
Operation<UrlList, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UrlList result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UrlList, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateUrlListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UrlList retrievedResult = retrievedResponse.Result;
}

UpdateUrlListAsync(UrlList, FieldMask, CancellationToken)

public virtual Task<Operation<UrlList, OperationMetadata>> UpdateUrlListAsync(UrlList urlList, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single UrlList.

Parameters
Name Description
urlList UrlList

Required. Updated UrlList resource.

updateMask FieldMask

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.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationUrlListOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkSecurityClient networkSecurityClient = await NetworkSecurityClient.CreateAsync();
// Initialize request argument(s)
UrlList urlList = new UrlList();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<UrlList, OperationMetadata> response = await networkSecurityClient.UpdateUrlListAsync(urlList, updateMask);

// Poll until the returned long-running operation is complete
Operation<UrlList, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
UrlList result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<UrlList, OperationMetadata> retrievedResponse = await networkSecurityClient.PollOnceUpdateUrlListAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    UrlList retrievedResult = retrievedResponse.Result;
}