public sealed class GlobalForwardingRulesClientImpl : GlobalForwardingRulesClient
Reference documentation and code samples for the Compute Engine v1 API class GlobalForwardingRulesClientImpl.
GlobalForwardingRules client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The GlobalForwardingRules API.
Constructors
GlobalForwardingRulesClientImpl(GlobalForwardingRules.GlobalForwardingRulesClient, GlobalForwardingRulesSettings, ILogger)
public GlobalForwardingRulesClientImpl(GlobalForwardingRules.GlobalForwardingRulesClient grpcClient, GlobalForwardingRulesSettings settings, ILogger logger)
Constructs a client wrapper for the GlobalForwardingRules service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | GlobalForwardingRules.GlobalForwardingRulesClient The underlying gRPC client. |
settings | GlobalForwardingRulesSettings The base GlobalForwardingRulesSettings 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 GlobalForwardingRules.GlobalForwardingRulesClient GrpcClient { get; }
The underlying gRPC GlobalForwardingRules client
Property Value | |
---|---|
Type | Description |
GlobalForwardingRules.GlobalForwardingRulesClient |
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
Delete(DeleteGlobalForwardingRuleRequest, CallSettings)
public override Operation<Operation, Operation> Delete(DeleteGlobalForwardingRuleRequest request, CallSettings callSettings = null)
Deletes the specified GlobalForwardingRule resource.
Parameters | |
---|---|
Name | Description |
request | DeleteGlobalForwardingRuleRequest 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(DeleteGlobalForwardingRuleRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> DeleteAsync(DeleteGlobalForwardingRuleRequest request, CallSettings callSettings = null)
Deletes the specified GlobalForwardingRule resource.
Parameters | |
---|---|
Name | Description |
request | DeleteGlobalForwardingRuleRequest 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(GetGlobalForwardingRuleRequest, CallSettings)
public override ForwardingRule Get(GetGlobalForwardingRuleRequest request, CallSettings callSettings = null)
Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetGlobalForwardingRuleRequest 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(GetGlobalForwardingRuleRequest, CallSettings)
public override Task<ForwardingRule> GetAsync(GetGlobalForwardingRuleRequest request, CallSettings callSettings = null)
Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetGlobalForwardingRuleRequest 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(InsertGlobalForwardingRuleRequest, CallSettings)
public override Operation<Operation, Operation> Insert(InsertGlobalForwardingRuleRequest request, CallSettings callSettings = null)
Creates a GlobalForwardingRule resource in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertGlobalForwardingRuleRequest 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(InsertGlobalForwardingRuleRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> InsertAsync(InsertGlobalForwardingRuleRequest request, CallSettings callSettings = null)
Creates a GlobalForwardingRule resource in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertGlobalForwardingRuleRequest 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(ListGlobalForwardingRulesRequest, CallSettings)
public override PagedEnumerable<ForwardingRuleList, ForwardingRule> List(ListGlobalForwardingRulesRequest request, CallSettings callSettings = null)
Retrieves a list of GlobalForwardingRule resources available to the specified project.
Parameters | |
---|---|
Name | Description |
request | ListGlobalForwardingRulesRequest 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(ListGlobalForwardingRulesRequest, CallSettings)
public override PagedAsyncEnumerable<ForwardingRuleList, ForwardingRule> ListAsync(ListGlobalForwardingRulesRequest request, CallSettings callSettings = null)
Retrieves a list of GlobalForwardingRule resources available to the specified project.
Parameters | |
---|---|
Name | Description |
request | ListGlobalForwardingRulesRequest 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(PatchGlobalForwardingRuleRequest, CallSettings)
public override Operation<Operation, Operation> Patch(PatchGlobalForwardingRuleRequest 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 | PatchGlobalForwardingRuleRequest 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(PatchGlobalForwardingRuleRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> PatchAsync(PatchGlobalForwardingRuleRequest 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 | PatchGlobalForwardingRuleRequest 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(SetLabelsGlobalForwardingRuleRequest, CallSettings)
public override Operation<Operation, Operation> SetLabels(SetLabelsGlobalForwardingRuleRequest 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 | SetLabelsGlobalForwardingRuleRequest 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(SetLabelsGlobalForwardingRuleRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> SetLabelsAsync(SetLabelsGlobalForwardingRuleRequest 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 | SetLabelsGlobalForwardingRuleRequest 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(SetTargetGlobalForwardingRuleRequest, CallSettings)
public override Operation<Operation, Operation> SetTarget(SetTargetGlobalForwardingRuleRequest request, CallSettings callSettings = null)
Changes target URL for the GlobalForwardingRule resource. The new target should be of the same type as the old target.
Parameters | |
---|---|
Name | Description |
request | SetTargetGlobalForwardingRuleRequest 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(SetTargetGlobalForwardingRuleRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> SetTargetAsync(SetTargetGlobalForwardingRuleRequest request, CallSettings callSettings = null)
Changes target URL for the GlobalForwardingRule resource. The new target should be of the same type as the old target.
Parameters | |
---|---|
Name | Description |
request | SetTargetGlobalForwardingRuleRequest 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. |