[BindServiceMethod(typeof(RegionSecurityPolicies), "BindService")]
public abstract class RegionSecurityPolicies.RegionSecurityPoliciesBaseReference documentation and code samples for the Compute Engine v1 API class RegionSecurityPolicies.RegionSecurityPoliciesBase.
Base class for server-side implementations of RegionSecurityPolicies
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Methods
AddRule(AddRuleRegionSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> AddRule(AddRuleRegionSecurityPolicyRequest request, ServerCallContext context)Inserts a rule into a security policy.
| Parameters | |
|---|---|
| Name | Description |
request |
AddRuleRegionSecurityPolicyRequestThe 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(DeleteRegionSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> Delete(DeleteRegionSecurityPolicyRequest request, ServerCallContext context)Deletes the specified policy.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRegionSecurityPolicyRequestThe 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(GetRegionSecurityPolicyRequest, ServerCallContext)
public virtual Task<SecurityPolicy> Get(GetRegionSecurityPolicyRequest request, ServerCallContext context)List all of the ordered rules present in a single specified policy.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRegionSecurityPolicyRequestThe 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). |
GetRule(GetRuleRegionSecurityPolicyRequest, ServerCallContext)
public virtual Task<SecurityPolicyRule> GetRule(GetRuleRegionSecurityPolicyRequest request, ServerCallContext context)Gets a rule at the specified priority.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRuleRegionSecurityPolicyRequestThe 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(InsertRegionSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> Insert(InsertRegionSecurityPolicyRequest request, ServerCallContext context)Creates a new policy in the specified project using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertRegionSecurityPolicyRequestThe 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(ListRegionSecurityPoliciesRequest, ServerCallContext)
public virtual Task<SecurityPolicyList> List(ListRegionSecurityPoliciesRequest request, ServerCallContext context)List all the policies that have been configured for the specified project and region.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRegionSecurityPoliciesRequestThe 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). |
Patch(PatchRegionSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> Patch(PatchRegionSecurityPolicyRequest request, ServerCallContext context)Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
| Parameters | |
|---|---|
| Name | Description |
request |
PatchRegionSecurityPolicyRequestThe 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(PatchRuleRegionSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> PatchRule(PatchRuleRegionSecurityPolicyRequest request, ServerCallContext context)Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.
| Parameters | |
|---|---|
| Name | Description |
request |
PatchRuleRegionSecurityPolicyRequestThe 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(RemoveRuleRegionSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> RemoveRule(RemoveRuleRegionSecurityPolicyRequest request, ServerCallContext context)Deletes a rule at the specified priority.
| Parameters | |
|---|---|
| Name | Description |
request |
RemoveRuleRegionSecurityPolicyRequestThe 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). |
SetLabels(SetLabelsRegionSecurityPolicyRequest, ServerCallContext)
public virtual Task<Operation> SetLabels(SetLabelsRegionSecurityPolicyRequest request, ServerCallContext context)Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation.
| Parameters | |
|---|---|
| Name | Description |
request |
SetLabelsRegionSecurityPolicyRequestThe 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). |