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.ManagedRulesetsClientNamespace
Google.Cloud.Compute.V1Assembly
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 |
CallInvokerThe callInvoker to use to make remote calls. |
ManagedRulesetsClient(ChannelBase)
public ManagedRulesetsClient(ChannelBase channel)Creates a new client for ManagedRulesets
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe 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 |
ClientBaseClientBaseConfigurationThe 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 |
GetManagedRulesetRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
GetManagedRulesetRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
GetManagedRulesetRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
GetManagedRulesetRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
ListManagedRulesetsRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
ListManagedRulesetsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
ListManagedRulesetsRequestThe request to send to the server. |
options |
CallOptionsThe 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 |
ListManagedRulesetsRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn 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 |
|