Class NetworksResource
The "networks" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class NetworksResource
Constructors
NetworksResource(IClientService)
Constructs a new resource.
Declaration
public NetworksResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
AddPeering(NetworksAddPeeringRequest, string, string)
Adds a peering to the specified network.
Declaration
public virtual NetworksResource.AddPeeringRequest AddPeering(NetworksAddPeeringRequest body, string project, string network)
Parameters
Type | Name | Description |
---|---|---|
NetworksAddPeeringRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | network | Name of the network resource to add peering to. |
Returns
Type | Description |
---|---|
NetworksResource.AddPeeringRequest |
Delete(string, string)
Deletes the specified network.
Declaration
public virtual NetworksResource.DeleteRequest Delete(string project, string network)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | network | Name of the network to delete. |
Returns
Type | Description |
---|---|
NetworksResource.DeleteRequest |
Get(string, string)
Returns the specified network.
Declaration
public virtual NetworksResource.GetRequest Get(string project, string network)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | network | Name of the network to return. |
Returns
Type | Description |
---|---|
NetworksResource.GetRequest |
GetEffectiveFirewalls(string, string)
Returns the effective firewalls on a given network.
Declaration
public virtual NetworksResource.GetEffectiveFirewallsRequest GetEffectiveFirewalls(string project, string network)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | network | Name of the network for this request. |
Returns
Type | Description |
---|---|
NetworksResource.GetEffectiveFirewallsRequest |
Insert(Network, string)
Creates a network in the specified project using the data included in the request.
Declaration
public virtual NetworksResource.InsertRequest Insert(Network body, string project)
Parameters
Type | Name | Description |
---|---|---|
Network | body | The body of the request. |
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
NetworksResource.InsertRequest |
List(string)
Retrieves the list of networks available to the specified project.
Declaration
public virtual NetworksResource.ListRequest List(string project)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
NetworksResource.ListRequest |
ListIpAddresses(string, string)
Lists the internal IP addresses in the specified network.
Declaration
public virtual NetworksResource.ListIpAddressesRequest ListIpAddresses(string project, string network)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | network | Name of the network for this request. |
Returns
Type | Description |
---|---|
NetworksResource.ListIpAddressesRequest |
ListIpOwners(string, string)
Lists the internal IP owners in the specified network.
Declaration
public virtual NetworksResource.ListIpOwnersRequest ListIpOwners(string project, string network)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | network | Name of the network to return. |
Returns
Type | Description |
---|---|
NetworksResource.ListIpOwnersRequest |
ListPeeringRoutes(string, string)
Lists the peering routes exchanged over peering connection.
Declaration
public virtual NetworksResource.ListPeeringRoutesRequest ListPeeringRoutes(string project, string network)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | network | Name of the network for this request. |
Returns
Type | Description |
---|---|
NetworksResource.ListPeeringRoutesRequest |
Patch(Network, string, string)
Patches the specified network with the data included in the request. Only routingConfig can be modified.
Declaration
public virtual NetworksResource.PatchRequest Patch(Network body, string project, string network)
Parameters
Type | Name | Description |
---|---|---|
Network | body | The body of the request. |
string | project | Project ID for this request. |
string | network | Name of the network to update. |
Returns
Type | Description |
---|---|
NetworksResource.PatchRequest |
RemovePeering(NetworksRemovePeeringRequest, string, string)
Removes a peering from the specified network.
Declaration
public virtual NetworksResource.RemovePeeringRequest RemovePeering(NetworksRemovePeeringRequest body, string project, string network)
Parameters
Type | Name | Description |
---|---|---|
NetworksRemovePeeringRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | network | Name of the network resource to remove peering from. |
Returns
Type | Description |
---|---|
NetworksResource.RemovePeeringRequest |
SwitchToCustomMode(string, string)
Switches the network mode from auto subnet mode to custom subnet mode.
Declaration
public virtual NetworksResource.SwitchToCustomModeRequest SwitchToCustomMode(string project, string network)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | network | Name of the network to be updated. |
Returns
Type | Description |
---|---|
NetworksResource.SwitchToCustomModeRequest |
TestIamPermissions(TestPermissionsRequest, string, string)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual NetworksResource.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 |
---|---|
NetworksResource.TestIamPermissionsRequest |
UpdatePeering(NetworksUpdatePeeringRequest, string, string)
Updates the specified network peering with the data included in the request. You can only modify the NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field.
Declaration
public virtual NetworksResource.UpdatePeeringRequest UpdatePeering(NetworksUpdatePeeringRequest body, string project, string network)
Parameters
Type | Name | Description |
---|---|---|
NetworksUpdatePeeringRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | network | Name of the network resource which the updated peering is belonging to. |
Returns
Type | Description |
---|---|
NetworksResource.UpdatePeeringRequest |