Show / Hide Table of Contents

Class ForwardingRulesResource

The "forwardingRules" collection of methods.

Inheritance
object
ForwardingRulesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Compute.beta
Assembly: Google.Apis.Compute.beta.dll
Syntax
public class ForwardingRulesResource

Constructors

ForwardingRulesResource(IClientService)

Constructs a new resource.

Declaration
public ForwardingRulesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

AggregatedList(string)

Retrieves an aggregated list of forwarding rules.

Declaration
public virtual ForwardingRulesResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type Name Description
string project

Project ID for this request.

Returns
Type Description
ForwardingRulesResource.AggregatedListRequest

Delete(string, string, string)

Deletes the specified ForwardingRule resource.

Declaration
public virtual ForwardingRulesResource.DeleteRequest Delete(string project, string region, string forwardingRule)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region scoping this request.

string forwardingRule

Name of the ForwardingRule resource to delete.

Returns
Type Description
ForwardingRulesResource.DeleteRequest

Get(string, string, string)

Returns the specified ForwardingRule resource.

Declaration
public virtual ForwardingRulesResource.GetRequest Get(string project, string region, string forwardingRule)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region scoping this request.

string forwardingRule

Name of the ForwardingRule resource to return.

Returns
Type Description
ForwardingRulesResource.GetRequest

Insert(ForwardingRule, string, string)

Creates a ForwardingRule resource in the specified project and region using the data included in the request.

Declaration
public virtual ForwardingRulesResource.InsertRequest Insert(ForwardingRule body, string project, string region)
Parameters
Type Name Description
ForwardingRule body

The body of the request.

string project

Project ID for this request.

string region

Name of the region scoping this request.

Returns
Type Description
ForwardingRulesResource.InsertRequest

List(string, string)

Retrieves a list of ForwardingRule resources available to the specified project and region.

Declaration
public virtual ForwardingRulesResource.ListRequest List(string project, string region)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region scoping this request.

Returns
Type Description
ForwardingRulesResource.ListRequest

Patch(ForwardingRule, string, string, string)

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.

Declaration
public virtual ForwardingRulesResource.PatchRequest Patch(ForwardingRule body, string project, string region, string forwardingRule)
Parameters
Type Name Description
ForwardingRule body

The body of the request.

string project

Project ID for this request.

string region

Name of the region scoping this request.

string forwardingRule

Name of the ForwardingRule resource to patch.

Returns
Type Description
ForwardingRulesResource.PatchRequest

SetLabels(RegionSetLabelsRequest, string, string, string)

Sets the labels on the specified resource. To learn more about labels, read the Labeling Resources documentation.

Declaration
public virtual ForwardingRulesResource.SetLabelsRequest SetLabels(RegionSetLabelsRequest body, string project, string region, string resource)
Parameters
Type Name Description
RegionSetLabelsRequest body

The body of the request.

string project

Project ID for this request.

string region

The region for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
ForwardingRulesResource.SetLabelsRequest

SetTarget(TargetReference, string, string, string)

Changes target URL for forwarding rule. The new target should be of the same type as the old target.

Declaration
public virtual ForwardingRulesResource.SetTargetRequest SetTarget(TargetReference body, string project, string region, string forwardingRule)
Parameters
Type Name Description
TargetReference body

The body of the request.

string project

Project ID for this request.

string region

Name of the region scoping this request.

string forwardingRule

Name of the ForwardingRule resource in which target is to be set.

Returns
Type Description
ForwardingRulesResource.SetTargetRequest

TestIamPermissions(TestPermissionsRequest, string, string, string)

Returns permissions that a caller has on the specified resource.

Declaration
public virtual ForwardingRulesResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string region, string resource)
Parameters
Type Name Description
TestPermissionsRequest body

The body of the request.

string project

Project ID for this request.

string region

The name of the region for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
ForwardingRulesResource.TestIamPermissionsRequest
In This Article
Back to top Generated by DocFX