Compute Engine v1 API - Class FirewallsClientImpl (2.9.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

GoogleCloudGoogle.Cloud.ComputeV1

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
NameDescription
grpcClientFirewallsFirewallsClient

The underlying gRPC client.

settingsFirewallsSettings

The base FirewallsSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override Firewalls.FirewallsClient GrpcClient { get; }

The underlying gRPC Firewalls client

Property Value
TypeDescription
FirewallsFirewallsClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
TypeDescription
OperationsClient
Overrides

PatchOperationsClient

public override OperationsClient PatchOperationsClient { get; }

The long-running operations client for Patch.

Property Value
TypeDescription
OperationsClient
Overrides

UpdateOperationsClient

public override OperationsClient UpdateOperationsClient { get; }

The long-running operations client for Update.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

Delete(DeleteFirewallRequest, CallSettings)

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

Deletes the specified firewall.

Parameters
NameDescription
requestDeleteFirewallRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteFirewallRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetFirewallRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Firewall

The RPC response.

Overrides

GetAsync(GetFirewallRequest, CallSettings)

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

Returns the specified firewall.

Parameters
NameDescription
requestGetFirewallRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestInsertFirewallRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestInsertFirewallRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListFirewallsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListFirewallsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestPatchFirewallRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestPatchFirewallRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateFirewallRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateFirewallRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides