target.apidocs.com.google.api.services.compute.Compute.Networks.html Maven / Gradle / Ivy
Compute.Networks (Compute Engine API alpha-rev20200526-1.30.9)
com.google.api.services.compute
Class Compute.Networks
- java.lang.Object
-
- com.google.api.services.compute.Compute.Networks
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.Networks.AddPeering
class
Compute.Networks.Delete
class
Compute.Networks.Get
class
Compute.Networks.GetEffectiveFirewalls
class
Compute.Networks.Insert
class
Compute.Networks.List
class
Compute.Networks.ListIpAddresses
class
Compute.Networks.ListIpOwners
class
Compute.Networks.ListPeeringRoutes
class
Compute.Networks.Patch
class
Compute.Networks.RemovePeering
class
Compute.Networks.SwitchToCustomMode
class
Compute.Networks.TestIamPermissions
class
Compute.Networks.UpdatePeering
-
Constructor Summary
Constructors
Constructor and Description
Networks()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.Networks.AddPeering
addPeering(String project,
String network,
NetworksAddPeeringRequest content)
Adds a peering to the specified network.
Compute.Networks.Delete
delete(String project,
String network)
Deletes the specified network.
Compute.Networks.Get
get(String project,
String network)
Returns the specified network.
Compute.Networks.GetEffectiveFirewalls
getEffectiveFirewalls(String project,
String network)
Returns the effective firewalls on a given network.
Compute.Networks.Insert
insert(String project,
Network content)
Creates a network in the specified project using the data included in the request.
Compute.Networks.List
list(String project)
Retrieves the list of networks available to the specified project.
Compute.Networks.ListIpAddresses
listIpAddresses(String project,
String network)
Lists the internal IP addresses in the specified network.
Compute.Networks.ListIpOwners
listIpOwners(String project,
String network)
Lists the internal IP owners in the specified network.
Compute.Networks.ListPeeringRoutes
listPeeringRoutes(String project,
String network)
Lists the peering routes exchanged over peering connection.
Compute.Networks.Patch
patch(String project,
String network,
Network content)
Patches the specified network with the data included in the request.
Compute.Networks.RemovePeering
removePeering(String project,
String network,
NetworksRemovePeeringRequest content)
Removes a peering from the specified network.
Compute.Networks.SwitchToCustomMode
switchToCustomMode(String project,
String network)
Switches the network mode from auto subnet mode to custom subnet mode.
Compute.Networks.TestIamPermissions
testIamPermissions(String project,
String resource,
TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
Compute.Networks.UpdatePeering
updatePeering(String project,
String network,
NetworksUpdatePeeringRequest content)
Updates the specified network peering with the data included in the request Only the following
fields can be modified: NetworkPeering.export_custom_routes, and
NetworkPeering.import_custom_routes
Create a request for the method "networks.updatePeering".
-
-
Method Detail
-
addPeering
public Compute.Networks.AddPeering addPeering(String project,
String network,
NetworksAddPeeringRequest content)
throws IOException
Adds a peering to the specified network.
Create a request for the method "networks.addPeering".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
network
- Name of the network resource to add peering to.
content
- the NetworksAddPeeringRequest
- Returns:
- the request
- Throws:
IOException
-
delete
public Compute.Networks.Delete delete(String project,
String network)
throws IOException
Deletes the specified network.
Create a request for the method "networks.delete".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
network
- Name of the network to delete.
- Returns:
- the request
- Throws:
IOException
-
get
public Compute.Networks.Get get(String project,
String network)
throws IOException
Returns the specified network. Gets a list of available networks by making a list() request.
Create a request for the method "networks.get".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
network
- Name of the network to return.
- Returns:
- the request
- Throws:
IOException
-
getEffectiveFirewalls
public Compute.Networks.GetEffectiveFirewalls getEffectiveFirewalls(String project,
String network)
throws IOException
Returns the effective firewalls on a given network.
Create a request for the method "networks.getEffectiveFirewalls".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.
- Parameters:
project
- Project ID for this request.
network
- Name of the network for this request.
- Returns:
- the request
- Throws:
IOException
-
insert
public Compute.Networks.Insert insert(String project,
Network content)
throws IOException
Creates a network in the specified project using the data included in the request.
Create a request for the method "networks.insert".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
content
- the Network
- Returns:
- the request
- Throws:
IOException
-
list
public Compute.Networks.List list(String project)
throws IOException
Retrieves the list of networks available to the specified project.
Create a request for the method "networks.list".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
- Returns:
- the request
- Throws:
IOException
-
listIpAddresses
public Compute.Networks.ListIpAddresses listIpAddresses(String project,
String network)
throws IOException
Lists the internal IP addresses in the specified network.
Create a request for the method "networks.listIpAddresses".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
network
- Name of the network for this request.
- Returns:
- the request
- Throws:
IOException
-
listIpOwners
public Compute.Networks.ListIpOwners listIpOwners(String project,
String network)
throws IOException
Lists the internal IP owners in the specified network.
Create a request for the method "networks.listIpOwners".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
network
- Name of the network to return.
- Returns:
- the request
- Throws:
IOException
-
listPeeringRoutes
public Compute.Networks.ListPeeringRoutes listPeeringRoutes(String project,
String network)
throws IOException
Lists the peering routes exchanged over peering connection.
Create a request for the method "networks.listPeeringRoutes".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
network
- Name of the network for this request.
- Returns:
- the request
- Throws:
IOException
-
patch
public Compute.Networks.Patch patch(String project,
String network,
Network content)
throws IOException
Patches the specified network with the data included in the request. Only the following fields
can be modified: routingConfig.routingMode.
Create a request for the method "networks.patch".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
network
- Name of the network to update.
content
- the Network
- Returns:
- the request
- Throws:
IOException
-
removePeering
public Compute.Networks.RemovePeering removePeering(String project,
String network,
NetworksRemovePeeringRequest content)
throws IOException
Removes a peering from the specified network.
Create a request for the method "networks.removePeering".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
network
- Name of the network resource to remove peering from.
content
- the NetworksRemovePeeringRequest
- Returns:
- the request
- Throws:
IOException
-
switchToCustomMode
public Compute.Networks.SwitchToCustomMode switchToCustomMode(String project,
String network)
throws IOException
Switches the network mode from auto subnet mode to custom subnet mode.
Create a request for the method "networks.switchToCustomMode".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
network
- Name of the network to be updated.
- Returns:
- the request
- Throws:
IOException
-
testIamPermissions
public Compute.Networks.TestIamPermissions testIamPermissions(String project,
String resource,
TestPermissionsRequest content)
throws IOException
Returns permissions that a caller has on the specified resource.
Create a request for the method "networks.testIamPermissions".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
resource
- Name or id of the resource for this request.
content
- the TestPermissionsRequest
- Returns:
- the request
- Throws:
IOException
-
updatePeering
public Compute.Networks.UpdatePeering updatePeering(String project,
String network,
NetworksUpdatePeeringRequest content)
throws IOException
Updates the specified network peering with the data included in the request Only the following
fields can be modified: NetworkPeering.export_custom_routes, and
NetworkPeering.import_custom_routes
Create a request for the method "networks.updatePeering".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
network
- Name of the network resource which the updated peering is belonging to.
content
- the NetworksUpdatePeeringRequest
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy