public class FirewallsClient : ClientBase<Firewalls.FirewallsClient>
Client for Firewalls
Namespace
Google.Cloud.Compute.V1Assembly
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(ClientBase.ClientBaseConfiguration)
protected FirewallsClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration 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 |
Operations.OperationsClient | 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, Nullable<DateTime>, CancellationToken)
public virtual Operation Delete(DeleteFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Operation> | The call object. |
DeleteAsync(DeleteFirewallRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Operation> | 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, Nullable<DateTime>, CancellationToken)
public virtual Firewall Get(GetFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Firewall> | The call object. |
GetAsync(GetFirewallRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Firewall> GetAsync(GetFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Firewall> | 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, Nullable<DateTime>, CancellationToken)
public virtual Operation Insert(InsertFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Operation> | The call object. |
InsertAsync(InsertFirewallRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> InsertAsync(InsertFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Operation> | 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, Nullable<DateTime>, CancellationToken)
public virtual FirewallList List(ListFirewallsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<FirewallList> | The call object. |
ListAsync(ListFirewallsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<FirewallList> ListAsync(ListFirewallsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<FirewallList> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override Firewalls.FirewallsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
Firewalls.FirewallsClient |
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, Nullable<DateTime>, CancellationToken)
public virtual Operation Patch(PatchFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Operation> | The call object. |
PatchAsync(PatchFirewallRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> PatchAsync(PatchFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Operation> | 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, Nullable<DateTime>, CancellationToken)
public virtual Operation Update(UpdateFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Operation> | The call object. |
UpdateAsync(UpdateFirewallRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> UpdateAsync(UpdateFirewallRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
AsyncUnaryCall<Operation> | The call object. |