Class SecurityPoliciesResource
The "securityPolicies" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class SecurityPoliciesResource
Constructors
SecurityPoliciesResource(IClientService)
Constructs a new resource.
Declaration
public SecurityPoliciesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
AddRule(SecurityPolicyRule, String, String)
Inserts a rule into a security policy.
Declaration
public virtual SecurityPoliciesResource.AddRuleRequest AddRule(SecurityPolicyRule body, string project, string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| SecurityPolicyRule | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | securityPolicy | Name of the security policy to update. |
Returns
| Type | Description |
|---|---|
| SecurityPoliciesResource.AddRuleRequest |
Delete(String, String)
Deletes the specified policy.
Declaration
public virtual SecurityPoliciesResource.DeleteRequest Delete(string project, string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | securityPolicy | Name of the security policy to delete. |
Returns
| Type | Description |
|---|---|
| SecurityPoliciesResource.DeleteRequest |
Get(String, String)
List all of the ordered rules present in a single specified policy.
Declaration
public virtual SecurityPoliciesResource.GetRequest Get(string project, string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | securityPolicy | Name of the security policy to get. |
Returns
| Type | Description |
|---|---|
| SecurityPoliciesResource.GetRequest |
GetRule(String, String)
Gets a rule at the specified priority.
Declaration
public virtual SecurityPoliciesResource.GetRuleRequest GetRule(string project, string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | securityPolicy | Name of the security policy to which the queried rule belongs. |
Returns
| Type | Description |
|---|---|
| SecurityPoliciesResource.GetRuleRequest |
Insert(SecurityPolicy, String)
Creates a new policy in the specified project using the data included in the request.
Declaration
public virtual SecurityPoliciesResource.InsertRequest Insert(SecurityPolicy body, string project)
Parameters
| Type | Name | Description |
|---|---|---|
| SecurityPolicy | body | The body of the request. |
| System.String | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| SecurityPoliciesResource.InsertRequest |
List(String)
List all the policies that have been configured for the specified project.
Declaration
public virtual SecurityPoliciesResource.ListRequest List(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| SecurityPoliciesResource.ListRequest |
ListPreconfiguredExpressionSets(String)
Gets the current list of preconfigured Web Application Firewall (WAF) expressions.
Declaration
public virtual SecurityPoliciesResource.ListPreconfiguredExpressionSetsRequest ListPreconfiguredExpressionSets(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| SecurityPoliciesResource.ListPreconfiguredExpressionSetsRequest |
Patch(SecurityPolicy, String, String)
Patches the specified policy with the data included in the request. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
Declaration
public virtual SecurityPoliciesResource.PatchRequest Patch(SecurityPolicy body, string project, string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| SecurityPolicy | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | securityPolicy | Name of the security policy to update. |
Returns
| Type | Description |
|---|---|
| SecurityPoliciesResource.PatchRequest |
PatchRule(SecurityPolicyRule, String, String)
Patches a rule at the specified priority.
Declaration
public virtual SecurityPoliciesResource.PatchRuleRequest PatchRule(SecurityPolicyRule body, string project, string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| SecurityPolicyRule | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | securityPolicy | Name of the security policy to update. |
Returns
| Type | Description |
|---|---|
| SecurityPoliciesResource.PatchRuleRequest |
RemoveRule(String, String)
Deletes a rule at the specified priority.
Declaration
public virtual SecurityPoliciesResource.RemoveRuleRequest RemoveRule(string project, string securityPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | securityPolicy | Name of the security policy to update. |
Returns
| Type | Description |
|---|---|
| SecurityPoliciesResource.RemoveRuleRequest |