Class FirewallPoliciesResource
The "firewallPolicies" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class FirewallPoliciesResource
Constructors
FirewallPoliciesResource(IClientService)
Constructs a new resource.
Declaration
public FirewallPoliciesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
AddAssociation(FirewallPolicyAssociation, string)
Inserts an association for the specified firewall policy.
Declaration
public virtual FirewallPoliciesResource.AddAssociationRequest AddAssociation(FirewallPolicyAssociation body, string firewallPolicy)
Parameters
Type | Name | Description |
---|---|---|
FirewallPolicyAssociation | body | The body of the request. |
string | firewallPolicy | Name of the firewall policy to update. |
Returns
Type | Description |
---|---|
FirewallPoliciesResource.AddAssociationRequest |
AddRule(FirewallPolicyRule, string)
Inserts a rule into a firewall policy.
Declaration
public virtual FirewallPoliciesResource.AddRuleRequest AddRule(FirewallPolicyRule body, string firewallPolicy)
Parameters
Type | Name | Description |
---|---|---|
FirewallPolicyRule | body | The body of the request. |
string | firewallPolicy | Name of the firewall policy to update. |
Returns
Type | Description |
---|---|
FirewallPoliciesResource.AddRuleRequest |
CloneRules(string)
Copies rules to the specified firewall policy.
Declaration
public virtual FirewallPoliciesResource.CloneRulesRequest CloneRules(string firewallPolicy)
Parameters
Type | Name | Description |
---|---|---|
string | firewallPolicy | Name of the firewall policy to update. |
Returns
Type | Description |
---|---|
FirewallPoliciesResource.CloneRulesRequest |
Delete(string)
Deletes the specified policy.
Declaration
public virtual FirewallPoliciesResource.DeleteRequest Delete(string firewallPolicy)
Parameters
Type | Name | Description |
---|---|---|
string | firewallPolicy | Name of the firewall policy to delete. |
Returns
Type | Description |
---|---|
FirewallPoliciesResource.DeleteRequest |
Get(string)
Returns the specified firewall policy.
Declaration
public virtual FirewallPoliciesResource.GetRequest Get(string firewallPolicy)
Parameters
Type | Name | Description |
---|---|---|
string | firewallPolicy | Name of the firewall policy to get. |
Returns
Type | Description |
---|---|
FirewallPoliciesResource.GetRequest |
GetAssociation(string)
Gets an association with the specified name.
Declaration
public virtual FirewallPoliciesResource.GetAssociationRequest GetAssociation(string firewallPolicy)
Parameters
Type | Name | Description |
---|---|---|
string | firewallPolicy | Name of the firewall policy to which the queried rule belongs. |
Returns
Type | Description |
---|---|
FirewallPoliciesResource.GetAssociationRequest |
GetIamPolicy(string)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Declaration
public virtual FirewallPoliciesResource.GetIamPolicyRequest GetIamPolicy(string resource)
Parameters
Type | Name | Description |
---|---|---|
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
FirewallPoliciesResource.GetIamPolicyRequest |
GetRule(string)
Gets a rule of the specified priority.
Declaration
public virtual FirewallPoliciesResource.GetRuleRequest GetRule(string firewallPolicy)
Parameters
Type | Name | Description |
---|---|---|
string | firewallPolicy | Name of the firewall policy to which the queried rule belongs. |
Returns
Type | Description |
---|---|
FirewallPoliciesResource.GetRuleRequest |
Insert(FirewallPolicy)
Creates a new policy in the specified project using the data included in the request.
Declaration
public virtual FirewallPoliciesResource.InsertRequest Insert(FirewallPolicy body)
Parameters
Type | Name | Description |
---|---|---|
FirewallPolicy | body | The body of the request. |
Returns
Type | Description |
---|---|
FirewallPoliciesResource.InsertRequest |
List()
Lists all the policies that have been configured for the specified folder or organization.
Declaration
public virtual FirewallPoliciesResource.ListRequest List()
Returns
Type | Description |
---|---|
FirewallPoliciesResource.ListRequest |
ListAssociations()
Lists associations of a specified target, i.e., organization or folder.
Declaration
public virtual FirewallPoliciesResource.ListAssociationsRequest ListAssociations()
Returns
Type | Description |
---|---|
FirewallPoliciesResource.ListAssociationsRequest |
Move(string)
Moves the specified firewall policy.
Declaration
public virtual FirewallPoliciesResource.MoveRequest Move(string firewallPolicy)
Parameters
Type | Name | Description |
---|---|---|
string | firewallPolicy | Name of the firewall policy to update. |
Returns
Type | Description |
---|---|
FirewallPoliciesResource.MoveRequest |
Patch(FirewallPolicy, string)
Patches the specified policy with the data included in the request.
Declaration
public virtual FirewallPoliciesResource.PatchRequest Patch(FirewallPolicy body, string firewallPolicy)
Parameters
Type | Name | Description |
---|---|---|
FirewallPolicy | body | The body of the request. |
string | firewallPolicy | Name of the firewall policy to update. |
Returns
Type | Description |
---|---|
FirewallPoliciesResource.PatchRequest |
PatchRule(FirewallPolicyRule, string)
Patches a rule of the specified priority.
Declaration
public virtual FirewallPoliciesResource.PatchRuleRequest PatchRule(FirewallPolicyRule body, string firewallPolicy)
Parameters
Type | Name | Description |
---|---|---|
FirewallPolicyRule | body | The body of the request. |
string | firewallPolicy | Name of the firewall policy to update. |
Returns
Type | Description |
---|---|
FirewallPoliciesResource.PatchRuleRequest |
RemoveAssociation(string)
Removes an association for the specified firewall policy.
Declaration
public virtual FirewallPoliciesResource.RemoveAssociationRequest RemoveAssociation(string firewallPolicy)
Parameters
Type | Name | Description |
---|---|---|
string | firewallPolicy | Name of the firewall policy to update. |
Returns
Type | Description |
---|---|
FirewallPoliciesResource.RemoveAssociationRequest |
RemoveRule(string)
Deletes a rule of the specified priority.
Declaration
public virtual FirewallPoliciesResource.RemoveRuleRequest RemoveRule(string firewallPolicy)
Parameters
Type | Name | Description |
---|---|---|
string | firewallPolicy | Name of the firewall policy to update. |
Returns
Type | Description |
---|---|
FirewallPoliciesResource.RemoveRuleRequest |
SetIamPolicy(GlobalOrganizationSetPolicyRequest, string)
Sets the access control policy on the specified resource. Replaces any existing policy.
Declaration
public virtual FirewallPoliciesResource.SetIamPolicyRequest SetIamPolicy(GlobalOrganizationSetPolicyRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
GlobalOrganizationSetPolicyRequest | body | The body of the request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
FirewallPoliciesResource.SetIamPolicyRequest |
TestIamPermissions(TestPermissionsRequest, string)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual FirewallPoliciesResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
TestPermissionsRequest | body | The body of the request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
FirewallPoliciesResource.TestIamPermissionsRequest |