Show / Hide Table of Contents

Class FirewallsResource

The "firewalls" collection of methods.

Inheritance
object
FirewallsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Compute.beta
Assembly: Google.Apis.Compute.beta.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

TestIamPermissions(TestPermissionsRequest, string, string)

Returns permissions that a caller has on the specified resource.

Declaration
public virtual FirewallsResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string resource)
Parameters
Type Name Description
TestPermissionsRequest body

The body of the request.

string project

Project ID for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
FirewallsResource.TestIamPermissionsRequest

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
In This Article
Back to top Generated by DocFX