Class OrganizationSecurityPoliciesResource
The "organizationSecurityPolicies" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class OrganizationSecurityPoliciesResource
Constructors
OrganizationSecurityPoliciesResource(IClientService)
Constructs a new resource.
Declaration
public OrganizationSecurityPoliciesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
AddAssociation(SecurityPolicyAssociation, string)
Inserts an association for the specified security policy.
Declaration
public virtual OrganizationSecurityPoliciesResource.AddAssociationRequest AddAssociation(SecurityPolicyAssociation body, string securityPolicy)
Parameters
Type | Name | Description |
---|---|---|
SecurityPolicyAssociation | body | The body of the request. |
string | securityPolicy | Name of the security policy to update. |
Returns
Type | Description |
---|---|
OrganizationSecurityPoliciesResource.AddAssociationRequest |
AddRule(SecurityPolicyRule, string)
Inserts a rule into a security policy.
Declaration
public virtual OrganizationSecurityPoliciesResource.AddRuleRequest AddRule(SecurityPolicyRule body, string securityPolicy)
Parameters
Type | Name | Description |
---|---|---|
SecurityPolicyRule | body | The body of the request. |
string | securityPolicy | Name of the security policy to update. |
Returns
Type | Description |
---|---|
OrganizationSecurityPoliciesResource.AddRuleRequest |
CopyRules(string)
Copies rules to the specified security policy.
Declaration
public virtual OrganizationSecurityPoliciesResource.CopyRulesRequest CopyRules(string securityPolicy)
Parameters
Type | Name | Description |
---|---|---|
string | securityPolicy | Name of the security policy to update. |
Returns
Type | Description |
---|---|
OrganizationSecurityPoliciesResource.CopyRulesRequest |
Delete(string)
Deletes the specified policy.
Declaration
public virtual OrganizationSecurityPoliciesResource.DeleteRequest Delete(string securityPolicy)
Parameters
Type | Name | Description |
---|---|---|
string | securityPolicy | Name of the security policy to delete. |
Returns
Type | Description |
---|---|
OrganizationSecurityPoliciesResource.DeleteRequest |
Get(string)
List all of the ordered rules present in a single specified policy.
Declaration
public virtual OrganizationSecurityPoliciesResource.GetRequest Get(string securityPolicy)
Parameters
Type | Name | Description |
---|---|---|
string | securityPolicy | Name of the security policy to get. |
Returns
Type | Description |
---|---|
OrganizationSecurityPoliciesResource.GetRequest |
GetAssociation(string)
Gets an association with the specified name.
Declaration
public virtual OrganizationSecurityPoliciesResource.GetAssociationRequest GetAssociation(string securityPolicy)
Parameters
Type | Name | Description |
---|---|---|
string | securityPolicy | Name of the security policy to which the queried rule belongs. |
Returns
Type | Description |
---|---|
OrganizationSecurityPoliciesResource.GetAssociationRequest |
GetRule(string)
Gets a rule at the specified priority.
Declaration
public virtual OrganizationSecurityPoliciesResource.GetRuleRequest GetRule(string securityPolicy)
Parameters
Type | Name | Description |
---|---|---|
string | securityPolicy | Name of the security policy to which the queried rule belongs. |
Returns
Type | Description |
---|---|
OrganizationSecurityPoliciesResource.GetRuleRequest |
Insert(SecurityPolicy)
Creates a new policy in the specified project using the data included in the request.
Declaration
public virtual OrganizationSecurityPoliciesResource.InsertRequest Insert(SecurityPolicy body)
Parameters
Type | Name | Description |
---|---|---|
SecurityPolicy | body | The body of the request. |
Returns
Type | Description |
---|---|
OrganizationSecurityPoliciesResource.InsertRequest |
List()
List all the policies that have been configured for the specified project.
Declaration
public virtual OrganizationSecurityPoliciesResource.ListRequest List()
Returns
Type | Description |
---|---|
OrganizationSecurityPoliciesResource.ListRequest |
ListAssociations()
Lists associations of a specified target, i.e., organization or folder.
Declaration
public virtual OrganizationSecurityPoliciesResource.ListAssociationsRequest ListAssociations()
Returns
Type | Description |
---|---|
OrganizationSecurityPoliciesResource.ListAssociationsRequest |
ListPreconfiguredExpressionSets()
Gets the current list of preconfigured Web Application Firewall (WAF) expressions.
Declaration
public virtual OrganizationSecurityPoliciesResource.ListPreconfiguredExpressionSetsRequest ListPreconfiguredExpressionSets()
Returns
Type | Description |
---|---|
OrganizationSecurityPoliciesResource.ListPreconfiguredExpressionSetsRequest |
Move(string)
Moves the specified security policy.
Declaration
public virtual OrganizationSecurityPoliciesResource.MoveRequest Move(string securityPolicy)
Parameters
Type | Name | Description |
---|---|---|
string | securityPolicy | Name of the security policy to update. |
Returns
Type | Description |
---|---|
OrganizationSecurityPoliciesResource.MoveRequest |
Patch(SecurityPolicy, string)
Patches the specified policy with the data included in the request.
Declaration
public virtual OrganizationSecurityPoliciesResource.PatchRequest Patch(SecurityPolicy body, string securityPolicy)
Parameters
Type | Name | Description |
---|---|---|
SecurityPolicy | body | The body of the request. |
string | securityPolicy | Name of the security policy to update. |
Returns
Type | Description |
---|---|
OrganizationSecurityPoliciesResource.PatchRequest |
PatchRule(SecurityPolicyRule, string)
Patches a rule at the specified priority.
Declaration
public virtual OrganizationSecurityPoliciesResource.PatchRuleRequest PatchRule(SecurityPolicyRule body, string securityPolicy)
Parameters
Type | Name | Description |
---|---|---|
SecurityPolicyRule | body | The body of the request. |
string | securityPolicy | Name of the security policy to update. |
Returns
Type | Description |
---|---|
OrganizationSecurityPoliciesResource.PatchRuleRequest |
RemoveAssociation(string)
Removes an association for the specified security policy.
Declaration
public virtual OrganizationSecurityPoliciesResource.RemoveAssociationRequest RemoveAssociation(string securityPolicy)
Parameters
Type | Name | Description |
---|---|---|
string | securityPolicy | Name of the security policy to update. |
Returns
Type | Description |
---|---|
OrganizationSecurityPoliciesResource.RemoveAssociationRequest |
RemoveRule(string)
Deletes a rule at the specified priority.
Declaration
public virtual OrganizationSecurityPoliciesResource.RemoveRuleRequest RemoveRule(string securityPolicy)
Parameters
Type | Name | Description |
---|---|---|
string | securityPolicy | Name of the security policy to update. |
Returns
Type | Description |
---|---|
OrganizationSecurityPoliciesResource.RemoveRuleRequest |