Compute Engine v1 API - Class OrganizationSecurityPolicies.OrganizationSecurityPoliciesClient (3.18.0)

public class OrganizationSecurityPolicies.OrganizationSecurityPoliciesClient : ClientBase<OrganizationSecurityPolicies.OrganizationSecurityPoliciesClient>

Reference documentation and code samples for the Compute Engine v1 API class OrganizationSecurityPolicies.OrganizationSecurityPoliciesClient.

Client for OrganizationSecurityPolicies

Inheritance

object > ClientBase > ClientBaseOrganizationSecurityPoliciesOrganizationSecurityPoliciesClient > OrganizationSecurityPolicies.OrganizationSecurityPoliciesClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

OrganizationSecurityPoliciesClient()

protected OrganizationSecurityPoliciesClient()

Protected parameterless constructor to allow creation of test doubles.

OrganizationSecurityPoliciesClient(CallInvoker)

public OrganizationSecurityPoliciesClient(CallInvoker callInvoker)

Creates a new client for OrganizationSecurityPolicies that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

OrganizationSecurityPoliciesClient(ChannelBase)

public OrganizationSecurityPoliciesClient(ChannelBase channel)

Creates a new client for OrganizationSecurityPolicies

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

OrganizationSecurityPoliciesClient(ClientBaseConfiguration)

protected OrganizationSecurityPoliciesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

AddAssociation(AddAssociationOrganizationSecurityPolicyRequest, CallOptions)

public virtual Operation AddAssociation(AddAssociationOrganizationSecurityPolicyRequest request, CallOptions options)

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 AddAssociationOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

AddAssociation(AddAssociationOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation AddAssociation(AddAssociationOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 AddAssociationOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

AddAssociationAsync(AddAssociationOrganizationSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> AddAssociationAsync(AddAssociationOrganizationSecurityPolicyRequest request, CallOptions options)

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 AddAssociationOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

AddAssociationAsync(AddAssociationOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> AddAssociationAsync(AddAssociationOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 AddAssociationOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

AddRule(AddRuleOrganizationSecurityPolicyRequest, CallOptions)

public virtual Operation AddRule(AddRuleOrganizationSecurityPolicyRequest request, CallOptions options)

Inserts a rule into a security policy.

Parameters
Name Description
request AddRuleOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

AddRule(AddRuleOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation AddRule(AddRuleOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Inserts a rule into a security policy.

Parameters
Name Description
request AddRuleOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

AddRuleAsync(AddRuleOrganizationSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> AddRuleAsync(AddRuleOrganizationSecurityPolicyRequest request, CallOptions options)

Inserts a rule into a security policy.

Parameters
Name Description
request AddRuleOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

AddRuleAsync(AddRuleOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> AddRuleAsync(AddRuleOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Inserts a rule into a security policy.

Parameters
Name Description
request AddRuleOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

CopyRules(CopyRulesOrganizationSecurityPolicyRequest, CallOptions)

public virtual Operation CopyRules(CopyRulesOrganizationSecurityPolicyRequest request, CallOptions options)

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 CopyRulesOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

CopyRules(CopyRulesOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation CopyRules(CopyRulesOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 CopyRulesOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

CopyRulesAsync(CopyRulesOrganizationSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> CopyRulesAsync(CopyRulesOrganizationSecurityPolicyRequest request, CallOptions options)

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 CopyRulesOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

CopyRulesAsync(CopyRulesOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> CopyRulesAsync(CopyRulesOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 CopyRulesOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

CreateOperationsClientForGlobalOrganizationOperations()

public virtual Operations.OperationsClient CreateOperationsClientForGlobalOrganizationOperations()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to GlobalOrganizationOperations.

Returns
Type Description
OperationsOperationsClient

A new Operations client for the same target as this client.

Delete(DeleteOrganizationSecurityPolicyRequest, CallOptions)

public virtual Operation Delete(DeleteOrganizationSecurityPolicyRequest request, CallOptions options)

Deletes the specified policy. Use of this API to remove firewall policies is deprecated. Use firewallPolicies.delete instead.

Parameters
Name Description
request DeleteOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Delete(DeleteOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Delete(DeleteOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified policy. Use of this API to remove firewall policies is deprecated. Use firewallPolicies.delete instead.

Parameters
Name Description
request DeleteOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

DeleteAsync(DeleteOrganizationSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteOrganizationSecurityPolicyRequest request, CallOptions options)

Deletes the specified policy. Use of this API to remove firewall policies is deprecated. Use firewallPolicies.delete instead.

Parameters
Name Description
request DeleteOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified policy. Use of this API to remove firewall policies is deprecated. Use firewallPolicies.delete instead.

Parameters
Name Description
request DeleteOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

Get(GetOrganizationSecurityPolicyRequest, CallOptions)

public virtual SecurityPolicy Get(GetOrganizationSecurityPolicyRequest request, CallOptions options)

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 GetOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
SecurityPolicy

The response received from the server.

Get(GetOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual SecurityPolicy Get(GetOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 GetOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
SecurityPolicy

The response received from the server.

GetAssociation(GetAssociationOrganizationSecurityPolicyRequest, CallOptions)

public virtual SecurityPolicyAssociation GetAssociation(GetAssociationOrganizationSecurityPolicyRequest request, CallOptions options)

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 GetAssociationOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
SecurityPolicyAssociation

The response received from the server.

GetAssociation(GetAssociationOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual SecurityPolicyAssociation GetAssociation(GetAssociationOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 GetAssociationOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
SecurityPolicyAssociation

The response received from the server.

GetAssociationAsync(GetAssociationOrganizationSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<SecurityPolicyAssociation> GetAssociationAsync(GetAssociationOrganizationSecurityPolicyRequest request, CallOptions options)

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 GetAssociationOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSecurityPolicyAssociation

The call object.

GetAssociationAsync(GetAssociationOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<SecurityPolicyAssociation> GetAssociationAsync(GetAssociationOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 GetAssociationOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallSecurityPolicyAssociation

The call object.

GetAsync(GetOrganizationSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<SecurityPolicy> GetAsync(GetOrganizationSecurityPolicyRequest request, CallOptions options)

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 GetOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSecurityPolicy

The call object.

GetAsync(GetOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<SecurityPolicy> GetAsync(GetOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 GetOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallSecurityPolicy

The call object.

GetRule(GetRuleOrganizationSecurityPolicyRequest, CallOptions)

public virtual SecurityPolicyRule GetRule(GetRuleOrganizationSecurityPolicyRequest request, CallOptions options)

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 GetRuleOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
SecurityPolicyRule

The response received from the server.

GetRule(GetRuleOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual SecurityPolicyRule GetRule(GetRuleOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 GetRuleOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
SecurityPolicyRule

The response received from the server.

GetRuleAsync(GetRuleOrganizationSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<SecurityPolicyRule> GetRuleAsync(GetRuleOrganizationSecurityPolicyRequest request, CallOptions options)

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 GetRuleOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSecurityPolicyRule

The call object.

GetRuleAsync(GetRuleOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<SecurityPolicyRule> GetRuleAsync(GetRuleOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 GetRuleOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallSecurityPolicyRule

The call object.

Insert(InsertOrganizationSecurityPolicyRequest, CallOptions)

public virtual Operation Insert(InsertOrganizationSecurityPolicyRequest request, CallOptions options)

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 InsertOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Insert(InsertOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Insert(InsertOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 InsertOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

InsertAsync(InsertOrganizationSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertOrganizationSecurityPolicyRequest request, CallOptions options)

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 InsertOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 InsertOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

List(ListOrganizationSecurityPoliciesRequest, CallOptions)

public virtual SecurityPolicyList List(ListOrganizationSecurityPoliciesRequest request, CallOptions options)

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 ListOrganizationSecurityPoliciesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
SecurityPolicyList

The response received from the server.

List(ListOrganizationSecurityPoliciesRequest, Metadata, DateTime?, CancellationToken)

public virtual SecurityPolicyList List(ListOrganizationSecurityPoliciesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 ListOrganizationSecurityPoliciesRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
SecurityPolicyList

The response received from the server.

ListAssociations(ListAssociationsOrganizationSecurityPolicyRequest, CallOptions)

public virtual OrganizationSecurityPoliciesListAssociationsResponse ListAssociations(ListAssociationsOrganizationSecurityPolicyRequest request, CallOptions options)

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 ListAssociationsOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
OrganizationSecurityPoliciesListAssociationsResponse

The response received from the server.

ListAssociations(ListAssociationsOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual OrganizationSecurityPoliciesListAssociationsResponse ListAssociations(ListAssociationsOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 ListAssociationsOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
OrganizationSecurityPoliciesListAssociationsResponse

The response received from the server.

ListAssociationsAsync(ListAssociationsOrganizationSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<OrganizationSecurityPoliciesListAssociationsResponse> ListAssociationsAsync(ListAssociationsOrganizationSecurityPolicyRequest request, CallOptions options)

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 ListAssociationsOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOrganizationSecurityPoliciesListAssociationsResponse

The call object.

ListAssociationsAsync(ListAssociationsOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<OrganizationSecurityPoliciesListAssociationsResponse> ListAssociationsAsync(ListAssociationsOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 ListAssociationsOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOrganizationSecurityPoliciesListAssociationsResponse

The call object.

ListAsync(ListOrganizationSecurityPoliciesRequest, CallOptions)

public virtual AsyncUnaryCall<SecurityPolicyList> ListAsync(ListOrganizationSecurityPoliciesRequest request, CallOptions options)

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 ListOrganizationSecurityPoliciesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSecurityPolicyList

The call object.

ListAsync(ListOrganizationSecurityPoliciesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<SecurityPolicyList> ListAsync(ListOrganizationSecurityPoliciesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 ListOrganizationSecurityPoliciesRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallSecurityPolicyList

The call object.

ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest, CallOptions)

public virtual SecurityPoliciesListPreconfiguredExpressionSetsResponse ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest request, CallOptions options)

Gets the current list of preconfigured Web Application Firewall (WAF) expressions.

Parameters
Name Description
request ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
SecurityPoliciesListPreconfiguredExpressionSetsResponse

The response received from the server.

ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest, Metadata, DateTime?, CancellationToken)

public virtual SecurityPoliciesListPreconfiguredExpressionSetsResponse ListPreconfiguredExpressionSets(ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the current list of preconfigured Web Application Firewall (WAF) expressions.

Parameters
Name Description
request ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
SecurityPoliciesListPreconfiguredExpressionSetsResponse

The response received from the server.

ListPreconfiguredExpressionSetsAsync(ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest, CallOptions)

public virtual AsyncUnaryCall<SecurityPoliciesListPreconfiguredExpressionSetsResponse> ListPreconfiguredExpressionSetsAsync(ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest request, CallOptions options)

Gets the current list of preconfigured Web Application Firewall (WAF) expressions.

Parameters
Name Description
request ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSecurityPoliciesListPreconfiguredExpressionSetsResponse

The call object.

ListPreconfiguredExpressionSetsAsync(ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<SecurityPoliciesListPreconfiguredExpressionSetsResponse> ListPreconfiguredExpressionSetsAsync(ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the current list of preconfigured Web Application Firewall (WAF) expressions.

Parameters
Name Description
request ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallSecurityPoliciesListPreconfiguredExpressionSetsResponse

The call object.

Move(MoveOrganizationSecurityPolicyRequest, CallOptions)

public virtual Operation Move(MoveOrganizationSecurityPolicyRequest request, CallOptions options)

Moves the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.move instead.

Parameters
Name Description
request MoveOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Move(MoveOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Move(MoveOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Moves the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.move instead.

Parameters
Name Description
request MoveOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

MoveAsync(MoveOrganizationSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> MoveAsync(MoveOrganizationSecurityPolicyRequest request, CallOptions options)

Moves the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.move instead.

Parameters
Name Description
request MoveOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

MoveAsync(MoveOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> MoveAsync(MoveOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Moves the specified security policy. Use of this API to modify firewall policies is deprecated. Use firewallPolicies.move instead.

Parameters
Name Description
request MoveOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

NewInstance(ClientBaseConfiguration)

protected override OrganizationSecurityPolicies.OrganizationSecurityPoliciesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
OrganizationSecurityPoliciesOrganizationSecurityPoliciesClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.OrganizationSecurityPolicies.OrganizationSecurityPoliciesClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Patch(PatchOrganizationSecurityPolicyRequest, CallOptions)

public virtual Operation Patch(PatchOrganizationSecurityPolicyRequest request, CallOptions options)

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 PatchOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Patch(PatchOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Patch(PatchOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 PatchOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

PatchAsync(PatchOrganizationSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchOrganizationSecurityPolicyRequest request, CallOptions options)

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 PatchOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

PatchAsync(PatchOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 PatchOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

PatchRule(PatchRuleOrganizationSecurityPolicyRequest, CallOptions)

public virtual Operation PatchRule(PatchRuleOrganizationSecurityPolicyRequest request, CallOptions options)

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 PatchRuleOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

PatchRule(PatchRuleOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation PatchRule(PatchRuleOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 PatchRuleOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

PatchRuleAsync(PatchRuleOrganizationSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> PatchRuleAsync(PatchRuleOrganizationSecurityPolicyRequest request, CallOptions options)

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 PatchRuleOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

PatchRuleAsync(PatchRuleOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> PatchRuleAsync(PatchRuleOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 PatchRuleOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

RemoveAssociation(RemoveAssociationOrganizationSecurityPolicyRequest, CallOptions)

public virtual Operation RemoveAssociation(RemoveAssociationOrganizationSecurityPolicyRequest request, CallOptions options)

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 RemoveAssociationOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

RemoveAssociation(RemoveAssociationOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation RemoveAssociation(RemoveAssociationOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 RemoveAssociationOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

RemoveAssociationAsync(RemoveAssociationOrganizationSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> RemoveAssociationAsync(RemoveAssociationOrganizationSecurityPolicyRequest request, CallOptions options)

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 RemoveAssociationOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

RemoveAssociationAsync(RemoveAssociationOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> RemoveAssociationAsync(RemoveAssociationOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 RemoveAssociationOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

RemoveRule(RemoveRuleOrganizationSecurityPolicyRequest, CallOptions)

public virtual Operation RemoveRule(RemoveRuleOrganizationSecurityPolicyRequest request, CallOptions options)

Deletes a rule at the specified priority.

Parameters
Name Description
request RemoveRuleOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

RemoveRule(RemoveRuleOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation RemoveRule(RemoveRuleOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a rule at the specified priority.

Parameters
Name Description
request RemoveRuleOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

RemoveRuleAsync(RemoveRuleOrganizationSecurityPolicyRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> RemoveRuleAsync(RemoveRuleOrganizationSecurityPolicyRequest request, CallOptions options)

Deletes a rule at the specified priority.

Parameters
Name Description
request RemoveRuleOrganizationSecurityPolicyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

RemoveRuleAsync(RemoveRuleOrganizationSecurityPolicyRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> RemoveRuleAsync(RemoveRuleOrganizationSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a rule at the specified priority.

Parameters
Name Description
request RemoveRuleOrganizationSecurityPolicyRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.