Compute Engine v1 API - Class ManagedRulesets.ManagedRulesetsClient (4.0.0)

public class ManagedRulesets.ManagedRulesetsClient : ClientBase<ManagedRulesets.ManagedRulesetsClient>

Reference documentation and code samples for the Compute Engine v1 API class ManagedRulesets.ManagedRulesetsClient.

Client for ManagedRulesets

Inheritance

object > ClientBase > ClientBaseManagedRulesetsManagedRulesetsClient > ManagedRulesets.ManagedRulesetsClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

ManagedRulesetsClient()

protected ManagedRulesetsClient()

Protected parameterless constructor to allow creation of test doubles.

ManagedRulesetsClient(CallInvoker)

public ManagedRulesetsClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

ManagedRulesetsClient(ChannelBase)

public ManagedRulesetsClient(ChannelBase channel)

Creates a new client for ManagedRulesets

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

ManagedRulesetsClient(ClientBaseConfiguration)

protected ManagedRulesetsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

Get(GetManagedRulesetRequest, CallOptions)

public virtual ManagedRuleset Get(GetManagedRulesetRequest request, CallOptions options)

Gets the details for the specified managed ruleset name.

Parameters
Name Description
request GetManagedRulesetRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ManagedRuleset

The response received from the server.

Get(GetManagedRulesetRequest, Metadata, DateTime?, CancellationToken)

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

Gets the details for the specified managed ruleset name.

Parameters
Name Description
request GetManagedRulesetRequest

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
ManagedRuleset

The response received from the server.

GetAsync(GetManagedRulesetRequest, CallOptions)

public virtual AsyncUnaryCall<ManagedRuleset> GetAsync(GetManagedRulesetRequest request, CallOptions options)

Gets the details for the specified managed ruleset name.

Parameters
Name Description
request GetManagedRulesetRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallManagedRuleset

The call object.

GetAsync(GetManagedRulesetRequest, Metadata, DateTime?, CancellationToken)

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

Gets the details for the specified managed ruleset name.

Parameters
Name Description
request GetManagedRulesetRequest

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
AsyncUnaryCallManagedRuleset

The call object.

List(ListManagedRulesetsRequest, CallOptions)

public virtual ManagedRulesetList List(ListManagedRulesetsRequest request, CallOptions options)

Retrieves the list of all the managed rulesets available.

Parameters
Name Description
request ListManagedRulesetsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ManagedRulesetList

The response received from the server.

List(ListManagedRulesetsRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves the list of all the managed rulesets available.

Parameters
Name Description
request ListManagedRulesetsRequest

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
ManagedRulesetList

The response received from the server.

ListAsync(ListManagedRulesetsRequest, CallOptions)

public virtual AsyncUnaryCall<ManagedRulesetList> ListAsync(ListManagedRulesetsRequest request, CallOptions options)

Retrieves the list of all the managed rulesets available.

Parameters
Name Description
request ListManagedRulesetsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallManagedRulesetList

The call object.

ListAsync(ListManagedRulesetsRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves the list of all the managed rulesets available.

Parameters
Name Description
request ListManagedRulesetsRequest

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
AsyncUnaryCallManagedRulesetList

The call object.

NewInstance(ClientBaseConfiguration)

protected override ManagedRulesets.ManagedRulesetsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
ManagedRulesetsManagedRulesetsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.ManagedRulesets.ManagedRulesetsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)