[BindServiceMethod(typeof(OrganizationSecurityPolicies), "BindService")]
public abstract class OrganizationSecurityPolicies.OrganizationSecurityPoliciesBaseReference documentation and code samples for the Compute Engine v1 API class OrganizationSecurityPolicies.OrganizationSecurityPoliciesBase.
Base class for server-side implementations of OrganizationSecurityPolicies
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Methods
AddAssociation(AddAssociationOrganizationSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> AddAssociation(AddAssociationOrganizationSecurityPolicyRequest request, ServerCallContext context)Inserts an association for the specified security policy. This has billing implications. Projects in the hierarchy with effective hierarchical security policies will be automatically enrolled into Cloud Armor Enterprise if not already enrolled. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.addAssociation instead if possible.
| Parameters | |
|---|---|
| Name | Description |
request |
AddAssociationOrganizationSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
AddRule(AddRuleOrganizationSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> AddRule(AddRuleOrganizationSecurityPolicyRequest request, ServerCallContext context)Inserts a rule into a security policy.
| Parameters | |
|---|---|
| Name | Description |
request |
AddRuleOrganizationSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
CopyRules(CopyRulesOrganizationSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> CopyRules(CopyRulesOrganizationSecurityPolicyRequest request, ServerCallContext context)Copies rules to the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.copyRules instead.
| Parameters | |
|---|---|
| Name | Description |
request |
CopyRulesOrganizationSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
Delete(DeleteOrganizationSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> Delete(DeleteOrganizationSecurityPolicyRequest request, ServerCallContext context)Deletes the specified policy. Use of this API to remove firewall policies is deprecated. Use firewallPolicies.delete instead.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteOrganizationSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
Get(GetOrganizationSecurityPolicyRequest, ServerCallContext)
public virtual Task<SecurityPolicy> Get(GetOrganizationSecurityPolicyRequest request, ServerCallContext context)List all of the ordered rules present in a single specified policy. Use of this API to read firewall policies is deprecated. Use firewallPolicies.get instead.
| Parameters | |
|---|---|
| Name | Description |
request |
GetOrganizationSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskSecurityPolicy |
The response to send back to the client (wrapped by a task). |
GetAssociation(GetAssociationOrganizationSecurityPolicyRequest, ServerCallContext)
public virtual Task<SecurityPolicyAssociation> GetAssociation(GetAssociationOrganizationSecurityPolicyRequest request, ServerCallContext context)Gets an association with the specified name. Use of this API to read firewall policies is deprecated. Use firewallPolicies.getAssociation instead if possible.
| Parameters | |
|---|---|
| Name | Description |
request |
GetAssociationOrganizationSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskSecurityPolicyAssociation |
The response to send back to the client (wrapped by a task). |
GetRule(GetRuleOrganizationSecurityPolicyRequest, ServerCallContext)
public virtual Task<SecurityPolicyRule> GetRule(GetRuleOrganizationSecurityPolicyRequest request, ServerCallContext context)Gets a rule at the specified priority. Use of this API to read firewall policies is deprecated. Use firewallPolicies.getRule instead.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRuleOrganizationSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskSecurityPolicyRule |
The response to send back to the client (wrapped by a task). |
Insert(InsertOrganizationSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> Insert(InsertOrganizationSecurityPolicyRequest request, ServerCallContext context)Creates a new policy in the specified project using the data included in the request. Use of this API to insert firewall policies is deprecated. Use firewallPolicies.insert instead.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertOrganizationSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
List(ListOrganizationSecurityPoliciesRequest, ServerCallContext)
public virtual Task<SecurityPolicyList> List(ListOrganizationSecurityPoliciesRequest request, ServerCallContext context)List all the policies that have been configured for the specified project. Use of this API to read firewall policies is deprecated. Use firewallPolicies.list instead.
| Parameters | |
|---|---|
| Name | Description |
request |
ListOrganizationSecurityPoliciesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskSecurityPolicyList |
The response to send back to the client (wrapped by a task). |
ListAssociations(ListAssociationsOrganizationSecurityPolicyRequest, ServerCallContext)
public virtual Task<OrganizationSecurityPoliciesListAssociationsResponse> ListAssociations(ListAssociationsOrganizationSecurityPolicyRequest request, ServerCallContext context)Lists associations of a specified target, i.e., organization or folder. Use of this API to read firewall policies is deprecated. Use firewallPolicies.listAssociations instead if possible.
| Parameters | |
|---|---|
| Name | Description |
request |
ListAssociationsOrganizationSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOrganizationSecurityPoliciesListAssociationsResponse |
The response to send back to the client (wrapped by a task). |
ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest, ServerCallContext)
public virtual Task<SecurityPoliciesListPreconfiguredExpressionSetsResponse> ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest request, ServerCallContext context)Gets the current list of preconfigured Web Application Firewall (WAF) expressions.
| Parameters | |
|---|---|
| Name | Description |
request |
ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskSecurityPoliciesListPreconfiguredExpressionSetsResponse |
The response to send back to the client (wrapped by a task). |
Move(MoveOrganizationSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> Move(MoveOrganizationSecurityPolicyRequest request, ServerCallContext context)Moves the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.move instead.
| Parameters | |
|---|---|
| Name | Description |
request |
MoveOrganizationSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
Patch(PatchOrganizationSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> Patch(PatchOrganizationSecurityPolicyRequest request, ServerCallContext context)Patches the specified policy with the data included in the request. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.patch instead.
| Parameters | |
|---|---|
| Name | Description |
request |
PatchOrganizationSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
PatchRule(PatchRuleOrganizationSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> PatchRule(PatchRuleOrganizationSecurityPolicyRequest request, ServerCallContext context)Patches a rule at the specified priority. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.patchRule instead.
| Parameters | |
|---|---|
| Name | Description |
request |
PatchRuleOrganizationSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
RemoveAssociation(RemoveAssociationOrganizationSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> RemoveAssociation(RemoveAssociationOrganizationSecurityPolicyRequest request, ServerCallContext context)Removes an association for the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.removeAssociation instead if possible.
| Parameters | |
|---|---|
| Name | Description |
request |
RemoveAssociationOrganizationSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
RemoveRule(RemoveRuleOrganizationSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> RemoveRule(RemoveRuleOrganizationSecurityPolicyRequest request, ServerCallContext context)Deletes a rule at the specified priority.
| Parameters | |
|---|---|
| Name | Description |
request |
RemoveRuleOrganizationSecurityPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |