Compute Engine v1 API - Class FirewallsClientImpl (2.16.0)

public sealed class FirewallsClientImpl : FirewallsClient

Reference documentation and code samples for the Compute Engine v1 API class FirewallsClientImpl.

Firewalls client wrapper implementation, for convenient use.

Inheritance

object > FirewallsClient > FirewallsClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The Firewalls API.

Constructors

FirewallsClientImpl(FirewallsClient, FirewallsSettings, ILogger)

public FirewallsClientImpl(Firewalls.FirewallsClient grpcClient, FirewallsSettings settings, ILogger logger)

Constructs a client wrapper for the Firewalls service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient FirewallsFirewallsClient

The underlying gRPC client.

settings FirewallsSettings

The base FirewallsSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
Type Description
OperationsClient
Overrides

GrpcClient

public override Firewalls.FirewallsClient GrpcClient { get; }

The underlying gRPC Firewalls client

Property Value
Type Description
FirewallsFirewallsClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
Type Description
OperationsClient
Overrides

PatchOperationsClient

public override OperationsClient PatchOperationsClient { get; }

The long-running operations client for Patch.

Property Value
Type Description
OperationsClient
Overrides

UpdateOperationsClient

public override OperationsClient UpdateOperationsClient { get; }

The long-running operations client for Update.

Property Value
Type Description
OperationsClient
Overrides

Methods

Delete(DeleteFirewallRequest, CallSettings)

public override Operation<Operation, Operation> Delete(DeleteFirewallRequest request, CallSettings callSettings = null)

Deletes the specified firewall.

Parameters
Name Description
request DeleteFirewallRequest

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
OperationOperationOperation

The RPC response.

Overrides

DeleteAsync(DeleteFirewallRequest, CallSettings)

public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteFirewallRequest request, CallSettings callSettings = null)

Deletes the specified firewall.

Parameters
Name Description
request DeleteFirewallRequest

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
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Get(GetFirewallRequest, CallSettings)

public override Firewall Get(GetFirewallRequest request, CallSettings callSettings = null)

Returns the specified firewall.

Parameters
Name Description
request GetFirewallRequest

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
Firewall

The RPC response.

Overrides

GetAsync(GetFirewallRequest, CallSettings)

public override Task<Firewall> GetAsync(GetFirewallRequest request, CallSettings callSettings = null)

Returns the specified firewall.

Parameters
Name Description
request GetFirewallRequest

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
TaskFirewall

A Task containing the RPC response.

Overrides

Insert(InsertFirewallRequest, CallSettings)

public override Operation<Operation, Operation> Insert(InsertFirewallRequest request, CallSettings callSettings = null)

Creates a firewall rule in the specified project using the data included in the request.

Parameters
Name Description
request InsertFirewallRequest

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
OperationOperationOperation

The RPC response.

Overrides

InsertAsync(InsertFirewallRequest, CallSettings)

public override Task<Operation<Operation, Operation>> InsertAsync(InsertFirewallRequest request, CallSettings callSettings = null)

Creates a firewall rule in the specified project using the data included in the request.

Parameters
Name Description
request InsertFirewallRequest

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
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

List(ListFirewallsRequest, CallSettings)

public override PagedEnumerable<FirewallList, Firewall> List(ListFirewallsRequest request, CallSettings callSettings = null)

Retrieves the list of firewall rules available to the specified project.

Parameters
Name Description
request ListFirewallsRequest

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
PagedEnumerableFirewallListFirewall

A pageable sequence of Firewall resources.

Overrides

ListAsync(ListFirewallsRequest, CallSettings)

public override PagedAsyncEnumerable<FirewallList, Firewall> ListAsync(ListFirewallsRequest request, CallSettings callSettings = null)

Retrieves the list of firewall rules available to the specified project.

Parameters
Name Description
request ListFirewallsRequest

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
PagedAsyncEnumerableFirewallListFirewall

A pageable asynchronous sequence of Firewall resources.

Overrides

Patch(PatchFirewallRequest, CallSettings)

public override Operation<Operation, Operation> Patch(PatchFirewallRequest request, CallSettings callSettings = null)

Updates the specified firewall rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Parameters
Name Description
request PatchFirewallRequest

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
OperationOperationOperation

The RPC response.

Overrides

PatchAsync(PatchFirewallRequest, CallSettings)

public override Task<Operation<Operation, Operation>> PatchAsync(PatchFirewallRequest request, CallSettings callSettings = null)

Updates the specified firewall rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Parameters
Name Description
request PatchFirewallRequest

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
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Update(UpdateFirewallRequest, CallSettings)

public override Operation<Operation, Operation> Update(UpdateFirewallRequest request, CallSettings callSettings = null)

Updates the specified firewall rule with the data included in the request. Note that all fields will be updated if using PUT, even fields that are not specified. To update individual fields, please use PATCH instead.

Parameters
Name Description
request UpdateFirewallRequest

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
OperationOperationOperation

The RPC response.

Overrides

UpdateAsync(UpdateFirewallRequest, CallSettings)

public override Task<Operation<Operation, Operation>> UpdateAsync(UpdateFirewallRequest request, CallSettings callSettings = null)

Updates the specified firewall rule with the data included in the request. Note that all fields will be updated if using PUT, even fields that are not specified. To update individual fields, please use PATCH instead.

Parameters
Name Description
request UpdateFirewallRequest

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
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides