
target.apidocs.com.google.api.services.compute.Compute.Subnetworks.html Maven / Gradle / Ivy
Compute.Subnetworks (Compute Engine API alpha-rev20200526-1.30.9)
com.google.api.services.compute
Class Compute.Subnetworks
- java.lang.Object
-
- com.google.api.services.compute.Compute.Subnetworks
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.Subnetworks.AggregatedList
class
Compute.Subnetworks.Delete
class
Compute.Subnetworks.ExpandIpCidrRange
class
Compute.Subnetworks.Get
class
Compute.Subnetworks.GetIamPolicy
class
Compute.Subnetworks.Insert
class
Compute.Subnetworks.List
class
Compute.Subnetworks.ListUsable
class
Compute.Subnetworks.Patch
class
Compute.Subnetworks.SetIamPolicy
class
Compute.Subnetworks.SetPrivateIpGoogleAccess
class
Compute.Subnetworks.TestIamPermissions
-
Constructor Summary
Constructors
Constructor and Description
Subnetworks()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.Subnetworks.AggregatedList
aggregatedList(String project)
Retrieves an aggregated list of subnetworks.
Compute.Subnetworks.Delete
delete(String project,
String region,
String subnetwork)
Deletes the specified subnetwork.
Compute.Subnetworks.ExpandIpCidrRange
expandIpCidrRange(String project,
String region,
String subnetwork,
SubnetworksExpandIpCidrRangeRequest content)
Expands the IP CIDR range of the subnetwork to a specified value.
Compute.Subnetworks.Get
get(String project,
String region,
String subnetwork)
Returns the specified subnetwork.
Compute.Subnetworks.GetIamPolicy
getIamPolicy(String project,
String region,
String resource)
Gets the access control policy for a resource.
Compute.Subnetworks.Insert
insert(String project,
String region,
Subnetwork content)
Creates a subnetwork in the specified project using the data included in the request.
Compute.Subnetworks.List
list(String project,
String region)
Retrieves a list of subnetworks available to the specified project.
Compute.Subnetworks.ListUsable
listUsable(String project)
Retrieves an aggregated list of all usable subnetworks in the project.
Compute.Subnetworks.Patch
patch(String project,
String region,
String subnetwork,
Subnetwork content)
Patches the specified subnetwork with the data included in the request.
Compute.Subnetworks.SetIamPolicy
setIamPolicy(String project,
String region,
String resource,
RegionSetPolicyRequest content)
Sets the access control policy on the specified resource.
Compute.Subnetworks.SetPrivateIpGoogleAccess
setPrivateIpGoogleAccess(String project,
String region,
String subnetwork,
SubnetworksSetPrivateIpGoogleAccessRequest content)
Set whether VMs in this subnet can access Google services without assigning external IP addresses
through Private Google Access.
Compute.Subnetworks.TestIamPermissions
testIamPermissions(String project,
String region,
String resource,
TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
-
-
Method Detail
-
aggregatedList
public Compute.Subnetworks.AggregatedList aggregatedList(String project)
throws IOException
Retrieves an aggregated list of subnetworks.
Create a request for the method "subnetworks.aggregatedList".
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
-
delete
public Compute.Subnetworks.Delete delete(String project,
String region,
String subnetwork)
throws IOException
Deletes the specified subnetwork.
Create a request for the method "subnetworks.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.
region
- Name of the region scoping this request.
subnetwork
- Name of the Subnetwork resource to delete.
- Returns:
- the request
- Throws:
IOException
-
expandIpCidrRange
public Compute.Subnetworks.ExpandIpCidrRange expandIpCidrRange(String project,
String region,
String subnetwork,
SubnetworksExpandIpCidrRangeRequest content)
throws IOException
Expands the IP CIDR range of the subnetwork to a specified value.
Create a request for the method "subnetworks.expandIpCidrRange".
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.
region
- Name of the region scoping this request.
subnetwork
- Name of the Subnetwork resource to update.
content
- the SubnetworksExpandIpCidrRangeRequest
- Returns:
- the request
- Throws:
IOException
-
get
public Compute.Subnetworks.Get get(String project,
String region,
String subnetwork)
throws IOException
Returns the specified subnetwork. Gets a list of available subnetworks list() request.
Create a request for the method "subnetworks.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.
region
- Name of the region scoping this request.
subnetwork
- Name of the Subnetwork resource to return.
- Returns:
- the request
- Throws:
IOException
-
getIamPolicy
public Compute.Subnetworks.GetIamPolicy getIamPolicy(String project,
String region,
String resource)
throws IOException
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Create a request for the method "subnetworks.getIamPolicy".
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.
region
- The name of the region for this request.
resource
- Name or id of the resource for this request.
- Returns:
- the request
- Throws:
IOException
-
insert
public Compute.Subnetworks.Insert insert(String project,
String region,
Subnetwork content)
throws IOException
Creates a subnetwork in the specified project using the data included in the request.
Create a request for the method "subnetworks.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.
region
- Name of the region scoping this request.
content
- the Subnetwork
- Returns:
- the request
- Throws:
IOException
-
list
public Compute.Subnetworks.List list(String project,
String region)
throws IOException
Retrieves a list of subnetworks available to the specified project.
Create a request for the method "subnetworks.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.
region
- Name of the region scoping this request.
- Returns:
- the request
- Throws:
IOException
-
listUsable
public Compute.Subnetworks.ListUsable listUsable(String project)
throws IOException
Retrieves an aggregated list of all usable subnetworks in the project. The list contains all of
the subnetworks in the project and the subnetworks that were shared by a Shared VPC host project.
Create a request for the method "subnetworks.listUsable".
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
-
patch
public Compute.Subnetworks.Patch patch(String project,
String region,
String subnetwork,
Subnetwork content)
throws IOException
Patches the specified subnetwork with the data included in the request. Only certain fields can
up updated with a patch request as indicated in the field descriptions. You must specify the
current fingerprint of the subnetwork resource being patched.
Create a request for the method "subnetworks.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.
region
- Name of the region scoping this request.
subnetwork
- Name of the Subnetwork resource to patch.
content
- the Subnetwork
- Returns:
- the request
- Throws:
IOException
-
setIamPolicy
public Compute.Subnetworks.SetIamPolicy setIamPolicy(String project,
String region,
String resource,
RegionSetPolicyRequest content)
throws IOException
Sets the access control policy on the specified resource. Replaces any existing policy.
Create a request for the method "subnetworks.setIamPolicy".
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.
region
- The name of the region for this request.
resource
- Name or id of the resource for this request.
content
- the RegionSetPolicyRequest
- Returns:
- the request
- Throws:
IOException
-
setPrivateIpGoogleAccess
public Compute.Subnetworks.SetPrivateIpGoogleAccess setPrivateIpGoogleAccess(String project,
String region,
String subnetwork,
SubnetworksSetPrivateIpGoogleAccessRequest content)
throws IOException
Set whether VMs in this subnet can access Google services without assigning external IP addresses
through Private Google Access.
Create a request for the method "subnetworks.setPrivateIpGoogleAccess".
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.
region
- Name of the region scoping this request.
subnetwork
- Name of the Subnetwork resource.
content
- the SubnetworksSetPrivateIpGoogleAccessRequest
- Returns:
- the request
- Throws:
IOException
-
testIamPermissions
public Compute.Subnetworks.TestIamPermissions testIamPermissions(String project,
String region,
String resource,
TestPermissionsRequest content)
throws IOException
Returns permissions that a caller has on the specified resource.
Create a request for the method "subnetworks.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.
region
- The name of the region for this request.
resource
- Name or id of the resource for this request.
content
- the TestPermissionsRequest
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy