public sealed class ForwardingRulesClientImpl : ForwardingRulesClient
ForwardingRules client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The ForwardingRules API.
Constructors
ForwardingRulesClientImpl(ForwardingRules.ForwardingRulesClient, ForwardingRulesSettings, ILogger)
public ForwardingRulesClientImpl(ForwardingRules.ForwardingRulesClient grpcClient, ForwardingRulesSettings settings, ILogger logger)
Constructs a client wrapper for the ForwardingRules service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | ForwardingRules.ForwardingRulesClient The underlying gRPC client. |
settings | ForwardingRulesSettings The base ForwardingRulesSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
DeleteOperationsClient
public override OperationsClient DeleteOperationsClient { get; }
The long-running operations client for Delete
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public override ForwardingRules.ForwardingRulesClient GrpcClient { get; }
The underlying gRPC ForwardingRules client
Property Value | |
---|---|
Type | Description |
ForwardingRules.ForwardingRulesClient |
InsertOperationsClient
public override OperationsClient InsertOperationsClient { get; }
The long-running operations client for Insert
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
PatchOperationsClient
public override OperationsClient PatchOperationsClient { get; }
The long-running operations client for Patch
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
SetLabelsOperationsClient
public override OperationsClient SetLabelsOperationsClient { get; }
The long-running operations client for SetLabels
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
SetTargetOperationsClient
public override OperationsClient SetTargetOperationsClient { get; }
The long-running operations client for SetTarget
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
AggregatedList(AggregatedListForwardingRulesRequest, CallSettings)
public override PagedEnumerable<ForwardingRuleAggregatedList, KeyValuePair<string, ForwardingRulesScopedList>> AggregatedList(AggregatedListForwardingRulesRequest request, CallSettings callSettings = null)
Retrieves an aggregated list of forwarding rules.
Parameters | |
---|---|
Name | Description |
request | AggregatedListForwardingRulesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ForwardingRuleAggregatedList, KeyValuePair<String, ForwardingRulesScopedList>> | A pageable sequence of KeyValuePair<TKey,TValue> resources. |
AggregatedListAsync(AggregatedListForwardingRulesRequest, CallSettings)
public override PagedAsyncEnumerable<ForwardingRuleAggregatedList, KeyValuePair<string, ForwardingRulesScopedList>> AggregatedListAsync(AggregatedListForwardingRulesRequest request, CallSettings callSettings = null)
Retrieves an aggregated list of forwarding rules.
Parameters | |
---|---|
Name | Description |
request | AggregatedListForwardingRulesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ForwardingRuleAggregatedList, KeyValuePair<String, ForwardingRulesScopedList>> | A pageable asynchronous sequence of KeyValuePair<TKey,TValue> resources. |
Delete(DeleteForwardingRuleRequest, CallSettings)
public override Operation<Operation, Operation> Delete(DeleteForwardingRuleRequest request, CallSettings callSettings = null)
Deletes the specified ForwardingRule resource.
Parameters | |
---|---|
Name | Description |
request | DeleteForwardingRuleRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
DeleteAsync(DeleteForwardingRuleRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> DeleteAsync(DeleteForwardingRuleRequest request, CallSettings callSettings = null)
Deletes the specified ForwardingRule resource.
Parameters | |
---|---|
Name | Description |
request | DeleteForwardingRuleRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
Get(GetForwardingRuleRequest, CallSettings)
public override ForwardingRule Get(GetForwardingRuleRequest request, CallSettings callSettings = null)
Returns the specified ForwardingRule resource.
Parameters | |
---|---|
Name | Description |
request | GetForwardingRuleRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ForwardingRule | The RPC response. |
GetAsync(GetForwardingRuleRequest, CallSettings)
public override Task<ForwardingRule> GetAsync(GetForwardingRuleRequest request, CallSettings callSettings = null)
Returns the specified ForwardingRule resource.
Parameters | |
---|---|
Name | Description |
request | GetForwardingRuleRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<ForwardingRule> | A Task containing the RPC response. |
Insert(InsertForwardingRuleRequest, CallSettings)
public override Operation<Operation, Operation> Insert(InsertForwardingRuleRequest request, CallSettings callSettings = null)
Creates a ForwardingRule resource in the specified project and region using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertForwardingRuleRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
InsertAsync(InsertForwardingRuleRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> InsertAsync(InsertForwardingRuleRequest request, CallSettings callSettings = null)
Creates a ForwardingRule resource in the specified project and region using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertForwardingRuleRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
List(ListForwardingRulesRequest, CallSettings)
public override PagedEnumerable<ForwardingRuleList, ForwardingRule> List(ListForwardingRulesRequest request, CallSettings callSettings = null)
Retrieves a list of ForwardingRule resources available to the specified project and region.
Parameters | |
---|---|
Name | Description |
request | ListForwardingRulesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ForwardingRuleList, ForwardingRule> | A pageable sequence of ForwardingRule resources. |
ListAsync(ListForwardingRulesRequest, CallSettings)
public override PagedAsyncEnumerable<ForwardingRuleList, ForwardingRule> ListAsync(ListForwardingRulesRequest request, CallSettings callSettings = null)
Retrieves a list of ForwardingRule resources available to the specified project and region.
Parameters | |
---|---|
Name | Description |
request | ListForwardingRulesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ForwardingRuleList, ForwardingRule> | A pageable asynchronous sequence of ForwardingRule resources. |
Patch(PatchForwardingRuleRequest, CallSettings)
public override Operation<Operation, Operation> Patch(PatchForwardingRuleRequest request, CallSettings callSettings = null)
Updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field.
Parameters | |
---|---|
Name | Description |
request | PatchForwardingRuleRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
PatchAsync(PatchForwardingRuleRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> PatchAsync(PatchForwardingRuleRequest request, CallSettings callSettings = null)
Updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field.
Parameters | |
---|---|
Name | Description |
request | PatchForwardingRuleRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
SetLabels(SetLabelsForwardingRuleRequest, CallSettings)
public override Operation<Operation, Operation> SetLabels(SetLabelsForwardingRuleRequest request, CallSettings callSettings = null)
Sets the labels on the specified resource. To learn more about labels, read the Labeling Resources documentation.
Parameters | |
---|---|
Name | Description |
request | SetLabelsForwardingRuleRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
SetLabelsAsync(SetLabelsForwardingRuleRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> SetLabelsAsync(SetLabelsForwardingRuleRequest request, CallSettings callSettings = null)
Sets the labels on the specified resource. To learn more about labels, read the Labeling Resources documentation.
Parameters | |
---|---|
Name | Description |
request | SetLabelsForwardingRuleRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
SetTarget(SetTargetForwardingRuleRequest, CallSettings)
public override Operation<Operation, Operation> SetTarget(SetTargetForwardingRuleRequest request, CallSettings callSettings = null)
Changes target URL for forwarding rule. The new target should be of the same type as the old target.
Parameters | |
---|---|
Name | Description |
request | SetTargetForwardingRuleRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
SetTargetAsync(SetTargetForwardingRuleRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> SetTargetAsync(SetTargetForwardingRuleRequest request, CallSettings callSettings = null)
Changes target URL for forwarding rule. The new target should be of the same type as the old target.
Parameters | |
---|---|
Name | Description |
request | SetTargetForwardingRuleRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |