Class FirewallsResource
The "firewalls" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class FirewallsResource
Constructors
FirewallsResource(IClientService)
Constructs a new resource.
Declaration
public FirewallsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string)
Deletes the specified firewall.
Declaration
public virtual FirewallsResource.DeleteRequest Delete(string project, string firewall)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | firewall | Name of the firewall rule to delete. |
Returns
Type | Description |
---|---|
FirewallsResource.DeleteRequest |
Get(string, string)
Returns the specified firewall.
Declaration
public virtual FirewallsResource.GetRequest Get(string project, string firewall)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | firewall | Name of the firewall rule to return. |
Returns
Type | Description |
---|---|
FirewallsResource.GetRequest |
Insert(Firewall, string)
Creates a firewall rule in the specified project using the data included in the request.
Declaration
public virtual FirewallsResource.InsertRequest Insert(Firewall body, string project)
Parameters
Type | Name | Description |
---|---|---|
Firewall | body | The body of the request. |
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
FirewallsResource.InsertRequest |
List(string)
Retrieves the list of firewall rules available to the specified project.
Declaration
public virtual FirewallsResource.ListRequest List(string project)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
FirewallsResource.ListRequest |
Patch(Firewall, string, string)
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.
Declaration
public virtual FirewallsResource.PatchRequest Patch(Firewall body, string project, string firewall)
Parameters
Type | Name | Description |
---|---|---|
Firewall | body | The body of the request. |
string | project | Project ID for this request. |
string | firewall | Name of the firewall rule to patch. |
Returns
Type | Description |
---|---|
FirewallsResource.PatchRequest |
Update(Firewall, string, string)
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.
Declaration
public virtual FirewallsResource.UpdateRequest Update(Firewall body, string project, string firewall)
Parameters
Type | Name | Description |
---|---|---|
Firewall | body | The body of the request. |
string | project | Project ID for this request. |
string | firewall | Name of the firewall rule to update. |
Returns
Type | Description |
---|---|
FirewallsResource.UpdateRequest |