Class RoutersResource
The "routers" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class RoutersResource
Constructors
RoutersResource(IClientService)
Constructs a new resource.
Declaration
public RoutersResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
AggregatedList(String)
Retrieves an aggregated list of routers.
Declaration
public virtual RoutersResource.AggregatedListRequest AggregatedList(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| RoutersResource.AggregatedListRequest |
Delete(String, String, String)
Deletes the specified Router resource.
Declaration
public virtual RoutersResource.DeleteRequest Delete(string project, string region, string router)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.String | router | Name of the Router resource to delete. |
Returns
| Type | Description |
|---|---|
| RoutersResource.DeleteRequest |
Get(String, String, String)
Returns the specified Router resource. Gets a list of available routers by making a list() request.
Declaration
public virtual RoutersResource.GetRequest Get(string project, string region, string router)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.String | router | Name of the Router resource to return. |
Returns
| Type | Description |
|---|---|
| RoutersResource.GetRequest |
GetNatMappingInfo(String, String, String)
Retrieves runtime Nat mapping information of VM endpoints.
Declaration
public virtual RoutersResource.GetNatMappingInfoRequest GetNatMappingInfo(string project, string region, string router)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.String | router | Name of the Router resource to query for Nat Mapping information of VM endpoints. |
Returns
| Type | Description |
|---|---|
| RoutersResource.GetNatMappingInfoRequest |
GetRouterStatus(String, String, String)
Retrieves runtime information of the specified router.
Declaration
public virtual RoutersResource.GetRouterStatusRequest GetRouterStatus(string project, string region, string router)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.String | router | Name of the Router resource to query. |
Returns
| Type | Description |
|---|---|
| RoutersResource.GetRouterStatusRequest |
Insert(Router, String, String)
Creates a Router resource in the specified project and region using the data included in the request.
Declaration
public virtual RoutersResource.InsertRequest Insert(Router body, string project, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| Router | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
Returns
| Type | Description |
|---|---|
| RoutersResource.InsertRequest |
List(String, String)
Retrieves a list of Router resources available to the specified project.
Declaration
public virtual RoutersResource.ListRequest List(string project, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
Returns
| Type | Description |
|---|---|
| RoutersResource.ListRequest |
Patch(Router, String, String, String)
Patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
Declaration
public virtual RoutersResource.PatchRequest Patch(Router body, string project, string region, string router)
Parameters
| Type | Name | Description |
|---|---|---|
| Router | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.String | router | Name of the Router resource to patch. |
Returns
| Type | Description |
|---|---|
| RoutersResource.PatchRequest |
Preview(Router, String, String, String)
Preview fields auto-generated during router create and update operations. Calling this method does NOT create or update the router.
Declaration
public virtual RoutersResource.PreviewRequest Preview(Router body, string project, string region, string router)
Parameters
| Type | Name | Description |
|---|---|---|
| Router | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.String | router | Name of the Router resource to query. |
Returns
| Type | Description |
|---|---|
| RoutersResource.PreviewRequest |
Update(Router, String, String, String)
Updates the specified Router resource with the data included in the request. This method conforms to PUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload.
Declaration
public virtual RoutersResource.UpdateRequest Update(Router body, string project, string region, string router)
Parameters
| Type | Name | Description |
|---|---|---|
| Router | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.String | router | Name of the Router resource to update. |
Returns
| Type | Description |
|---|---|
| RoutersResource.UpdateRequest |