Class GlobalForwardingRulesResource
The "globalForwardingRules" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.beta
Assembly: Google.Apis.Compute.beta.dll
Syntax
public class GlobalForwardingRulesResource
Constructors
GlobalForwardingRulesResource(IClientService)
Constructs a new resource.
Declaration
public GlobalForwardingRulesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Delete(string, string)
Deletes the specified GlobalForwardingRule resource.
Declaration
public virtual GlobalForwardingRulesResource.DeleteRequest Delete(string project, string forwardingRule)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
| string | forwardingRule | Name of the ForwardingRule resource to delete. |
Returns
| Type | Description |
|---|---|
| GlobalForwardingRulesResource.DeleteRequest |
Get(string, string)
Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by making a list() request.
Declaration
public virtual GlobalForwardingRulesResource.GetRequest Get(string project, string forwardingRule)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
| string | forwardingRule | Name of the ForwardingRule resource to return. |
Returns
| Type | Description |
|---|---|
| GlobalForwardingRulesResource.GetRequest |
Insert(ForwardingRule, string)
Creates a GlobalForwardingRule resource in the specified project using the data included in the request.
Declaration
public virtual GlobalForwardingRulesResource.InsertRequest Insert(ForwardingRule body, string project)
Parameters
| Type | Name | Description |
|---|---|---|
| ForwardingRule | body | The body of the request. |
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| GlobalForwardingRulesResource.InsertRequest |
List(string)
Retrieves a list of GlobalForwardingRule resources available to the specified project.
Declaration
public virtual GlobalForwardingRulesResource.ListRequest List(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| GlobalForwardingRulesResource.ListRequest |
Patch(ForwardingRule, 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 GlobalForwardingRulesResource.PatchRequest Patch(ForwardingRule body, string project, string forwardingRule)
Parameters
| Type | Name | Description |
|---|---|---|
| ForwardingRule | body | The body of the request. |
| string | project | Project ID for this request. |
| string | forwardingRule | Name of the ForwardingRule resource to patch. |
Returns
| Type | Description |
|---|---|
| GlobalForwardingRulesResource.PatchRequest |
SetLabels(GlobalSetLabelsRequest, string, string)
Sets the labels on the specified resource. To learn more about labels, read the Labeling resources documentation.
Declaration
public virtual GlobalForwardingRulesResource.SetLabelsRequest SetLabels(GlobalSetLabelsRequest body, string project, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| GlobalSetLabelsRequest | body | The body of the request. |
| string | project | Project ID for this request. |
| string | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| GlobalForwardingRulesResource.SetLabelsRequest |
SetTarget(TargetReference, string, string)
Changes target URL for the GlobalForwardingRule resource. The new target should be of the same type as the old target.
Declaration
public virtual GlobalForwardingRulesResource.SetTargetRequest SetTarget(TargetReference body, string project, string forwardingRule)
Parameters
| Type | Name | Description |
|---|---|---|
| TargetReference | body | The body of the request. |
| string | project | Project ID for this request. |
| string | forwardingRule | Name of the ForwardingRule resource in which target is to be set. |
Returns
| Type | Description |
|---|---|
| GlobalForwardingRulesResource.SetTargetRequest |
TestIamPermissions(TestPermissionsRequest, string, string)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual GlobalForwardingRulesResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| TestPermissionsRequest | body | The body of the request. |
| string | project | Project ID for this request. |
| string | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| GlobalForwardingRulesResource.TestIamPermissionsRequest |