Compute Engine v1 API - Class FirewallsClientImpl (2.6.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(Firewalls.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
grpcClientFirewalls.FirewallsClient

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
Firewalls.FirewallsClient
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
Operation<Operation, Operation>

The RPC response.

Overrides

DeleteAsync(DeleteFirewallRequest, CallSettings)

public override async 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
Task<Operation<Operation, Operation>>

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
Task<Firewall>

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
Operation<Operation, Operation>

The RPC response.

Overrides

InsertAsync(InsertFirewallRequest, CallSettings)

public override async 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
Task<Operation<Operation, Operation>>

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
PagedEnumerable<FirewallList, Firewall>

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
PagedAsyncEnumerable<FirewallList, Firewall>

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
Operation<Operation, Operation>

The RPC response.

Overrides

PatchAsync(PatchFirewallRequest, CallSettings)

public override async 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
Task<Operation<Operation, Operation>>

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
Operation<Operation, Operation>

The RPC response.

Overrides

UpdateAsync(UpdateFirewallRequest, CallSettings)

public override async 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
Task<Operation<Operation, Operation>>

A Task containing the RPC response.

Overrides