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.
Namespace
Google.Cloud.Compute.V1Assembly
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 | |
---|---|
Name | Description |
grpcClient | Firewalls.FirewallsClient 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 |
GrpcClient
public override Firewalls.FirewallsClient GrpcClient { get; }
The underlying gRPC Firewalls client
Property Value | |
---|---|
Type | Description |
Firewalls.FirewallsClient |
InsertOperationsClient
public override OperationsClient InsertOperationsClient { get; }
The long-running operations client for Insert
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
PatchOperationsClient
public override OperationsClient PatchOperationsClient { get; }
The long-running operations client for Patch
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateOperationsClient
public override OperationsClient UpdateOperationsClient { get; }
The long-running operations client for Update
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
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 |
Operation<Operation, Operation> | The RPC response. |
DeleteAsync(DeleteFirewallRequest, CallSettings)
public override async 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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
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. |
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 |
Task<Firewall> | A Task containing the RPC response. |
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 |
Operation<Operation, Operation> | The RPC response. |
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 | |
---|---|
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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
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 |
PagedEnumerable<FirewallList, Firewall> | A pageable sequence of Firewall resources. |
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 |
PagedAsyncEnumerable<FirewallList, Firewall> | A pageable asynchronous sequence of Firewall resources. |
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 |
Operation<Operation, Operation> | The RPC response. |
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 | |
---|---|
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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
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 |
Operation<Operation, Operation> | The RPC response. |
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 | |
---|---|
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 |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |