Compute Engine v1 API - Class Firewalls.FirewallsClient (2.16.0)

public class Firewalls.FirewallsClient : ClientBase<Firewalls.FirewallsClient>

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

Client for Firewalls

Inheritance

object > ClientBase > ClientBaseFirewallsFirewallsClient > Firewalls.FirewallsClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

FirewallsClient()

protected FirewallsClient()

Protected parameterless constructor to allow creation of test doubles.

FirewallsClient(CallInvoker)

public FirewallsClient(CallInvoker callInvoker)

Creates a new client for Firewalls that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

FirewallsClient(ChannelBase)

public FirewallsClient(ChannelBase channel)

Creates a new client for Firewalls

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

FirewallsClient(ClientBaseConfiguration)

protected FirewallsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateOperationsClientForGlobalOperations()

public virtual Operations.OperationsClient CreateOperationsClientForGlobalOperations()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to GlobalOperations.

Returns
Type Description
OperationsOperationsClient

A new Operations client for the same target as this client.

Delete(DeleteFirewallRequest, CallOptions)

public virtual Operation Delete(DeleteFirewallRequest request, CallOptions options)

Deletes the specified firewall.

Parameters
Name Description
request DeleteFirewallRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Delete(DeleteFirewallRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Delete(DeleteFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified firewall.

Parameters
Name Description
request DeleteFirewallRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

DeleteAsync(DeleteFirewallRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteFirewallRequest request, CallOptions options)

Deletes the specified firewall.

Parameters
Name Description
request DeleteFirewallRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteFirewallRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified firewall.

Parameters
Name Description
request DeleteFirewallRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

Get(GetFirewallRequest, CallOptions)

public virtual Firewall Get(GetFirewallRequest request, CallOptions options)

Returns the specified firewall.

Parameters
Name Description
request GetFirewallRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Firewall

The response received from the server.

Get(GetFirewallRequest, Metadata, DateTime?, CancellationToken)

public virtual Firewall Get(GetFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified firewall.

Parameters
Name Description
request GetFirewallRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Firewall

The response received from the server.

GetAsync(GetFirewallRequest, CallOptions)

public virtual AsyncUnaryCall<Firewall> GetAsync(GetFirewallRequest request, CallOptions options)

Returns the specified firewall.

Parameters
Name Description
request GetFirewallRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallFirewall

The call object.

GetAsync(GetFirewallRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Firewall> GetAsync(GetFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified firewall.

Parameters
Name Description
request GetFirewallRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallFirewall

The call object.

Insert(InsertFirewallRequest, CallOptions)

public virtual Operation Insert(InsertFirewallRequest request, CallOptions options)

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

Parameters
Name Description
request InsertFirewallRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Insert(InsertFirewallRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Insert(InsertFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request InsertFirewallRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

InsertAsync(InsertFirewallRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertFirewallRequest request, CallOptions options)

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

Parameters
Name Description
request InsertFirewallRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertFirewallRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request InsertFirewallRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

List(ListFirewallsRequest, CallOptions)

public virtual FirewallList List(ListFirewallsRequest request, CallOptions options)

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

Parameters
Name Description
request ListFirewallsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
FirewallList

The response received from the server.

List(ListFirewallsRequest, Metadata, DateTime?, CancellationToken)

public virtual FirewallList List(ListFirewallsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request ListFirewallsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
FirewallList

The response received from the server.

ListAsync(ListFirewallsRequest, CallOptions)

public virtual AsyncUnaryCall<FirewallList> ListAsync(ListFirewallsRequest request, CallOptions options)

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

Parameters
Name Description
request ListFirewallsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallFirewallList

The call object.

ListAsync(ListFirewallsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<FirewallList> ListAsync(ListFirewallsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request ListFirewallsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallFirewallList

The call object.

NewInstance(ClientBaseConfiguration)

protected override Firewalls.FirewallsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
FirewallsFirewallsClient
Overrides

Patch(PatchFirewallRequest, CallOptions)

public virtual Operation Patch(PatchFirewallRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Patch(PatchFirewallRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Patch(PatchFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

PatchAsync(PatchFirewallRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchFirewallRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

PatchAsync(PatchFirewallRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

Update(UpdateFirewallRequest, CallOptions)

public virtual Operation Update(UpdateFirewallRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Update(UpdateFirewallRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Update(UpdateFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

UpdateAsync(UpdateFirewallRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UpdateAsync(UpdateFirewallRequest request, CallOptions options)

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 to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

UpdateAsync(UpdateFirewallRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> UpdateAsync(UpdateFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.